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

检测压缩标记表示中的溢出以用于检索增强生成

Detecting Overflow in Compressed Token Representations for Retrieval-Augmented Generation

Skoltech(斯克利切夫斯基技术学院);Sber AI Lab(Sber AI实验室);AIRI;Institute for Information Transmission Problems of the Russian Academy of Sciences(俄罗斯科学院信息传输问题研究所)

Julia Belikova, Danila Rozhevskii, Dennis Svirin, Konstantin Polev, Alexander Panchenko

AI总结:

本文提出了一种检测压缩标记表示中溢出的方法,通过轻量级探测分类器在多个数据集上实现了较高的检测性能,提升了检索增强生成任务的可靠性。

摘要:

高效的长上下文处理仍然是当前大型语言模型(LLMs)面临的关键挑战,尤其是在资源受限的环境中。软压缩架构通过将长标记序列替换为较小的已学习压缩标记集合来扩展有效上下文长度。然而,压缩性限制以及压缩开始擦除任务相关内容的时间点仍处于探索阶段。在本文中,我们定义了标记溢出作为一种情形,即压缩表示不再包含足够的信息来回答给定的查询,并提出了一种方法来表征和检测它。在xRAG软压缩设置中,我们发现查询无关的饱和统计量能够可靠地区分压缩和未压缩的标记表示,提供了一种实用工具来识别压缩标记,但显示出有限的溢出检测能力。轻量级探测分类器在查询和上下文xRAG表示上检测溢出,在HotpotQA、SQuADv2和TriviaQA数据集上平均达到0.72的AUC-ROC,证明了结合查询信息可以提高检测性能。这些结果从查询无关的诊断发展到查询感知的检测器,使低成本的预LLM门控能够缓解压缩引起的错误。

英文摘要:

Efficient long-context processing remains a crucial challenge for contemporary large language models (LLMs), especially in resource-constrained environments. Soft compression architectures promise to extend effective context length by replacing long token sequences with smaller sets of learned compressed tokens. Yet, the limits of compressibility -- and when compression begins to erase task-relevant content -- remain underexplored. In this paper, we define token overflow as a regime in which compressed representations no longer contain sufficient information to answer a given query, and propose a methodology to characterize and detect it. In the xRAG soft-compression setting, we find that query-agnostic saturation statistics reliably separate compressed from uncompressed token representations, providing a practical tool for identifying compressed tokens but showing limited overflow detection capability. Lightweight probing classifiers over both query and context xRAG representations detect overflow with 0.72 AUC-ROC on average on HotpotQA, SQuADv2, and TriviaQA datasets, demonstrating that incorporating query information improves detection performance. These results advance from query-independent diagnostics to query-aware detectors, enabling low-cost pre-LLM gating to mitigate compression-induced errors.

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

↑