Reproduce “Revisiting Intermediate Layer Distillation for Compressing Language Models: An Overfitting Perspective” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Jongwoo Ko, Seungjoon Park, Minchan Jeong, Sukjin Hong, Euijai Ahn, Du-Seong Chang, Se-Young Yun

Researchers from KAIST AI and KT identified that existing Intermediate Layer Distillation (ILD) methods for compressing language models often overfit, especially on data-scarce or noisy datasets. They propose Consistency-Regularized Intermediate Layer Distillation (CR-ILD), a method that improves student model generalization by distilling only the last transformer layer and applying an interpolation-based regularization technique. CR-ILD achieves state-of-the-art performance on GLUE benchmarks and demonstrates superior robustness on few-shot and noisy label datasets, making compressed models more reliable for real-world applications.

Key insights

  • Distilling knowledge solely from the last Transformer layer significantly improves student model generalization, as opposed to complex multi-layer mappings that can lead to sharper, less generalizable minima.
  • Using supplementary tasks (STs) for distillation helps prevent the student model from memorizing the target task, with effective STs characterized by larger size, longer effective sequence lengths, and higher similarity to the target task.
  • Consistency regularization, applied to intermediate representations and attention maps through MixUp, helps student models converge to flatter loss minima, enhancing their robustness to noise and ability to generalize.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.