NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fantastic Gains and Where to Find Them: On the Existence and Prospect of General Knowledge Transfer between Any Pretrained Model

Karsten Roth, Lukas Thede, Almut Sophia Koepke, Oriol Vinyals, Olivier J. Hénaff, Zeynep Akata · DOI

Abstract

In the current deep learning landscape, repositories like Hugging Face and timm host thousands of pretrained models. Traditional Knowledge Distillation (KD) is typically a one-way process where a high-performing "teacher" trains a smaller "student" from scratch. This paradigm ignores the potential for improving already-trained models using other existing models, regardless of their relative performance. This paper demonstrates that any two models trained on the same data possess unique, complementary knowledge. We propose a novel data-partitioning approach to knowledge distillation that mitigates catastrophic forgetting, achieving a 92.5% success rate in knowledge transfer between diverse pretrained models without requiring ground-truth labels.

1. Introduction

The proliferation of pretrained models has created vast "model zoos." However, standard KD assumes the student is a blank slate. When distilling knowledge into an already-trained student, the model often suffers from "catastrophic forgetting," where it learns the teacher's expertise but loses its own capabilities. This is particularly problematic when the teacher is "weaker" (lower overall accuracy) than the student. We address this by shifting from weight-level constraints to data-level regularization, allowing students to "listen" to teachers only when the teacher provides superior insights.

2. Methodology: Data Partitioning for Knowledge Transfer

The core of our approach is KL-Dist + DP (Data Partitioning). We define complementary knowledge as "positive prediction flips"—instances where the teacher is correct but the student is not. To harness this without overwriting the student's existing strengths, we implement a "Listen When It Makes Sense" strategy.

Overview of the proposed knowledge transfer framework using data partitioning and target selection.

As shown in Figure 5, the data is partitioned based on model confidence:

  1. Teacher-Dominant Samples: Where the teacher is more confident than a frozen copy of the student, the student performs standard KL-divergence distillation.
  2. Student-Dominant Samples: Where the student is already more confident, it is trained to match its own original predictions to prevent forgetting. Crucially, this partitioning can be performed in an unsupervised manner by comparing softmax confidence scores.

3. Experimental Evaluation

We conducted a large-scale study using 466 teacher-student pairs from the timm library, encompassing CNNs (ResNet, ConvNeXt), Transformers (ViT, Swin), and MLPs (Mixer). Evaluations were primarily performed on ImageNet-1k, with additional tests on downstream datasets like CUB200 and Stanford Cars to ensure generalizability.

4. Key Results and Insights

Our findings challenge the conventional wisdom that only stronger models can serve as teachers.

4.1. The Value of Weak Teachers

Even models with significantly lower overall accuracy possess semantic clusters of expertise. Complementary knowledge is not random; it tends to aggregate in specific semantic areas where the "weaker" model outperforms the "stronger" one.

4.2. Performance Gains and Success Rates

Standard KD methods often fail in model-to-model transfer, with a success rate of only 32.5%. Our proposed KL+DP method increases this success rate to 92.5%.

Knowledge transfer success rates and performance deltas. The proposed method (KL-Dist + DP) significantly outperforms standard distillation, especially when the teacher is weaker than the student.

As illustrated in Figure 6, the method consistently achieves positive transfer even when the teacher's performance is inferior to the student's. Furthermore, we observed that sequential transfer from multiple teachers yields an average gain 59% higher than the best single-teacher transfer, and Transformers showed the highest capacity for receiving new knowledge due to their flexible inductive biases.

5. Conclusion and Future Work

We have demonstrated that general knowledge transfer is possible between any two pretrained models. By using data partitioning to protect the student's existing knowledge, we can unlock the "hidden" expertise within model zoos. Future work will focus on optimizing teacher selection to maximize gains while minimizing the computational cost of sequential transfers.

Summary updated

BibTeX
@inproceedings{roth2024fantastic,
  author = {Karsten Roth and Lukas Thede and Almut Sophia Koepke and Oriol Vinyals and Olivier J. Hénaff and Zeynep Akata},
  title = {{Fantastic Gains and Where to Find Them: On the Existence and Prospect of General Knowledge Transfer between Any Pretrained Model}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=m50eKHCttz},
}
Figure