轻量级扩散模型实现手机端快速超分辨率,38毫秒升128到512
Edge-SD-SR: Low Latency and Parameter Efficient On-device Super-Resolution with Stable Diffusion via Bidirectional Conditioning
- 双向条件输入提升低分辨率图像适配性
- 仅169M参数、142GFLOPs,128x128→512x512仅38毫秒
- 适合移动端部署,性能超越现有超分方法
基于稳定扩散的超分辨率技术虽有显著进展,但在计算受限设备(如手机)上部署仍不现实,尤其在高分辨率(如4K×3K)下。本文提出Edge-SD-SR,首个参数高效且低延迟的图像超分辨率扩散模型,包含约169M参数,复杂度仅约142 GFLOPs。为在极低算力下保持高质量,提出三项训练策略:(i) 双向条件机制,针对超分任务优化扩散模型;(ii) 联合训练UNet与编码器,解耦高低分辨率图像编码,并采用专属调度;(iii) 使用UNet输出微调解码器,使其适配推理时的潜在表示。Edge-SD-SR可在设备端高效运行:在三星S24 DSP上,128×128图像升至512×512仅需38毫秒,512×512升至2048×2048(需25次模型评估)耗时约1.1秒。实验表明,其在主流超分基准上表现匹配或优于当前最优方法。
原文摘要 · Abstract (English)
There has been immense progress recently in the visual quality of Stable Diffusion-based Super Resolution (SD-SR). However, deploying large diffusion models on computationally restricted devices such as mobile phones remains impractical due to the large model size and high latency. This is compounded for SR as it often operates at high res (e.g. 4Kx3K). In this work, we introduce Edge-SD-SR, the first parameter efficient and low latency diffusion model for image super-resolution. Edge-SD-SR consists of ~169M parameters, including UNet, encoder and decoder, and has a complexity of only ~142 GFLOPs. To maintain a high visual quality on such low compute budget, we introduce a number of training strategies: (i) A novel conditioning mechanism on the low resolution input, coined bidirectional conditioning, which tailors the SD model for the SR task. (ii) Joint training of the UNet and encoder, while decoupling the encodings of the HR and LR images and using a dedicated schedule. (iii) Finetuning the decoder using the UNet's output to directly tailor the decoder to the latents obtained at inference time. Edge-SD-SR runs efficiently on device, e.g. it can upscale a 128x128 patch to 512x512 in 38 msec while running on a Samsung S24 DSP, and of a 512x512 to 2048x2048 (requiring 25 model evaluations) in just ~1.1 sec. Furthermore, we show that Edge-SD-SR matches or even outperforms state-of-the-art SR approaches on the most established SR benchmarks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。