跳到正文
arXiv cs.AI· Debabrata Mahapatra, Shubham Agarwal, Apoorv Saxena, Subrata Mitra·· 3 天前AI 评分29

RCStat:在 Transformer 中利用相对情境化的统计框架

RCStat: A Statistical Framework for using Relative Contextualization in Transformers

AI 导读

研究者提出 RCStat 统计框架,用随机变量 Relative Contextualization(RC)量化注意力机制中一组 token 对另一组 token 的影响,无需重训练即可在推理时估计。

正文 · 原文

View PDF HTML (experimental)

Abstract:Identifying which tokens and activations truly influence model predictions is critical for both the efficiency and interpretability of large auto-regressive language models. Yet in practice, token importance is typically inferred from attention distributions that entangle contextual relevance with softmax-normalization effects, obscuring relative influence across tokens and heads. We propose $\textbf{RCStat}$, a statistical framework for quantifying contextual influence in attention mechanisms. At its core $\textbf{Relative Contextualization (RC)}$ is a random variable that measures how strongly one subset of tokens contributes to another under the model's internal scoring scheme. RCStat admits computationally efficient bounds on expected influence that can be estimated at inference time. No retraining is required. We apply RCStat to two tasks. For $\textbf{attribution}$, attention heads with high expected RC accurately identify the prompt spans that drive generation, enabling reliable span-level explanations. For $\textbf{key-value cache eviction}$, RC-based adaptive thresholding selectively evicts low-impact KV entries, substantially reducing cache size while preserving generation quality. Across question answering, summarization, and attribution benchmarks, RCStat achieves consistent gains, improving generation quality by 15-40% with upto 36% error reduction for KV eviction, and attribution accuracy by 2-16%. These results demonstrate that explicitly modeling contextual influence provides a principled and practical alternative to attention-based heuristics.
Comments: Accepted to NeuirIPS 2026
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG)
Cite as: arXiv:2506.19549 [cs.CL]
  (or arXiv:2506.19549v2 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2506.19549

arXiv-issued DOI via DataCite

Submission history

From: Debabrata Mahapatra [view email]
[v1] Tue, 24 Jun 2025 11:55:43 UTC (6,516 KB)
[v2] Tue, 13 Oct 2026 13:04:47 UTC (5,105 KB)

来源:arXiv cs.AI · arxiv.org