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

通过“复述原文”训练可提升大语言模型在长上下文任务中的检索能力

Training With "Paraphrasing the Original Text" Teaches LLM to Better Retrieve in Long-context Tasks

Tsinghua University(清华大学)

Yijiong Yu, Yongfeng Huang, Zhixiao Qi, Zhe Zhou

AI总结:

针对大语言模型长上下文任务中“中间迷失”的检索能力不足问题,提出在训练样本答案中加入“复述原文”部分的微调方法,在多个数据集和模型上实现了性能提升。

摘要:

随着大语言模型(LLM)的不断发展,越来越多的模型被设计用于处理长上下文输入。尽管取得了这一进展,大多数模型在准确处理长上下文任务时仍面临挑战,常出现“中间迷失”问题。我们发现,检索能力不足是导致该问题的重要原因之一。为应对这一挑战,我们提出了一种为长上下文任务设计训练数据的新方法,旨在增强LLM从长上下文中提取关键信息的能力。具体而言,我们在构建训练样本的答案时加入了名为“复述原文”的额外部分,随后对模型进行微调。在LongBench和NaturalQuestions多文档问答数据集上,使用Llama和Qwen系列模型进行实验,我们的方法分别使平均得分最高提升了8.48%和4.48%,证明了其在提升模型长上下文任务性能方面的有效性。

英文摘要:

As Large Language Models (LLMs) continue to evolve, more are being designed to handle long-context inputs. Despite this advancement, most of them still face challenges in accurately handling long-context tasks, often showing the "lost in the middle" issue. We identify that insufficient retrieval capability is one of the important reasons for this issue. To tackle this challenge, we propose a novel approach to design training data for long-context tasks, aiming at augmenting LLMs' proficiency in extracting key information from long context. Specially, we incorporate an additional part named "paraphrasing the original text" when constructing the answer of training samples and then fine-tuning the model. Experimenting on LongBench and NaturalQuestions Multi-document-QA dataset with models of Llama and Qwen series, our method achieves an improvement of up to 8.48% and 4.48% in average scores, respectively, showing effectiveness in improving the model's performance on long-context tasks.

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

↑