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

通过上下文归一化增强长上下文推理用于检索增强生成

Grounding Long-Context Reasoning with Contextual Normalization for Retrieval-Augmented Generation

City University of Hong Kong(香港城市大学);Baidu Inc.(百度公司)

Jiamin Chen, Yuchen Li, Xinyu Ma, Xinran Chen, Xiaokun Zhang, Shuaiqiang Wang, Chen Ma, Dawei Yin

AI总结:

通过上下文归一化策略提升RAG在长上下文推理中的鲁棒性和稳定性

摘要:

检索增强生成(RAG)已成为扩展大语言模型(LLMs)推理和知识能力的重要方法。尽管先前研究主要集中在检索质量和提示策略上,但检索文档如何被框架,即上下文格式的影响仍被忽视。我们展示出看似表面的选择,如键值提取中的分隔符或结构标记,即使语义内容相同,也能引起显著的准确性和稳定性变化。为了系统地研究这种影响,我们设计了受控实验,通过变化上下文密度、分隔符样式和位置放置,揭示影响性能差异的潜在因素。基于这些见解,我们引入了上下文归一化,一种轻量级策略,它在生成前自适应地标准化上下文表示。在控制和真实世界RAG基准测试中,广泛实验显示,所提出的策略在不同设置下一致提高了对顺序变化的鲁棒性,并加强了长上下文的利用。这些发现强调,可靠的RAG不仅依赖于检索正确的内容,还依赖于如何呈现该内容,提供了新的实证证据和改进长上下文推理的实用技术。

英文摘要:

Retrieval-Augmented Generation (RAG) has become an essential approach for extending the reasoning and knowledge capacity of large language models (LLMs). While prior research has primarily focused on retrieval quality and prompting strategies, the influence of how the retrieved documents are framed, i.e., context format, remains underexplored. We show that seemingly superficial choices, such as delimiters or structural markers in key-value extraction, can induce substantial shifts in accuracy and stability, even when semantic content is identical. To systematically investigate this effect, we design controlled experiments that vary context density, delimiter styles, and positional placement, revealing the underlying factors that govern performance differences. Building on these insights, we introduce Contextual Normalization, a lightweight strategy that adaptively standardizes context representations before generation. Extensive experiments on both controlled and real-world RAG benchmarks across diverse settings demonstrate that the proposed strategy consistently improves robustness to order variation and strengthens long-context utilization. These findings underscore that reliable RAG depends not only on retrieving the right content, but also on how that content is presented, offering both new empirical evidence and a practical technique for better long-context reasoning.

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

↑