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

xRAG:面向检索增强生成的单Token极致上下文压缩

xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token

Peking University(北京大学);Microsoft(微软公司);National Key Laboratory of General Artificial Intelligence(通用人工智能国家重点实验室)

Xin Cheng, Xun Wang, Xingxing Zhang, Tao Ge, Si-Qing Chen, Furu Wei, Huishuai Zhang, Dongyan Zhao

AI总结:

本研究提出xRAG检索增强生成上下文压缩方法,通过模态桥接器融合检索文档嵌入与语言模型空间,冻结检索器和大模型,实现极致压缩,在多项任务上性能提升超10%且FLOPs降低3.53倍。

摘要:

本文提出xRAG,这是一种专为检索增强生成定制的创新上下文压缩方法。xRAG将密集检索中传统上仅用于检索的文档嵌入重新解释为来自检索模态的特征。通过采用模态融合方法,xRAG将这些嵌入无缝整合到语言模型的表示空间中,有效消除了对其对应文本内容的需求,实现了极致的压缩率。在xRAG中,唯一可训练的组件是模态桥接器,而检索器和语言模型均保持冻结状态。这种设计选择允许复用离线构建的文档嵌入,并保留了检索增强的即插即用特性。实验结果表明,xRAG在六项知识密集型任务上取得了超过10%的平均提升,可适配多种语言模型骨干,从稠密7B模型到8x7B混合专家配置均适用。xRAG不仅显著优于以往的上下文压缩方法,还在多个数据集上达到了与未压缩模型相当的性能,同时将总浮点运算量(FLOPs)降低了3.53倍。本工作从多模态融合的视角为检索增强生成开辟了新方向,我们希望它能为未来高效可扩展的检索增强系统奠定基础。

英文摘要:

This paper introduces xRAG, an innovative context compression method tailored for retrieval-augmented generation. xRAG reinterprets document embeddings in dense retrieval--traditionally used solely for retrieval--as features from the retrieval modality. By employing a modality fusion methodology, xRAG seamlessly integrates these embeddings into the language model representation space, effectively eliminating the need for their textual counterparts and achieving an extreme compression rate. In xRAG, the only trainable component is the modality bridge, while both the retriever and the language model remain frozen. This design choice allows for the reuse of offline-constructed document embeddings and preserves the plug-and-play nature of retrieval augmentation. Experimental results demonstrate that xRAG achieves an average improvement of over 10% across six knowledge-intensive tasks, adaptable to various language model backbones, ranging from a dense 7B model to an 8x7B Mixture of Experts configuration. xRAG not only significantly outperforms previous context compression methods but also matches the performance of uncompressed models on several datasets, while reducing overall FLOPs by a factor of 3.53. Our work pioneers new directions in retrieval-augmented generation from the perspective of multimodality fusion, and we hope it lays the foundation for future efficient and scalable retrieval-augmented systems

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

↑