[Paper Review] Transferring Inductive Biases through Knowledge Distillation
This paper investigates knowledge distillation (KD) as a method to transfer inductive biases from teacher models with strong architectural inductive biases (e.g., LSTMs, CNNs) to student models with weaker biases (e.g., Transformers, MLPs). It demonstrates that KD not only improves student performance but also steers the student’s learned representations and training dynamics toward those of the teacher, effectively transferring qualitative solution characteristics beyond just accuracy gains.
Having the right inductive biases can be crucial in many tasks or scenarios where data or computing resources are a limiting factor, or where training data is not perfectly representative of the conditions at test time. However, defining, designing and efficiently adapting inductive biases is not necessarily straightforward. In this paper, we explore the power of knowledge distillation for transferring the effect of inductive biases from one model to another. We consider families of models with different inductive biases, LSTMs vs. Transformers and CNNs vs. MLPs, in the context of tasks and scenarios where having the right inductive biases is critical. We study the effect of inductive biases on the solutions the models converge to and investigate how and to what extent the effect of inductive biases is transferred through knowledge distillation, in terms of not only performance but also different aspects of converged solutions.
Motivation & Objective
- To investigate whether knowledge distillation can transfer the inductive bias effects of a teacher model to a student model with different architecture.
- To examine if KD not only improves performance but also steers the student model toward solutions that reflect the teacher’s inductive bias in terms of representational similarity and training dynamics.
- To evaluate the impact of inductive biases in scenarios with limited data or distribution shift, such as subject-verb agreement and corrupted MNIST.
- To compare the effects of distillation using different teacher-student pairs (e.g., CNN → MLP, LSTM → Transformer) and assess whether the transferred inductive bias is qualitatively reflected in the student’s behavior.
Proposed method
- Train teacher models (LSTMs, CNNs) and student models (Transformers, MLPs) on tasks where inductive bias is critical: subject-verb agreement and corrupted MNIST (MNIST-C).
- Apply knowledge distillation using soft labels (logits) from the teacher to train the student, with temperature scaling to improve knowledge transfer.
- Analyze representational similarity of penultimate layer activations across training and convergence to compare solution paths and final representations.
- Visualize training trajectories via 2D projections of representational similarity to compare how models evolve during optimization.
- Use multiple evaluation metrics: accuracy, expected calibration error (ECE), and variance across random seeds to assess robustness and generalization.
- Compare distillation outcomes across different teacher-student pairs, including self-distillation and cross-architecture distillation, to isolate the effect of inductive bias transfer.
Experimental results
Research questions
- RQ1Can knowledge distillation transfer the inductive bias of a teacher model to a student model with a different architecture?
- RQ2Does distillation not only improve performance but also align the student’s learned representations and training dynamics with those of the teacher?
- RQ3To what extent does distillation from a model with strong inductive bias (e.g., CNN) improve generalization on out-of-distribution data for a student with weaker inductive bias (e.g., MLP)?
- RQ4How do the training paths of distilled models compare to independently trained models in terms of representational evolution?
- RQ5Does the inductive bias of the teacher influence the solution space the student converges to, even when the student has no direct access to the teacher’s training process?
Key findings
- Distillation from a CNN to an MLP significantly improves generalization on the Translated and Scaled MNIST benchmarks, reducing error from 0.555 to 0.510 on Translated MNIST and from 0.432 to 0.373 on Scaled MNIST.
- The performance gap between MLPs and CNNs on the Scaled MNIST test set is nearly closed when distilling from CNN to MLP (0.033 vs. 0.013 without KD).
- Representational similarity analysis shows that MLPs distilled from CNNs learn representations more similar to CNNs than to independently trained MLPs, indicating qualitative transfer of inductive bias.
- Training paths of distilled MLPs resemble those of their CNN teachers more closely than independently trained MLPs, despite no access to intermediate training states.
- Self-distillation yields only marginal improvements, while distillation from a CNN to an MLP results in significantly better performance and lower variance, highlighting the role of architectural inductive bias in transfer.
- Distillation from an LSTM to a Transformer improves the latter’s performance on the subject-verb agreement task and makes its solution more similar to the LSTM’s, confirming transfer of recurrent inductive bias.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.