dit.xpu : Taming DiT Sparse Inference on Mobile SoCs
Jiayu Chen, Jinye Hu, Maoliang Li, Anqian Cen, Hailong Zou, Zihao Zheng, Xinming Wei, Guojie Luo, Jie Zhang, Xuanzhe Liu, Xiang Chen
Abstract
Diffusion Transformers (DiTs) enable on-device image generation and editing but incur high attention costs at high resolutions. Existing sparse attention reduces computation, yet dynamic sparsity introduces preprocessing and irregular data accesses that poorly fit mobile NPUs. We present DiT.XPU, a sparse DiT inference framework for heterogeneous mobile SoCs. DiT.XPU combines tile-aligned sparse attention with anchor-based error compensation by exploiting slowly varying dense-sparse output residuals across denoising steps. Heterogeneous XPU collaboration overlaps NPU dense attention with GPU sparse calibration, while mask-guided dataflow reduces data transfers and layout conversion by overlapping data movement with computation. Across five DiT models on two Snapdragon smartphones, DiT.XPU achieves up to 1.56x end-to-end denoising speedup over the Hexagon-NPU backend and 11.5x attention-kernel speedup over the fastest alternative, while preserving generation quality close to dense attention. Code is available at https://github.com/IF-LAB-PKU/dit.xpu.
Create a lesson
Related papers
Tornado4D: Physics-Guided 4D Gaussian Reconstruction of a Laboratory Tornado from Sparse One-Sided Videos
Shared title terminologycs.CVYucheng Zhu, Maria J. Molina, Christopher Metzler
Enhancing Sparse-View Gaussian Splatting with Feed-Forward Priors via Spectral Fusion and Distillation
Shared title terminologycs.CVWeikai Lin, Jun Dai, Sheng Zhao et al.
XFreq: Geometry-Aligned Cross-View Residual Learning for Sparse 3D Ultrasound Reconstruction
Shared title terminologycs.CVYuhuan Lu, P. Ellen Grant, Davood Karimi
Reconstructing 3D+t Cardiovascular Flow From Sparse Planar Velocity Fields With Neural Fields
Shared title terminologycs.CVViraj Patel, Deblina Bhattacharjee, Katharine Fraser
Sparse Attention for Visual Generation: Toward Algorithm-System Co-Design
Shared title terminologycs.CVMajun Zhang, Yuan Guo, Decheng Wu et al.
QASK-Edit: Adaptive Sparse Attention Across Queries and Key Sources for Efficient Video Editing
Shared title terminologycs.CVHengrui Liu, Wenbo Xu, Ziqi Sheng et al.