面向LLM的通用文本教学
研究论文 · 2026/10/12
知识蒸馏(KD)将知识从更强的教师模型转移到更弱的学生模型,但大多数方法需要训练学生参数,从而将蒸馏知识绑定到特定架构和检查点。这种隐式表示难以解释或在模型间复用,并限制了KD在仅API或训练成本高昂的模型上的应用。本文研究大语言模型(LLM)的知识转移。我们提出通用文本教学(UTT),一种无需参数更新的框架,将观察到的教师-学生知识差距蒸馏为文本化、可解释且可复用的自然语言产物,称为Primer。具体而言,UTT首先通过配对评估识别代表性差距案例,并通过多角色交互迭代更新Primer:学生尝试每个任务,提示者将评估反馈转化为教学指令,教师提供针对性演示,合成器整合已验证的经验。在具有挑战性的数学(Omni-MATH-2)和代码生成(KernelBench)任务上,大量结果证实了该方法的有效性:UTT显著将学生在KernelBench上的准确率从9.4%提升至48.6%,Fast1准确率从9%提升至35%,同时将数学推理准确率从27.6%提升至51.7%。UTT也优于代表性的提示工程和基于参数的KD方法。值得注意的是,UTT在不同教师和学生之间具有泛化性:为一个教师-学生对合成的Primer可以泛化到未参与合成的其他学生。
该工作提出了一种无需训练学生参数、可解释且可复用的知识蒸馏新范式,在数学和代码任务上取得显著提升,并展示了跨模型泛化能力,对LLM知识转移和实际应用具有重要价值。
Knowledge distillation (KD) transfers knowledge from stronger Teacher models to weaker Student models, but most methods require training the Student parameters, thereby binding the distilled knowledge to a specific architecture and checkpoint. This implicit representation is difficult to interpret or reuse across models and limits KD for API-only or costly-to-train models. This paper studies knowledge transfer for large language models (LLMs). We introduce Universal Textual Teaching (UTT), a parameter-update-free framework that distills observed Teacher-Student knowledge gaps into a textual, interpretable, and reusable natural-language artifact called Primer. Specifically, UTT first identifies representative gap cases through paired evaluations, and iteratively updates the Primer via multi-role interactions: the Student attempts each task, the Prompter turns evaluation feedback into a teaching instruction, the Teacher provides a targeted demonstration, and the Synthesizer consolidates validated lessons. Empirically, on the challenging math (Omni-MATH-2) and code generation (KernelBench) tasks, extensive results confirm the effectiveness of the method: UTT remarkably raises the Student's accuracy from 9.4% to 48.6% and Fast1 accuracy from 9% to 35% on KernelBench, while increasing mathematical reasoning accuracy from 27.6% to 51.7%. UTT also performs better than representative prompt engineering and parameter-based KD methods. Of note, UTT is shown to be generalizable across different Teachers and Students: a Primer synthesized for one Teacher-Student pair can generalize to other Students that do not participate in the synthesis.