跳到正文
arXiv cs.AI· Hayder Tirmazi·· 14 小时前AI 评分32

为世界模型做上下文压缩:一项新基准与智能体框架研究

Context Compaction for World Models

AI 导读

研究者为世界模型构建了上下文检索基准,每回合生成全新世界以避免模型靠训练数据回忆房间,并将上下文检索与基于邻近帧的猜测区分开。配套的智能体框架实现世界模型的上下文压缩,使模型无需重训练即可在超出上下文窗口最多 4 倍的范围内检索房间。但采用滑动窗口注意力的世界模型在"做梦"时丢失大部分上下文检索能力,因此对做梦的世界智能体而言,用上下文压缩扩展世界模型覆盖范围比在模型层改用滑动窗口注意力更有利。

正文 · 原文

View PDF HTML (experimental)

Abstract: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.
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.38980 [cs.AI]
  (or arXiv:2610.38980v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.38980

arXiv-issued DOI via DataCite

Submission history

From: Hayder Tirmazi [view email]
[v1] Wed, 28 Oct 2026 22:04:30 UTC (312 KB)

来源:arXiv cs.AI · arxiv.org