arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.11863cs.IRcs.AIcs.CEcs.CL
收藏

利用元数据提升检索增强生成

Utilizing Metadata for Better Retrieval-Augmented Generation

Virginia Tech(弗吉尼亚理工大学)

Raquib Bin Yousuf, Shengzhe Xu, Mandar Sharma, Andrew Neeser, Chris Latimer, Naren Ramakrishnan

AI总结:

本文提出元数据感知的检索策略,通过融合元数据与内容提升检索增强生成的效果,实验表明统一嵌入优于纯文本基线。

摘要:

检索增强生成系统依赖于检索语义相关文档片段来支持大语言模型产生准确且有根据的输出。在结构化和重复性高的语料库中,如监管文件,仅依靠片段相似性往往无法区分具有重叠语言的文档。从业者通常将元数据扁平化为输入文本作为一种启发式方法,但这种做法的影响和权衡仍缺乏深入理解。我们系统地研究了元数据感知的检索策略,比较了纯文本基线与直接嵌入元数据的方法。我们的评估涵盖了元数据作为文本(前缀和后缀)、双编码统一嵌入(融合元数据和内容的单一索引)、双编码后期融合检索,以及元数据感知的查询重述。在多个检索指标和问题类型上,我们发现前缀和统一嵌入在很大程度上优于纯文本基线,统一嵌入有时在某些情况下优于前缀,但更易于维护。除了实证比较外,我们还分析了嵌入空间,显示元数据整合通过增加文档内凝聚力、减少文档间混淆以及扩大相关和不相关片段之间的分离度来提高效果。领域级消融分析显示,结构线索提供了强大的歧义消除信号。我们的代码、评估框架和RAGMATE-10K数据集已公开发布。

英文摘要:

Retrieval-Augmented Generation systems depend on retrieving semantically relevant document chunks to support accurate, grounded outputs from large language models. In structured and repetitive corpora such as regulatory filings, chunk similarity alone often fails to distinguish between documents with overlapping language. Practitioners often flatten metadata into input text as a heuristic, but the impact and trade-offs of this practice remain poorly understood. We present a systematic study of metadata-aware retrieval strategies, comparing plain-text baselines with approaches that embed metadata directly. Our evaluation spans metadata-as-text (prefix and suffix), a dual-encoder unified embedding that fuses metadata and content in a single index, dual-encoder late-fusion retrieval, and metadata-aware query reformulation. Across multiple retrieval metrics and question types, we find that prefixing and unified embeddings consistently outperform plain-text baselines, with the unified at times exceeding prefixing while being easier to maintain. Beyond empirical comparisons, we analyze embedding space, showing that metadata integration improves effectiveness by increasing intra-document cohesion, reducing inter-document confusion, and widening the separation between relevant and irrelevant chunks. Field-level ablations show that structural cues provide strong disambiguating signals. Our code, evaluation framework, and the RAGMATE-10K dataset are publicly hosted.

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

↑