Multistage Collaborative Knowledge Distillation from a Large Language Model for Semi-Supervised Sequence Generation

Jiachen Zhao, Wenlong Zhao, Andrew Drozdov, Benjamin Rozonoyer, Md. Arafat Sultan, Jay-Yoon Lee, Mohit Iyyer, Andrew McCallum

Introduction

In specialized domains like biomedical research or niche semantic parsing, labeled data is incredibly expensive to produce. For instance, the CRAFT biomedical corpus required 80 annotators over two years to complete. While Large Language Models (LLMs) like GPT-3.5 can perform these tasks via few-shot prompting, they often struggle with specialized structured outputs and domain-specific jargon.

Standard Knowledge Distillation (KD)—where a smaller "student" model is trained to mimic an LLM "teacher"—typically hits a performance ceiling defined by the teacher. This research introduces a novel Multistage Collaborative Knowledge Distillation (MCKD) framework that enables a small student model to actually outperform its teacher on unseen data, achieving state-of-the-art results in low-resource sequence generation.

Methods: The MCKD Framework

The MCKD framework relies on two core mechanisms to break the teacher's performance ceiling:

  1. Generalization Discovery: Small student models (e.g., T5-Base) tend to learn general patterns from high-quality labels while treating noisy labels as outliers. This allows them to generalize better on unseen evaluation data than the teacher's noisy pseudo-labels might suggest.
  2. Cross-Partition Labeling: To prevent students from simply memorizing their own training noise, MCKD splits unlabeled data into two disjoint sets ($D_A$ and $D_B$).
  3. Stage 1: Two students ($s_A^1$ and $s_B^1$) are trained on the LLM's initial pseudolabels for their respective sets.
  4. The Swap: Student A then relabels set B, and Student B relabels set A. Because they label data they haven't seen during training, their superior generalization ability produces higher-quality pseudolabels than the original LLM.
  5. Multistage Iteration: This process repeats over several stages, with each generation of students providing cleaner training data for the next. The final model is trained on the combined, refined dataset.
The Multistage Collaborative Knowledge Distillation (MCKD) framework.

Key Insights: Generalization vs. Memorization

The "aha moment" of this research is that small models are "lazy" in a helpful way. They prefer to learn simple, general rules that explain the majority of the data rather than complex, noisy exceptions. This allows them to "filter" the teacher's mistakes during the distillation process.

As shown in Figure 4, while the student model's performance on training data (which includes teacher errors) continues to rise, its performance on held-out data also improves and eventually surpasses the teacher's performance on that same held-out set. This demonstrates that the student is not just mimicking the teacher but learning a more robust underlying logic.

Student model performance on training and held-out data compared to the teacher's performance.

Key Results

The researchers evaluated MCKD on four challenging sequence generation tasks: Constituency Parsing (PTB, CRAFT) and Task-Oriented Semantic Parsing (ATIS, Snips).

  • Outperforming the Teacher: On the CRAFT biomedical parsing task, a 3-stage MCKD model (using 50 labels) outperformed the GPT-3.5 teacher by 7.5% F1 and vanilla KD by 3.7% F1.
  • Semantic Parsing Gains: On the ATIS dataset, MCKD outperformed the LLM teacher by 7.2% F1.
  • Data Efficiency: The method is remarkably label-efficient. On CRAFT, MCKD with just 50 labeled examples matched the performance of a standard supervised model using 500 labeled examples—a 10x improvement in data efficiency.
  • Iterative Improvement: While the first stage provides the most significant jump, subsequent stages (up to 3 or 4) continue to provide marginal but statistically significant gains in F1 score.

Limitations and Future Work

While promising, the study has several limitations. The use of proprietary teachers like GPT-3.5 Turbo makes it a "black box" regarding internal training data. Additionally, the current method uses "hard" labels (text output); future work could explore "soft" labels (probability distributions) for further refinement. Finally, training multiple pairs of students over several stages increases computational costs compared to single-round distillation.

Summary updated

BibTeX
@inproceedings{zhao2024multistage,
  author = {Jiachen Zhao and Wenlong Zhao and Andrew Drozdov and Benjamin Rozonoyer and Md. Arafat Sultan and Jay-Yoon Lee and Mohit Iyyer and Andrew McCallum},
  title = {{Multistage Collaborative Knowledge Distillation from a Large Language Model for Semi-Supervised Sequence Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.766},
}
Figure