Context Compaction for World Models
On the map: World models → World models for language agents
Abstract (arXiv)
World models let observers explore and interact with generated worlds. Recent work shows that when observers revisit a region, current models often fail to regenerate it consistently. We view this as a context retrieval problem. LLM agents manage context retrieval at two layers of their stack. At the model layer, the KV cache design determines how much context fits in memory. At the agent harness layer, harnesses such as Claude Code pick the context sent to the LLM. Prior work on world models has mostly focused only on the model layer. In this paper, we make three contributions. First, we build a benchmark to measure world model context retrieval. It generates new worlds for every episode, preventing a model from recalling rooms using training data. It also separates context retrieval from guesses based on nearby frames. Second, we build an agent harness that performs context compaction for world models, which to our knowledge no prior work has studied. Third, we use our benchmark to study four world model designs. Context compaction lets our world models retrieve rooms up to 4 times beyond their context window without retraining. However, world models with sliding-window attention lose most of their context retrieval when dreaming. Therefore, a dreaming world agent benefits more from extending the reach of its world model using context compaction than switching to sliding window attention at the model layer.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in World models for language agents, one of 11 directions in World models. Builds on 25 of its 29 references that are in the map. Submitted 28 Oct 2026.
Builds on
25 of 29 references.
References · 25
- 2020Longformer: The Long-Document Transformercited by 3,606
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2019Dream to Control: Learning Behaviors by Latent Imaginationcited by 1,786
- 2018World Modelscited by 1,662
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2019Root Mean Square Layer Normalizationcited by 1,624
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,467
- 2024Genie: Generative Interactive Environmentscited by 907
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 780
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 747
- 2025WorldPlay: Towards Long-Term Geometric Consistency for Real-Time Interactive World Modelingcited by 236
- 2025WorldMem: Long-term Consistent World Simulation with Memorycited by 211
13 more
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 175
- 2026MIND: Benchmarking Memory Consistency and Action Control in World Modelscited by 47
- 2026WorldKV: Efficient World Memory with World Retrieval and Compressioncited by 28
- 2026AlayaWorld: Long-Horizon and Playable Video World Generationcited by 16
- 2025LoopNav: Benchmarking Spatial Consistency in World Modelscited by 13
- 2026R2M-Bench: Evaluating Revisit Memory via Relative Consistency in Interactive Video World Modelscited by 13
- 2026Echo-Memory: A Controlled Study of Memory in Action World Modelscited by 11
- 2025WorldPack: Dynamic Frame Compression for Long-context Video World Modelingcited by 10
- 2026Compression and Retrieval: Implicit Memory Retrieval for Video World Modelscited by 9
- 2026Context Compaction Theorycited by 5
- 2026World in World: Explore the World with World Modelscited by 4
- 2025On Memory: A comparison of memory mechanisms in world modelscited by 3
- 2026Does Video Memory Use What It Retrieves? A Causal Audit of Memory Specificitycited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agents
- 2026MemoWM: How World Models Change What Agents Need to Remember
- 2026AGI Maze as a Benchmark Framework for World-Modeling Agents
- 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioception
- 2026ACM: Agentic Context Management for Long Horizon Tasks
- 2026How To Train Your World Model: Fine-tuning vs RAG for LM-based World Modeling
- 2025R-WoM: Retrieval-augmented World Model For Computer-use Agents
- 2026WorldMemArena: Evaluating Multimodal Agent Memory Through Action-World Interaction