ReMem: Mutual Information-Aware Fine-tuning of Pretrained Vision Transformers for Effective Knowledge Distillation

Chengyu Dong, Huan Gui, Noveen Sachdeva, Long Jin, Ke Yin, Jingbo Shang, Lichan Hong, Ed H. Chi, Zhe ZhaoarXiv 2025 · DOI

ReMem: Mutual Information-Aware Fine-tuning of Pretrained Vision Transformers for Effective Knowledge Distillation

Introduction

Knowledge Distillation (KD) has long been a staple for deploying efficient models by transferring knowledge from a large "teacher" to a smaller "student." Conventionally, it is assumed that a more accurate teacher leads to a more proficient student. However, recent observations in Vision Transformers (ViTs) reveal a paradox: as teachers scale in size and pretraining intensity, student performance often plateaus or even declines. This paper identifies the root cause as a loss of Mutual Information (MI) during standard fine-tuning and introduces ReMem, a framework designed to preserve teacher-student information flow.

The Mutual Information Bottleneck

The authors argue that standard fine-tuning processes optimize for teacher accuracy at the expense of representational richness. As a ViT becomes an "expert" on a specific downstream task, its internal representations discard input features that are not strictly necessary for classification. While this "information bottleneck" benefits the teacher's own error rate, it results in "impoverished" targets that lack the nuanced structural information a student needs to learn effectively.

Experimental evidence suggests that this information loss is primarily localized in the Multi-Layer Perceptron (MLP) blocks of the transformer layers. As shown in Figure 5, pruning MLP blocks leads to a significant spike in mutual information compared to pruning self-attention blocks, suggesting that top-level MLPs act as the primary "information sinks" in the architecture.

Figure 5: Comparison of Mutual Information (MI) vs. Teacher Test Error when pruning Attention vs. MLP blocks. Pruning MLPs consistently results in higher MI, identifying them as the primary source of information loss.

The ReMem Framework

To counteract this information loss, ReMem introduces two key modifications to the fine-tuning pipeline:

  1. Mutual Information-Aware SAM: The framework utilizes Sharpness-Aware Minimization (SAM) with a non-standard, larger perturbation size ($\rho \approx 0.05$). While SAM is typically used for generalization, ReMem leverages it to force the teacher to maintain a broader, more informative connection between input data and internal representations.
  2. Heuristic MLP Reweighting: Based on the discovery that top MLP blocks are information bottlenecks, ReMem applies a decay factor ($\alpha$) to downweight these blocks while upweighting residual connections. This prevents the final layers from over-compressing the feature space.

Experimental Results

ReMem was evaluated across 16 downstream datasets, including CIFAR-100, ImageNet-LT, and specialized medical and satellite imagery benchmarks. The results consistently show that ReMem-tuned teachers, despite sometimes having slightly higher self-error, produce significantly better students. On CIFAR-100, ReMem improved student accuracy from 81.2% to 83.4%, and on the challenging iNaturalist 2017 dataset, it boosted performance from 41.9% to 43.0%.

Figure 3: Teacher Mutual Information vs. Teacher Test Error across three datasets. SAM-tuned teachers (orange) maintain higher MI and produce students with lower test error (indicated by larger bubble sizes) compared to vanilla fine-tuning (blue).

As illustrated in Figure 3, the transition from vanilla fine-tuning to SAM-based fine-tuning shifts the teacher models into a regime of higher mutual information. Crucially, this shift correlates with a marked decrease in student test error (represented by larger bubble sizes), effectively breaking the scaling ceiling that previously limited the utility of large ViT teachers. The method proved architecture-agnostic, yielding gains whether the student was a ResNet-18, MobileNetV2, or EfficientNetV2.

Conclusion

ReMem demonstrates that for effective knowledge distillation, "expertness" is not synonymous with "teachability." By prioritizing the preservation of mutual information through MI-aware SAM and MLP reweighting, ReMem enables smaller models to fully benefit from the massive pretraining of large Vision Transformers. This work paves the way for more efficient model deployment and a deeper understanding of the information dynamics within transformer architectures.

Summary updated

BibTeX
@misc{dong2025remem,
  author = {Chengyu Dong and Huan Gui and Noveen Sachdeva and Long Jin and Ke Yin and Jingbo Shang and Lichan Hong and Ed H. Chi and Zhe Zhao},
  title = {{ReMem: Mutual Information-Aware Fine-tuning of Pretrained Vision Transformers for Effective Knowledge Distillation}},
  year = {2025},
  eprint = {2506.23041},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.23041},
}
Figure