Multi-Stage Balanced Distillation: Addressing Long-Tail Challenges in Sequence-Level Knowledge Distillation

Yuhang Zhou, Jing Zhu, Paiheng Xu, Xiaoyu Liu, Xiyao Wang, Danai Koutra, Wei Ai, Furong Huang

Introduction

Knowledge Distillation (KD) has emerged as a critical technique for compressing large-scale language models (LLMs) into smaller, more efficient "student" models. Sequence-level KD, which involves transferring the reasoning capabilities—often in the form of Chain-of-Thought (CoT) rationales—from a teacher to a student, is particularly effective. However, real-world datasets often exhibit a "long-tail" distribution, where a few "head" domains are over-represented while many "tail" domains suffer from data scarcity. Standard KD approaches typically optimize for overall accuracy, leading to models that perform well on common cases but fail significantly on rare ones. This paper introduces BalDistill, a multi-stage framework designed to balance performance across the entire data distribution under a fixed computational budget.

Methodology

The BalDistill framework addresses the imbalance problem through a coordinated strategy of data selection and augmentation, managed by an adaptive policy.

The BalDistill framework overview.

The process consists of four primary components:

  1. Adaptive Balancing Policy: The training budget is divided into $K$ stages. The framework starts with a distribution close to the original imbalanced data and iteratively shifts toward a perfectly balanced distribution. This gradual transition helps the student build a foundation on real data before being exposed to higher proportions of synthetic tail data.
  2. Active Selection for Head Domains: To maximize the utility of abundant data, BalDistill employs the Instruction Following Difficulty (IFD) metric. By calculating the ratio of the student's perplexity with and without the input, the system identifies "hard" examples that the student currently finds difficult to follow, ensuring the teacher's annotation budget is spent on the most informative samples.
  3. Teacher Data Augmentation for Tail Domains: For domains with insufficient data, the framework leverages a teacher model (e.g., GPT-4) to synthesize new inputs and corresponding reasoning rationales, effectively "filling in" the gaps in the tail.
  4. Iterative Fine-tuning: The student model is re-initialized and fine-tuned at each stage on the cumulative, increasingly balanced dataset, allowing it to refine its capabilities as the data distribution evolves.

Experimental Results

The researchers evaluated BalDistill across five diverse long-tailed datasets, including text classification (Reuters), question answering (AbstractiveQA, MultichoiceQA), and arithmetic (MATH).

Performance comparison across long-tailed datasets.

As shown in the results, BalDistill consistently outperforms standard baselines such as random selection and simple duplication. Notably, on the Reuters dataset, BalDistill achieved a 32.95 Macro-F1, a significant improvement over the 27.35 achieved by random selection. The results demonstrate that the framework effectively boosts performance in rare domains without sacrificing accuracy in common ones.

Ablation studies confirmed the necessity of both components: removing active selection for the head or synthetic augmentation for the tail resulted in marked performance declines. Furthermore, the method proved robust across different student architectures, including Llama-2-7B and Llama-3-8B.

Discussion and Conclusion

BalDistill demonstrates that the student model itself can serve as an effective filter for data selection, identifying where teacher intervention is most valuable. By combining this active selection with targeted teacher augmentation for rare domains, the framework achieves a superior balance between efficiency and performance.

While effective, the current framework relies on the assumption that teacher-generated rationales are accurate. Future work will explore verification mechanisms to mitigate teacher hallucinations and extend the strategy to multimodal models, where data imbalance remains a significant challenge. In summary, BalDistill provides a scalable and efficient path toward developing smaller models that maintain high performance across the full spectrum of real-world data distributions.

Summary updated

BibTeX
@inproceedings{zhou2024multi,
  author = {Yuhang Zhou and Jing Zhu and Paiheng Xu and Xiaoyu Liu and Xiyao Wang and Danai Koutra and Wei Ai and Furong Huang},
  title = {{Multi-Stage Balanced Distillation: Addressing Long-Tail Challenges in Sequence-Level Knowledge Distillation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.190},
}
Figure