The Impossibility Triangle of Long-Context Modeling
Not on the map. Why?
Abstract (arXiv)
We identify and prove a fundamental trade-off governing long-sequence models: no model can simultaneously achieve (i) per-step computation independent of sequence length (Efficiency), (ii) state size independent of sequence length (Compactness), and (iii) the ability to recall a number of historical facts proportional to sequence length (Recall). We formalize this trade-off within an Online Sequence Processor abstraction that unifies Transformers, state space models, linear recurrent networks, and their hybrids. Using the Data Processing Inequality and Fano's Inequality, we prove that any model satisfying Efficiency and Compactness can recall at most O(poly(d)/log V) key-value pairs from a sequence of arbitrary length, where d is the model dimension and V is the vocabulary size. We classify 52 architectures published before March 2026 into the triangle, showing that each achieves at most two of the three properties and that hybrid architectures trace continuous trajectories in the interior. Experiments on synthetic associative recall tasks with five representative architectures validate the theoretical bound: empirical recall capacity lies strictly below the information-theoretic limit, and no architecture escapes the triangle.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 54 of its 65 references that are in the map. First posted on arXiv 6 May 2026.
Builds on
54 of 65 references.
References · 54
- 2017Attention Is All You Needcited by 59,932
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
38 more
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2022Simplified State Space Layers for Sequence Modelingcited by 776
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2022On the Parameterization and Initialization of Diagonal State Space Modelscited by 418
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2022Diagonal State Spaces are as Effective as Structured State Spacescited by 350
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2022Mega: Moving Average Equipped Gated Attentioncited by 178
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 167
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 157
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 134
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 120
- 2024Zamba: A Compact 7B SSM Hybrid Modelcited by 118
- 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 88
- 2026Mamba-3: Improved Sequence Modeling using State Space Principlescited by 76
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Numerical Investigation of Sequence Modeling Theory using Controllable Memory Functions
- 2025Overcoming Long-Context Limitations of State-Space Models via Context-Dependent Sparse Attention
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors
- 2025Overflow Prevention Enhances Long-Context Recurrent LLMs
- 2025MemMamba: Rethinking Memory Patterns in State Space Model
- 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing
- 2025L2M: Mutual Information Scaling Law for Long-Context Language Modeling