TLDR: This research introduces Jacobian regularization, a novel method to train neural networks (teachers) to be more ‘distillable’ into simple, human-readable symbolic formulas (students). By encouraging the teacher network to learn smoother functions, the technique significantly improves the accuracy of the extracted symbolic models (average 120% R² improvement) without sacrificing the teacher’s predictive performance, thereby making complex AI more interpretable.
Deep learning models have achieved remarkable success across various fields, from computer vision to natural language processing. However, their incredible performance often comes at a cost: a lack of transparency. These models, often referred to as “black boxes,” operate with vast numbers of parameters forming complex, non-linear relationships that are difficult for humans to understand. This opacity can be a significant barrier to their adoption in critical areas like scientific discovery, medical diagnostics, and financial modeling, where trust, debugging, and understanding a model’s reasoning are as crucial as its predictive accuracy.
To address this challenge, the field of Explainable AI (XAI) has explored various methods to shed light on these complex models. One promising approach is knowledge distillation, where a large, complex “teacher” model transfers its knowledge to a smaller, simpler “student” model. While often used for model compression, this framework can also lead to interpretability by selecting a student model that is inherently transparent.
Among the possible student models, those produced by Symbolic Regression (SR) are particularly compelling. Unlike other models that provide explanations after the fact, SR aims to discover the underlying mathematical formula that maps inputs to outputs. The result is not just an explanation, but the model itself—a fully transparent, human-readable equation. A straightforward way to achieve this is a two-stage process: first, train a high-performance neural network (ANN) as the teacher, and second, train an SR model to mimic the teacher’s predictions.
However, this seemingly simple approach often falls short in practice. The complex, often chaotic functions learned by standard ANNs are poor targets for SR, leading to low-fidelity symbolic models that struggle to compete with other machine learning baselines. This suggests a fundamental problem: the teacher network, despite its accuracy, isn’t a good instructor for symbolic models.
Teaching the Teacher to Be a Better Instructor
Instead of passively accepting the teacher’s limitations, researchers asked: can we train the teacher to be more effective at teaching? This led to the development of a novel training methodology that actively encourages an ANN to learn functions that are not only accurate but also inherently more amenable to symbolic distillation. The core contribution is a new Jacobian-based regularization term added to the ANN’s loss function.
The Jacobian matrix measures how much a function’s output changes for small changes in its input. By penalizing the norm of this matrix, the method incentivizes the neural network to learn functionally smoother mappings. These smoother functions are significantly easier for Symbolic Regression algorithms to discover and represent, bridging the “distillation gap” between the complex teacher and the simple student.
Experimental Validation and Key Findings
Extensive experiments were conducted on several real-world regression datasets. The initial analysis confirmed the brittleness of the naive distillation pipeline, showing a significant drop in accuracy for the symbolic student models compared to their teacher ANNs and other baselines.
When the Jacobian regularization method was applied, the results were dramatic. On average, the R² score (a measure of how well the model predicts outcomes) of the final distilled symbolic model improved by a remarkable 120% (relative) compared to the standard distillation pipeline. Crucially, this significant gain in distillability was achieved while maintaining the teacher’s predictive accuracy. For instance, on the Concrete Strength dataset, the student’s R² score improved from 0.10 to nearly 0.60.
However, the method is not without its considerations. Implementing Jacobian regularization increases training time by approximately 10 times. Additionally, the optimal strength of the regularization (controlled by a hyperparameter called λ) is highly dependent on the specific dataset, requiring some tuning. The benefits of the method were also found to be most pronounced for student models composed of smooth basis functions, like those in symbolic regression. It did not provide significant improvements when distilling into decision trees, which rely on piecewise-constant approximations rather than functional smoothness.
Also Read:
- EvoSLD: Automating the Discovery of AI Scaling Laws with LLMs
- Compositional Function Networks: Building Transparent and High-Performing AI Models
Towards More Transparent AI
This research presents a practical and principled method for significantly improving the fidelity of interpretable models extracted from complex neural networks. By actively encouraging the teacher network to learn functions that are smoother and more structured, it paves the way for creating more transparent and trustworthy AI systems. This could accelerate scientific discovery by revealing underlying mathematical relationships in data and facilitate the safer deployment of AI in high-stakes decision-making processes.
While the method shows great promise, the authors acknowledge limitations such as computational overhead and the need for hyperparameter tuning. Future work aims to develop adaptive regularization techniques, mitigate computational costs, explore more advanced regularizers, and extend the methodology to classification tasks. For more details, you can refer to the full research paper: Teaching the Teacher: Improving Neural Network Distillability for Symbolic Regression via Jacobian Regularization.


