arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.06985cs.CL
收藏

大语言模型是知识推理的情境内教师

Large Language Models are In-context Teachers for Knowledge Reasoning

Northeastern University(东北大学);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

Jiachen Zhao, Zonghai Yao, Zhichao Yang, Hong Yu

AI总结:

本研究基于编码特异性假说,提出Self-Explain和Teach-Back两种情境内教学方法,证明LLM可作为高效情境内教师,甚至小模型能教大模型并超越人类教师表现。

摘要:

在本研究中,我们探讨情境内教学(ICT),即教师提供情境内示例推理过程,以教授学生针对未见过的案例进行推理。通常需要人类教师精心设计情境内演示,这类演示成本高昂且差异很大。我们提出疑问:与人类相比,大语言模型(LLM)能否作为自身或其他LLM更高效的情境内教师?受人类情景记忆的编码特异性假说启发,我们假设由教师设计的情境内范例应与学生的训练数据相匹配。这一假设促使我们提出Self-Explain方法:将LLM自身生成的解释用作情境内演示来提示该模型,因为这些解释是从模型的训练样本中泛化而来的。实验表明,Self-Explain的表现显著优于使用人工设计范例的方法及其他基线。\n此外,我们发现,在情境内教学中,来自不同教师LLM或人类专家的推理过程,若与学生LLM的自我解释越相似,作为情境内演示的效果就越好,这支撑了我们的编码特异性假说。随后我们提出Teach-Back方法,使教师LLM与学生对齐以提升ICT性能。例如,Teach-Back让一个7B规模的模型能够对规模大得多的GPT-3.5进行情境内教学,在医学问答任务的测试准确率上比人类教师高出约5%。

英文摘要:

In this work, we study in-context teaching (ICT), where a teacher provides in-context example rationales to teach a student to reason over unseen cases. Human teachers are usually required to craft in-context demonstrations, which are costly and have high variance. We ask whether a large language model (LLM) can serve as a more effective in-context teacher for itself or other LLMs, compared to humans. Inspired by the Encoding Specificity Hypothesis from human episodic memory, we hypothesize that in-context exemplars crafted by the teacher should match the training data of the student. This hypothesis motivates us to propose Self-Explain where an LLM's self-elicited explanations are used as in-context demonstrations for prompting it as they are generalized from the model's training examples. Self-Explain is shown to significantly outperform using human-crafted exemplars and other baselines. Furthermore, we reveal that for ICT, rationales from different teacher LLMs or human experts that more resemble the student LLM's self-explanations are better in-context demonstrations. This supports our encoding specificity hypothesis. We then propose Teach-Back that aligns a teacher LLM with the student to enhance the ICT performance. For example, Teach-Back enables a 7B model to teach the much larger GPT-3.5 in context, surpassing human teachers by around 5% in test accuracy on medical question answering.

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

↑