arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.13900cs.CLcs.AI
收藏

大语言模型中“中间遗忘”现象的有效应对策略?关于GM-Extract基准与缓解方法的研究

What Works for 'Lost-in-the-Middle' in LLMs? A Study on GM-Extract and Mitigations

General Motors(通用汽车)

Mihir Gupte, Eshan Dixit, Muhammad Tayyab, Arun Adiththan

AI总结:

针对LLMs的“中间遗忘”现象,本文引入GM-Extract基准数据集与双指标评估系统,系统评估7-8B模型并分析缓解方法,揭示数据表示影响及策略效果差异,为长程上下文利用提供参考。

摘要:

大语言模型(LLMs)有效利用长程上下文的能力下降——即“中间遗忘”现象——在基于检索的LLM应用中构成重大挑战。为在真实应用场景中研究该现象的影响,我们引入GM-Extract,这是一个精心设计的新型基准数据集,用于评估LLM在控制变量检索任务上的性能。为准确诊断失效模式,我们提出一个简洁优雅的评估系统,包含两个不同指标:一个用于空间检索能力(文档指标),另一个用于语义检索能力(变量提取指标)。我们对7-8B参数规模的模型在两个多文档任务(键值提取和问答)上进行系统评估,结果表明仅通过改变上下文窗口中的数据表示方式,检索性能就会发生显著变化。虽然未持续观察到明显的U形曲线,但我们的分析揭示了模型间清晰的性能模式,并进一步将其与困惑度分数关联。此外,我们对缓解方法进行文献调研,将其分为黑盒和白盒两类方法。随后我们在基准上应用这些技术,发现其效果存在高度差异:评估结果既指出了这些策略成功提升性能的场景,也揭示了它们导致负面影响的意外情况,为其在实际场景中的效用提供了全面理解。

英文摘要:

The diminishing ability of large language models (LLMs) to effectively utilize long-range context-the "lost-in-the-middle" phenomenon-poses a significant challenge in retrieval-based LLM applications. To study the impact of this phenomenon in a real-world application setting, we introduce GM-Extract, a novel benchmark dataset meticulously designed to evaluate LLM performance on retrieval of control variables. To accurately diagnose failure modes, we propose a simple yet elegant evaluation system using two distinct metrics: one for spatial retrieval capability (Document Metric) and the other for semantic retrieval capability (Variable Extraction Metric). We conduct a systematic evaluation of 7-8B parameter models on two multi-document tasks (key-value extraction and question-answering), demonstrating a significant change in retrieval performance simply by altering how the data is represented in the context window. While a distinct U-shaped curve was not consistently observed, our analysis reveals a clear pattern of performance across models, which we further correlate with perplexity scores. Furthermore, we perform a literature survey of mitigation methods, which we categorize into two distinct approaches: black-box and white-box methods. We then apply these techniques to our benchmark, finding that their efficacy is highly nuanced. Our evaluation highlights scenarios where these strategies successfully improve performance, as well as surprising cases where they lead to a negative impact, providing a comprehensive understanding of their utility in a practical context.

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

↑