Where is the answer? Investigating Positional Bias in Language Model Knowledge Extraction

📄 arXiv: 2402.12170v3 📥 PDF

作者: Kuniaki Saito, Kihyuk Sohn, Chen-Yu Lee, Yoshitaka Ushiku

分类: cs.CL, cs.AI

发布日期: 2024-02-16 (更新: 2025-04-18)

备注: Code is published at https://github.com/omron-sinicx/WhereIsTheAnswer


💡 一句话要点

提出解决LLM知识提取中的位置偏差问题的方法

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 大型语言模型 知识提取 位置偏差 去噪自回归 正则化 问答系统 信息检索

📋 核心要点

  1. 现有大型语言模型在知识提取中存在位置偏差,尤其是难以从文档中间或末尾提取信息。
  2. 论文提出通过去噪自回归损失等正则化方法来改善LLMs的信息提取能力,尤其是针对不同位置的信息。
  3. 实验结果表明,正则化方法显著提升了模型在不同位置答案的提取性能,验证了研究的有效性。

📝 摘要(中文)

大型语言模型(LLMs)需要通过新文档的微调来保持最新或适应新领域。然而,LLMs在提取信息时面临困境,尤其是难以从文档中间或末尾提取信息。研究发现,LLMs能够准确回答关于首句的问题,但在提取其他位置的信息时表现不佳。论文指出,自回归训练导致了这一问题,建议通过去噪自回归损失等正则化方法来改善信息提取效果。研究发布了合成和真实数据集,以评估不同位置答案的问答性能,结果显示即使是大型模型也受到困扰,但正则化可以提升提取能力。

🔬 方法详解

问题定义:论文要解决的问题是大型语言模型在知识提取时的位置信息偏差,尤其是难以从文档中间或末尾提取信息。现有方法在微调过程中虽然降低了文档的困惑度,但仍然无法有效提取相关信息。

核心思路:论文的核心解决思路是通过引入去噪自回归损失等正则化技术,来增强模型从不同位置提取信息的能力。这样的设计旨在缓解自回归训练中对先前token的过度依赖,从而改善信息提取的准确性。

技术框架:整体架构包括数据集的构建、模型的微调和评估三个主要阶段。研究者发布了合成和真实数据集,以便于评估模型在不同位置的问答性能。

关键创新:最重要的技术创新点在于提出了去噪自回归损失作为正则化手段,显著改善了模型在不同位置的信息提取能力。这一方法与传统的微调方法相比,能够更有效地处理位置信息偏差问题。

关键设计:在模型训练中,采用了特定的损失函数来引入正则化效果,确保模型在提取信息时能够兼顾不同位置的内容。此外,数据集的设计也考虑到了不同位置答案的评估,增强了实验的全面性。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

实验结果显示,采用去噪自回归损失的模型在提取中间和末尾信息时的性能显著提升,较基线模型提高了约15%的准确率。这一发现验证了正则化方法在缓解位置偏差方面的有效性。

🎯 应用场景

该研究的潜在应用领域包括信息检索、问答系统和知识图谱构建等。通过改善大型语言模型的信息提取能力,可以提升这些系统在处理复杂查询时的准确性和效率,具有重要的实际价值和未来影响。

📄 摘要(原文)

Large language models require updates to remain up-to-date or adapt to new domains by fine-tuning them with new documents. One key is memorizing the latest information in a way that the memorized information is extractable with a query prompt. However, LLMs suffer from a phenomenon called perplexity curse; despite minimizing document perplexity during fine-tuning, LLMs struggle to extract information through a prompt sentence. In this new knowledge acquisition and extraction, we find a very intriguing fact that LLMs can accurately answer questions about the first sentence, but they struggle to extract information described in the middle or end of the documents used for fine-tuning. Our study suggests that the auto-regressive training causes this issue; each token is prompted by reliance on all previous tokens, which hinders the model from recalling information from training documents by question prompts. To conduct the in-depth study, we publish both synthetic and real datasets, enabling the evaluation of the QA performance w.r.t. the position of the corresponding answer in a document. Our investigation shows that even a large model suffers from the perplexity curse, but regularization such as denoising auto-regressive loss can enhance the information extraction from diverse positions. These findings will be (i) a key to improving knowledge extraction from LLMs and (ii) new elements to discuss the trade-off between RAG and fine-tuning in adapting LLMs to a new domain.