Skip to main content
QUICK REVIEW

[论文解读] Detecting Overflow in Compressed Token Representations for Retrieval-Augmented Generation

Julia Belikova, Danila Rozhevskii|arXiv (Cornell University)|Feb 12, 2026
Natural Language Processing TechniquesComputer Science被引用 0
一句话总结

这篇论文在软压缩的 RAG 中定义了令牌溢出,展示了饱和统计将压缩令牌与未压缩令牌分离,并提出了对话题感知的学习探针,在 LM 之前即可实现约 0.72 的 AUC-ROC,从而实现低成本分门控。

ABSTRACT

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.

研究动机与目标

  • 为 RAG 的压缩令牌信息劣化现象提供动机并形式化定义令牌溢出。
  • 利用饱和统计和上下文度量来表征压缩与未压缩的令牌表示。
  • 开发并比较从与查询无关到对查询感知的溢出检测方法。
  • 证明通过投影阶段表示即可在不进行完整 LLM 推理的情况下实现溢出检测。
  • 评估溢出信号是否需要建模查询-上下文交互,或仅可从令牌本身推断。

提出的方法

  • 将软压缩中的溢出形式化为相对于未压缩基线的压缩后任务性能下降。
  • 定义上下文复杂度、饱和统计(Hoyer 稀疏性、谱熵、峰度)和基于注意力的特征。
  • 开发三种检测方法:(i)手工特征的饱和度和上下文特征结合逻辑回归,(ii)在联合查询-上下文表示上的预-LLM 学习探针(preproj/postproj),以及(iii)在推理后阶段使用中间/最后层状态的探针。
  • 为探针引入联合表示 φ_i = [x_i^(s_c); q_i^(s_q)](s_c, s_q ∈ {preproj, postproj, mid, last})。
  • 在数据集 SQuADv2、TriviaQA、HotpotQA 上评估线性和浅层非线性探针,包括有监督对比学习(SCL)变体。
Figure 1: Comparison of classifier architectures (Linear scikit-learn, Linear PyTorch, MLP, MLP with SCL) across datasets and feature combinations. All architectures achieve comparable performance, with differences typically $<$ 1 percentage point, demonstrating that overflow is largely linearly sep
Figure 1: Comparison of classifier architectures (Linear scikit-learn, Linear PyTorch, MLP, MLP with SCL) across datasets and feature combinations. All architectures achieve comparable performance, with differences typically $<$ 1 percentage point, demonstrating that overflow is largely linearly sep

实验结果

研究问题

  • RQ1RQ1:如何表征压缩表示中的溢出?
  • RQ2RQ2:是否可以使用轻量诊断在不进行完整 LLM 推理的情况下高效检测溢出?
  • RQ3RQ3:是否仅能从压缩令牌中检测到溢出,还是需要建模查询-上下文交互?

主要发现

  • 饱和统计能可靠地区分 xRAG 令牌与基线令牌;线性可分性在令牌类型上几乎完美(AUC-ROC > 0.95),但对溢出预测效果较差。
  • 在联合查询-上下文表示上的学习探针在推理前的投影阶段对溢出检测平均达到 0.72 AUC-ROC,优于仅上下文的基线。
  • 推理后检测的性能与推理前相近,表明溢出在压缩阶段确定并传播到模型中。
  • 联合表示(Representation-joint)在各数据集上比仅上下文表示(Representation)高出约 5–8 个百分点的 AUC-ROC。
  • 基于注意力的信号仅提供适度的溢出信息且需要进行 LLM 的前向传播;饱和特征在溢出检测中效用有限。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。