Black-box distillation creates student large language models (LLMs) by learning from a proprietary teacher model's text outputs alone, without access to its internal logits or parameters. In this work, we introduce Generative Adversarial Distillation (GAD), which enables on-policy and black-box distillation. GAD frames the student LLM as a generator and trains a discriminator to distinguish its responses from the teacher LLM's, creating a minimax game. The discriminator acts as an on-policy reward model that co-evolves with the student, providing stable, adaptive feedback. Experimental results show that GAD consistently surpasses the commonly used sequence-level knowledge distillation. In particular, Qwen2.5-14B-Instruct (student) trained with GAD becomes comparable to its teacher, GPT-5-Chat, on the LMSYS-Chat automatic evaluation. The results establish GAD as a promising and effective paradigm for black-box LLM distillation.
翻译:黑盒蒸馏通过仅学习专有教师模型的文本输出(无需访问其内部逻辑或参数)来创建学生大型语言模型(LLMs)。本研究提出生成对抗蒸馏(GAD),实现了策略内黑盒蒸馏。GAD将学生LLM构建为生成器,并训练判别器以区分其响应与教师LLM的响应,形成极小极大博弈。判别器作为与学生协同演进的策略内奖励模型,提供稳定、自适应的反馈。实验结果表明,GAD持续超越常用的序列级知识蒸馏方法。特别地,采用GAD训练的Qwen2.5-14B-Instruct(学生模型)在LMSYS-Chat自动评估中达到与教师模型GPT-5-Chat相当的水平。这些结果确立了GAD作为黑盒LLM蒸馏的一种前景广阔且有效的范式。