SnapGen++: Unleashing Diffusion Transformers for Efficient High-Fidelity Image Generation on Edge Devices
Dongting Hu, Aarush Gupta, Magzhan Gabidolla, Arpit Sahni, Huseyin Coskun, Yanyu Li, Yerlan Idelbayev, Ahsan Mahmood, Aleksei Lebedev, Dishani Lahiri, Anujraaj Goyal, Ju Hu, Mingming Gong, Sergey Tulyakov, Anil Kag
TL;DR
This work addresses the challenge of deploying high-fidelity diffusion models on edge devices by introducing an Efficient Diffusion Transformer (DiT) with adaptive global-local sparse attention. It combines three pillars: a compact three-stage DiT architecture with Adaptive Sparse Self-Attention, an Elastic DiT framework enabling subnetworks of 0.3B, 0.4B, and 1.6B to share a single supernetwork, and a Knowledge-Guided Distribution Matching Distillation (K-DMD) pipeline that leverages few-step teachers for fast, high-quality generation. The approach yields strong on-device performance, achieving near server-level image quality at substantial runtime gains, including 4-step generation with competitive fidelity and real-time deployment feasibility on mobile hardware. These contributions pave the way for scalable, on-device diffusion with cross-device adaptability and minimal cloud dependence.
Abstract
Recent advances in diffusion transformers (DiTs) have set new standards in image generation, yet remain impractical for on-device deployment due to their high computational and memory costs. In this work, we present an efficient DiT framework tailored for mobile and edge devices that achieves transformer-level generation quality under strict resource constraints. Our design combines three key components. First, we propose a compact DiT architecture with an adaptive global-local sparse attention mechanism that balances global context modeling and local detail preservation. Second, we propose an elastic training framework that jointly optimizes sub-DiTs of varying capacities within a unified supernetwork, allowing a single model to dynamically adjust for efficient inference across different hardware. Finally, we develop Knowledge-Guided Distribution Matching Distillation, a step-distillation pipeline that integrates the DMD objective with knowledge transfer from few-step teacher models, producing high-fidelity and low-latency generation (e.g., 4-step) suitable for real-time on-device use. Together, these contributions enable scalable, efficient, and high-quality diffusion models for deployment on diverse hardware.
