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

通过细粒度奖励训练语言模型生成带引用的文本

Training Language Models to Generate Text with Citations via Fine-grained Rewards

National University of Singapore(新加坡国立大学);University of Washington(华盛顿大学);Nanyang Technological University(南洋理工大学)

Chengyu Huang, Zeqiu Wu, Yushi Hu, Wenya Wang

AI总结:

本文提出使用细粒度奖励训练LLMs生成高质量文中引用,在ALCE和EXPERTQA上验证,LLaMA-2-7B性能超越GPT-3.5-turbo。

摘要:

尽管最近的大型语言模型(LLMs)在回答用户查询方面已被证明有用,但它们容易产生幻觉,并且由于缺乏对可靠来源的引用,其回答往往缺乏可信度。针对这些问题,一个直观的解决方案是在文本中加入指向外部文档的文中引用作为证据。虽然先前的工作直接提示LLMs生成文中引用,但其表现远不能令人满意,尤其是在较小的LLMs上。在这项工作中,我们提出了一个有效的训练框架,使用细粒度奖励来教导LLMs生成高度支持性和相关性的引用,同时确保其回答的正确性。我们还对将这些细粒度奖励应用于常见LLM训练策略进行了系统分析,证明了其相对于传统做法的优势。我们在取自ALCE基准的问答(QA)数据集上进行了广泛实验,并使用EXPERTQA验证了模型的泛化能力。在LLaMA-2-7B上,细粒度奖励的引入在基线方法中取得了最佳性能,甚至超过了GPT-3.5-turbo。

英文摘要:

While recent Large Language Models (LLMs) have proven useful in answering user queries, they are prone to hallucination, and their responses often lack credibility due to missing references to reliable sources. An intuitive solution to these issues would be to include in-text citations referring to external documents as evidence. While previous works have directly prompted LLMs to generate in-text citations, their performances are far from satisfactory, especially when it comes to smaller LLMs. In this work, we propose an effective training framework using fine-grained rewards to teach LLMs to generate highly supportive and relevant citations, while ensuring the correctness of their responses. We also conduct a systematic analysis of applying these fine-grained rewards to common LLM training strategies, demonstrating its advantage over conventional practices. We conduct extensive experiments on Question Answering (QA) datasets taken from the ALCE benchmark and validate the model's generalizability using EXPERTQA. On LLaMA-2-7B, the incorporation of fine-grained rewards achieves the best performance among the baselines, even surpassing that of GPT-3.5-turbo.

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

↑