Commit-on-Reveal Attention: Keeping Newly Revealed Content Stable in Video Diffusion Transformers

When a camera moves or an object passes in front of a background, parts of the scene that were hidden become visible. This is called disocclusion. Video generators handle these moments badly. The newly revealed region has no earlier frame to copy from, so the model invents it. It then tends to re-invent it slightly differently in each following frame, or smear the occluder's color into it. The result is the flicker, texture swimming, and ghosting that viewers notice first. Person re-identification (matching the same person across camera views) already met a version of this problem and solved it with a simple rule: compare two images only on the parts visible in both, and never let features from an occluder leak into the target's description. We propose to apply that rule inside the attention layers of a video diffusion transformer. A video diffusion transformer is a video generator that denoises all frames jointly, with attention letting each image patch in one frame look up patches in other frames.

The core mechanism works in two steps, and it needs no retraining. First, we read the model's own cross-frame attention at the layers and denoising steps where it is known to encode correspondence. A patch that has no cycle-consistent match in the previous frame is marked as newly revealed. Second, we constrain attention with two edits. A revealed patch is blocked from attending to the occluder patches that covered its location a frame earlier. In later frames, the patches of that region are routed to attend to the frame where the region first appeared, which becomes the region's anchor. Invented content is still allowed, but it is invented once and then held fixed.

Core Claim

Flicker and smearing in disoccluded regions come from unrestricted cross-frame attention in two ways. Revealed patches borrow occluder features, and later frames of a revealed region have no fixed reference, so each frame resamples the invented content. A visibility mask computed from the model's own attention, which blocks borrowing and fixes the reference, should reduce inter-frame inconsistency specifically inside disoccluded regions. It should do so without the blur of post-hoc smoothing and without harming visible regions.

Position Relative to Prior Work

Three papers supply the method. Emergent Temporal Correspondences from Video Diffusion Transformers (DiffTrack) shows several things about CogVideoX-2B. Cross-frame correspondence lives in query-key similarity rather than hidden features. It is concentrated in a few layers (13, 17, 21). It is strongest at intermediate denoising steps and degrades late. Its Cross-Attention Guidance perturbs cross-frame attention uniformly across space to steer motion. We reuse its findings on where to read correspondence. We differ in that we apply spatially selective masks that depend on visibility, rather than uniform guidance.

Progressive Temporal Feature Alignment Network for Video Inpainting (TSAM) masks out features wherever optical flow fails a cycle-consistency check, so corrupted features are not aggregated. We move that validity test from external flow inside a ResNet into the diffusion model's attention space. TAP-Vid shows that a dedicated occlusion prediction keeps trackers from drifting onto background surfaces. We use its tracker and synthetic data to check our visibility estimates.

The re-identification literature motivates the design. Pose-Guided Feature Alignment for Occluded Person Re-Identification computes distances only over mutually visible regions. Rethinking Visibility in Human Pose Estimation shows that forcing a network to use occluded evidence builds false correlations with occluder appearance, and that down-weighting it helps: +1.3 AP with ResNet on MSCOCO. Our "block occluder" edit is the generative analogue of that down-weighting.

Other papers constrain the design. Beyond the Visible is the most direct attack on disocclusion in generated video, but it needs a human to supply the revealed content by editing a keyframe. Our anchor is chosen automatically, as the model's own first rendering of the region. Novel View Extrapolation with Video Diffusion Priors refines entire 3D Gaussian Splatting renders with a video diffusion model, without separating valid projected pixels from holes. Occlusion-Aware Video Object Inpainting gates generation to visible object parts but relies on 2D flow completion and simulated masks. Neither fixes invented content once it is revealed.

Research Program

The visibility estimate is a patch-level cycle test. At a diffusion step $\tau$ in the intermediate range DiffTrack identifies, let $A^{\ell}_{t\to t-1}$ be the query-key attention from frame $t$ to frame $t-1$ in dominant layer $\ell$. Let $\pi(p)$ be the most-attended patch in $t-1$ for patch $p$. Patch $p$ is marked revealed when

$$ v_t(p) = \mathbb{1}\big[\max_q A^{\ell}_{t\to t-1}(p,q) < \alpha \;\;\text{or}\;\; \|\pi^{-1}(\pi(p)) - p\| > \beta\big], $$

where $\pi^{-1}$ is the reverse most-attended match from $t-1$ back to $t$, and $\alpha,\beta$ are thresholds set once on synthetic data. Revealed patches are grouped into regions. Each region is assigned the frame $t_0$ where it first appeared.

For the remaining denoising steps, the temporal attention logits in all layers are edited in two ways. Revealed patches receive $-\infty$ on keys belonging to the occluder patches at their location in frame $t-1$. Patches in frames $t>t_0$ that the correspondence maps back into the region receive a positive bias $\gamma$ toward that region's tokens in frame $t_0$. The masks are recomputed every few steps so that errors made early can be corrected.

The study proceeds in three stages. The first validates the visibility estimate against ground-truth occlusion states on TAP-Vid-Kubric. We compare it to TAP-Net's occlusion prediction run on decoded intermediate frames. The second measures generation quality on prompts and image-conditioned inputs chosen to contain occlusion events: objects passing in front of textured backgrounds, people turning, and camera pans behind foreground structure. The third tests transfer to 3D render refinement. There, the holes are known geometrically, which lets us separate the value of good visibility estimates from the value of the attention edits themselves.

Baselines

The naive reference point is unmodified CogVideoX-2B with the same prompts, seeds, and sampler. Every other method is measured as a change from it.

The strongest training-free competitor is DiffTrack's Cross-Attention Guidance on the same backbone. It targets the same failure (temporal inconsistency) through the same object (cross-frame attention). It reports 87% human preference over baseline CogVideoX-2B on its 100 curated prompts. We will run it with the authors' layer choices and tune its guidance scale over the same grid size we allow for $\gamma$, $\alpha$, and $\beta$. Beating it means lower flicker inside revealed regions and at least parity on whole-video metrics and human preference. The human preference test is a direct head-to-head.

The strongest post-hoc competitor is blind temporal smoothing applied to the baseline output. We use Blind Video Temporal Consistency via Deep Video Prior (preferred 53.79% in its user study) and the recurrent filter of Learning Blind Video Temporal Consistency (62% preference). Both are run with their published settings. For Deep Video Prior we also report wall-clock time, because it trains per video. Beating them means comparable warping error with measurably higher sharpness in revealed regions.

The flow-based competitor detects revealed pixels with RAFT forward-backward consistency on decoded intermediate frames. It then uses the same two attention edits. This isolates whether self-derived visibility matters.

For 3D render refinement, we reimplement ViewExtrapolator's guidance and resampling annealing on our video diffusion transformer backbone so the comparison is fair. We also cite its reported LPIPS of 0.378 on LLFF-Extra, against 0.429 for raw 3D Gaussian Splatting. That figure uses Stable Video Diffusion, so it is a reference rather than a like-for-like number.

Ablations isolate the key ingredients. The first applies occluder blocking only. The second applies anchoring only. The third applies the same attention mass shift uniformly across space, which tests whether visibility selectivity matters at all. The fourth uses ground-truth or geometric visibility, which bounds the gain from better estimation.

Why not just…?

Why not just smooth the output afterward? Post-hoc filters cannot tell a revealed region from a visible one. Learning Blind Video Temporal Consistency reports a trade-off between stability and blur under severe flicker. Deep Video Prior shows that alternating texture modes get averaged into invalid colors unless its reweighted training is used. It also costs about 2 seconds per frame. Our metrics are restricted to revealed regions, so they will show whether smoothing buys stability by losing detail exactly where our method claims to help.

Why not just use optical flow to find holes and paste warped content elsewhere? Warping fills visible pixels well but carries no information into holes. View Synthesis by Appearance Flow documents stretching and voids at disocclusion boundaries, and TSAM needs cycle masks precisely because flow is unreliable there. This alternative is a real threat as a visibility detector, not as a generator. The flow-based baseline above uses flow visibility with our edits. If it matches self-derived visibility, we will report that the contribution is the edits and not the estimator.

Why not trust the transformer's global attention to learn this? DiffTrack finds that most layers carry static positional bias and that correspondence decays in late denoising. VBench-2.0 reports human anatomy scores as low as 13% for current generators. The unmodified baseline, and the uniform-shift ablation, directly test whether selectivity adds anything beyond what the model already does.

Proposed Experiments

On TAP-Vid-Kubric, we measure precision and recall of revealed-patch detection against ground-truth occlusion flags, alongside TAP-Net's prediction. TAP-Net reports an Average Jaccard of 46.6 on TAP-Vid-Kinetics. We found no reported result on Lacuna for disocclusion detection from diffusion attention. If precision falls below that of flow-based detection, the method switches to flow-derived masks, and the claim narrows to the attention edits.

For generation, we assemble about 200 occlusion-event prompts and image inputs. The primary metric is revealed-region stability. We track points seeded in each revealed region from $t_0$ onward with an external point tracker. We then compute warping error and color variance along those tracks, restricted to revealed masks. We report separately the same quantities on always-visible regions, where the method should do no harm. A sharpness measure inside revealed regions guards against gains that come from blurring. Whole-video quality is scored with the temporal flickering, motion smoothness, and subject consistency dimensions of VBench, which reports Spearman correlation above 0.9 with human judgment. We also run paired human preference studies against Cross-Attention Guidance and the smoothers. We found no reported result on Lacuna for any method on revealed-region stability, so all numbers on this metric will be new.

For 3D render refinement, we use LLFF-Extra LPIPS on the same backbone, with geometric hole masks versus attention-derived masks.

The decisive check is a comparison across three regions. The claim holds only if the full method lowers revealed-region warping error relative to both Cross-Attention Guidance and the uniform-shift ablation. Visible-region error and whole-video VBench scores must be unchanged or better, and revealed-region sharpness must stay at baseline level. If anchoring alone produces the whole gain, the paper becomes a study of write-once anchoring. If none of the edits beat uniform guidance, the visibility hypothesis is wrong for this model family.