Pixel-level and Semantic-level Adjustable Super-resolution: A Dual-LoRA Approach

Lingchen Sun, Rongyuan Wu, Zhiyuan Ma, Shuaizheng Liu, Qiaosi Yi, Lei Zhang

Abstract

Diffusion prior-based methods have shown impressive results in real-world image super-resolution (SR). However, most existing methods entangle pixel-level and semantic-level SR objectives in the training process, struggling to balance pixel-wise fidelity and perceptual quality. Meanwhile, users have varying preferences on SR results, thus it is demanded to develop an adjustable SR model that can be tailored to different fidelity-perception preferences during inference without re-training. We present Pixel-level and Semantic-level Adjustable SR (PiSA-SR), which learns two LoRA modules upon the pre-trained stable-diffusion (SD) model to achieve improved and adjustable SR results. We first formulate the SD-based SR problem as learning the residual between the low-quality input and the high-quality output, then show that the learning objective can be decoupled into two distinct LoRA weight spaces: one is characterized by the l2-loss for pixel-level regression, and another is characterized by the LPIPS and classifier score distillation losses to extract semantic information from pre-trained classification and SD models. In its default setting, PiSA-SR can be performed in a single diffusion step, achieving leading real-world SR results in both quality and efficiency. By introducing two adjustable guidance scales on the two LoRA modules to control the strengths of pixel-wise fidelity and semantic-level details during inference, PiSA-SR can offer flexible SR results according to user preference without re-training.

Introduction

Real-world image super-resolution (SR) is a classic "ill-posed" problem where a single low-quality (LQ) image can correspond to multiple high-quality (HQ) reconstructions. Current approaches typically prioritize either fidelity (using $\ell_1$ or $\ell_2$ losses) or perception (using GANs or Diffusion models). Fidelity-oriented models often produce over-smoothed results, while perception-oriented models may introduce artifacts or deviate from the source. A significant limitation of existing models is the "entanglement" of these objectives during training, resulting in a fixed output style that cannot be adjusted by the user without retraining.

Methodology: The Dual-LoRA Approach

PiSA-SR addresses this by decoupling the conflicting goals of image fidelity and perceptual detail. The method leverages the generative priors of Stable Diffusion (SD) 2.1 through several key innovations:

  1. Residual Learning: Instead of generating the full image from scratch, the model learns the residual difference between the LQ input and the HQ output. This formulation allows for high-quality results in a single diffusion step.
  2. Dual-LoRA Architecture: Two separate Low-Rank Adaptation (LoRA) modules are trained to handle different aspects of the reconstruction:
  3. Pixel-level LoRA: Optimized with an $\ell_2$ loss to ensure high fidelity and effective noise removal.
  4. Semantic-level LoRA: Optimized using LPIPS and Classifier Score Distillation (CSD) to hallucinate realistic textures based on the SD model's semantic knowledge.
  5. Pixel-Semantic Guidance: During inference, the outputs of these two LoRAs are combined using adjustable scales, $\lambda_{pix}$ and $\lambda_{sem}$, allowing users to manually control the balance between smoothness and detail.
The training and inference processes of PiSA-SR, highlighting the decoupling of pixel-level and semantic-level objectives.

Experimental Results

The model was trained on the LSDIR and FFHQ datasets using the Real-ESRGAN degradation pipeline. Evaluation on RealSR and DrealSR datasets demonstrates that PiSA-SR achieves a superior balance of metrics compared to state-of-the-art methods like OSEDiff and SeeSR.

Performance and Efficiency

PiSA-SR is highly efficient, processing a 128x128 image in approximately 0.09 seconds on an NVIDIA A100 in its default single-step mode. This is significantly faster than multi-step diffusion methods like StableSR, which can take over 10 seconds for the same task.

User-Adjustable Flexibility

The core strength of PiSA-SR is its adjustability. By varying the guidance scales, users can tailor the output to their specific needs. Increasing $\lambda_{pix}$ enhances artifact removal and fidelity, while increasing $\lambda_{sem}$ introduces finer semantic details like hair or skin textures, as shown in the grid below.

Visual demonstration of the adjustability of PiSA-SR across different pixel-level (λ_pix) and semantic-level (λ_sem) guidance scales.

Conclusion

PiSA-SR introduces a novel way to handle the fidelity-perception trade-off in super-resolution by decoupling objectives into a Dual-LoRA framework. While it excels in efficiency and flexibility, future work will focus on handling more severe degradations and developing automated methods for selecting optimal guidance scales based on image content.

Summary updated

BibTeX
@inproceedings{sun2025pixel,
  author = {Lingchen Sun and Rongyuan Wu and Zhiyuan Ma and Shuaizheng Liu and Qiaosi Yi and Lei Zhang},
  title = {{Pixel-level and Semantic-level Adjustable Super-resolution: A Dual-LoRA Approach}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=wgVSdhKOzy},
}
Figure