Long-sequence model design is undergoing a shift from "finding the optimal architecture" to "making explicit trade-offs among incompatible constraints." A paper by Yan Zhou (Changsha University of Science and Technology), arXiv:2605.05066, rigorously proves an impossibility triangle — Efficiency (E), Compactness (C), and Recall (R) cannot all be satisfied — and systematically classifies 52 published architectures, providing a mathematical foundation and diagnostic toolkit.
Key points
1. Theoretical framework: Online Sequence Processor (OSP)
- The OSP is a 7-tuple \(P = (S, X, Q, A, \delta, \rho, s_0)\) unifying autoregressive Transformers, SSMs, linear recurrent networks, and hybrids.
- Transformer: state is the growing KV-cache; Mamba: fixed-size state \(\mathbb{R}^{N \times d}\).
- Axioms restrict scope: causality (state depends only on past tokens) and Lipschitz stability of the transition function.
- Three formal definitions:
- Efficiency (E): per-step cost bounded by a polynomial independent of sequence length \(T\).
- Compactness (C): state size in bits bounded by a polynomial independent of \(T\).
- Strong Recall (R): recallable key-value pairs grow proportionally with \(T\), at accuracy above random-guess baseline.
- Theorem 10: No OSP with vocabulary \(V \geq 2\) satisfies E, C, and R simultaneously.
- Any E∧C architecture can recall at most:
- Proof chain: the Data Processing Inequality bounds information about stored pairs by state capacity \(H(s_T) \leq q(d)\); Fano's Inequality gives a per-pair mutual-information lower bound for accurate recall; combining yields the linear bound on \(n^*\).
- Region R (recall vertex): full attention and variants (MHA, MQA, GQA, MLA, FlashAttention). State grows as \(O(T)\); engineering optimizations reduce constants, not asymptotics.
- Region E∧C (efficiency–compactness edge), four subfamilies: 1. SSMs: S4/S5/Mamba series, fixed \(O(Nd)\) state 2. Gated linear RNNs: RetNet, GLA, RWKV-4/5/6/7, DeltaNet, Griffin 3. Extended LSTMs: xLSTM (matrix-valued state) 4. Fixed-state memory: Infini-Attention, Titans, TTT 5. Sparse attention: Longformer, BigBird, StreamingLLM, NSA
- Interior: global-attention hybrids (Jamba, Zamba, StripedHyena, Nemotron-H, MiniMax-01) interpolate via the attention ratio \(r_{\text{attn}}\); total state = fixed SSM contribution + growing attention contribution.
- Engineering methods (YaRN, LongRoPE, etc.) inherit their base architecture's complexity class.
- Five-architecture ECR profiles (\(T=64\)): Transformer recalls 16 pairs; Mamba/GLA/Linear Transformer recall 1–4 with far lower FLOPs and state size.
- Scaling (\(T=20\)–$60$): Transformer FLOPs and KV-cache grow linearly; fixed-state models stay flat while recall ratio \(r = n^*/T \to 0\), consistent with Theorem 10.
- Hybrid interpolation: recall saturates at \(r_{\text{attn}} \approx 0.5\); beyond that, extra attention layers buy cost, not recall.
- Bound utilization: all 14 tested configurations lie strictly below the theoretical bound; the highest utilization is ~0.04% (GLA), with Mamba at ~0.01% or lower — over 99.96% of the state's bit budget is unused for exact key-value storage.
- The triangle plays the same role for sequence models as CAP does for distributed databases and Arrow's theorem for social choice: it does not forbid useful systems, but forces explicit trade-offs.
- Key insights: (1) the bound \(O(\text{poly}(d)/\log V)\) is unconditional; (2) the <0.1% utilization gap suggests future gains come from better state utilization inside the triangle, not escaping it; (3) the \(r_{\text{attn}} \approx 0.5\) saturation point gives a concrete quantitative guideline for hybrid design.
- Open questions: whether soft/semantic recall, quantum or analog computation, or real-language redundancy can bypass the independent-uniform-distribution assumptions; whether stronger conditional lower bounds exist via complexity theory (e.g., SETH).
- Title: The Impossibility Triangle of Long-Context Modeling
- Author: Yan Zhou, School of Mathematics and Statistics, Changsha University of Science and Technology
- arXiv: 2605.05066, May 2026, 41 pages, 6 figures
- Core result: E, C, R form an impossibility triangle; E∧C architectures' exact recall is capped at \(O(\text{poly}(d)/\log V)\)
- Tools: Data Processing Inequality + Fano's Inequality + Lipschitz stability analysis
- Validation: 52-architecture taxonomy; synthetic associative-recall experiments across 5 architectures, multiple parameter settings and sequence lengths