Policy Forcing: Learning KV Cache Masking Policy for AR Video Generation

Jaa-Yeon Lee, Jong Chul YearXiv 2026

TL;DR

Autoregressive video diffusion models generate long videos chunk by chunk, relying on a key–value (KV) cache of past frames to stay consistent. Policy Forcing replaces rigid, rule-based cache retention with a lightweight reinforcement learning (RL) policy that selectively hides cached frames at each denoising step—while keeping the video generator completely frozen. The result is sharper, more dynamic minute-long videos, smoother prompt transitions, and a policy that transfers to other generators without retraining.

What Problem Does This Paper Address?

Generating a minute-long video with an autoregressive (AR) diffusion model is a bit like playing a game of telephone. Each new chunk of frames attends to a KV cache of previously generated frames. If a small visual artifact creeps in, it gets cached and amplified over time—a phenomenon known as drift. Worse, if the text prompt changes mid-video (multi-prompt generation), cached frames from the old prompt can actively fight against the new one.

Existing solutions use fixed, hand-crafted rules (like attention sinks, sliding windows, or evolving memory tokens such as MemRoPE) to decide what stays in the cache. But these rules treat every denoising step the same way and can't tell useful history from conflicting history. In reality, diffusion models establish coarse layout and motion early in denoising, and refine fine details later. Exposing the exact same cached frames at every step either restricts dynamic motion or lets errors propagate.

Rule-based cache vs. Policy Forcing

Methods

Instead of fine-tuning the massive video generator, the authors train a lightweight cache masking policy ($\pi_\theta$) that sits in front of a frozen generator (specifically, Self Forcing built on Wan2.1-T2V-1.3B with a 9-frame MemRoPE bounded cache). Before generating each chunk, the policy decides which cached frames to mask out at each of the $D=4$ denoising steps.

Why not just predict the whole mask at once? If you sample a full mask in one shot and score the resulting video with a reward model, you hit a classic credit-assignment problem: cached frames are redundant and interdependent. Dropping frame A alone might do nothing, while dropping A and B together might ruin the video. A single video-level reward can't tell you which drop mattered.

Sequential MDP + Counterfactual Groups: The authors formulate mask construction as a Markov Decision Process (MDP):

  • Starting from the full cache, the policy sequentially drops one (denoising step, cache frame) pair at a time until it selects STOP.
  • At each step, it samples a counterfactual group of candidate drops (plus STOP) from the same KV cache and same generation noise. Comparing each candidate against STOP isolates the exact quality change caused by that single drop.
  • The policy is trained with PPO, using a learned value function $V_\phi$ (trained via TD learning) to bootstrap the remaining return, and a reward combining VideoAlign (visual quality, motion quality, text alignment) with a temporal-quality term that penalizes chunk-boundary flicker.
  • For multi-prompt generation, a separate multi-prompt policy is trained and composed with the long-video policy at inference simply by summing their logits for the two chunks following a prompt switch.

Datasets

  • Training:
  • Long-video policy: 4,096 prompts from VidProM.
  • Multi-prompt policy: Two-prompt sequences from SVI (Stable Video Infinity).
  • Evaluation:
  • Long video generation: 128 refined MovieGenBench prompts (60-second videos).
  • Multi-prompt generation: 100 six-prompt sequences from MemFlow (60-second videos, prompt switching every ~10 seconds).

Key Insights and Ideas

  • The mask follows the motion of the prompt: For high-motion prompts (e.g., "a pink pig running fast"), the policy drops sink and memory frames at early denoising steps—freeing the model to generate dynamic layout and motion. For low-motion prompts (e.g., "reading an old leather-bound book"), it keeps them and drops mostly recent frames. Across all prompts, dynamic degree strongly correlates with sink drops (Spearman $\rho = 0.66, p < 10^{-12}$).
  • Prompt switches trigger a cache purge: Right after a prompt switch, the composed policy drops roughly 3.6× as many cache entries—specifically hiding memory frames that hold onto the old prompt—before returning to normal levels.
  • Sequential MDP prevents mask collapse: Ablating the sequential MDP (using one-shot GRPO or counterfactual GRPO) causes the policy to collapse to a nearly fixed, generator-specific mask (mask entropy drops from 8.38 bits to 4.62 and 3.98 bits, respectively) that fails to transfer to other models.

Key Results

  • Long Video Generation (60s): On Self Forcing + MemRoPE, Policy Forcing is the only method that increases motion (Dynamic Degree: 59.27 vs. 56.54 for MemRoPE) without sacrificing consistency. It achieves the best subject consistency (96.86), background consistency (96.10), motion smoothness (98.25), and imaging quality (69.28), while keeping flicker below 1 event per video (0.56).
  • Zero-Shot Transfer: Trained only on Self Forcing, the policy transfers without retraining to four other generators (CausVid, Causal Forcing, RAVEN, and RAVEN*), consistently improving subject consistency, motion smoothness, and imaging quality over MemRoPE.
  • Multi-Prompt Generation: Composing the long-video and multi-prompt policies achieves the best post-switch text alignment (ViCLIP) and highest aesthetic/imaging quality across all five generators, while reducing flicker and spike events compared to the original caches.
Long video and multi-prompt generation qualitative results

Limitations and Future Work

  • Tied to the underlying cache-writing rule: Because the policy only learns what to drop from an existing bounded cache (MemRoPE), changing how the cache is written requires retraining the policy.
  • Future directions: Learning how to write and read the KV cache jointly within a single policy, and studying why different denoising steps rely on different parts of the cache to inform better cache architectures.

Summary updated

BibTeX
@misc{lee2026policy,
  author = {Jaa-Yeon Lee and Jong Chul Ye},
  title = {{Policy Forcing: Learning KV Cache Masking Policy for AR Video Generation}},
  year = {2026},
  eprint = {2612.03240},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.03240},
}
Figure