跳到正文
arXiv (AI + Vision + Imaging)· Jiayu Chen, Jinye Hu, Maoliang Li, Anqian Cen, Hailong Zou, Zihao Zheng, Xinming Wei, Guojie Luo, Jie Zhang, Xuanzhe Liu, Xiang Chen·· 8 天前AI 评分38

DiT.XPU:在移动SoC上驯服DiT稀疏推理

dit.xpu : Taming DiT Sparse Inference on Mobile SoCs

AI 导读

DiT.XPU是面向异构移动SoC的稀疏DiT推理框架,结合tile对齐稀疏注意力与基于锚点的误差补偿,利用去噪步骤间缓慢变化的稠密-稀疏输出残差。它让NPU稠密注意力与GPU稀疏校准重叠执行,mask引导数据流将数据搬运与计算重叠,减少传输和布局转换。

正文 · 原文

arXiv:2611.19261v1 Announce Type: new 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org