TL;DR
This paper introduces a novel "Structure-Aware Feature Rectification" method to improve the performance of training-free open-vocabulary semantic segmentation (OVSS) models like CLIP. By constructing Region Adjacency Graphs (RAGs) from low-level image features (color and texture), they guide the attention mechanism and fuse similarities to enhance local consistency and suppress noise, leading to more accurate segmentation.
What Problem Does This Paper Address?
Open-vocabulary semantic segmentation (OVSS) aims to segment images into categories defined by arbitrary text, without requiring task-specific training data. Vision-language models like CLIP have shown great promise in this area due to their ability to align visual and textual features. However, CLIP's training paradigm, which focuses on global image-text alignment, leads to suboptimal performance at the local, fine-grained level. This results in noisy and inconsistent segmentation predictions, especially around object boundaries and in complex regions. Existing methods often try to improve the model architecture or decoder, but this paper tackles the problem by directly refining the visual features themselves using image-specific structural information.
Methods
The core of this work is a "Structure-Aware Feature Rectification" approach that enhances CLIP's features. It comprises two main modules:
- RAG-guided Attention: This module leverages a Region Adjacency Graph (RAG) constructed from low-level image features (color and texture statistics like GLCM). The RAG captures spatial relationships between image regions (superpixels). This graph structure is then used to create a "RAG bias" that guides the attention mechanism in transformers. This bias encourages the model to focus on semantically relevant regions and improve local consistency.
- Similarity Fusion Module: To further refine the process, this module fuses the original CLIP similarity scores with smoothed similarities. The smoothing is achieved by applying a Gaussian kernel to the visual features. This fusion helps to suppress noisy or unreliable similarity signals that might arise from global alignment biases, leading to more robust region aggregation.
A key technical challenge addressed is the mismatch between superpixel-based RAGs and the patch-based inputs of transformers. The authors propose a "superpixel-aligned patch encoding" mechanism to bridge this gap, computing edge weights based on pairwise distances between superpixels within adjacent patches.
Datasets
The paper evaluates its method on several standard OVSS benchmarks:
- PASCAL VOC 2012 (V21)
- ADE20K (ADE)
- PASCAL Context (PC60)
- COCO-Stuff (C-Stf)
- Cityscapes (City)
- COCO-Object (C-Obj)
They also use variants of PASCAL VOC 2012 (V20) and PASCAL Context (PC59) with the background class removed.
Key Insights and Ideas
- Low-level features are crucial for local segmentation: While high-level features from models like CLIP are good for global understanding, low-level cues like color and texture are essential for capturing fine-grained local structures needed for accurate segmentation.
- Image structure can guide attention: By constructing a graph that represents how image regions are spatially related, we can inject this structural knowledge into the attention mechanism of vision models, making them more aware of local context.
- RAGs can be noisy if built solely on high-level features: The paper shows that RAGs built on CLIP or DINO features themselves are noisy and inconsistent, highlighting the need for low-level features for robust RAG construction.
- Fusion of global and local information is key: Combining the global semantic alignment from CLIP with local structural information from RAGs, and fusing original and smoothed similarities, leads to a more balanced and accurate representation.
Key Results
The proposed method consistently improves the performance of various CLIP-based baselines across all evaluated datasets.
- Performance Gains: The method boosts average mIoU by +1.4 to +1.8 on SCLIP, CLIPtrace, NACLIP, and ProxyCLIP baselines. For example, it improves SCLIP from 38.2 to 40.0 mIoU.
- Robustness: The approach shows strong performance even under color perturbations, outperforming baselines that rely solely on color or high-level features for RAG construction.
- Efficiency: The method is computationally efficient, introducing no additional FLOPs and only a negligible decrease in inference speed when integrated with baselines.
- Qualitative Improvements: Visual results demonstrate that the method effectively suppresses segmentation noise, improves region-level consistency, and better preserves fine-grained structures, especially around object boundaries.
Limitations and Future Work
- Failure Cases: The paper notes that the method's primary failure cases occur in underexposed conditions, where the loss of fine-grained local details can lead to misweighted attention biases.
- Future Directions: The authors suggest that further research could explore more sophisticated RAG construction methods, potentially incorporating semantic information more directly into the graph structure. Investigating how to better handle extreme lighting conditions or other challenging image degradations would also be valuable. The paper also hints at exploring the use of SAM-generated masks for RAG construction, which could be a promising avenue.
Summary updated