EdgeDiT: Hardware-Aware Diffusion Transformers for Efficient On-Device Image Generation
Organizations: Samsung Research Institute Bangalore, India
Abstract
Diffusion Transformers (DiT) have established a new state-of-the-art in high-fidelity image synthesis; however, their massive computational complexity and memory requirements hinder local deployment on resource-constrained edge devices. In this paper, we introduce EdgeDiT, a family of hardware-efficient generative transformers specifically engineered for mobile Neural Processing Units (NPUs), such as the Qualcomm Hexagon and Apple Neural Engine (ANE). By leveraging a hardware-aware optimization framework, we systematically identify and prune structural redundancies within the DiT backbone that are particularly taxing for mobile data-flows. Our approach yields a series of lightweight models that achieve a 20-30% reduction in parameters, a 36-46% decrease in FLOPs, and a 1.65-fold reduction in on-device latency without sacrificing the scaling advantages or the expressive capacity of the original transformer architecture. Extensive benchmarking demonstrates that EdgeDiT offers a superior Pareto-optimal trade-off between Frechet Inception Distance (FID) and inference latency compared to both optimized mobile U-Nets and vanilla DiT variants. By enabling responsive, private, and offline generative AI directly on-device, EdgeDiT provides a scalable blueprint for transitioning large-scale foundation models from high-end GPUs to the palm of the user.
Figures & tables
| Class Conditioned ImageNet | |||||||
| Model | Params (M) | CFG | FID - 50K | SFID | IS | Precision | Recall |
| DiT - XL/2 [ 9 ] | 675 | 4 | 16.23 | 11.06 | 80.91 | 0.93 | 0.26 |
| EdgeDiT 1 | 471 | 4 | 12.3 | 13.97 | 75.72 | 0.92 | 0.24 |
| EdgeDiT 6 | 530 | 4 | 12.4 | 14.96 | 78 | 0.91 | 0.25 |
| Model | Image Size: | Image Size: | ||||
|---|---|---|---|---|---|---|
| Params (M) | GMACs | GFlops | Params (M) | GMACs | GFlops | |
| DiT S/2 | 32.96 | 6.06 | 12.13 | 33.26 | 31.44 | 62.93 |
| DiT B/2 | 130.51 | 23.01 | 46.04 | 131.10 | 106.38 | 212.88 |
| DiT L/2 | 458.10 | 80.70 | 161.47 | 458.89 | 360.98 | 722.27 |
| DiT XL /2 | 675.13 | 118.62 | 237.34 | 676.01 | 524.54 | 1050.00 |
| EdgeDiT 1 | 470.65 | 71.94 | 143.96 | 470.76 | 311.29 | 560.01 |
| Model | Image Size: | Image Size: | ||
|---|---|---|---|---|
| iPhone Latency | Samsung Latency | iPhone Latency | Samsung Latency | |
| DiT S/2 | 6.63 | 8.35 | 93.31 | 52 |
| DiT B/2 | 19.55 | 24.45 | 286.58 | 115.95 |
| DiT L/2 | 68.99 | 85.00 | 790.26 | 376.08 |
| DiT XL /2 | 118.56 | 129.00 | 1098.92 | 553.13 |
| EdgeDiT 1 | 70.86 | 86.13 | 804.81 | 379.22 |
Diffusion Transformer
Diffusion Transformers use attention-based networks to generate and transform images, video, audio, and other structured data through iterative denoising.
See all 452 papers