We present SPARC, a geometry-guided attention pruning framework that turns the native self-attention of pretrained video diffusion transformers into a unified mechanism for camera control and persistent scene memory. Our key insight is that attention connectivity can simultaneously serve as geometric conditioning for camera control and spatial addressing for historical memory retrieval. Motivated by the asymmetric contextual requirements of reconstructing observed content and synthesizing novel regions, SPARC restricts observed tokens to geometrically corresponding historical tokens and local spatiotemporal context, while preserving dense attention for unobserved regions. Correspondence-aware attention biasing and order-invariant historical positioning further enable stable retrieval across long temporal gaps. Without introducing additional learnable control or memory modules, SPARC achieves precise camera adherence and faithful scene revisitation while substantially reducing attention computation. Extensive experiments demonstrate the effectiveness of aggressive attention pruning in improving camera adherence, revisit consistency, and visual fidelity, with an inference speedup of over 50x when combined with four-step distillation. Project page is available at https://zju3dv.github.io/SPARC.
Figures & tables
Figure 2: Redundancy of dense full self-attention. Most target regions have been observed in historical frames and require only sparse geometric correspondences for faithful reconstruction, while newly revealed regions benefit from broader contextual interactions.
Figure 3: System Overview. For each target chunk, SPARC establishes token-level correspondences with historical observations through local geometric projection, and then prunes the backbone’s native self-attention to focus on geometrically corresponding historical tokens and local spatiotemporal context for previously observed regions, while newly revealed regions retain dense attention for flexible content synthesis. Historical RoPE re-indexing is employed to eliminate artificial temporal ordering biases among retrieved historical observations. The generated observations are subsequently appended to the history bank for continuous rollout.
Figure 4: Qualitative comparison on DL3DV-Eval. Given the same input image and camera trajectory, we show frames generated with different methods along the roaming time. Explicit-3D baselines drift from the target trajectory or accumulate geometric distortions, and implicit baselines fail to follow the prescribed camera path, whereas SPARC preserves scene appearance and accurate camera control throughout the rollout. See Supp. for additional scenes and video comparisons.
Figure 5: Camera alignment. SPARC achieves the best camera alignment on DL3DV-Evaluation.
DL3DV-Evaluation
WorldScore-Static
Visual Quality
Camera Control
Generation Quality
Revisit (1st / 2nd)
Method
SSIM ↑
LPIPS ↓
FVD ↓
TransErr ↓
RotErr ↓
ATE ↓
Content Align. ↑
Photo. Cons. ↓
Style Cons. ↓
CLIP IQA ↑
CLIP Aes. ↑
SSIM ↑
LPIPS ↓
Lyra2 [ 32 ]
0.3141
0.5280
704.54
0.0065
0.0512
0.1964
29.23
0.1848
1.58
0.6018
5.1848
0.4239 / 0.3724
0.3049 / 0.4016
Spatia [ 57 ]
0.3106
0.5922
1049.21
0.0395
0.5061
1.3532
29.14
0.4160
1.60
0.5723
5.1017
0.4553 / 0.4279
0.2152 / 0.2682
HY-WorldStereo [ 56 ]
0.3333
0.6189
1319.87
0.0076
0.0616
0.3214
29.27
0.1594
3.12
0.4845
4.8492
0.4565 / 0.3879
0.4598 / 0.5599
UCM [ 45 ]
0.3103
0.6406
1291.43
0.0121
0.1378
0.3571
29.66
0.1745
3.16
0.6007
5.2311
0.5423 / 0.5011
0.2095 / 0.2841
Table 1: Quantitative comparison on DL3DV-Evaluation and WorldScore-Static. CLIP-IQA and CLIP-Aesthetic jointly measure subjective quality; Style Cons. is reported in units of 10−3 . Revisit metrics are reported as first / second revisit. SPARC (DMD) denotes our four-step distilled student. The best and second-best results are highlighted in bold and underline , respectively.
Figure 6: Qualitative comparison of revisitation on WorldScore-Static. Each scene follows a closed-loop camera trajectory (top view), and frames are sampled along the roaming time. Baselines either distort the scene or fail to recover the originally observed content upon revisiting, whereas our SPARC faithfully restores the scene at both revisits. See Supp. for additional scenes and video comparisons.
Variant
Hist. Corr.
Local Win.
Corr. Bias
Shared RoPE
PSNR ↑
SSIM ↑
LPIPS ↓
ATE ↓
Dense Attn. + Cam. Emb.
✗
✗
✗
✓
12.06
0.287
0.519
0.279
Dense Attn. + Corr. Bias.
✗
✗
✓
✓
16.01
0.414
0.274
0.039
Hist. Corr. Only
✓
✗
✗
✓
14.53
0.339
0.472
0.360
+ Local Window
✓
✓
✗
✓
15.36
0.407
0.295
0.041
+ Corr. Bias ( Ours )
✓
✓
✓
✓
16.80
0.473
0.232
0.018
Ours w/ Seq. RoPE
✓
✓
✓
✗
16.38
0.454
0.244
0.022
Table 2: Ablation on attention pruning. Geometric correspondence attention, local window attention, and correspondence bias provide complementary improvements in reconstruction fidelity, while shared historical RoPE further enhances generation quality.
Figure 7: Ablation on attention pruning and historical RoPE indexing. Progressively incorporating geometric correspondence, local window attention, and correspondence bias improves camera adherence and reconstruction fidelity. The bottom rows visualize the pixel-wise difference ∣Δ∣ between outputs generated using the original and shuffled history orders: sequential history RoPE yields discrepancies that grow along the trajectory, whereas our shared indexing remains invariant.
vs. GT (mean ± std)
vs. Original Order
History RoPE
PSNR ↑
SSIM ↑
LPIPS ↓
PSNR ↑
LPIPS ↓
Sequential
16.38 ± 0.02
0.455 ± 0.001
0.246 ± 0.002
26.67
0.051
Shared ( Ours )
16.79 ± 0.00
0.473 ± 0.000
0.232 ± 0.000
37.21
0.007
Table 3: Robustness to historical frame ordering. Compared with sequential RoPE, our shared historical RoPE reduces output variations under shuffled history order. Results are reported as mean ± standard deviation.
Figure 8: Attention weight visualization. Given target queries, dense attention with the camera adapter exhibits attention peaks that deviate from geometrically corresponding historical regions.
Figure 9: Additional long-horizon generation results. Without any degradation-aware augmentation, SPARC generates high-fidelity, minute-long videos with precise camera adherence and persistent scene consistency.
Token
TFLOPs
Per Chunk
Variant
Steps
CFG
Sparsity
/step
Time (s)
Speedup
Dense (Wan2.1)
50
✓
0 0.0%
4980 (2907)
2436.1
1.0 ×
Hist. Corr. Only
50
✓
98.1%
2129 (55)
903.6
2.7 ×
+ Local Win.
50
✓
86.7%
2461 (387)
1090.4
2.2 ×
+ DMD ( Ours )
0 4
✗
86.7%
1241 (194)
45.5
53.6 ×
Table 4: Computational efficiency. By combining attention pruning with 4-step distillation, SPARC achieves a 50 × inference speedup over the original dense backbone.
Figure 10: Training-free dynamic scene generation. We segment the foreground object and shift its correspondence locations along a prescribed motion trajectory, allowing SPARC to synthesize natural object motion consistent with the specified trajectory.
The quadratic computational complexity of self-attention mechanisms imposes a critical constraint on transformer-based video generation, particularly for synthesizing ultra-long and high-definition sequences. While most sparse attention techniques employ fixed or heuristic patterns, they often struggle to accommodate the heterogeneous and layer-specific redundancies inherent in video diffusion transformers (VDiTs). We find that different attention heads consistently concentrate most of their attention mass in different coarse query-key regions, a behavior we call functional specialization. Although individual attention values vary with the generated content, these regions remain similar across prompts and random seeds. Leveraging these insights, we introduce Compact Attention, a hardware-aware sparse attention framework for efficient long-video synthesis. We quantify this stability and use it to construct searchable, reusable, head-specific masks. Based on the observation, we propose a deformable dual-window sparse pattern mechanism that flexibly approximates local and axial attention regions within one tile-aligned mask family. To avoid manually choosing a mask for each head, we develop a recall-driven offline auto-search algorithm that identifies high-quality sparse masks while leveraging temporal stability for mask reuse. Extensive evaluations on Wan2.1 (14B) and Hunyuan-Video demonstrate that Compact Attention achieves 2.25x/3.03x attention speedups over FlashAttention-2 and 1.20x/1.74x over FlashAttention-3, respectively, while maintaining visual quality and temporal consistency comparable to full-attention baselines. Project Page: https://yo-ava.github.io/Compact-Attention.github.io/
Qirui Li, Guangcong Zheng, Qi Zhao +6
College of Computer Science & Technology, Zhejiang University · Huawei Technologies
Video diffusion models generate visually compelling short-term sequences but often struggle to preserve scene geometry and object structure over time. In this paper, we first demonstrate that current video attention cannot identify reliable correspondences across frames, with responses dispersed across multiple regions even after recognizable scene structure has emerged. We argue that reliable cross-frame associations are essential for information exchange as scene structure forms in video generation. Thus, we introduce Geometry Attention Distillation (GAD), which transfers correspondences from a frozen geometry model's attention to video attention. Extracted from clean videos, these correspondences link the same static surface or moving object across frames. Since structure formation begins in deeper layers at higher noise and shallower layers at lower noise, we apply attention distillation at a student layer selected according to the noise timestep. After training, video attention focuses more consistently on corresponding locations. Experiments across all three video backbones demonstrate improved long-range scene consistency and dynamic temporal consistency, with geometric gains across generation lengths. On Wan2.2 5B, GAD improves cross-frame matching accuracy by at least 30% over the Wan baseline on both long-range benchmarks. Notably, GAD achieves these gains without additional inference modules, offering a promising approach to efficient and consistent video-based world simulation. Project page: https://fantasy-amap.github.io/GAD/.
Junfeng Ni, Ziyu Zhu, Fan Jiang +7
Tsinghua University · AMAP, Alibaba Group · State Key Laboratory of General Artificial Intelligence, BIGAI
Diffusion Transformers have recently achieved strong performance in video generation, yet controlling scene geometry under viewpoint changes and camera motion remains challenging. In this work, we revisit the role of positional encoding in video diffusion transformers and show that it provides a useful spatial bias for geometry-aware control. Specifically, if reference tokens are encoded according to their projected locations in the target view, the denoising model is encouraged to retrieve content from position aligned regions of the input video. Building on this observation, we introduce a geometry-aware cross-attention mechanism that enables target video latent tokens to attend to structured context tokens derived from reference images or frames. To establish correspondence between the reference content and the target camera trajectory, we equip the context tokens with a projected positional encoding scheme that combines target-view 2D reprojection with depth-aware disambiguation. At the same time, we preserve the original spatiotemporal positional encoding of the generated video latent, allowing geometric guidance to be injected while maintaining consistency with the video model's native latent structure. The resulting framework provides a simple and effective approach for controllable video generation. It improves spatial controllability in viewpoint-dependent editing tasks, including camera re-trajectory, novel-view video synthesis, and geometry-aware video editing, while preserving the generative prior of the underlying video diffusion model. The code is available at: https://github.com/MTLab/PE-Field.
Yunpeng Bai, Haoxiang Li, Qixing Huang
University of Texas at Austin, USA · Pixocial Technology, USA