Overview
This post is a detailed Chinese-language explainer of arXiv:2605.05066, "The Impossibility Triangle of Long-Context Modeling" by Yan Zhou (School of Mathematics and Statistics, Changsha University of Science and Technology, published 2026-05-06, cs.CL/cs.AI/cs.LG). It explains why the perennial debate — "Mamba is so much faster than Transformer, so why does anyone still use Transformers?" — has a fundamental answer rooted in information theory.
The Three Wishes
The paper frames three desirable properties for a long-context sequence model:
- Efficiency (E): computation per token is bounded by a polynomial in model dimension d, independent of sequence length T
- Compactness (C): state size in bits is bounded by a polynomial in d, independent of T
- Strong Recall (R): for some constant γ > 0, the model can recall γT distinct key-value pairs with accuracy at least 1−ε
- Why RAG won't die: any fixed-memory model has a hard recall ceiling; RAG outsources recall to an external retrieval system, bypassing the limit.
- Can Mamba replace Transformers? Depends on the task: fine for language modeling, doomed for precise fact extraction from long documents; hybrids (e.g., Zamba) offer a middle ground.
- Hardware won't help: the theorem is unconditional — it is an information-theoretic limit, not an engineering one.
- Title: The Impossibility Triangle of Long-Context Modeling
- Author: Yan Zhou, Changsha University of Science and Technology (CSUST), Changsha, Hunan 410114, China
- arXiv ID: 2605.05066 (published 2026-05-06)
- Key contributions: impossibility theorem for OSPs; quantitative recall bound via DPI + Fano's inequality; taxonomy of 52 architectures; empirical validation on 5 architectures
- Quantitative bound: n* ≤ q(d) / [(1−ε)log V − 1]
Theorem 1 (Impossibility Triangle): No Online Sequence Processor (OSP) with vocabulary size V ≥ 2 can satisfy E, C, and R simultaneously.
The Quantitative Bound
Any model satisfying E and C can recall at most:
key-value pairs. Since q(d) is independent of T, this means n* = O(poly(d)/log V) = o(T): as sequences grow infinitely long, the fraction of history the model can recall goes to zero.
The proof uses two classical information-theoretic tools:
1. Data Processing Inequality (DPI): information can only decrease through processing; the state's entropy caps the information it can carry about the input. 2. Fano's inequality: reliable recall of n key-value pairs requires a minimum amount of information, bounding the achievable recall given a fixed state size.
Architecture Classification (52 Architectures)
The author systematically maps 52 published architectures onto the triangle:
| Family | Examples | Position | |--------|----------|----------| | Transformer + KV-cache | GPT, LLaMA | R vertex (fails E and C) | | SSMs | Mamba, S4 | E-C edge (fails R) | | Linear RNNs | RWKV, HGRN2 | E-C edge | | Kernelized attention | Performer, cosFormer | E-C edge | | Hybrid architectures | Zamba, Samba | Inside the triangle (continuous trade-off) |
Notably, hybrid architectures' recall capacity varies monotonically with the proportion of attention layers — like a slider between speed/memory and recall.
Experimental Validation
Experiments on synthetic associative recall tasks with five representative architectures (Transformer, Mamba, Zamba, Samba, linear Transformer) confirm: Transformers recall nearly perfectly (with exploding memory); Mamba's recall saturates near the theoretically predicted O(poly(d)/log V) capacity as sequences lengthen; hybrids fall in between; no architecture beats the bound.