Metraipolis › archive › dc_567ef1548328
Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference — arXiv:2609.25537
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.25537
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T13:46:26.815Z
- SHA-256 of the archived text
177b702db0d74173b7a549684431bb3e0c6d1fcc196a58748d3fa34a702ff76f- Stable URL of this page
https://metraipolis.com/documento/dc_567ef1548328
How to cite
Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference — arXiv:2609.25537 — arXiv (en), https://arxiv.org/abs/2609.25537 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_567ef1548328 (Metraipolis archive dc_567ef1548328, sha256 177b702db0d74173b7a549684431bb3e0c6d1fcc196a58748d3fa34a702ff76f)
BibTeX
@misc{dc567ef1548328,
title = {Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference — arXiv:2609.25537},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.25537},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_567ef1548328; sha256 177b702db0d74173b7a549684431bb3e0c6d1fcc196a58748d3fa34a702ff76f},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.25537. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large language model (LLM) inference is constrained by the quadratic scaling of self-attention and the linear scaling of the KV cache, increasing latency, energy consumption, and GPU memory demand as context length scales. Existing soft-compression methods either lack query-guided memory selection at inference time, train without answer-targeted supervision, or couple compression tightly to a specific decoder architecture. We propose a Context-to-Answer-Aligned Memory Compression (CMC) framework, which compresses long input contexts into compact Context Memory Embeddings (CMEs) aligned to any frozen decoder's embedding space, reducing inference costs without modifying decoder weights. CMC introduces a two-tier KV cache that combines question-guided CME selection with a local context window, and trains the compressor with answer-targeted distillation from a frozen LLM. Experiments across nine encoder-decoder combinations and four QA benchmarks show that CMC consistently outperforms the baseline, achieving up to 7.3 EM and 4.0 F1 point gains on SQuAD, while reducing inference time and energy consumption by up to 20% and peak reserved GPU memory by up to 50% at 3,000 generation tokens. Ablation studies confirm that each architectural component and training objective contributes to the performance. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-23 in cs.AI). Categorie arXiv: Computation and Language (cs.CL) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.25537 — 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-08T13:18:38.237Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-23?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).