Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memory
Not on the map. Why?
Abstract (arXiv)
Recall presents a difficult choice: transformers have a linearly growing memory that slows each successive token, while linear RNNs typically have fixed costs but limited recall. We present Key-Value Means ("KVM"), a novel block-recurrence for attention that can accommodate either fixed-size or growing state. Equipping a strong transformer baseline with fixed-size KVM attention layers yields a strong O(N) chunked RNN, while adding only an insignificant number of new parameters. We train a transformer with a growable KVM cache and show it performs competitively on long-context tests with only subquadratic prefill time and sublinear state growth. KVM is implementable with standard operations and without custom kernels, and supports chunk-wise parallelizable training and prefill. It provides many of the benefits of both traditional transformers (expandable context memory, chunk-wise parallelizable training and prefill) and RNNs in a single unified package. It can be used on every layer, saving KV-cache memory, and allowing a continuous range of choices of prefill time complexity between O(N) and O(N2). We release our code at https://github.com/featherless-ai/KVM-paper and trained models at https://huggingface.co/collections/featherless-ai/kvm-paper under the Apache 2.0 license.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 42 of its 53 references that are in the map. First posted on arXiv 11 May 2026.
Builds on
42 of 53 references.
References · 42
- 2017Attention Is All You Needcited by 59,932
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
30 more
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 180
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
- 2024How to Train Long-Context Language Models (Effectively)cited by 141
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 134
- 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inferencecited by 124
- 2025Test-Time Training Done Rightcited by 121
- 2022Block-Recurrent Transformerscited by 107
- 2024Attention Score is not All You Need for Token Importance Indicator in KV Cache Reduction: Value Also Matterscited by 73
- 2025Don't be lazy: CompleteP enables compute-efficient deep transformerscited by 69
- 2025Test-time regression: a unifying framework for designing sequence models with associative memorycited by 63
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2025Straight to Zero: Why Linearly Decaying the Learning Rate to Zero Works Best for LLMscited by 34
- 2024Value Residual Learningcited by 25
- 2025Why Gradients Rapidly Increase Near the End of Trainingcited by 21
- 2024Language Models as Science Tutorscited by 17
- 2024GoldFinch: High Performance RWKV/Transformer Hybrid with Linear Pre-Fill and Extreme KV-Cache Compressioncited by 17
- 2026Memory Caching: RNNs with Growing Memorycited by 12
- 2025Native Hybrid Attention for Efficient Sequence Modelingcited by 10
- 2024TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameterscited by 9
- 2025ZSMerge: Zero-Shot KV Cache Compression for Memory-Efficient Long-Context LLMscited by 8
- 2025CentroidKV: Efficient Long-Context LLM Inference via KV Cache Clusteringcited by 8
- 2026SemantiCache: Efficient KV Cache Compression via Semantic Chunking and Clustered Mergingcited by 5
- 2026Optimal Decay Spectra for Linear Recurrencescited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026Low-Rank Key Value Attention
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Models
- 2026Bridging KV-Cache Quantization and Linear Attention: From Theory to Pretrained Weight Migration
- 2026Keyless Attention: Value-Space Routing and Value-Only Caching for Efficient Transformers
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention
- 2026KV Cache Compression Through the Lens of Transform Coding
- 2026The Recurrent Transformer: Greater Effective Depth and Efficient Decoding
- 2024MLKV: Multi-Layer Key-Value Heads for Memory Efficient Transformer Decoding