Learning to Teach with Student Feedback

Yitao Liu, Tianxiang Sun, Xipeng Qiu, Xuanjing HuangarXiv 2021

Introduction

Knowledge Distillation (KD) has become a cornerstone of efficient deep learning, enabling the compression of large, computationally expensive "teacher" models into smaller, deployable "student" models. Traditionally, this process is a unidirectional transfer of knowledge: the teacher provides fixed soft targets, and the student attempts to replicate them. However, this "one-way lecture" ignores a fundamental principle of effective pedagogy: the importance of student feedback.

Comparison between Traditional KD and Interactive KD (IKD).

A research team from Fudan University has introduced Interactive Knowledge Distillation (IKD), a framework that transforms KD into a bidirectional conversation. By allowing the teacher to adapt its strategy based on student performance, IKD achieves superior results across various natural language processing (NLP) tasks.

The Limitations of Static Teaching

In traditional KD, the teacher model is pre-trained and its outputs are frozen. This "blindness" to the student's progress is suboptimal. A static teacher cannot distinguish whether a student is struggling with complex samples or has already mastered simpler ones. Consequently, it cannot adjust the difficulty or focus of its "lessons" to match the student's current state.

The IKD Framework: Course and Exam Steps

IKD addresses these limitations through a two-step iterative loop inspired by human education: the Course Step and the Exam Step.

The IKD training loop, illustrating the Course Step (standard distillation) and the Exam Step (meta-update based on feedback).
  1. The Course Step: This is standard distillation. The student model learns from the teacher's soft targets on a batch of "course data." The student updates its parameters to match the teacher's logic.
  2. The Exam Step: The student (now slightly smarter) is "tested" on a separate batch of "exam data." The student's error on this exam is treated as feedback.
  3. The Meta-Update: Using meta-learning principles (specifically inspired by MAML), this feedback is back-propagated to the teacher model. The teacher then updates its own parameters so that the next time it generates soft targets, they are better suited to help the student improve its exam scores.

To maintain computational efficiency, the authors employ a first-order approximation, avoiding the high costs typically associated with calculating second-order meta-gradients.

Experimental Results and Insights

The researchers evaluated IKD across a wide range of NLP challenges, including the GLUE benchmark and domain-specific tasks like ChemProt and SciCite.

Performance Gains

IKD consistently outperformed vanilla KD. On the RTE (Recognizing Textual Entailment) task, IKD improved the student's score from 63.5 to 66.4. Notably, on the SciCite dataset, the student model (86.6 F1) actually surpassed the performance of its own teacher (86.1 F1), demonstrating that interactive feedback can lead to better generalization than static training.

Dynamic Curriculum Learning

Analysis of the teacher's behavior revealed an emergent "curriculum." Early in training, the teacher provides high-entropy, "smooth" targets that offer more guidance (hints). As the student matures, the teacher's targets become "sharper," eventually resembling one-hot labels. IKD learns this curriculum automatically rather than relying on a hand-designed schedule.

Conclusion and Future Directions

Interactive Knowledge Distillation represents a significant shift from static to adaptive model compression. While currently focused on text classification, the framework's success suggests broad applicability. Future work may explore semi-supervised variants to reduce labeled data requirements for the "Exam Step" and extend the method to complex generation tasks like summarization or translation.

Summary updated

BibTeX
@misc{liu2021learning,
  author = {Yitao Liu and Tianxiang Sun and Xipeng Qiu and Xuanjing Huang},
  title = {{Learning to Teach with Student Feedback}},
  year = {2021},
  eprint = {2109.04641},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.04641},
}
Figure