Reproduce “Iterative Layer-wise Distillation for Efficient Compression of Large Language Models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Grigory Kovalev, Mikhail Tikhomirov
Researchers from Lomonosov Moscow State University developed an Iterative Layer-wise Distillation method for compressing large language models, specifically Qwen2.5-3B. This approach reduced the model from 36 to 28 layers (2.47 billion parameters) with less than 10% quality loss and to 24 layers (2.161 billion parameters) with an 18% quality loss, significantly outperforming existing distillation techniques.
Key insights
- A combined loss function, leveraging both logit-based (KLDivLoss) and hidden state-based (MSELoss) distillation, is crucial for effectively preserving model quality during compression.
- Iteratively re-evaluating layer importance after each removal step significantly improves compression efficacy compared to static, one-time assessments.
- Middle transformer layers are often more redundant and can be pruned with minimal performance impact, while later layers are critical for final inference.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.