Efficient and Adaptive Diffusion Model Inference Through Lookup Table on Mobile Devices
Diffusion models have revolutionized image synthesis applications. Many studies focus on using approximate computation such as model quantization to reduce inference costs on mobile devices. However, due to their extensive model parameters and autoregressive inference fashion, the overhead of diffusion models remains high, which is challenging for mobile devices to handle. To reduce the inference overhead of diffusion models on mobile devices, we propose <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">LUT-Diff</monospace>, an algorithm-system co-design specifically tailored for mobile device diffusion model inference optimization. <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">LUT-Diff</monospace> optimizes using lookup tables and can efficiently generate a series of lookup table candidates for diffusion models without end-to-end training. During inference, <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">LUT-Diff</monospace> adaptively selects the best inference strategy based on the application/user's latency budget. Additionally, <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">LUT-Diff</monospace> includes a parallel inference engine that rapidly completes model inference through CPU-GPU co-scheduling. Extensive experiments demonstrate that <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">LUT-Diff</monospace> can generate images comparable to the original model, with an up to 0.012 MSE in generated images. <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">LUT-Diff</monospace> can also achieve up to 9.1× inference acceleration and reduce the inference memory footprint by up to 70.9% compared to baseline methods. Moreover, <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">LUT-Diff</monospace> can save at least 3281× the learning cost of lookup tables.
Authors
- Yifan Yang (ORCID: https://orcid.org/0000-0002-5481-2851)
- Xuanzhe Liu (ORCID: https://orcid.org/0000-0002-7908-8484)
- Qipeng Wang (ORCID: https://orcid.org/0000-0003-1588-0293)
- Yuanchun Li (ORCID: https://orcid.org/0000-0002-1591-2526)
- Ruiqi Liu (ORCID: https://orcid.org/0000-0002-2099-620X)
- Ting Cao (ORCID: https://orcid.org/0000-0002-9107-013X)
- Shiqi Jiang (ORCID: https://orcid.org/0000-0002-4685-9633)
Institutions
- Microsoft (United States) (US)
- Peking University (CN)
- Microsoft Research (United Kingdom) (GB)
- Tsinghua University (CN)
Publication Details
- Journal
- IEEE Transactions on Mobile Computing
- Published
- 2025-04-04
- DOI
- https://doi.org/10.1109/tmc.2025.3558203
- Primary Topic
- Traffic Prediction and Management Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00