Abstract
Real-world image super-resolution (Real-ISR) often struggles with complex degradations that obscure semantic details. While text-guided diffusion models have shown promise, they frequently suffer from recognition failures and semantic ambiguity due to the lack of spatial precision in textual prompts. We present SegSR, a dual-diffusion framework that leverages semantic segmentation as a spatial control condition. By facilitating a mutual benefit loop between an image restoration branch and a segmentation refinement branch, SegSR generates high-fidelity images that preserve complex semantic structures far better than current state-of-the-art methods.
Introduction
Real-world image super-resolution aims to restore high-quality (HQ) images from low-quality (LQ) inputs plagued by unknown degradations like blur, noise, and compression. Recent breakthroughs have utilized large-scale text-to-image diffusion models, such as Stable Diffusion, to guide restoration using textual prompts. However, this approach has two major flaws:
- Recognition Failure: Models often fail to recognize small or heavily degraded salient objects, leading to inaccurate textures.
- Semantic Ambiguity: A single image region might trigger multiple conflicting prompts (e.g., a region appearing as both a "person" and a "horse"), causing the model to hallucinate a messy blend of styles.
Textual prompts lack the spatial precision required to define exactly where a specific object begins and ends. SegSR addresses this by using pixel-level segmentation masks as a "spatial anchor."
Methodology
The SegSR framework consists of two parallel diffusion branches connected by a novel Dual-Modality Bridge (DMB):
- SRDM (Super-Resolution Diffusion Model): Based on the StableSR architecture, this branch generates the HQ image. It is conditioned on the LQ image and updated semantic features from the segmentation branch.
- SegDM (Segmentation Diffusion Model): This is a discrete diffusion model that predicts and refines a semantic segmentation mask. It starts with an initial guess from a pre-trained Segformer and iteratively improves it during the denoising process.
- Dual-Modality Bridge (DMB): This core innovation allows information to flow bidirectionally at each step of the reverse diffusion process. Image features from SRDM help SegDM refine the mask, while refined segmentation priors from SegDM provide SRDM with pixel-level spatial guidance.
By coupling these tasks, the model ensures that as the image becomes clearer, the segmentation becomes more accurate, which in turn makes the final restoration more faithful to the original scene.
Experiments and Results
SegSR was trained on a massive composite dataset including DIV2K, Flickr2K, and OST, with ground truth masks generated via the X-Decoder open-vocabulary model. Evaluation was conducted on both synthetic (DIV2K-Val) and real-world (RealSR, RealLQ250) benchmarks.
Quantitative Performance
SegSR achieved top-tier results in non-reference metrics, leading in CLIPIQA and MANIQA across multiple datasets. For instance, on the OST-Val dataset, SegSR achieved a CLIPIQA score of 0.7668, significantly outperforming SeeSR (0.7025).
Qualitative Comparison
Visual results demonstrate that SegSR preserves sharp edges and distinct boundaries between objects where other models produce blurry or semantically confused transitions. It successfully avoids the "hallucination" artifacts common in models that lack strong spatial priors, such as turning a house into a swan or a person into a fire hydrant.
Discussion and Conclusion
The primary insight of this work is the use of segmentation as a spatial anchor. Unlike global text prompts, a segmentation mask provides per-pixel guidance that prevents texture "bleeding" between adjacent objects. The synergy between super-resolution and segmentation tasks allows for a more robust restoration process.
Despite its success, SegSR has limitations. It relies on an initial segmentation guess; if the input is so degraded that the initial mask is nonsensical, refinement may struggle. Additionally, the current model is limited to 34 object classes. Future work will focus on expanding this to a truly open-vocabulary system and reducing the computational overhead of running dual diffusion branches.
Summary updated