Learning from Teaching Regularization: Generalizable Correlations Should be Easy to Imitate

Can Jin, Tong Che, Hongwu Peng, Yiyuan Li, Dimitris N. Metaxas, Marco Pavone

Abstract

A fundamental challenge in deep learning is the tendency of models to "memorize" training data rather than "learning" underlying concepts. This paper introduces Learning from Teaching (LOT), a novel regularization technique based on the hypothesis that generalizable correlations are inherently easier to communicate than noise. By training an auxiliary student model to imitate a teacher model in real-time, LOT forces the teacher to prioritize simple, robust features. Experimental results across reinforcement learning, natural language processing, and computer vision demonstrate that LOT significantly enhances generalization and robustness.

1. Introduction

Deep neural networks are notorious for "brute-force memorization." Given sufficient capacity, a model can perfectly fit a dataset even if the labels are completely random. The challenge lies in generalization: distinguishing between ground-truth relationships (e.g., "wheels imply a car") and spurious ones (e.g., "this specific blade of grass only appears in photos of dogs").

While standard regularizers like Dropout or L2 weight decay penalize model complexity, they are often agnostic to the semantic quality of the learned correlations. This research proposes a cognitive-inspired approach: if a pattern is truly fundamental and generalizable, it should be easy to teach to another learner. Conversely, complex, noisy shortcuts are difficult to replicate. By making "imitability" a training objective, we can steer models toward more robust representations.

2. The Learning from Teaching (LOT) Framework

The core of the LOT framework is a dynamic, interactive training loop involving two components: a primary Teacher ($T$) and an auxiliary Student ($S$).

2.1 Joint Training Mechanism

Unlike traditional Knowledge Distillation, where a fixed, pre-trained teacher guides a student, LOT involves simultaneous training. The Teacher's objective function is modified to include an "imitability" penalty:

$$ \mathcal{L}_{Total} = \mathcal{L}_{Task}(T) + \alpha \cdot \mathcal{D}_{KL}(T || S) $$

Where $\mathcal{L}_{Task}$ is the standard task loss, $\alpha$ is a regularization weight, and $\mathcal{D}_{KL}$ measures the divergence between the teacher's and student's predictions.

2.2 The Feedback Loop

As the Teacher learns to solve the task, the Student attempts to mimic the Teacher's output distribution. If the Teacher relies on chaotic, high-frequency noise to achieve low task loss, the Student will struggle to keep up, resulting in a high penalty for the Teacher. This forces the Teacher to "simplify" its internal logic until its representations are clear enough for the Student to grasp. Crucially, the student does not need to be as large as the teacher; even a smaller model can provide the necessary pressure to keep the teacher "honest."

3. Experimental Evaluation

The authors tested LOT across an expansive variety of domains to validate the "Imitability Hypothesis."

3.1 Reinforcement Learning

In the Atari-57 benchmark (specifically BeamRider, Breakout, UpNDown, and Gravitar), LOT-enhanced PPO agents achieved an average 44% enhancement in normalized rewards compared to standard training. The regularization helped agents focus on critical game entities rather than background noise.

3.2 Natural Language Processing and Reasoning

On the Penn Tree Bank (PTB) dataset, LOT reduced LSTM perplexity by 11 points. Furthermore, when fine-tuning LLaMA-2 models on mathematical reasoning tasks (GSM8K and MATH), LOT provided a 2% accuracy boost, suggesting that even large-scale language models benefit from the pressure to be imitable.

3.3 Computer Vision and Robustness

LOT achieved a 1.99% accuracy gain on CIFAR-100 and nearly 1% on ImageNet-1K. More importantly, the models showed superior performance on out-of-distribution (OOD) benchmarks such as ImageNet-Sketch and ImageNet-R, confirming that the learned features are more robust to domain shifts.

4. Discussion and Limitations

The "Imitability Hypothesis" suggests a new way to think about Occam's Razor in deep learning: rather than just penalizing the number of parameters, LOT penalizes the "communicative complexity" of the model's logic.

Computational Considerations: The primary trade-off for LOT is increased computational overhead. Training two models simultaneously increases GPU usage by 12% to 55% depending on the task. However, the authors note that LOT often allows the teacher to reach higher accuracy with fewer total training steps because it avoids wandering into the "weeds" of noisy correlations.

Hyperparameter Sensitivity: The method introduces new parameters, such as the regularization weight ($\alpha$) and the ratio of student-to-teacher updates ($N$), which require careful tuning to balance task performance with imitability.

5. Conclusion

Learning from Teaching (LOT) turns the act of teaching into a tool for learning. By framing the search for robust correlations as a communication problem, LOT encourages models to find the simple, structured truths within data. This approach not only improves standard accuracy but significantly bolsters model robustness against the spurious noise that often plagues modern deep learning.

Summary updated

BibTeX
@inproceedings{jin2024learning,
  author = {Can Jin and Tong Che and Hongwu Peng and Yiyuan Li and Dimitris N. Metaxas and Marco Pavone},
  title = {{Learning from Teaching Regularization: Generalizable Correlations Should be Easy to Imitate}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=B1FOes6cyq},
}
Figure