Taming Diffusion Transformer for Efficient Mobile Video Generation in Seconds

Yushu Wu, Yanyu Li, Anil Kag, Ivan Skorokhodov, Willi Menapace, Ke Ma, Arpit Sahni, Ju Hu, Aliaksandr Siarohin, Dhritiman Sagar, Yanzhi Wang, Sergey Tulyakov

TL;DR

This paper introduces a comprehensive optimization framework that makes high-quality, on-device video generation a reality for smartphones. By combining a high-compression VAE, a knowledge-distillation-guided tri-level pruning strategy, 4-step adversarial distillation, and a memory-friendly tiled GEMM operator, the authors successfully deploy a Diffusion Transformer (DiT) on an iPhone 16 Pro Max, achieving a generation speed of approximately 15 frames per second (FPS).

What Problem Does This Paper Address?

While Diffusion Transformers (DiTs) have set new benchmarks for generating visually stunning and temporally coherent videos, their massive computational footprint makes them notoriously difficult to deploy. The core issue lies in their self-attention mechanism, which scales quadratically with the number of video tokens.

On resource-constrained mobile platforms, this high computational and memory overhead translates to prohibitive latency and battery drain. While previous work has accelerated simpler UNet-based architectures or focused on desktop-class GPUs, achieving practical, high-quality, on-device video generation using DiTs on a smartphone has remained an elusive goal.

Methods

The authors tackle the mobile deployment challenge through a four-pronged optimization pipeline:

  1. High-Compression Video VAE: To mitigate the quadratic scaling of the transformer, the authors use a highly compressed Variational Autoencoder (VAE) with an $8 \times 32 \times 32$ compression factor. This drastically reduces the initial token count fed into the DiT.
  2. KD-Guided Tri-Level Pruning: Training a lightweight mobile DiT from scratch yields poor results. Instead, the authors start with a large, well-trained 2B parameter "supernet" and prune it across three granularities: entire blocks, attention heads, and feed-forward network (FFN) dimensions. To preserve performance, they employ Knowledge Distillation (KD) using a trainable affine transformation to align the differing feature widths of the student and teacher models.
  3. Adversarial Step Distillation: To bypass the need for many denoising steps and slow Classifier-Free Guidance (CFG), they design a novel discriminator head tailored for DiTs. It inherits the first $K$ frozen blocks of the pretrained generator as a feature parser, enabling high-quality video generation in just 4 steps.
  4. Operator Optimization (Tiled GEMM): Recognizing that large matrix multiplications (GEMMs) in the FFN layers create a severe memory bandwidth bottleneck on mobile chips, the authors introduce an operator-level tiled GEMM strategy. This splits the weight matrices into cache-friendly chunks, accelerating inference without requiring low-level kernel modifications in closed-source compilers like Apple's CoreML.
Figure 2: Overview of proposed KD-Guided Tri-Level Pruning and new discriminator head. The tri-level pruning scheme operates across three levels of granularity, the block, attention-head, and feed-forward network dimension, ranging from coarse to fine. This design enables flexible, efficient, and stable model compression. Additionally, the proposed discriminator adopts standard DiT blocks with a MLP classifier head, improved condition alignment for adversarial training.

Datasets

The models were trained on a large, curated internal dataset containing high-quality images and videos (processed into 49-frame clips at 24 FPS). For evaluation, the authors utilized:

  • VBench: A comprehensive benchmark suite for video generative models to evaluate quality, semantic alignment, and temporal consistency.
  • DAVIS: Used specifically to measure the reconstruction Peak Signal-to-Noise Ratio (PSNR) of the high-compression VAE variants.

Key Insights and Ideas

  • Pruning Beats Scratch Training: A key "aha" moment was discovering that a compact model pruned from a larger, capable teacher significantly outperforms an identical architecture trained entirely from scratch.
  • Asymmetric Component Sensitivity: Through rigorous sensitivity analysis, the authors found that the FFN dimension contributes much more heavily to final video quality than individual attention heads. This allowed them to prune attention heads aggressively while remaining conservative with the FFN dimensions to maximize efficiency gains with minimal quality loss.
Figure 3: Sensitivity Analysis of DiT Components. The sensitivity analysis is conducted by pro- gressively pruning DiT blocks, attention-heads and feed-forward network (FFN) dimension. For each setting, we benchmark FLOPs, memory usage, inference speed, and VBench score to assess the impact of each component on model efficiency and performance.
  • The VAE Sweet Spot: While aggressive compression typically degrades video details, the $8 \times 32 \times 32$ VAE configuration hit a perfect Pareto frontier—providing massive token reduction and speedups while maintaining enough structural integrity for the DiT to generate clean videos.

Key Results

  • Hardware Performance: The optimized mobile model ("Ours-Mobile") was shrunk to 915M parameters. It generates a 49-frame video ($384 \times 512$ resolution) in just 3,021 ms on an iPhone 16 Pro Max, translating to an interactive speed of ~15 FPS.
  • Quality Benchmarks: On the VBench benchmark, Ours-Mobile achieved a total score of 81.45, outperforming several much larger, unpruned open-source baselines, including OpenSora-1.2 (79.76) and LTX-Video (80.00), despite running under strict mobile constraints.

Limitations and Future Work

Despite the impressive speedups, the authors note that the highly compressed latent space and aggressive model pruning can occasionally lead to a degradation of fine-grained details. This is particularly noticeable in complex texture scenes or during periods of very fast motion. Furthermore, because the model relies on a proprietary internal dataset for training, direct community replication remains a challenge. Future work will likely focus on recovering these fine details without sacrificing the hard-won on-device frame rates.

Summary updated

BibTeX
@misc{wu2025taming,
  author = {Yushu Wu and Yanyu Li and Anil Kag and Ivan Skorokhodov and Willi Menapace and Ke Ma and Arpit Sahni and Ju Hu and Aliaksandr Siarohin and Dhritiman Sagar and Yanzhi Wang and Sergey Tulyakov},
  title = {{Taming Diffusion Transformer for Efficient Mobile Video Generation in Seconds}},
  year = {2025},
  eprint = {2507.13343},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.13343},
}
Figure