Pre-training Distillation for Large Language Models: A Design Space Exploration
Knowledge distillation (KD) aims to transfer knowledge from a large teacher model to a smaller student model.Previous work applying KD in the field of large language models (LLMs) typically focused on the post-training phase, where the student LLM learns directly from instructions and corresponding responses generated by the teacher model.In this paper, we extend KD to the pre-training phase of LLMs, named pre-training distillation (PD).We first conduct a preliminary experiment using GLM-4-9B as the teacher LLM to distill a 1.9B parameter student LLM, validating the effectiveness of PD.Considering the key impact factors of distillation, we systematically explore the design space of pre-training distillation across four aspects: logits processing, loss selection, scaling law, and offline or online logits.We conduct extensive experiments to explore the design space of pre-training distillation and find better configurations and interesting conclusions, such as larger student LLMs generally benefiting more from pre-training distillation, while a larger teacher LLM does not necessarily guarantee better results.We hope our exploration of the design space will inform future practices in pre-training distillation.
Authors
- Juanzi Li (ORCID: https://orcid.org/0000-0002-6244-0664)
- Xin Lv (ORCID: https://orcid.org/0009-0009-8062-0675)
- Zijun Yao (ORCID: https://orcid.org/0000-0002-0288-9283)
- Yushi Bai (ORCID: https://orcid.org/0000-0003-1295-1615)
- Lei Hou (ORCID: https://orcid.org/0000-0002-8907-3526)
- Jiajie Zhang (ORCID: https://orcid.org/0000-0003-3928-8171)
- Hao Peng (ORCID: https://orcid.org/0000-0003-0458-5977)
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.acl-long.181
- Citations
- 1
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 2.48
Funders
- National Natural Science Foundation of China