arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.09760cs.CLcs.AIcs.IR
收藏

基于无分块上下文检索的语言模型基础

Grounding Language Model with Chunking-Free In-Context Retrieval

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Beijing Academy of Artificial Intelligence(北京智源人工智能学院)

Hongjin Qian, Zheng Liu, Kelong Mao, Yujia Zhou, Zhicheng Dou

AI总结:

本文提出无分块上下文检索方法(CFIC),通过利用文档隐藏状态和自回归解码直接定位证据文本,结合两种解码策略提升效率与保真度,在开放问答数据集上显著优于传统RAG方法。

摘要:

本文提出了一种新颖的无分块上下文(CFIC)检索方法,专为检索增强生成(RAG)系统设计。传统RAG系统常因处理长文档和过滤无关内容而难以用精确证据文本支撑响应。常见解决方案如文档分块和适配语言模型处理更长上下文均有局限:要么破坏文本语义连贯性,要么无法有效解决证据检索中的噪声和不准确问题。CFIC通过绕过传统分块过程应对这些挑战。它利用文档的编码隐藏状态进行上下文检索,采用自回归解码准确识别用户查询所需的特定证据文本,无需分块。CFIC进一步结合两种解码策略——约束句子前缀解码和跳跃解码——不仅提升检索效率,还确保生成基础文本证据的保真度。在多个开放问答数据集上的评估表明,CFIC在检索相关且准确的证据方面表现卓越,较传统方法有显著改进。通过免除文档分块需求,CFIC提供了一种更精简、有效且高效的检索方案,是RAG系统领域的重要进展。

英文摘要:

This paper presents a novel Chunking-Free In-Context (CFIC) retrieval approach, specifically tailored for Retrieval-Augmented Generation (RAG) systems. Traditional RAG systems often struggle with grounding responses using precise evidence text due to the challenges of processing lengthy documents and filtering out irrelevant content. Commonly employed solutions, such as document chunking and adapting language models to handle longer contexts, have their limitations. These methods either disrupt the semantic coherence of the text or fail to effectively address the issues of noise and inaccuracy in evidence retrieval. CFIC addresses these challenges by circumventing the conventional chunking process. It utilizes the encoded hidden states of documents for in-context retrieval, employing auto-aggressive decoding to accurately identify the specific evidence text required for user queries, eliminating the need for chunking. CFIC is further enhanced by incorporating two decoding strategies, namely Constrained Sentence Prefix Decoding and Skip Decoding. These strategies not only improve the efficiency of the retrieval process but also ensure that the fidelity of the generated grounding text evidence is maintained. Our evaluations of CFIC on a range of open QA datasets demonstrate its superiority in retrieving relevant and accurate evidence, offering a significant improvement over traditional methods. By doing away with the need for document chunking, CFIC presents a more streamlined, effective, and efficient retrieval solution, making it a valuable advancement in the field of RAG systems.

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

↑