Long context: three bets and a weak spot in evaluation (overview)
Summary
An overview of the 33 entries on long-context modelling: cheaper attention, memory beside attention, and managing context from outside, plus what the benchmarks do and do not show. Written by Claude Opus 5.5.
Written by Claude Opus 5.5, an AI, from the summaries and research notes of the entries in this collection, not from the full papers. Numbers are quoted from those summaries and are the authors' or vendors' own claims unless stated otherwise. Follow the links before relying on any of it.
What this covers
The 33 entries tagged long-context: architectures, models, benchmarks and tools for working with inputs from hundreds of thousands to millions of tokens, 2024 to 2026.
The short version
- There are three distinct bets: make attention cheaper so the window can simply be longer, add a memory beside attention, or keep the window small and manage context from outside.
- Evaluation is the weak point. Two 2026 entries argue the usual long-context tests are saturated or misleading.
- Window sizes of 1M tokens are reported by several models; 10M claims exist but come from vendor reports only.
Bet 1: cheaper attention
- Sparse and block attention. MoBA (#707) lets the model learn which blocks to attend to. LongCat's LSA (#452) extends DeepSeek Sparse Attention by cutting the indexer's cost; HySparse2 (#1031) shares keys and values across layers. #1086 brings block selection down to log-linear cost. Naive-N0.5-Flash (#1077) ships with sliding-window plus sparse attention and no full-attention layers at all.
- Different attention. Differential Transformer (#906) subtracts two attention maps to cancel noise; "Screening Is Enough" (#529) replaces softmax competition with thresholding.
- Positions. #967 studies what rotary encodings are actually used for; DroPE (#478) trains with them and then drops them, arguing that the usual RoPE-scaling tricks do not truly extend context.
- Hybrids with state-space models: Falcon-H1 (#1097).
Bet 2: memory beside attention
- Infini-attention (#564): local attention plus a compressive memory; a 1B model solves a 1M-token passkey task after fine-tuning at 5k length.
- Titans (#550): a neural long-term memory updated at test time by surprise.
- Memory Caching (#461) and Dynamic Linear Attention (#489): recurrent or linear-attention models whose memory grows with the sequence.
- Test-time training: #533 argues that static attention dilutes buried evidence as length grows and that thinking tokens cannot recover it; a few gradient steps on the query weights can.
Bet 3: manage context from outside
- Recursive Language Models (#589): the prompt lives in a REPL that the model inspects and recurses into, handling inputs far beyond the window.
- Context Language Models (#793): the model edits its own context as a file.
- Agentic Context Engineering (#947): evolving the context instead of the weights.
- Retrieval: Zyphra reports near-perfect accuracy on a hash-hop task through 1B tokens by retrieving a few thousand tokens (#1112).
Models that claim long windows
| Model | Claimed context | Basis | Entry |
|---|---|---|---|
| SmolLM3 (3B) | 64k trained, 128k with YaRN | model release | #612 |
| K2 Horizon 3.7B | 512K | model release | #761, #972 |
| Gemini 2.5 | over 1M | technical report | #1110 |
| Naive-N0.5-Flash | 1M | vendor post | #1077 |
| Vast-10M | 10M | vendor announcement | #795 |
| Pokee-Isaac 28B | 10M (93.3% RULER retrieval at 10M) | vendor report | #1090 |
Evaluation
- Corpus task complexity (#737): conclusions from ordinary long-context tests can reverse on harder tasks, where full attention still wins.
- LongHarness Bench (#821): existing tests are saturated across harnesses; it adds four hard tasks and measures efficiency too.
- Fiction.liveBench (#1117): a community benchmark built from long stories.
Taken together these suggest the retrieval-style numbers in the table above say little about reasoning over a long input.
Gaps and open questions
- No entry compares the three bets on the same task. #737 comes closest by showing sparse methods losing to full attention on complex tasks.
- The 10M-token claims (#795, #1090) have no independent evaluation in the collection.
- KV-cache compression is represented by a single thread with little detail (#740).
- Training infrastructure for long sequences appears only as two code entries (#733, #782).
- Added
- Oct 3, 2026
Tags
Related entries
- Paper
MoBA: Mixture of Block Attention for Long-Context LLMs
Proposes Mixture of Block Attention (MoBA), which applies mixture-of-experts principles to the attention mechanism: the model learns where to attend across blocks rather than using predefined sparse patterns like sink or window attention. It claims superior long-context performance with seamless switching between full and sparse attention, and has been deployed for Kimi's long-context serving.
- Paper
LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexing
LongCat Sparse Attention (LSA) composes three indexer changes on DSA: Streaming-Aware Indexing (sink+sliding-window contiguous budget plus dynamic sparse tokens for coalesced HBM), Cross-Layer Indexing (N=2 owner/reuse with distillation; halves indexer passes), and training-free Hierarchical Indexing (coarse page recall then token refine; net win at >=256K). Matches full MLA on general/long-context benches at 69B-A3B and 560B-A27B, enables 1M-token native training, and underpins LongCat-2.0 (1.6T-A48B). Releases LongCat-Flash-Lite-Sparse (69B-A3B).
- Paper
HySparse2: Hybrid Sparse Attention with Two-Level KV Sharing
Xiaomi LLM-Core paper (arXiv 2609.26368v1, 2026-09-22, cs.CL). HySparse2 extends HySparse with YOCO-style self-decoder (hybrid SWA) + cross-decoder (hybrid sparse attention) and two-level KV sharing: outer KV Bridging (full-attention layers only; cross-decoder K/V from self-decoder full-attn hidden states) and inner KV Reuse (HySparse-style shared KV + selection within hybrid blocks). Refinements vs HySparse: token-level sparsity (replacing block-level) and Forced SWA (recent tokens forced into sparse selection, no separate SWA branch). All cross-decoder KV can be built from self-decoder states, so prefill can exit after the self-decoder (~half the model). On matched 80B-A3B MoE training: after light post-training (~100B tokens), mean MRCR-v2 / RULER-v2 +11.30 / +19.81 vs HySparse; at 256k RULER-v2 58.45 vs HySparse 32.61 / Hybrid SWA 35.74; lower AgentPPL and LongPPL to 256k; at 1M tokens analysis claims 2.92× / 5.02× less prefill FLOPs vs HySparse / Hybrid SWA plus smaller KV cache. No public code link in paper; AlphaXiv abs live; HF papers page 404 at catalog time.
- Paper
Block Sparse Attention with Log-Linear Complexity
Scaling language models to long contexts is limited by the quadratic cost of self-attention. Block sparse attention offers an efficient alternative, but selecting the retained blocks remains a bottleneck. Conventional block selection requires scoring all query-block pairs and therefore remains quadratic in sequence length. To address this issue, we propose PISA, a block-sparse attention mechanism that employs a pyramid Top-$K$ selection strategy. The main idea is to gradually narrow down the candidates across diffe…
- Model
Naive-N0.5-Flash: Building Frontier AI with AI
NaiveAI open-weight 309B MoE (15.5B active; 48 layers) built via AI-centered R&D on MiMo-V2.5. Hybrid SWA (128-token window) + DeepSeek Sparse Attention (DSA top-2048, GQA4) with no full-attention layers; native 1M context. Continued pretraining 3.25T tokens (indexer warmup 50B + sparse CPT 3T + decay/SFT 200B). NaiveRT inference (mega-kernel fusion, PDL, speculative decoding) claims ~50 tok/s Standard and up to ~2,000–2,122 tok/s Ultrafast on 8 GPUs. Weights + inference code MIT; HF NaiveAI/Naive-N0.5-Flash (+ FP8); API pricing $0.10/$0.40/$0.01 per M input/output/cache-read. Strong coding / agent / AutoResearch evals (SWE-Bench Pro, Terminal-Bench, PaperBench, etc.).
- Paper
Differential Transformer
arXiv 2410.05258 (v2): Diff Transformer computes attention as the difference of two softmax attention maps, canceling noise and encouraging sparse attention. Claims better language-modeling performance than Transformers, stronger long-context retrieval, fewer hallucinations, and better robustness under lower-bit quantization; Discord note highlighted ~40% fewer parameters for matched performance. Microsoft/academic author list (Ye, Dong, Xia, Sun, Zhu, Huang, Wei).
- Paper
Screening Is Enough
Multiscreen screens unit-normalized QK similarities with Trim (exact zero below threshold) and a learned causal Softmask window, then aggregates surviving values without competition; MiPE rotates only two dims and turns off for large windows. On SlimPajama (2^38 tokens, seq 2^12) it matches Transformer val loss with ~30% fewer params, stays stable at LR 2^{-4} (Transformer diverges), holds long-context PPL past train length, and on ABCDigits retrieval a 286M Multiscreen beats a 1.3B Transformer (99.18% vs 95.98% at train ctx; little degradation to 2^17). Full-context forward latency lower than FlashAttention Transformer at long ctx (RTX 4090, no KV cache). ABCDigits generator https://github.com/ken-nakanishi/abcdigits.
- Paper
Round and Round We Go! What makes Rotary Positional Encodings useful?
Positional Encodings (PEs) are a critical component of Transformer-based Large Language Models (LLMs), providing the attention mechanism with important sequence-position information. One of the most popular types of encoding used today in LLMs are Rotary Positional Encodings (RoPE), that rotate the queries and keys bas…
- Paper
Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings
Argues explicit PEs speed pretraining (NoPE has slower positional-bias gradients) but RoPE-scaling (YaRN/NTK/PI) must compress low frequencies, shifting semantic heads so zero-shot long context matches a cropped-window baseline on NIAH. DroPE trains with RoPE, drops PEs, then recalibrates at the original context. From-scratch 0.5B on 16B FineWeb: last 2B tokens without PE matches full-RoPE perplexity and beats YaRN/NTK/ALiBi/NoPE on RULER NIAH at 2x. SmolLM-360M (600B pretrain): 30-120B recalibration recovers in-context benches; LongBench avg 30.52 vs YaRN 19.94, NIAH 74.92 vs 48.25. SmolLM-1.7B (20B rec, 2 percent of pretrain) and Llama-2-7B (20B, 0.5 percent) also beat YaRN/NTK. NIAH at 8x: DroPE 52.20 vs YaRN 12.18 / LongRoPE2 16.45.
- Paper
Falcon-H1: A Family of Hybrid-Head Language Models Redefining Efficiency and Performance
TII technical report (arXiv 2507.22448, 2025-07-30) for Falcon-H1, a parallel hybrid of grouped-query attention and Mamba-2 SSMs (SA_M: attention+SSM in parallel, then MLP). Six sizes 0.5B / 1.5B / 1.5B-Deep / 3B / 7B / 34B, each with base and instruct, plus quantized instruct variants (>30 Hub checkpoints). Token budgets from Table 1: 0.5B 2.5T, 1.5B and 1.5B-Deep 3T, 3B 2.5T, 7B ~12T, 34B ~18T. Context 16K (0.5B) up to 256K (7B/34B). 18 languages (0.5B English-only). Blog and paper both say Falcon-H1-34B matches or beats ~70B Transformer peers (Qwen3-32B, Qwen2.5-72B, Llama-3.3-70B) and 1.5B-Deep rivals 7B–10B. Code: github.com/tiiuae/Falcon-H1. Weights under the Falcon-LLM License (Apache-2.0-based, not SPDX Apache-2.0).
- Paper
Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention
Infini-attention keeps local softmax attention plus a compressive associative memory updated from the same QKV (linear or delta rule) and a learned gate β. 114× smaller memory than a 65k Memorizing Transformer; PG19 PPL 9.65 vs 11.37. A 1B model solves 1M passkey after 5k-length FT; 8B BookSum 500k SOTA Rouge overall 18.5. No official code on abs.
- Paper
Titans: Learning to Memorize at Test Time
Treats attention as short-term memory and a deep MLP as long-term memory updated by surprise (gradient of associative ||M(k)-v||^2) with momentum and adaptive forget/weight-decay, plus persistent task tokens. Three hybrids: MAC, MAG, MAL. 760M MAG Wiki ppl 18.61 vs Transformer++ 25.21 and Gated DeltaNet-H2 19.88; MAC best on long-context NIAH. BABILong MAC beats GPT-4 and Llama3.1-8B+RAG at far fewer params. Claims >2M context. Code "available soon" on abs.
- Paper
Memory Caching: RNNs with Growing Memory
Memory Caching (MC) segments the sequence, caches each segment's memory state, and aggregates online plus cached memories at retrieval. Four variants: Residual Memory, Gated Residual Memory (GRM), Memory Soup, and Sparse Selective Caching (SSC). Complexity O(NL) interpolates RNN O(L) and Transformer O(L^2). Applied to Linear Attention, SWLA, DLA, and Titans. On 760M/30B-token and 1.3B/100B-token FineWeb training, MC lifts language-modeling and commonsense averages; Titans+GRM is strongest. Closes part of the recall gap vs Transformers on NIAH, in-context retrieval, LongBench, and MQAR. No official code on the abs page.
- Paper
Dynamic Linear Attention
DLA builds multi-state linear-attention memory with (i) Information-Aware Dynamic State Merging: a State Information Score opens a new state when token-level Frobenius drift exceeds tau, else merges; (ii) Capacity-Bounded Memory: a K-slot chronological cache that merges the lowest-density adjacent pair when full. Pretrains Mamba-2-780M and Gated DeltaNet-1.3B on 50B Long-Data-Collections tokens (seq 16k, K=30). Beats Log-Linear Attention on 8 commonsense, 6 in-context retrieval, RULER, and LongBench; Mamba-2+DLA matches or beats a 778M Transformer. Higher prefill throughput and lower memory than log-linear. No official code on the abs page.
- Paper
Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs
Diagnoses score dilution in static self-attention: the target–distractor logit margin must scale as Ω(log T) or needle mass vanishes. Thinking tokens cannot recover buried evidence under that bound. qTTT does one prefill to cache K/V then a few gradient steps on W_Q only, raising the margin without invalidating the cache. FLOP-matched to 8k thinking tokens, Qwen3-4B gains +12.6 / +14.1 pp average on LongBench-v2 and ZeroScrolls subsets; thinking-token gains saturate as T grows.
- Code
Recursive Language Models
Replaces llm.completion with rlm.completion: the prompt lives in a CodeAct-style REPL that the model can inspect, decompose, and recurse into via sub-(R)LM calls. Paper arXiv 2512.24601: process inputs up to two orders of magnitude beyond the base context window. pip install rlms. Sandboxes: local, ipython, docker, modal, prime, daytona, e2b. Training via verifiers + prime-rl (OOLONG example). Maintained by the paper authors at MIT OASYS. MIT license.
- Paper
Context Language Models
Introduces Context Language Models (CLMs): language models that natively manage their own context by treating the context as a file and allowing unrestricted updates to it, letting the model learn what is most important to maintain in context and naturally extending to multi-agent systems where multiple agent contexts coexist as files. Building CLMs zero-shot with existing models outperforms SOTA context-management strategies: 11.4% higher accuracy with 21.5% fewer FLOPs on BrowseComp-Plus, 5% higher scores with 59% fewer FLOPs on 12-hour EdgeBench, and 65% greater improvement with the same compute on a 24-hour multi-repository agent-swarm task. Shifting context management from external harness control to intrinsic model behavior enables both in-context and parametric learning of context-management strategies: steering CLMs with natural-language instructions evolved through a skill-optimization loop improves held-out accuracy by up to 35.9 points while reducing compute. An online RL method for CLMs improves Qwen3.5-9B on BrowseComp-Plus by 47.6% while using 12% fewer FLOPs. Co-designed Suffix Cache Reuse for CLM serving further cuts server-side compute by 35% relative to standard SGLang at matched performance.
- Paper
Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models
Large language model (LLM) applications such as agents and domain-specific reasoning increasingly rely on context adaptation: modifying inputs with instructions, strategies, or evidence, rather than weight updates. Prior approaches improve usability but often suffer from brevity bias, which drops domain insights for co…
- Post
Reaching 1B context length with RAG
Zyphra research blog (2024-10-21, Palo Alto). Combines fast sparse embeddings with personalized-PageRank-style graph retrieval so only a small retrieved subset (~65 chunks / several thousand tokens) is fed to gpt-4o-mini. Reports near-perfect Hash-Hop accuracy through 1B tokens, matching/beating Magic LTM at 50M–100M while running embedding+retrieval on CPU. Contrasts with dense BERT embedders (gte-small/base/large) that embed much more slowly.
- Model
SmolLM3: smol, multilingual, long-context reasoner
HuggingFaceTB 3B decoder (Llama-style, tied embeddings, GQA 4 groups, NoPE every 4th layer, intra-document masking) trained 11.2T tokens on 384 H100s over 24 days. Three-stage web/code/math mix, then 100B long-context (4k to 64k, YaRN to 128k) and 140B reasoning mid-train. SFT 1.8B tokens dual think/no_think, APO alignment, MergeKit soup. Outperforms Llama-3.2-3B and Qwen2.5-3B; competitive with 4B models. Think mode AIME 2025 36.7 percent vs 9.3 percent no-think. Apache-2.0. Languages EN/FR/ES/DE/IT/PT.
- Model
K2 Horizon: six fully open models from 0.9B to 375B (IFM)
The Institute of Foundation Models (frontier lab of Abu Dhabi's MBZUAI) released K2 Horizon, a fleet of six fully open models (0.9B, 3.7B, 7B, 32B dense; 36B-A4B and 375B-A23B MoE) for reasoning, coding and agentic work, under Apache 2.0 with weights, training code, intermediate checkpoints, data and recipes published. The 36B-A4B introduces Mixture-of-Value Attention (MoVA); Uno freezes autoregressive params and trains diffusion params for parallel block emission. Tool definitions were presented in JSON, XML and Markdown during training.
- Idea
K2-Horizon launch thread (IFM)
Hudson posted IFM_AI status 2099925030570455369 immediately before the K2-Horizon-3.7B Hugging Face card. X was 403 from this box; ifm.ai/blog/k2/ hit Cloudflare. Treat as the family launch pointer. Companion catalog row covers the 3.7B dense model (22.9T pretrain, 512K context, intermediate checkpoints, open recipe). Technical report and training code listed as in progress through end of Sep 2026.
- Paper
Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities
Google DeepMind technical report (73 pages; pdfTeX dated 2025-10-16) on Gemini 2.5 Pro/Flash and earlier 2.0 Flash/Flash-Lite. Models are natively multimodal sparse MoEs with >1M-token context and native tool use. 2.5 Pro is positioned as the strongest thinking model (coding/reasoning, up to ~3h video); 2.5 Flash offers controllable thinking budget; 2.0 variants target low latency/cost. Correspondence: gemini-report@google.com. © 2025 Google.
- Model
Vast-10M (Voltropy)
Voltropy PBC introduces Vast-10M, billed as the first frontier LLM with a ten-million-token context window, in three sizes: Vast-10M-Flash (based on DeepSeek V4 Flash), Vast-10M-Medium (based on GLM 5.2), and Vast-10M-Pro (based on DeepSeek V4 Pro). The context extension technique is called VSA; per Voltropy, unlike prior context-extension methods that degrade intelligence, VSA improves models even at shorter context lengths. On the BEAM benchmark, Vast-10M-Flash beats Anthropic's Fable 5.1 at the one-million-token tier and reaches parity with OpenAI's GPT-6 Astra; Voltropy claims greater recall at ten million tokens than the base DeepSeek model at one million. The full technical report is available on voltropy.com; early access opened 2026-09-29.
- Paper
Pokee-Isaac 28B: A 10M-Token Context Efficient Agentic Model Technical Report
Vendor technical report for Pokee-Isaac 28B, a non-decoder-only model partly fine-tuned from Apache-2.0 Qwen3.6-27B. Reports near-flat RULER retrieval through 10M tokens (93.3% at 10M), MRCR-v2 0.500 at 1M, BFCL-v4 70.94, Tau3 mean 0.662, MCP-Atlas 74.59% claim coverage, and 56/86 (65.1%) on the text-compatible Terminal-Bench 2.1 subset. A single B200-class GPU reportedly reaches 137.2K-token/s prefill and 337-token/s decode at 10M context. DTAP Linux-Docker results report 35.6% combined attack success and 82.5% benign success. The report positions in-boundary VPC/on-prem/on-device deployment as the main benefit.
- Paper
No More Free Lunch: Corpus Task Complexity Matters as Corpora Grow
Defines Corpus Task Complexity (CTC) and shows that conclusions from ordinary low-CTC long-context evaluations can reverse on high-CTC tasks. Adds 10 high-CTC tasks to a 22-task evaluation suite. Full attention remains stronger on high-CTC tasks but is costly to scale.
- Paper
LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning
A benchmark evaluating both the effectiveness and efficiency of long-context LM harnesses (RLMs, ReAct, mini-swe-agent-style coding agents). Existing long-context evaluations are saturated across harnesses, so the four hard tasks require strategic/efficient reasoning (multiple valid strategies with very different costs), hard retrieval (both GREP and semantic), and extensive multi-step reasoning. Example: Constraint Solving asks for every person satisfying 5 conditions scattered across documents; checking the most selective condition first narrows candidates far more cheaply than checking every condition. 5 frontier LMs x 4 agentic harnesses: best setup reaches only 68% macro-average accuracy and no single harness leads across all tasks. Clear accuracy gaps, plus >10x efficiency differences even with the same LM and similar accuracy: more compute does not always mean better accuracy. mini-swe-agent is especially strong, reaching the best performance at a cost close to direct inference. Establishes efficiency as an axis for long-context evaluation and provides a testbed for harnesses that process context strategically rather than exhaustively.
- Other
Fiction.liveBench: The First Real-World Long Context Benchmark for Writers
Community long-context narrative benchmark from Fiction.live (introduced ~Feb–Mar 2025; Discord linked Mar-25-2025 story URL). Built from long complex user stories with verified quizzes; each item starts from a minimal relevant cut ('0'-token) then expands context so relevant info is buried in longer story text. Epoch AI describes 36 questions about 30 stories with length-varied summaries; primary site notes ~dozen stories and private user-derived dataset. Continuously updated leaderboard of frontier models. Measures theory of mind, chronology, secrets/reader vs character knowledge, and logical prediction from hints—harder than LongBench/RULER-style search.
- Thread
Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)
An X thread from @RampLabs titled 'Scaling KV Cache Compression to Frontier Models' (per the Discord link card), shared without additional caption. Claims relate to KV-cache compression methods scaled to frontier-scale models.
- Code
xLLM: Light-weight infrastructure for express LLM pre-training
Apache-2.0 PyTorch framework for long-context LLM pretraining supporting dense, MoE, and MoVA architectures, with FSDP1/FSDP2, data/model/context parallelism, custom CUDA kernels, FlashAttention, online tokenization and packing, evaluation, HuggingFace export, and vLLM support.
- Code
xattn
Efficient attention modules for the xLLM framework, with Python APIs for use in other PyTorch projects. Features high-precision FP32 attention output state for backward (reducing BF16 gradient error) and flexible segment-aware masking (segment IDs or BOS masks) for packed sequences. Supports causal Flash Attention, sliding window, sliding chunk, and SoftDelta attention variants; FP16/BF16 inputs; MHA, GQA, and MQA.
Similar entries
- Paper Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling
- Note RL for language models after GRPO: fixes, costs, rewards, agents (overview)
- Paper Scalable In-context Ranking with Generative Models
- Note Mixture-of-experts language models: where the work is (overview)
- Paper Length Generalization Needs Proper Regularization
- Paper Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs