arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.15918cs.CLcs.AI
收藏

监督知识使大语言模型成为更优的上下文学习者

Supervised Knowledge Makes Large Language Models Better In-context Learners

School of Engineering, Westlake University(西湖大学工程学院);Westlake Institute for Advanced Study(西湖高等研究院);Peking University(北京大学);Microsoft(微软)

Linyi Yang, Shuibai Zhang, Zhuohao Yu, Guangsheng Bao, Yidong Wang, Jindong Wang, Ruochen Xu, Wei Ye, Xing Xie, Weizhu Chen, Yue Zhang

AI总结:

本研究提出融入任务特定微调判别式模型的插件式框架,在推理阶段增强大语言模型的上下文学习能力,提升其泛化性与事实性、减少幻觉,并配套发布多任务资源集。

摘要:

大语言模型(LLMs)通过提示工程展现出新兴的上下文学习能力。大规模生成式模型的最新进展进一步拓展了其在现实语言应用中的使用场景。然而,提升LLMs在自然语言理解和问答任务中的泛化性与事实性这一关键挑战,目前仍未得到充分研究。过往的上下文学习研究多聚焦于优化模型,使其遵循用户的特定指令与质量预期,并避免非预期输出,但几乎未有研究探索在推理阶段利用任务特定微调语言模型(SLMs)来提升LLMs的上下文学习效果。我们的核心贡献是构建了一个简单却有效的框架,可提升LLMs的可靠性,具体体现在三方面:1)对分布外数据具备泛化能力;2)阐明LLMs如何从判别式模型中获益;3)减少生成式任务中的幻觉现象。通过我们提出的插件式方法,增强版的Llama 2与ChatGPT在泛化性和事实性上均优于原始版本。我们提供了一套全面的资源集,涵盖9类不同任务的16个精选数据集、提示词、模型检查点以及LLM输出结果。代码与数据已发布于:https://github.com/YangLinyi/Supervised-Knowledge-Makes-Large-Language-Models-Better-In-context-Learners。我们的实证分析揭示了将判别式模型融入LLMs的优势,并凸显了该方法在打造更可靠LLMs方面的潜力。

英文摘要:

Large Language Models (LLMs) exhibit emerging in-context learning abilities through prompt engineering. The recent progress in large-scale generative models has further expanded their use in real-world language applications. However, the critical challenge of improving the generalizability and factuality of LLMs in natural language understanding and question answering remains under-explored. While previous in-context learning research has focused on enhancing models to adhere to users' specific instructions and quality expectations, and to avoid undesired outputs, little to no work has explored the use of task-Specific fine-tuned Language Models (SLMs) to improve LLMs' in-context learning during the inference stage. Our primary contribution is the establishment of a simple yet effective framework that enhances the reliability of LLMs as it: 1) generalizes out-of-distribution data, 2) elucidates how LLMs benefit from discriminative models, and 3) minimizes hallucinations in generative tasks. Using our proposed plug-in method, enhanced versions of Llama 2 and ChatGPT surpass their original versions regarding generalizability and factuality. We offer a comprehensive suite of resources, including 16 curated datasets, prompts, model checkpoints, and LLM outputs across 9 distinct tasks. The code and data are released at: https://github.com/YangLinyi/Supervised-Knowledge-Makes-Large-Language-Models-Better-In-context-Learners. Our empirical analysis sheds light on the advantages of incorporating discriminative models into LLMs and highlights the potential of our methodology in fostering more reliable LLMs.

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

↑