Abstract
In real-world scenarios, the performance of semantic segmentation often deteriorates when processing low-quality (LQ) images, which may lack clear semantic structures and high-frequency details. Although image restoration techniques offer a promising direction for enhancing degraded visual content, conventional real-world image restoration (Real-IR) models primarily focus on pixel-level fidelity and often fail to recover task-relevant semantic cues, limiting their effectiveness when directly applied to downstream vision tasks. Conversely, existing segmentation models trained on high-quality data lack robustness under real-world degradations. In this paper, we propose Restoration Adaptation for Semantic Segmentation (RASS), which effectively integrates semantic image restoration into the segmentation process, enabling high-quality semantic segmentation on the LQ images directly. Specifically, we first propose a Semantic-Constrained Restoration (SCR) model, which injects segmentation priors into the restoration model by aligning its cross-attention maps with segmentation masks, encouraging semantically faithful image reconstruction. Then, RASS transfers semantic restoration knowledge into segmentation through LoRA-based module merging and task-specific fine-tuning, thereby enhancing the model's robustness to LQ images. To validate the effectiveness of our framework, we construct a real-world LQ image segmentation dataset with high-quality annotations, and conduct extensive experiments on both synthetic and real-world LQ benchmarks. The results show that SCR and RASS significantly outperform state-of-the-art methods in segmentation and restoration tasks.
Introduction
Semantic segmentation models—the "eyes" of autonomous systems and scene understanding tools—are typically trained on high-quality, crystal-clear images. However, real-world images are often plagued by blur, noise, and compression artifacts.
Current approaches suffer from two major gaps. First, conventional real-world image restoration (Real-IR) models focus on making pixels look "nice" but often fail to preserve semantic cues, leading to a "hallucination" problem where objects are restored with incorrect features. Second, existing segmentation models lack robustness against complex real-world degradations; simply fine-tuning them on noisy data often yields coarse results because the underlying features are too corrupted.
Methodology
The RASS framework operates in two distinct stages to bridge the gap between restoration and segmentation.
1. Semantic-Constrained Restoration (SCR)
RASS utilizes a Stable Diffusion (SD) backbone (specifically the one-step OSEDiff) for restoration. To ensure the model doesn't hallucinate incorrect structures, the authors introduce a Semantic-Constrained Loss (SCL). This mechanism aligns the model's internal cross-attention maps—which respond to text prompts like "building" or "sky"—with ground-truth semantic masks. This forces the generative model to focus its reconstructive energy on the correct spatial regions, ensuring that objects are restored with semantically faithful features.
2. Restoration Adaptation Segmentation (RAS)
Once the restoration model is trained, RASS transfers this knowledge to the segmentation task via LoRA-based module merging. Instead of running a slow sequential pipeline, the learned Low-Rank Adaptation (LoRA) weights from the restoration stage are merged directly into the segmentation backbone. At inference, RASS performs a single-step denoising in the latent space, feeding the "cleaned" latent features directly into a Mask2Former-based segmentation head. This avoids the computationally expensive step of decoding latent features back into a full-resolution image.
Key Results
The framework was evaluated on synthetic benchmarks (ADE20K) and a new real-world benchmark, RealLQ, consisting of 100 images with high-quality manual annotations for 82 categories.
- Segmentation Accuracy: On the degraded ADE20K dataset, RASS achieved 47.42 mIoU, significantly outperforming the baseline Mask2Former (44.19 mIoU). On the RealLQ dataset, RASS reached 39.80 mIoU, a nearly 5.4-point lead over the fine-tuned baseline.
- Restoration Quality: The SCR model achieved the highest scores in perceptual metrics (MUSIQ, MANIQA, CLIPIQA) on real-world restoration benchmarks, proving that semantic guidance helps make images look more realistic and structurally sound.
- Efficiency: RASS runs at 3.4 FPS on an NVIDIA H20, offering a reasonable trade-off for the massive jump in robustness compared to "clean-only" segmenters.
Conclusion
RASS demonstrates that semantic masks can serve as a powerful supervisory signal for restoration, and that restoration knowledge can be effectively transferred to segmentation via LoRA merging. While the model size (approx. 1.7B parameters) may limit deployment on edge devices, the framework significantly improves robustness in real-world degraded environments. Future work will explore more lightweight architectures and multi-scale feature reconstruction to better preserve fine details for small-target segmentation.
Summary updated