Towards Any-Quality Image Segmentation via Generative and Adaptive Latent Space Enhancement
Guangqian Guo, Aixi Ren, Yong Guo, Xuehui Yu, Jiacheng Tian, Wenli Li, Yaoxing Wang, Shan Gao
TL;DR
GleSAM++ tackles the challenge of segmenting images across arbitrary quality by integrating a pretrained latent diffusion model into the SAM framework. It introduces Latent Space Alignment with Feature Distribution Alignment and Channel Replication and Expansion to bridge the gap between diffusion latents and SAM features, and a Degradation-aware Adaptive Enhancement module that explicitly predicts degradation level and adaptively controls denoising strength. The approach is trained with a two-step LoRA-based fine-tuning strategy and evaluated on the newly constructed LQSeg dataset, showing strong robustness to seen and unseen degradations while preserving performance on clear images. The work demonstrates practical gains in robustness for real-world scenarios and offers a scalable path toward degradation-aware segmentation in multimodal and downstream tasks.
Abstract
Segment Anything Models (SAMs), known for their exceptional zero-shot segmentation performance, have garnered significant attention in the research community. Nevertheless, their performance drops significantly on severely degraded, low-quality images, limiting their effectiveness in real-world scenarios. To address this, we propose GleSAM++, which utilizes Generative Latent space Enhancement to boost robustness on low-quality images, thus enabling generalization across various image qualities. Additionally, to improve compatibility between the pre-trained diffusion model and the segmentation framework, we introduce two techniques, i.e., Feature Distribution Alignment (FDA) and Channel Replication and Expansion (CRE). However, the above components lack explicit guidance regarding the degree of degradation. The model is forced to implicitly fit a complex noise distribution that spans conditions from mild noise to severe artifacts, which substantially increases the learning burden and leads to suboptimal reconstructions. To address this issue, we further introduce a Degradation-aware Adaptive Enhancement (DAE) mechanism. The key principle of DAE is to decouple the reconstruction process for arbitrary-quality features into two stages: degradation-level prediction and degradation-aware reconstruction. Our method can be applied to pre-trained SAM and SAM2 with only minimal additional learnable parameters, allowing for efficient optimization. Extensive experiments demonstrate that GleSAM++ significantly improves segmentation robustness on complex degradations while maintaining generalization to clear images. Furthermore, GleSAM++ also performs well on unseen degradations, underscoring the versatility of our approach and dataset.
