arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.14629cs.CLcs.AI
收藏

LLM能否通过“教中学”实现更好的推理?一项初步研究

Can LLMs Learn by Teaching for Better Reasoning? A Preliminary Study

Infinigence-AI(智源人工智能研究院);University of Alberta(阿尔伯塔大学);Tsinghua University(清华大学);KU Leuven(鲁汶大学);Shanghai Jiao Tong University(上海交通大学);Microsoft Research(微软研究院)

Xuefei Ning, Zifu Wang, Shiyao Li, Zinan Lin, Peiran Yao, Tianyu Fu, Matthew B. Blaschko, Guohao Dai, Huazhong Yang, Yu Wang

AI总结:

本文初步探索LLM能否通过“教中学”提升推理能力,提出观察反馈、从反馈学习和迭代学习三种方法,发现LbT可改进准确率、实现弱到强泛化,且学生多样性有益。

摘要:

通过教学来改进学生模型(例如知识蒸馏)是LLM中被广泛研究的方法论。然而,对人类而言,教学不仅提升学生,也提升教师,因为它促进更严谨、更清晰的推理以及知识构建。我们提出如下问题:LLM是否也能通过“教中学”(LbT)实现更好的推理?如果答案是肯定的,我们就有可能开启一种不单纯依赖人类生成数据或更强模型而持续推进模型能力的可能性。本文对这一问题进行了初步探索。我们表明,LbT思想可以被纳入现有LLM训练/提示流程并带来改进。具体而言,我们设计了三种方法,分别模拟LbT的三个层次:观察学生反馈、从反馈中学习以及迭代学习,其目标分别是在不训练的情况下提高答案准确率,或通过微调提升模型的内在能力。我们揭示了一些发现:(1)当使用上下文学习作为学生的“学习”方法时,使学生更容易学习的教学材料具有更清晰、更准确的逻辑;(2)弱到强泛化:LbT可能通过教弱模型来帮助改进强模型;(3)学生的多样性可能有帮助:教多个学生可能比教一个学生或教师自身更好。我们希望我们的探索能够启发未来关于LbT的研究,并更广泛地借鉴教育领域的先进技术来改进LLM。代码和网站位于https://github.com/imagination-research/lbt和https://sites.google.com/view/llm-learning-by-teaching。

英文摘要:

Teaching to improve student models (e.g., knowledge distillation) is an extensively studied methodology in LLMs. However, for humans, teaching improves not only students but also teachers, by fostering more rigorous and clear reasoning as well as knowledge building. We ask: Can LLMs also learn by teaching (LbT) for better reasoning? If the answer is yes, we can potentially unlock the possibility of continuously advancing the models without solely relying on human-produced data or stronger models. In this paper, we provide a preliminary exploration on this question. We show that LbT ideas can be incorporated into existing LLM training/prompting pipelines and bring improvements. Specifically, we design three methods, each mimicking one of the three levels of LbT: observing students' feedback, learning from the feedback, and learning iteratively, with the goals of improving answer accuracy without training or improving models' inherent capability with fine-tuning. We reveal some findings: (1) Teaching materials that make it easier for students to learn have clearer and more accurate logic when using in-context learning as the student's "learning" method; (2) Weak-to-strong generalization: LbT might help improve strong models by teaching weak models; (3) Diversity in students might help: teaching multiple students could be better than teaching one student or the teacher itself. We hope that our exploration can inspire future research on LbT and more broadly adopting the advanced techniques in education to improve LLMs. The code and website are at https://github.com/imagination-research/lbt and https://sites.google.com/view/llm-learning-by-teaching.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑