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

PipeDiT: Accelerating Diffusion Transformers in Video Generation with Task Pipelining and Model Decoupling

Sijie Wang, Qiang Wang, Shaohuai Shi

Abstract

Video generation has been advancing rapidly, and diffusion transformer (DiT) based models have demonstrated remarkable capabilities. However, their practical deployment is often hindered by slow inference speeds and high memory consumption. In this paper, we propose a novel pipelining framework named PipeDiT to accelerate video generation, which is equipped with three main innovations. First, we design a pipelining algorithm (PipeSP) for sequence parallelism (SP) to enable the computation of latent generation and communication among multiple GPUs to be pipelined, thus reducing the inference latency. Second, we propose DeDiVAE to decouple the diffusion module and the VAE module into two GPU groups whose executions can also be pipelined to reduce the memory consumption and inference latency. Third, to better utilize the GPU resources in the VAE group, we propose an attention co-processing (Aco) method to further reduce the overall video generation latency. We integrate our PipeDiT into both OpenSoraPlan and HunyuanVideo, two state-of-the-art open-source video generation frameworks, and conduct extensive experiments on two 8-GPU systems. Experimental results show that, under many common resolution and timestep configurations, our PipeDiT achieves 1.06× to 4.02× speedups over OpenSoraPlan and HunyuanVideo.

Introduction

Generating high-quality video with Diffusion Transformers (DiT), such as Sora or HunyuanVideo, is a computationally intensive task that faces significant deployment hurdles. Two primary bottlenecks currently limit real-world performance:

  1. Sequential Denoising and Communication Latency: The iterative nature of diffusion processes requires multiple denoising steps. In distributed settings, standard Sequence Parallelism (SP) often results in GPUs remaining idle while waiting for inter-node communication (e.g., "All-to-All") to complete before proceeding to the next computation block.
  2. Memory Constraints of VAE Decoders: The Variational Autoencoder (VAE) decoder, responsible for transforming compressed latents into high-resolution video frames, is extremely memory-intensive. On standard hardware, this often leads to Out-of-Memory (OOM) errors, necessitating slow CPU "offloading" that severely degrades throughput.

PipeDiT addresses these challenges through a "triple threat" of optimizations designed to maximize GPU utilization and minimize end-to-end latency.

Methods

PipeDiT introduces three core innovations: PipeSP, DeDiVAE, and Aco.

PipeSP: Pipelined Sequence Parallelism

Standard sequence parallelism techniques, such as DeepSpeed-Ulysses, typically execute computation and communication sequentially: a GPU computes all its assigned attention heads and then initiates an All-to-All communication. PipeSP optimizes this by breaking the process into smaller units. It computes a single attention head and immediately triggers its corresponding communication while simultaneously starting the computation for the next head. This overlapping strategy effectively hides communication latency behind computation.

Comparison of standard Sequence Parallelism (a) and the proposed PipeSP (b), highlighting the overlap of communication and computation.

To maintain mathematical correctness, PipeDiT employs a specific "view-permute-view" transformation sequence. This ensures that the pipelined output remains identical to the original sequential output, preventing any degradation in generation quality.

DeDiVAE and Attention Co-processing (Aco)

Rather than running the DiT and VAE modules sequentially across all available GPUs, PipeDiT proposes DeDiVAE (Diffusion-VAE Decoupling). This method partitions the GPU cluster into two specialized groups: a Denoising Group and a Decoding Group. This separation allows for a macro-pipeline where the Denoising group can begin processing a new prompt while the Decoding group finishes the VAE stage of the previous one.

To further optimize resource usage, PipeDiT introduces Attention Co-processing (Aco). In a standard pipeline, the Decoding Group would remain idle during the initial denoising steps of the first prompt. Aco allows these GPUs to "lend" their compute power to the Denoising Group during these idle periods, assisting with linear projections and attention kernels.

The overall workflow of PipeDiT, illustrating the decoupling of denoising and decoding groups and the Aco mechanism for maximizing GPU utilization.

Experimental Evaluation

The framework was evaluated using two state-of-the-art open-source video generation models: OpenSoraPlan (2B parameters) and HunyuanVideo (13B parameters). Tests were conducted on 8-GPU NVIDIA RTX A6000 and L40 systems across various resolutions (up to $1024 \\times 576$) and frame counts (up to 129 frames).

Key Results

  • Significant Speedups: PipeDiT achieved speedups ranging from 1.06× to 4.02× compared to baseline implementations. The gains are particularly pronounced in high-resolution scenarios where communication overhead is high.
  • Enhanced Memory Efficiency: DeDiVAE significantly reduced peak VRAM usage. In HunyuanVideo, it enabled high-resolution generation on 48GB GPUs that previously suffered from OOM errors.
  • Improved Throughput: The pipelining effect of DeDiVAE drastically increases the number of videos generated per hour under continuous workload conditions.

Conclusion

PipeDiT demonstrates that task pipelining and model decoupling are highly effective strategies for accelerating DiT-based video generation. By overlapping communication with computation and specializing GPU roles, the framework achieves substantial performance gains while remaining hardware-agnostic. Future work will explore dynamic GPU partitioning and scaling these strategies to even larger model clusters.

Summary updated

BibTeX
@inproceedings{wang2026pipedit,
  author = {Sijie Wang and Qiang Wang and Shaohuai Shi},
  title = {{PipeDiT: Accelerating Diffusion Transformers in Video Generation with Task Pipelining and Model Decoupling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i12.37976},
}
Figure