TensorX
返回文献探索

Paper · arXiv 2306.13649

On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes

Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos, Matthieu Geist, Olivier Bachem

38 upvotesJune 23, 2023arXiv 预印本
AI 摘要

Generalized Knowledge Distillation addresses distribution mismatch in auto-regressive sequence models by training the student on its own output sequences and integrates with RL fine-tuning for effective distillation in tasks like summarization and instruction-tuning.

Knowledge distillationauto-regressive sequence modelsdistribution mismatchGeneralized Knowledge Distillationstudent modelteacher modeloutput sequencesfeedbackalternative loss functionsRL fine-tuningRLHFauto-regressive language modelssummarizationtranslationarithmetic reasoningtask-agnostic distillationinstruction-tuning

Abstract

Knowledge distillation (KD) is widely used for compressing a teacher model to reduce its inference cost and memory footprint, by training a smaller student model. However, current KD methods for auto-regressive sequence models suffer from distribution mismatch between output sequences seen during training and those generated by the student during inference. To address this issue, we introduce Generalized Knowledge Distillation (GKD). Instead of solely relying on a fixed set of output sequences, GKD trains the student on its self-generated output sequences by leveraging feedback from the teacher on such sequences. Unlike supervised KD approaches, GKD also offers the flexibility to employ alternative loss functions between the student and teacher, which can be useful when the student lacks the expressivity to mimic the teacher's distribution. Furthermore, GKD facilitates the seamless integration of distillation with RL fine-tuning (RLHF). We demonstrate the efficacy of GKD for distilling auto-regressive language models on summarization, translation, and arithmetic reasoning tasks, and task-agnostic distillation for instruction-tuning.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes | TensorX