mlsanityData to 14 Oct 2026

Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference

arXiv 2609.25537 ↗First posted 22 Sep 2026cs.CL cs.AIcited by 1

On the map: Efficient LLM inference and serving → Prompt and context compression

Abstract (arXiv)

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.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 21 of its 33 references that are in the map. First posted on arXiv 22 Sep 2026.

Builds on

21 of 33 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMs4 Jun
  2. 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token22 May
  3. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar
  4. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct

Other references · 17

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  6. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  8. 2020Longformer: The Long-Document Transformercited by 3,413
  9. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  10. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  11. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
  12. 2023Learning to Compress Prompts with Gist Tokenscited by 390
5 more
  1. 2023Adapting Language Models to Compress Contextscited by 356
  2. 2020Beat the AI: Investigating Adversarial Human Annotation for Reading Comprehensioncited by 131
  3. 2023Compressed Context Memory For Online Language Model Interactioncited by 43
  4. 2024Exploring Context Window of Large Language Models via Decomposed Positional Vectorscited by 18
  5. 2026ATACompressor: Adaptive Task-Aware Compression for Efficient Long-Context Processing in LLMscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answering
  2. 2024Recurrent Context Compression: Efficiently Expanding the Context Window of LLM
  3. 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
  4. 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
  5. 2026Prompt Compression in the Wild: Measuring Latency, Rate Adherence, and Quality for Faster LLM Inference
  6. 2026FreqDepthKV: Frequency-Guided Depth Sharing for Robust KV Cache Compression in Long-Context LLM Inference
  7. 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference
  8. 2024Effectively Compress KV Heads for LLM