Summary (Overview)
- This paper introduces a formal separation between stream stability (whether a model can generate fluently over long streams) and long-term memory (whether old content can still influence outputs) in language models.
- The authors propose three horizons to evaluate long-running models: the stability horizon (how long stable prediction lasts), the access horizon (how far back content causally affects outputs), and the utility horizon (how far back task-relevant information remains usable).
- A key theoretical result (Proposition 1) proves that unbounded stability does not imply unbounded memory — a model can generate perfectly forever while having zero access to content beyond its recent window.
- The paper introduces THREEH, a budget-matched evaluation protocol with three tracks (stability, causal retention, delayed task utility) that must be reported under identical resource constraints.
- Experiments on 128K-token streams show that attention sinks (StreamingLLM) stabilize generation but do not extend semantic access beyond the active cache, while recurrent and retrieval mechanisms extend the semantic horizon at additional state or latency cost.
Introduction and Theoretical Foundation
Background and Motivation
The paper addresses a critical ambiguity in the language model streaming literature. As models are increasingly deployed in continuous settings (multi-day dialogues, unbounded event streams, long-running agents), several capabilities are often conflated:
- Streaming stability: generating fluent text indefinitely
- Long-context processing: attending to very long prompts
- Long-term memory: retaining and using old information
The authors identify that StreamingLLM (Xiao et al., 2024b) — which retains a few initial KV states as "attention sinks" alongside a recent window — solves the stability problem but is frequently over-interpreted as providing memory. The retained sink states stabilize attention normalization but do not absorb the semantics of evicted tokens.
Formal Framework
The paper defines a bounded-state streaming system with state update:
where is the model state after token , and is the persistent state budget.
Three horizons are formally defined:
- Stability horizon (for degradation tolerance ):
where is excess predictive loss relative to a reference.
- Access horizon: Let mean changing can change the distribution of output . Then:
- Utility horizon (for task family , score threshold ):
where is expected task performance when decisive information is placed tokens before the query.
Key Theoretical Result
Proposition 1 (Horizon separation): There exists a bounded-state autoregressive model with for any , while for all non-initial tokens and for a delayed-recall task.
The proof constructs a stationary order- token process where the model exactly represents next-token conditionals using only the latest tokens. A delayed-recall task whose answer depends on a symbol at position cannot be solved, since the retained state contains no function of that symbol.
Methodology
System Architectures Compared
Five conceptual systems are evaluated on a pretrained causal decoder with -token active cache:
- Window: retain only the latest KV states
- StreamingLLM: retain four initial sinks and recent states
- Window recomputation: rebuild a fresh -token cache before each prediction
- Recurrent: update a fixed-size learned memory at window boundaries
- Sink + retrieval: use attention sinks locally and retrieve old records from an external store
Evaluation Tracks
Track A (Stability): Stream 128K tokens, normalize perplexity to each method's value at 2K tokens.
Track B (Retention): Insert four-way random bindings at lags from to , test recall with counterfactual controls (only the target value changes across matched streams).
Track C (Utility): Delay evidence for a three-action decision task over the same lags.
THREEH Protocol Requirements
The evaluation contract requires reporting:
where:
- : device-resident state
- : external stored state
- : amortized compute per stream token
- : generation latency
- : query-time retrieval latency
Empirical Validation / Results
Main Results Table
| Method | PPL@128K | State | Lat. | Recall@8W |
|---|---|---|---|---|
| Window | 5.40 | W | 1.00 | 25 |
| StreamingLLM | 1.04 | W | 1.03 | 25 |
| Recompute | 1.02 | W | 7.80 | 25 |
| Recurrent | 1.08 | W+M | 1.12 | 46 |
| Sink + retrieval | 1.05 | W+D | 1.35 | 78 |
| Dense oracle | 1.00 | 64W | 38.0 | 96 |
PPL is normalized to the 2K value; latency is relative per-token latency; recall is percent on a four-way task. M is recurrent state and D is an external store.
Key Findings
-
Stability separation: At 128K tokens, plain window attention reaches 5.40× its short-stream perplexity, while StreamingLLM stays at 1.04× (close to recomputation's 1.02×) — but at 1.03× relative latency versus recomputation's 7.8×.
-
Retention collapse: Inside the cache, Window and StreamingLLM reach 97–98% recall, but at both fall to ~26% (near chance for four-way tasks). The recurrent system retains 70% at and 46% at ; retrieval reaches 89% and 78%.
-
The critical comparison: StreamingLLM's 1.04× perplexity paired with 25% remote recall demonstrates that stability ≠ memory.
Measured Horizons
| Method | Dominant bottleneck | |||
|---|---|---|---|---|
| Window | 2W | 1W | 0.5W | normalization |
| StreamingLLM | >64W | 1W | 0.5W | eviction |
| Recurrent | >64W | 2W | 1W | interference |
| Sink + retrieval | >64W | 8W | 4W | selection/use |
Thresholds: stability ≤ 1.1× normalized perplexity, retention ≥ 75%, utility ≥ 75%
Ablation Results
| Condition | PPL@128K | Recall@2W | Utility@2W |
|---|---|---|---|
| 0 sinks | 5.40 | 25 | 34 |
| 1 sink | 1.31 | 25 | 34 |
| 4 sinks | 1.04 | 26 | 36 |
| 8 sinks | 1.03 | 26 | 35 |
| 4 sinks, cache 2W | 1.03 | 91 | 84 |
| 4 sinks + retrieval k=1 | 1.04 | 73 | 68 |
| 4 sinks + retrieval k=4 | 1.05 | 89 | 85 |
Key ablation conclusions: sink count changes stability but not remote semantic access; cache size and retrieval depth move the access horizon.
Theoretical and Practical Implications
For System Families
-
Sink-window streaming: Effectively unbounded stability horizon with constant device memory, but general access horizon limited to the recent window plus fixed initial positions. Appropriate when relevant information is local or another subsystem handles older state.
-
Recurrent/compressed state: Creates causal paths from old content to future outputs (access horizon can exceed visible window), but suffers from lossy interference — bounded state must decide what to preserve before future queries are known.
-
Retrieval-augmented memory: Physical access horizon can be as long as the store's retention period, but utility depends on indexing, query formation, selection, and downstream use. Storage and retrieval costs must be included in the budget.
-
Hybrid systems: Practical long-running agents should use all three — attention sinks for stable local generation, recurrent state for compact working memory, and retrieval for sparse historical evidence.
Design Recommendations
- Reserve "infinite" for the measured property: "Infinite-duration generation with bounded KV cache" is precise; "infinite context" requires retention evidence beyond the active window.
- Don't train an anchor and call it memory: A dedicated sink token requires a write mechanism or external store to function as memory.
- Match training to horizon objective: Local next-token loss rewards stability without rewarding remote retention; memory requires losses whose targets depend on delayed variables under interference.
- Use failure decomposition: When old facts don't affect decisions, distinguish between eviction, compression loss, retrieval failure, and failure to use available evidence.
Conclusion
The paper establishes that attention sinks solve a real systems problem — keeping bounded-cache generation stable far beyond training windows — but are not semantic memory by themselves. The authors propose replacing vague "context length" claims with three reported quantities: stability horizon, access horizon, and utility horizon.
The THREEH protocol turns this distinction into an evaluation contract with matched budgets, lag sweeps, counterfactual controls, and task-level decisions. This vocabulary enables streaming, recurrent, retrieval, and hybrid systems to receive credit for what they actually achieve while making missing capabilities visible.
Limitations
- Exact horizon measurements depend on the chosen stream, task family, score threshold, and reference system
- Counterfactual streams can become unnatural if edited carelessly
- Perplexity is tokenization-dependent
- External-memory accounting involves policy choices about storage infrastructure
- The access-utility inequality is conceptually useful but not directly observable for arbitrary neural states
- The three horizons don't cover privacy, calibration, factuality, or robustness to malicious memory content
Related papers
- LLM-as-a-Judge Is Not an Oracle: Why Self-Improving Agents Need Deterministic Guardrails
In closed optimization loops, an LLM judge cannot be treated as an oracle, as optimizers actively seek out evaluation errors, not merely tolerate them.
- CoSkill: Joint Reinforcement Learning of Reasoning and Meta-Skill Agents for Hierarchical Skill Evolution
CoSkill's multi-agent co-training of reasoning and meta-skill agents over a hierarchical library achieves 98.4% ALFWorld and 90.6% WebShop success, outperforming all baselines.
- Edu-QuRating: Multi-Dimensional Educational Data Curation with Distilled Pairwise Judgements
Edu-QuRating distills pairwise LLM preferences into multi-dimensional single-text scorers across 20 educational criteria, improving pre-training data filtering and GRPO reward modeling beyond single-scalar baselines.