Introduction
Knowledge Distillation (KD) is a critical technique for compressing massive Large Language Models (LLMs) into smaller, more efficient versions suitable for deployment. However, traditional KD faces three primary hurdles: the "black-box" nature of proprietary teacher models (where internal states are inaccessible), the inherent capacity gap between massive teachers and smaller students, and the issue of mis-calibration, where models inherit the teacher's distributional flaws.
To address these, we introduce PLaD (Preference-based Large Language Model Distillation). This framework shifts the focus from token-level imitation to sequence-level preference ranking. By leveraging the performance gap between teacher and student models, PLaD generates "pseudo-preference pairs" to calibrate the student's output distribution, often allowing it to match or even exceed its teacher's performance.
Methodology
The PLaD framework operates through a three-step pipeline designed to move beyond simple "teacher-forcing" imitation.
- SFT Initialization: Both the teacher and student models are first fine-tuned on the target task using standard Supervised Fine-Tuning (SFT).
- Pseudo-Preference Pair Collection: For every prompt in the distillation set, responses are sampled from both the teacher and the student. Based on the reliable assumption that the larger teacher model produces higher-quality text, we label the teacher's output as "preferred" and the student's as "non-preferred" ($y_{teacher} > y_{student}$).
- Distillation via Calibration Loss: The student is trained using a Ranking Calibration Loss. This objective encourages the student to assign a higher sequence-level likelihood to the teacher's output than to its own, effectively learning the qualitative features of "good" text rather than just mimicking token probabilities.
Experimental Setup
We evaluated PLaD across two major sequence generation benchmarks: TL;DR (Reddit summarization) and Anthropic-HH (Helpful/Harmless dialogue). The experiments utilized various model families, including LLaMA-2 (13B teacher to 7B student), GPT-Neo (2.7B to 1.3B), PaLM-2, and T5.
Results and Analysis
PLaD consistently outperformed established distillation baselines such as SeqKD, f-distill, and MiniLLM.
Surpassing the Teacher
A notable finding occurred in the Anthropic-HH task, where a LLaMA-2-7B student distilled via PLaD achieved a 27.74% win rate, marginally outperforming its own 13B teacher (26.95%). This suggests that preference-based calibration can refine a model's output beyond mere imitation.
Scalability and Efficiency
The framework demonstrates strong scalability. As shown in Figure 6, PLaD's performance gains increase more sharply than competing methods as more distillation data is utilized, maintaining a clear lead across all data usage levels.
Furthermore, the "pseudo-pairs" generated by the framework proved nearly as effective as human-annotated preference data, offering a cost-efficient alternative for large-scale model alignment.
Discussion and Future Work
The success of PLaD highlights that the capacity gap between models can be a source of high-quality training signals rather than a limitation. By focusing on ranking, the student learns the underlying features of "good" text rather than just trying to predict the next token in a specific teacher's style.
While PLaD is highly effective, its performance is subject to a "ceiling effect"; if the student model's performance is already very close to the teacher's, the pseudo-preference signal becomes noisier. Future research may explore iterative refinement, where the distilled student serves as the baseline for a subsequent round of preference pair generation to further push the boundaries of model performance.
Summary updated