WorldKV: Persistent-World Generation
- WorldKV is a training-free framework for persistent-world generation in autoregressive video diffusion models that achieves revisit consistency without incurring linear memory growth.
- The framework introduces World Retrieval to selectively reinsert compressed historical KV-cache chunks, thereby maintaining scene fidelity and improving throughput.
- World Compression prunes redundant tokens within each frame chunk, enabling broader historical coverage with nearly a 2× reduction in per-chunk storage.
WorldKV is a training-free framework for persistent-world generation in autoregressive video diffusion models. It addresses the tension between long-horizon scene consistency and real-time inference by augmenting native KV-cache attention with two mechanisms: World Retrieval, which stores evicted KV-cache chunks and selectively reinserts scene-relevant history, and World Compression, which prunes redundant tokens within each chunk via key-key similarity to an anchor frame. The method is designed for settings in which revisiting a previously seen viewpoint should reproduce consistent static appearance and scene layout—termed revisit consistency—without incurring the linear memory growth and quadratic attention cost of full-KV inference (Yi et al., 21 May 2026).
1. Persistent-world generation and the scaling problem
In the formulation used by WorldKV, an autoregressive video diffusion world model generates a video conditioned on camera or action inputs as
The conditioning on prior frames is implemented through a causal Transformer with a key-value cache. At each denoising step, new keys and values are appended to the cache. Within this setting, a persistent world requires that if a camera returns at time to essentially the same pose used at , then the generated frame should match the earlier frame in static appearance and scene layout. WorldKV defines this property as revisit consistency (Yi et al., 21 May 2026).
The core systems issue is the scaling behavior of full-KV attention. If each frame or chunk contributes keys and values, then after frames the cache contains tokens, with memory footprint , where 0 is the hidden dimension. Causal attention over the entire cache has cost
1
per layer per head. As rollout length increases, VRAM usage grows linearly and attention cost grows quadratically. The result is eventual GPU memory exhaustion and degraded frame rate.
A standard mitigation is sliding-window inference, which keeps only the most recent 2 frames. This bounds memory by 3 and attention cost by 4, restoring throughput. However, once keys are evicted from the active window, the model loses direct access to earlier viewpoints, and revisits are prone to hallucination or drift. WorldKV is explicitly positioned between these two extremes: it preserves bounded active attention while retaining access to a larger historical memory.
2. World Retrieval
World Retrieval modifies the eviction path of sliding-window inference. Instead of discarding the oldest chunk after the active window exceeds capacity, the method compresses that chunk and moves it into a secondary store in GPU or CPU memory. Each stored chunk is indexed by its generation state 5, defined as an absolute camera pose or an accumulated action embedding (Yi et al., 21 May 2026).
At inference time, the current state 6 is compared with the stored history 7 using a relevance score
8
The system retrieves the top-9 chunks ranked by this score:
0
In the default camera-action instantiation, similarity is defined as
1
where 2 and 3 are translation and rotation differences, and 4 normalize them. Appendix C also reports that a query-based similarity function, ranking stored chunks by cross-attention score between the current query and stored keys, works nearly as well.
The retrieved chunks are not re-encoded. Instead, they are inserted directly into the native attention window. The active window is formed as
5
where 6 is a small fixed sink cache anchoring the initial 3 frames, 7 contains the most recent 3 frames, 8 is the set of retrieved chunks, and 9 is the chunk currently being denoised. Standard Transformer causal attention is then applied over this concatenation. The salient design choice is that retrieval operates on cached keys and values rather than on decoded visual features, so the method preserves compatibility with the backbone’s native attention mechanism.
3. World Compression
World Compression targets redundancy within a short chunk of frames. The method selects the first frame of a chunk as an anchor. If 0 denotes the anchor-frame keys and 1 the keys of a non-anchor frame 2, then the redundancy score of token 3 in frame 4 is
5
A large score indicates that the token is well represented by the anchor. Pooling all 6 non-anchor scores, WorldKV keeps only the bottom 7-quantile of non-anchor tokens—those with the smallest redundancy scores—while retaining all anchor tokens. The resulting number of retained keys is
8
The implementation described for WorldKV uses 9 frames per chunk and 0, which yields 1, described as a 2 reduction in per-chunk storage (Yi et al., 21 May 2026).
This compression rule has two direct consequences. First, uncompressed storage for a 3-frame chunk is 3 tokens, whereas compressed storage is 4. Second, under a fixed token budget, the system can store roughly 5 more chunks. The paper states that, because retrieval selects a fixed number 6 of chunks, broader historical coverage can improve revisit consistency. The associated ablations further indicate that moderate compression is preferable to either no compression or overly aggressive compression.
4. Integrated inference pipeline and computational properties
WorldKV operates as an inference-time pipeline layered on top of sliding-window denoising. At each generation step, the next chunk is denoised using causal attention over a window composed of sink, retrieved, recent, and current frames. The oldest recent chunk is then evicted, compressed, and appended to the stored history. Retrieval scores are computed against the current camera or action state, and the top-7 chunks are inserted into the attention window for the next step (Yi et al., 21 May 2026).
The paper contrasts the asymptotic properties of full-KV inference and WorldKV. After 8 chunks, full-KV memory is
9
and its per-layer attention cost is
0
With compression fraction 1 and retrieval budget 2, WorldKV stores approximately
3
tokens in history, while the active attention window is bounded by
4
for sink, retrieval, recent, and current. The corresponding per-layer attention cost is
5
which is independent of rollout length 6. This is the central systems claim of the method: the stored history can grow over time, but the active attention computation remains bounded.
The implementation details reported in the paper instantiate this design with a sliding-window size 7 latent frames, partitioned into Sink 8 frames, Retrieval 9 frames, Recent 0 frames, and Current denoising 1 frames. Compression is configured as anchor-only plus 2 of non-anchor tokens, giving 3 tokens per 3-frame chunk, and the retrieval budget is 4 chunks. Experiments are reported on LingBot-World-Fast (14B) using 5H200 GPUs, with additional results on 6B200, and on Matrix-Game-2.0 (1.3B) using 7H200.
5. Empirical evaluation
The evaluation uses 60 manually designed scene-trajectory pairs across indoor, outdoor, game, and AI-gen domains. Each trajectory includes loops, forward-back traversals, and at least one revisit. The reported metrics are PSNR, SSIM, LPIPS, and FID for revisit fidelity, together with FPS for throughput (Yi et al., 21 May 2026).
Two backbone models are used: LingBot-World-Fast (14B), described as long-video distilled with native full-KV support, and Matrix-Game-2.0 (1.3B), described as trained on short clips with a native sliding window. Memory-trained baselines are WorldPlay (8B) and Yume-1.5 (5B).
The main quantitative results show the following. On LingBot-World-Fast, sliding-window inference reports 8 FPS, LPIPS 9, PSNR 0, SSIM 1, and FID 2. Full-KV reports 3 FPS, LPIPS 4, PSNR 5, SSIM 6, and FID 7. LingBot-Fast + WorldKV reports 8 FPS, LPIPS 9, PSNR 0, SSIM 1, and FID 2. On Matrix-Game-2.0, sliding-window inference reports 3 FPS, LPIPS 4, PSNR 5, SSIM 6, and FID 7. Full-KV reports 8 FPS, LPIPS 9, PSNR 0, SSIM 1, and FID 2. Matrix + WorldKV reports 3 FPS, LPIPS 4, PSNR 5, SSIM 6, and FID 7.
These numbers support two distinct conclusions stated in the paper. First, WorldKV matches or exceeds full-KV memory fidelity at roughly 8 throughput and outperforms sliding-window inference by large margins. Second, on the short-context Matrix model, full-KV actually hurts due to compounding errors, whereas selective retrieval avoids irrelevant KV caches. A common misconception is that simply attending to more historical tokens is always beneficial; the Matrix results provide an explicit counterexample.
Throughput measurements at the last chunk of a 1-minute rollout further emphasize the systems trade-off. For LingBot-Fast, sliding window is approximately 9 FPS on H200 and 00 on B200, full-KV is approximately 01 and 02, and WorldKV is approximately 03 and 04. For Matrix-Game-2.0 on H200, sliding window is approximately 05 FPS, full-KV approximately 06, and WorldKV approximately 07. The VRAM behavior is also contrasted: full-KV memory grows linearly to out-of-memory by approximately 60 seconds, whereas WorldKV with compression and CPU offload remains nearly flat.
6. Ablations, limitations, and prospective extensions
The ablation studies isolate both compression and retrieval effects. For intra-chunk compression, the paper compares 3-frame chunks compressed to effective sizes of 08, 09, 10, 11, and 12 frames retained. On LingBot, the 13 setting gives LPIPS 14, PSNR 15, SSIM 16, and FID 17, while 18 gives LPIPS 19, PSNR 20, SSIM 21, and FID 22. On Matrix, 23 gives LPIPS 24, PSNR 25, SSIM 26, and FID 27, while 28 gives LPIPS 29, PSNR 30, SSIM 31, and FID 32. The paper summarizes this as evidence that moderate compression, specifically 33 or 34, retains fidelity nearly equal to no compression (Yi et al., 21 May 2026).
For inter-chunk coverage under a fixed 3-chunk window, storing 6 chunks and retrieving 3 with compression outperforms storing 3 chunks and retrieving 3 without compression. On LingBot, the 35 configuration gives LPIPS 36, PSNR 37, SSIM 38, and FID 39, compared with LPIPS 40, PSNR 41, SSIM 42, and FID 43 for 44. On Matrix, 45 yields LPIPS 46, PSNR 47, SSIM 48, and FID 49, compared with LPIPS 50, PSNR 51, SSIM 52, and FID 53 for 54. By contrast, 55 is reported as too aggressive, with degraded fidelity on both models. This supports the paper’s claim that broader historical coverage helps, but over-compression discards too much.
The retrieval-algorithm ablation compares sliding-window inference, query-based retrieval, and camera-based retrieval. On LingBot, query-based retrieval reaches LPIPS 56, PSNR 57, SSIM 58, and FID 59, whereas camera-based retrieval reaches LPIPS 60, PSNR 61, SSIM 62, and FID 63. On Matrix, query-based retrieval gives LPIPS 64, PSNR 65, SSIM 66, and FID 67, while camera-based retrieval gives LPIPS 68, PSNR 69, SSIM 70, and FID 71. Both retrieval signals outperform sliding-window inference, with camera-action retrieval best.
The paper’s limitations are explicit. Fidelity is ultimately bounded by the pretrained backbone’s generation quality. On multi-minute rollouts beyond training lengths, autoregressive drift still accumulates. CPU offload latency currently prevents pure CPU storage in a real-time loop, and the paper identifies future work on asynchronous DSP transfers. Proposed directions include combining WorldKV with training-based memory modules, improving retrieval signals through learnable key-query encodings or cross-attention memory networks, optimizing host-device offloading latency through NVMe-GPU direct DMA and sparsity-aware caching, and extending the framework to open-world or RL-driven embodied agents where memory can be indexed by semantic queries. A plausible implication is that WorldKV is best understood not as a replacement for learned memory architectures, but as an inference-time systems layer that exploits the latent structure already present in KV caches.