mlsanityData to 24 Nov 2026

Shallow Encoding Emits Deep Memories

arXiv 2611.06084 ↗Submitted 4 Nov 2026cs.LG cs.DCcited by 0

On the map: Efficient LLM inference and serving → KV cache optimization also fits: Early exit and edge inference

Abstract (arXiv)

Hybrid language models interleave a few softmax-attention layers with many linear-attention or state-space layers, so every layer keeps a memory of earlier tokens: a key-value cache or a fixed-size recurrent state. Serving them spends more compute and high-bandwidth memory on these memories than the output requires. The prefill runs every layer for every prompt token, and every decode step loads and stores whole recurrent states, which on Qwen3.8-Flash-Next take as many bytes per request as the attention cache of thousands of tokens. We find two properties of trained hybrids that locate this excess. First, writes are easier than reads: writing a deep layer's memory of a token needs little of the deep computation that predicting the next token needs. Trained copies of the deep layers' write paths, which we call emitters, therefore write a prompt's deep memories from the residual stream of a shallower anchor layer, and all prompt tokens but the last run as few as 63% of the layers. Second, recurrent states have a state sink: most of their energy lies in a rank-one term along a fixed direction of each head, and the rest is a low-rank working memory. SEED builds on both: it makes the prefill shallow in depth and the decode state shallow in representation. Each recurrent state is stored as its sink plus low-rank factors, which the Gated DeltaNet, Kimi Delta Attention and Mamba-2 updates extend exactly; we prove that the open-loop error of the periodic compressions back to low rank is bounded independently of their number. SEED keeps the original weights frozen, compresses no attention cache, and runs all layers for every generated token. On six checkpoints of five production hybrids of 30B to over 300B parameters, it is nearly lossless on eleven official exams. Served with SGLang on NVIDIA GB300 GPUs on an agentic-coding trace, it raises the per-GPU throughput of Qwen3.8-Flash-Next 1.2-1.4x.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 77 of its 96 references that are in the map. Submitted 4 Nov 2026.

Builds on

77 of 96 references.

Closest ancestors · 11

Same direction, newest first

  1. 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression17 Sep
  2. 2026DeltaLog: Deferred Materialization of Recurrent States for Linear Attention Decoding16 Aug
  3. 2026The Residual Stream Is All You Need: On the Redundancy of the KV Cache in Transformer Inference20 Mar
  4. 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference8 Oct
  5. 2024When Attention Sink Emerges in Language Models: An Empirical View14 Oct
  6. 2024KV Prediction for Improved Time to First Token10 Oct
  7. 2024SwiftKV: Fast Prefill-Optimized Inference with Knowledge-Preserving Model Transformation4 Oct
  8. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May
  9. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  10. 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving11 Oct
  11. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep

Other references · 66

  1. 2021Training Verifiers to Solve Math Word Problemscited by 11,055
  2. 2025Qwen3 Technical Reportcited by 9,994
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,938
  4. 2020Measuring Massive Multitask Language Understandingcited by 8,473
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,852
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,388
  8. 2023Let's Verify Step by Stepcited by 4,259
  9. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 3,191
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
  11. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,243
  12. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,231
38 more
  1. 2019Root Mean Square Layer Normalizationcited by 1,624
  2. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
  3. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,530
  4. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,479
  5. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,433
  6. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
  7. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,356
  8. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,241
  9. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,204
  10. 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 1,201
  11. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 940
  12. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 747
  13. 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 740
  14. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
  15. 2024DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Servingcited by 683
  16. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 670
  17. 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 609
  18. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 447
  19. 2023Learning to Compress Prompts with Gist Tokenscited by 426
  20. 2022Confident Adaptive Language Modelingcited by 348
  21. 2024Massive Activations in Large Language Modelscited by 343
  22. 2025OpenThoughts: Data Recipes for Reasoning Modelscited by 338
  23. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 324
  24. 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 323
  25. 2025Generalizing Verifiable Instruction Followingcited by 257
  26. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 249
  27. 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 227
  28. 2024Lessons from the Trenches on Reproducible Evaluation of Language Modelscited by 211
  29. 2025AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning datasetcited by 190
  30. 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 187
  31. 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 175
  32. 2024Compact Language Models via Pruning and Knowledge Distillationcited by 168
  33. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 135
  34. 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Codingcited by 129
  35. 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 121
  36. 2025mHC: Manifold-Constrained Hyper-Connectionscited by 112
  37. 2025DistiLLM-2: A Contrastive Approach Boosts the Distillation of LLMscited by 103
  38. 2025Pretraining Large Language Models with NVFP4cited by 102

50 most cited of 66 All 66 (JSON)

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026GateSight: Recurrent Memory Anticipates Attention Memory for Query-Agnostic KV Eviction in Hybrid LLMs
  2. 2026LatentPort: Beyond KV Cache - Cross-Model Transfer of Recurrent Memory in Hybrid Language Models: A 4B-to-9B Hybrid-State Handoff Without Target Prefix Replay
  3. 2026What Attention Recalls and Recurrence Controls in Hybrid Language Models
  4. 2026Low-Bit Recurrent States in Hybrid Language Models
  5. 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
  6. 2025Systems and Algorithms for Convolutional Multi-Hybrid Language Models at Scale
  7. 2026DCKV: Learned Transform Coding of the Prompt KV Cache in Hybrid Language Models
  8. 2026Architectures and KV Replay for Depth-Recurrent Language Models