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

QUITO-X:基于信息瓶颈理论的上下文压缩新视角

QUITO-X: A New Perspective on Context Compression from the Information Bottleneck Theory

State Key Laboratory of AI Safety, ICT, CAS(人工智能安全国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Peking University(北京大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))

Yihang Wang, Xu Huang, Bowen Tian, Yueyang Su, Lei Yu, Huaming Liao, Yixing Fan, Jiafeng Guo, Xueqi Cheng

AI总结:

本文从信息瓶颈理论视角提出基于交叉注意力近似互信息的上下文压缩方法QUITO-X,在保持问答性能的同时压缩率较SOTA提升25%,部分情况甚至优于完整上下文。

摘要:

生成式 LLM 因其出色的 In-Context Learning 能力,在各种工业应用中取得了显著成功。然而,复杂任务中的长上下文问题对其更广泛应用构成了重大障碍,主要表现在两个方面:(i) 过长的上下文导致高昂的成本和推理延迟。(ii) 长上下文引入的大量任务无关信息加剧了“lost in the middle”问题。现有方法使用 self-information 或 PPL 等指标移除冗余 token 来压缩上下文,这与在给定 query 条件下保留最重要 token 的目标不一致。在本研究中,我们引入信息瓶颈理论(IB)对该问题进行建模,提供了一个全面解决上下文压缩所需本质属性的新视角。此外,我们提出了一种基于 cross-attention 的方法来近似 IB 中的互信息,该方法在不同场景下可灵活替换为合适的替代方案。在四个数据集上的大量实验表明,与 state-of-the-art 相比,我们的方法在保持问答性能的同时,压缩率提高了 25%。特别是,在某些情况下,我们方法压缩后的上下文甚至优于完整上下文。

英文摘要:

Generative LLM have achieved remarkable success in various industrial applications, owing to their promising In-Context Learning capabilities. However, the issue of long context in complex tasks poses a significant barrier to their wider adoption, manifested in two main aspects: (i) The excessively long context leads to high costs and inference delays. (ii) A substantial amount of task-irrelevant information introduced by long contexts exacerbates the "lost in the middle" problem. Existing methods compress context by removing redundant tokens using metrics such as self-information or PPL, which is inconsistent with the objective of retaining the most important tokens when conditioning on a given query. In this study, we introduce information bottleneck theory (IB) to model the problem, offering a novel perspective that thoroughly addresses the essential properties required for context compression. Additionally, we propose a cross-attention-based approach to approximate mutual information in IB, which can be flexibly replaced with suitable alternatives in different scenarios. Extensive experiments on four datasets demonstrate that our method achieves a 25% increase in compression rate compared to the state-of-the-art, while maintaining question answering performance. In particular, the context compressed by our method even outperform the full context in some cases.

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

↑