Reproduce “Patient Knowledge Distillation for BERT Model Compression” 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
Siqi Sun, Yu Cheng, Zhe Gan, Jingjing Liu
Microsoft Dynamics 365 AI Research introduces Patient Knowledge Distillation (Patient-KD), a method for compressing large BERT models into shallower student networks by transferring knowledge from multiple intermediate teacher layers. This approach enables a 6-layer student model to achieve performance comparable to the BERT-Base teacher while reducing memory footprint by 1.64x and accelerating inference by 1.94x.
Key insights
- Distilling knowledge from multiple intermediate layers of a deep teacher network significantly enhances the student model's generalization ability and prevents early performance saturation, surpassing traditional single-layer distillation.
- The `[CLS]` token representations from intermediate layers carry rich and transferable sequence-level semantic information crucial for guiding student models during compression.
- The 'PKD-Skip' strategy, which samples knowledge from various abstraction levels across the teacher's layers, generally proves more effective than 'PKD-Last' by capturing a broader range of semantic representations.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.