NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Content-Aware Dynamic Patchification for Efficient Video Diffusion

Sheng Li, Connelly Barnes, Mamshad Nayeem Rizve, Hongwu Peng, Zhengang Li, Ohi Dibua, Alireza Ganjdanesh, Xulong Tang, Yan Kang, Yifan GongCVPR 2026

TL;DR

Video Diffusion Transformers (DiTs) are notoriously compute-heavy due to dense, uniform spatiotemporal tokenization. DynaPatch introduces a lightweight, trainable router that adaptively varies patch sizes based on local visual complexity, delivering a 1.3–1.8× speedup with virtually no drop in video generation quality.

What Problem Does This Paper Address?

While Diffusion Transformers (DiTs) excel at generating high-fidelity videos, their computational cost scales quadratically with the number of tokens. Standard architectures rely on uniform patchification, dividing video latents into fixed-size spatiotemporal blocks regardless of what is happening in the scene.

This content-agnostic approach wastes massive amounts of compute. A static background or a smooth, textureless sky receives the exact same token density as a highly detailed, fast-moving subject. While prior works have attempted to prune or merge tokens after they are created, or adjust patch sizes globally across entire frames or timesteps, they fail to exploit the fine-grained spatial and temporal variations inherent in real-world video content.

Methods

DynaPatch introduces a content-aware dynamic patchification framework that operates directly on the latent representations produced by a 3D Variational Autoencoder (VAE).

Figure 2. Overall workflow of our DynaPatch design during inference. Each small square in the latent representation indicates a (1, 2, 2) latent patch, which is the by-default patch size in baseline model.

The core components include:

  • Lightweight Router: A three-layer MLP (hidden dimension of 1024) that processes noisy latents and outputs a discrete patch-size choice for each spatiotemporal region. The candidate patch sizes are $(1, 2, 2)$, $(2, 2, 2)$, and $(1, 4, 4)$ (representing temporal, height, and width dimensions).
  • Learnable Patchify/Unpatchify Layers: Single-layer linear blocks mapped to each patch size. They seamlessly convert latents into token embeddings before DiT processing and reconstruct them back to full resolution afterward, requiring no architectural changes to the underlying DiT backbone.
  • Positional Embedding Averaging: To maintain spatial-temporal relationships across varying token granularities, the positional encodings for coarser patches are derived by averaging the encodings of their constituent fine-grained patches.

Joint Optimization

To ensure the router makes decisions that benefit the generation process, it is trained end-to-end with the diffusion model using a three-part loss function:

  1. Diffusion Denoising Loss: Passed through a Straight-Through Gumbel-Softmax estimator to allow gradients to flow back through the discrete routing decisions.
  2. Attention-Guided Saliency Alignment Loss: Aligns the router's decisions with the DiT's internal attention maps (selected via a data-driven layer-head strategy), ensuring complex foregrounds receive finer patches.
  3. Token-Budget Regularizer: A differentiable loss that softly enforces a target token reduction rate, giving the router the flexibility to distribute tokens based on content complexity.

Datasets

  • Training: An internal Adobe video-text dataset containing 19 million video-text pairs.
  • Evaluation: The standardized VBench benchmark for video generation quality.
  • Backbone Models: The framework was integrated and evaluated on both an internal 2B-parameter Adobe video diffusion model and the public Wan2.1 model.

Key Insights and Ideas

  • Implicit Timestep Awareness: The router does not need explicit timestep embeddings. Because it operates directly on the noisy latents, it naturally senses the noise level, choosing coarser patches during early, highly noisy denoising stages and shifting to finer patches as details emerge.
Figure 3. Token reduction rate across denoising steps. Results are averaged over sampled videos.
  • Generative Feedback vs. Heuristics: Unlike prior methods (such as $D^2iT$) that rely on static image-space entropy to determine patch sizes, DynaPatch uses the actual diffusion loss and internal attention maps. This ensures compute is allocated based on generative importance rather than simple pixel variance.
  • Soft Budgeting for Stability: Enforcing a hard token count can destabilize training. By using a soft, differentiable budget constraint, the model dynamically balances token counts across the entire batch, adapting fluidly to varying video complexities.

Key Results

DynaPatch demonstrates a superior Pareto frontier between computational efficiency and video quality compared to existing token reduction methods like FlexiDiT, $D^2iT$, and SPViT.

  • Efficiency Gains: Achieves a 1.3× to 1.8× speedup depending on the targeted token budget.
  • High Fidelity Retention: At a 30% token reduction rate, DynaPatch achieves a VBench Total Score of 83.42 (nearly identical to the baseline's 83.61) while delivering a 1.5× speedup.
  • Dynamic Motion Tracking: Qualitative visualizations show that the router accurately tracks motion over time, dynamically shifting fine-grained patches to follow moving subjects across frames.
Figure 6. Visualization of the generative results given by baseline model and our DynaPatch framework, and the corresponding patchi- fication results. The purple blocks indicate (1, 2, 2) patch size, the deep blue blocks indicate (2, 2, 2) patch size, and the orange blocks indicate the (1, 4, 4) patch size.

Limitations and Future Work

  • Bounded Decision Space: The authors limited the patch choices to three sizes. Incorporating even larger patch sizes (e.g., $(2, 8, 8)$) tended to degrade temporal consistency and introduce visual artifacts.
  • High-Noise Attention Chaos: At very early denoising timesteps ($t > 500$), the latent space is too noisy to produce stable attention maps. Consequently, the attention guidance loss must be disabled during these phases to prevent misleading the router.
  • Future Directions: Scaling this dynamic patchification approach to even larger open-source video models and exploring more complex spatiotemporal patch geometries.

Summary updated

BibTeX
@inproceedings{li2026content,
  author = {Sheng Li and Connelly Barnes and Mamshad Nayeem Rizve and Hongwu Peng and Zhengang Li and Ohi Dibua and Alireza Ganjdanesh and Xulong Tang and Yan Kang and Yifan Gong},
  title = {{Content-Aware Dynamic Patchification for Efficient Video Diffusion}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=B5RU3MEWOb},
}
Figure