arXiv cs.CL· Zhiyuan Wang, Xuan Luo, Sirui Zeng, Xifeng Yan·· 12 小时前AI 评分38
距离自适应表示 DAR:按 token 距离分配 KV 维度以压缩缓存
Dual Dimensionality for Local and Global Attention
AI 导读
研究者提出 Distance-Adaptive Representation(DAR),在局部上下文窗口内保留全维度 Key/Value,对窗口外 token 使用 1/2 或 1/4 降维表示。
正文 · 原文
Abstract:Decoder-only Transformers compute attention over the KV cache of preceding tokens. Keys and Values are typically represented with the same dimensionality, regardless of their distance from the prediction target. In natural language, however, the next word is most strongly influenced by the immediately preceding tokens. We hypothesize that local and distant tokens impose asymmetric demands on representational capacity: local tokens are more critical for predicting immediate outputs and thus require richer representations, whereas distant tokens primarily serve as long-range memory, for which lower-dimensional representations may suffice. We formalize this idea as Distance-Adaptive Representation (DAR), which preserves full-dimensional representations within a local context window while assigning reduced-dimensional representations (e.g. 1/2 or 1/4 of the original dimensionality) to tokens beyond that window. Across multiple pretraining scales (70M to 410M parameters), as well as continued supervised fine-tuning on a 1B-scale model, this approach closely matches the performance of full-dimensional baselines. In contrast, uniformly reducing dimensionality across all token positions leads to worse performance. These results challenge the common assumption that key and value dimensionality should be uniform across token positions. We further develop an efficient realization of DAR that achieves model quality comparable to the MLA baseline while reducing the average KV-cache size by 68.8\% at 8K context and achieving up to a $1.9\times$ decoding speedup at 128K context on the evaluated models. Our findings suggest a new direction for designing attention architectures that allocate representational capacity according to token distance to reduce KV-cache during inference.
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2606.18587 [cs.CL] |
| (or arXiv:2606.18587v2 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2606.18587 arXiv-issued DOI via DataCite |
Submission history
From: Zhiyuan Wang [view email]
[v1]
Wed, 17 Jun 2026 01:27:33 UTC (132 KB)
[v2]
Sun, 1 Nov 2026 00:39:34 UTC (194 KB)
来源:arXiv cs.CL · arxiv.org