Shallow Encoding Emits Deep Memories
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
- 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression17 Sep
- 2026DeltaLog: Deferred Materialization of Recurrent States for Linear Attention Decoding16 Aug
- 2026The Residual Stream Is All You Need: On the Redundancy of the KV Cache in Transformer Inference20 Mar
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference8 Oct
- 2024When Attention Sink Emerges in Language Models: An Empirical View14 Oct
- 2024KV Prediction for Improved Time to First Token10 Oct
- 2024SwiftKV: Fast Prefill-Optimized Inference with Knowledge-Preserving Model Transformation4 Oct
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving11 Oct
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
Other references · 66
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2025Qwen3 Technical Reportcited by 9,994
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2020Measuring Massive Multitask Language Understandingcited by 8,473
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,852
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,388
- 2023Let's Verify Step by Stepcited by 4,259
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 3,191
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,243
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,231
38 more
- 2019Root Mean Square Layer Normalizationcited by 1,624
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,530
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,479
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,433
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,356
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,241
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,204
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 1,201
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 940
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 747
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 740
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
- 2024DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Servingcited by 683
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 670
- 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 609
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 447
- 2023Learning to Compress Prompts with Gist Tokenscited by 426
- 2022Confident Adaptive Language Modelingcited by 348
- 2024Massive Activations in Large Language Modelscited by 343
- 2025OpenThoughts: Data Recipes for Reasoning Modelscited by 338
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 324
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 323
- 2025Generalizing Verifiable Instruction Followingcited by 257
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 249
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 227
- 2024Lessons from the Trenches on Reproducible Evaluation of Language Modelscited by 211
- 2025AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning datasetcited by 190
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 187
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 175
- 2024Compact Language Models via Pruning and Knowledge Distillationcited by 168
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 135
- 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Codingcited by 129
- 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 121
- 2025mHC: Manifold-Constrained Hyper-Connectionscited by 112
- 2025DistiLLM-2: A Contrastive Approach Boosts the Distillation of LLMscited by 103
- 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
- 2026GateSight: Recurrent Memory Anticipates Attention Memory for Query-Agnostic KV Eviction in Hybrid LLMs
- 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
- 2026What Attention Recalls and Recurrence Controls in Hybrid Language Models
- 2026Low-Bit Recurrent States in Hybrid Language Models
- 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
- 2025Systems and Algorithms for Convolutional Multi-Hybrid Language Models at Scale
- 2026DCKV: Learned Transform Coding of the Prompt KV Cache in Hybrid Language Models
- 2026Architectures and KV Replay for Depth-Recurrent Language Models