Segment Any-Quality Images with Generative Latent Space Enhancement
Guangqian Guo, Yong Guo, Xuehui Yu, Wenbo Li, Yaoxing Wang, Shan Gao
TL;DR
GleSAM tackles the degradation sensitivity of Segment Anything Models by embedding a pre-trained latent diffusion denoiser into SAM’s latent space to reconstruct high-quality features from low-quality inputs. It introduces two compatibility techniques, Feature Distribution Alignment and Channel Replication and Expansion, plus a two-stage training regime that preserves SAM’s generalization while enhancing latent representations. A new LQSeg dataset with diverse, multi-level degradations supports training and evaluation of robustness across unseen degradations. Across extensive experiments on seen and unseen degradations, including real-world datasets like BDD-100K, GleSAM and GleSAM2 achieve superior segmentation accuracy with minimal additional learnable parameters, demonstrating strong generalization and practical applicability in degraded scenarios.
Abstract
Despite their success, Segment Anything Models (SAMs) experience significant performance drops 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. Specifically, we adapt the concept of latent diffusion to SAM-based segmentation frameworks and perform the generative diffusion process in the latent space of SAM to reconstruct high-quality representation, thereby improving segmentation. Additionally, we introduce two techniques to improve compatibility between the pre-trained diffusion model and the segmentation framework. Our method can be applied to pre-trained SAM and SAM2 with only minimal additional learnable parameters, allowing for efficient optimization. We also construct the LQSeg dataset with a greater diversity of degradation types and levels for training and evaluating the model. 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.
