mlsanityData to 14 Oct 2026

Memory as a cache: Exact context reuse and deletion by construction

arXiv 2609.32395 ↗First posted 26 Sep 2026cs.AI cs.LGcited by 0

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

The KV cache of a transformer entangles every token's representation with its entire prefix: a passage encoded once cannot be reused under a different prefix or removed without recomputing everything after it, so exact cache reuse is limited to shared prefixes. We present SMem, an architecture whose context representation is a cache by construction. A block-local encoder maps each block to memory rows independently of other blocks, and a reader conditions generation on their union through cross-attention. For every parameter setting, memory composes exactly at fixed block indices, deleting a block is an exact O(b) update for b-token blocks, and the memory state is independent of the edit path. At 4× the training context, under the shared recipe, SMem retrieves planted needles beyond any trained-length window (exact match 0.14-0.28 at distances of 31 and 63 blocks), where learned-position, RoPE, and Block-Attention-style transformers all score at most 0.02. A fully cached context is served by computing one block alone at a near-constant 3.1-6.2 ms, whereas cold prefill grows with context; batched decode stores 34-38% fewer KV rows and runs 1.4-1.7× faster when bandwidth-bound; and deletion beats suffix recomputation by 8.5× at 512 blocks and 452× at 4096 blocks (32-256× the trained length, probing the cost model rather than a served regime). The cost is a perplexity gap of -4.7% to +2.8% (negative favors SMem) against a parameter-matched transformer with the same positional scheme, at 160M-1.5B on FineWeb-Edu across two recipes and a learning-rate search. SMem also composes with RoPE: at 160M and 410M the composite matches or leads the matched transformer and closes 29-59% of SMem's gap to a RoPE transformer. Dropping prefix entanglement thus keeps perplexity comparable while making the cache exactly composable and editable.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 30 of its 35 references that are in the map. First posted on arXiv 26 Sep 2026.

Builds on

30 of 35 references.

Closest ancestors · 5

Same direction, newest first

  1. 2026LinearKV: One Cached State Suffices for Position-Independent Caching in Hybrid LLMs31 Jul
  2. 2026VeriCache: Turning Lossy KV Cache into Lossless LLM Inference17 May
  3. 2026An experimental study of KV cache reuse strategies in chunk-level caching systems3 Mar
  4. 2025Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented Generation5 Feb
  5. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May

Other references · 25

  1. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  2. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  3. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  4. 2021Improving language models by retrieving from trillions of tokenscited by 1,293
  5. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  6. 2023Adapting Language Models to Compress Contextscited by 356
  7. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
  8. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
  9. 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 144
  10. 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
  11. 2024Transformers, parallel computation, and logarithmic depthcited by 79
  12. 2025Towards LLM Unlearning Resilient to Relearning Attacks: A Sharpness-Aware Minimization Perspective and Beyondcited by 79
13 more
  1. 2024Larimar: Large Language Models with Episodic Memory Controlcited by 53
  2. 2024Block-Attention for Efficient Prefillingcited by 37
  3. 2025Continual Learning via Sparse Memory Finetuningcited by 20
  4. 2024Memory Mosaicscited by 16
  5. 2023Eureka-Moments in Transformers: Multi-Step Tasks Reveal Softmax Induced Optimization Problemscited by 14
  6. 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
  7. 2026You Need an Encoder for Native Position-Independent Cachingcited by 6
  8. 2026When Does Recurrence Become an Algorithm? Convergence Selection in Weight-Tied Looped Transformerscited by 6
  9. 2026CART: Context-Anchored Recurrent Transformer -- A Parameter-Efficient Architecture with Learned Stabilitycited by 4
  10. 2026Position: The Term "Machine Unlearning" Is Overused in LLMscited by 3
  11. 2026Can an AI Assistant Really Forget? Auditable Deletion from Addressable Memorycited by 3
  12. 2026ReCache: Efficient KV Cache Reuse and Compression for Tool-Augmented LLM Agentscited by 3
  13. 2026Auditing Forgetting in Limited Memory Language Modelscited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Tensor Cache: Eviction-conditioned Associative Memory for Transformers
  2. 2026KVEraser: Learning to Steer KV Cache for Efficient Localized Context Erasing
  3. 2026The Surprising Effectiveness of Shared Memory in Looped Transformers
  4. 2026Behavior-Preserving KV Cache Compression
  5. 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers
  6. 2026NestedKV: Nested Memory Routing for Long-Context KV Cache Compression
  7. 2026Beyond Token Eviction: Mixed-Dimension Budget Allocation for Efficient KV Cache Compression
  8. 2026The Recurrent Transformer: Greater Effective Depth and Efficient Decoding