           Sparse VideoGen: Accelerating Video Diffusion Transformers with
                             Spatial-Temporal Sparsity


        Haocheng Xi * Shuo Yang * Yilong Zhao Chenfeng Xu Muyang Li Xiuyu Li Yujun Lin Han Cai
                 Jintao Zhang Dacheng Li Jianfei Chen Ion Stoica Kurt Keutzer Song Han
                             https://github.com/svg-project/Sparse-VideoGen


                          Abstract                                                   CogVideoX-v1.5, 720p, 80 frames, Image-to-Video
                                                                                         Dense Attention (9 mins       ) VS Ours (4 mins      )




                                                                         Dense
      Diffusion Transformers (DiTs) dominate video
      generation but their high computational cost
      severely limits real-world applicability, usually re-

                                                                     PSNR=28.2
                                                                       Ours
      quiring tens of minutes to generate a few seconds
      of video even on high-performance GPUs. This
      inefficiency primarily arises from the quadratic
                                                                     PSNR=22.5
                                                                     MInference



      computational complexity of 3D full attention
      with respect to the context length. In this pa-
      per, we propose a training-free framework termed                            Prompt: "A beautiful woman in a blue sari posing in front of a wall"

      Sparse VideoGen (SVG) that leverages the inher-                                  HunyuanVideo, 720p, 128 frames, Text-to-Video
      ent sparsity in 3D full attention to boost inference                              Dense Attention (38 mins       ) VS Ours (16 mins         )

      efficiency. We reveal that the attention heads can
                                                                         Dense




      be dynamically classified into two groups depend-
      ing on distinct sparse patterns: (1) Spatial Head,
      where only spatially-related tokens within each
                                                                     PSNR=29.5




      frame dominate the attention output, and (2) Tem-
                                                                       Ours




      poral Head, where only temporally-related tokens
      across different frames dominate. Based on this
                                                                     PSNR=23.2
                                                                     MInference




      insight, SVG proposes an online profiling strat-
      egy to capture the dynamic sparse patterns and
      predicts the type of attention head. Combined                                      Prompt: "A woodpecker is pecking holes in the tree."
      with a novel hardware-efficient tensor layout
      transformation and customized kernel implemen-
      tations, SVG achieves up to 2.28× end-to-end                 Figure 1. SVG accelerates video generation while maintaining
                                                                   high quality. On CogVideoX-v1.5-I2V and Hunyuan-T2V, our
      speedup on CogVideoX-v1.5, 2.33× on Hunyuan-
                                                                   method achieves a 2.28× and 2.33× speedup with high PSNR.
      Video, while preserving generation quality. Our              In contrast, MInference (Jiang et al., 2024) fails to maintain pixel
      code is open-sourced at https://github.com/svg-              fidelity (significant blurring in the first example) and temporal
      project/Sparse-VideoGen.                                     coherence (inconsistencies in the tree trunk in the second example).


                                                                   1. Introduction
  *
   Equal contribution. University of California, Berkeley.         Diffusion Transformers (DiTs) (Peebles & Xie, 2023) have
NVIDIA. MIT. Correspondence to: Chenfeng Xu <xuchen-               recently emerged as a transformative paradigm for genera-
feng@berkeley.edu>.                                                tive tasks, achieving state-of-the-art results in image genera-
Proceedings of the 42 st International Conference on Machine       tion. This success has been naturally carried over to video
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025        generation, with models adapting from a spatial 2D attention
by the author(s).                                                  to a spatiotemporal 3D full attention (Arnab et al., 2021;

                                                               1
