Following the Teacher's Footsteps: Scheduled Checkpoint Distillation for Domain-Specific LLMs
Cheng Feng, Chaoliang Zhong, Jun Sun, Yusuke Oishi
TL;DR
This work analyzes when a smaller student model can outperform its larger teacher in domain-specific LLM distillation by partitioning the task into a Student-Favored Subdomain ($SFS$) and a Teacher-Favored Subdomain ($TFS$). It introduces Scheduled Checkpoint Distillation (SCD) to systematically reduce the $TFS$ deficit by mimicking the teacher's convergence trajectory and a sample-wise Adaptive Weighting (AW) to preserve the student's strengths on $SFS$. Theoretical bounds and a proximal teacher selection criterion guide the checkpoint schedule, while AW assigns per-sample distillation weights based on relative training losses, enhancing transfer where the teacher excels. Empirical results on QA, NER, and text classification across English and Japanese domains show that SCD and especially SCD with AW consistently outperform baselines and, in several tasks, allow the student to match or exceed the fine-tuned teacher, enabling more efficient deployment of domain-specific LLMs.
Abstract
Large language models (LLMs) are challenging to deploy for domain-specific tasks due to their massive scale. While distilling a fine-tuned LLM into a smaller student model is a promising alternative, the capacity gap between teacher and student often leads to suboptimal performance. This raises a key question: when and how can a student model match or even surpass its teacher on domain-specific tasks? In this work, we propose a novel theoretical insight: a student can outperform its teacher if its advantage on a Student-Favored Subdomain (SFS) outweighs its deficit on the Teacher-Favored Subdomain (TFS). Guided by this insight, we propose Scheduled Checkpoint Distillation (SCD), which reduces the TFS deficit by emulating the teacher's convergence process during supervised fine-tuning (SFT) on the domain task, and a sample-wise Adaptive Weighting (AW) mechanism to preserve student strengths on SFS. Experiments across diverse domain tasks--including QA, NER, and text classification in multiple languages--show that our method consistently outperforms existing distillation approaches, allowing the student model to match or even exceed the performance of its fine-tuned teacher.
