Metraipolis › archive › dc_2714e7d72be2

Thought-Aware KV Cache Compaction for Reasoning via Adaptive Attention Matching — arXiv:2608.12331

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.12331
License (as archived)
CC0-1.0
Archived
2026-10-19T04:17:49.014Z
SHA-256 of the archived text
d989809969a182d38c6dc882a3799779a49364f03eb8295cd1c3eee6a787bd7f
Stable URL of this page
https://metraipolis.com/documento/dc_2714e7d72be2

How to cite

Thought-Aware KV Cache Compaction for Reasoning via Adaptive Attention Matching — arXiv:2608.12331 — arXiv (en), https://arxiv.org/abs/2608.12331 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_2714e7d72be2 (Metraipolis archive dc_2714e7d72be2, sha256 d989809969a182d38c6dc882a3799779a49364f03eb8295cd1c3eee6a787bd7f)
BibTeX
@misc{dc2714e7d72be2,
  title = {Thought-Aware KV Cache Compaction for Reasoning via Adaptive Attention Matching — arXiv:2608.12331},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.12331},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_2714e7d72be2; sha256 d989809969a182d38c6dc882a3799779a49364f03eb8295cd1c3eee6a787bd7f},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.12331. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Reasoning language models generate lengthy chain-of-thought (CoT) sequences whose key-value (KV) cache grows linearly and becomes a memory bottleneck during decoding. Existing compaction methods treat reasoning trajectories as flat token sequences and apply uniform compression, ignoring the hierarchical structure of CoT reasoning where different steps vary drastically in importance. We propose \textbf{Thought-Aware Attention Matching (TAM)}, which exploits this structure through three mechanisms: (i)~thought segmentation that decomposes the trajectory into reasoning blocks, (ii)~adaptive budget allocation that assigns compression budget based on each segment's importance and size, and (iii)~pivotal token protection that preserves high-attention reasoning anchors. We prove that the allocation rule is optimal under a convex error model and that cumulative error under sequential compaction remains bounded. Experiments on AIME 2024 and MATH-500 with Qwen3-4B show that TAM improves accuracy over uniform compaction at the same memory footprint, with periodic compaction bounding peak memory to 3.1--3.2\,GB (a 65\% reduction) while maintaining competitive accuracy.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-14 in cs.AI).
Categorie arXiv: Computation and Language (cs.CL) ; Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2608.12331 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T04:13:06.639Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).