EdgeFusion: On-Device Text-to-Image Generation
Thibault Castells, Hyoung-Kyu Song, Tairen Piao, Shinkook Choi, Bo-Kyeong Kim, Hanyoung Yim, Changgwun Lee, Jae Gon Kim, Tae-Ho Kim
TL;DR
EdgeFusion tackles the practical barrier of deploying diffusion-based T2I on edge hardware by combining a compact BK-SDM backbone with an advanced LCM distillation workflow and high-quality, AI-generated training data. The approach includes a teacher-guided BK-SDM-Adv-Tiny initialization, staged data enhancement (from LAION preprocessing to fully synthetic and curated datasets), and edge-centric deployment techniques such as model-level tiling and mixed-precision quantization. Results show significant gains in image-text alignment and image quality, with EdgeFusion achieving near-parity with the original tiny SD model while delivering two-step or four-step generation in under one second on Samsung Exynos NPUs, and substantial speedups on GPUs. The work demonstrates the importance of high-quality synthetic data and deployment-aware optimizations for practical, on-device text-to-image synthesis, enabling realistic, real-time T2I on resource-constrained devices.
Abstract
The intensive computational burden of Stable Diffusion (SD) for text-to-image generation poses a significant hurdle for its practical application. To tackle this challenge, recent research focuses on methods to reduce sampling steps, such as Latent Consistency Model (LCM), and on employing architectural optimizations, including pruning and knowledge distillation. Diverging from existing approaches, we uniquely start with a compact SD variant, BK-SDM. We observe that directly applying LCM to BK-SDM with commonly used crawled datasets yields unsatisfactory results. It leads us to develop two strategies: (1) leveraging high-quality image-text pairs from leading generative models and (2) designing an advanced distillation process tailored for LCM. Through our thorough exploration of quantization, profiling, and on-device deployment, we achieve rapid generation of photo-realistic, text-aligned images in just two steps, with latency under one second on resource-limited edge devices.
