Edge-SD-SR: Low Latency and Parameter Efficient On-device Super-Resolution with Stable Diffusion via Bidirectional Conditioning

Isma Hadji, Mehdi Noroozi, Victor Escorcia, Anestis Zaganidis, Brais Martínez, Georgios Tzimiropoulos

Abstract

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 512 x 512 to 2, 048 x 2, 048 (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.

Introduction

While Stable Diffusion (SD) has revolutionized image generation, applying it to Super-Resolution (SR)—the task of turning a low-resolution photo into a high-resolution masterpiece—remains computationally expensive. Standard SD-SR models are massive, often exceeding 850M parameters, and require dozens of denoising steps. On mobile devices, this complexity is a significant barrier. Processing a typical 4K smartphone photo using current state-of-the-art diffusion methods would require splitting the image into nearly 90 tiles and running them sequentially, a process that takes roughly 15 minutes on a high-end A100 GPU and is essentially impossible on a phone. Edge-SD-SR bridges this gap by providing a high-fidelity diffusion model optimized for the strict hardware constraints of edge devices.

Methodology

The efficiency of Edge-SD-SR is achieved through three primary technical innovations:

1. Bidirectional Conditioning

In standard diffusion models, the low-resolution (LR) image is typically only introduced during the denoising (backward) step. Edge-SD-SR introduces the LR image into the forward noising process as well. By conditioning both the mean and the variance of the noise on the LR input, the model receives a much stronger training signal. This "roadmap" of missing details allows a smaller model to learn the mapping from low-to-high resolution more effectively.

2. Joint Encoder-UNet Training

Unlike most SR models that rely on heavy, frozen pre-trained encoders, Edge-SD-SR utilizes a lightweight encoder trained jointly with the UNet. This allows the encoder to learn a latent space specifically optimized for the super-resolution task rather than general-purpose image generation.

3. Architectural Optimization and Decoder Finetuning

The UNet was compressed to 158M parameters (down from 860M in SD 1.5) by halving the number of base channels and focusing transformer blocks only on lower resolutions. To ensure final image sharpness, the decoder is finetuned specifically to handle the outputs of this compressed UNet.

Experimental Results

The model was trained on a robust mix of benchmarks including DIV2K, DIV8K, and FFHQ, using the Real-ESRGAN degradation pipeline to simulate realistic noise.

Low-resolution input samples showing noise and artifacts.

Performance and Speed

On a Samsung S24 DSP, Edge-SD-SR upscales a 128x128 patch to 512x512 in just 38 milliseconds. A full 4× upscale of a 512x512 image to 2K (2048x2048) takes approximately 1.1 seconds. Total model complexity is just 142 GFLOPs, significantly leaner than competitors like StableSR (1043M parameters, >2000 GFLOPs).

High-resolution output from Edge-SD-SR demonstrating sharp details and texture recovery.

Visual Quality

Despite its reduced size, Edge-SD-SR matches or outperforms larger state-of-the-art models like ResShift and LDM across perceptual metrics (LPIPS, MUSIQ) on real-world datasets such as RealSR and DRealSR.

Conclusion

Edge-SD-SR demonstrates that high-quality diffusion-based super-resolution is possible on mobile hardware. By stripping away the "creative" capacity of general SD models and focusing on task-specific reconstruction, the authors achieved an 80% reduction in model size without sacrificing visual fidelity. Future work will explore deeper quantization (4-bit or 8-bit) and further generalization to diverse real-world sensor noise.

Summary updated

BibTeX
@inproceedings{hadji2025edge,
  author = {Isma Hadji and Mehdi Noroozi and Victor Escorcia and Anestis Zaganidis and Brais Martínez and Georgios Tzimiropoulos},
  title = {{Edge-SD-SR: Low Latency and Parameter Efficient On-device Super-Resolution with Stable Diffusion via Bidirectional Conditioning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=Axmrep45Hb},
}
Figure