Abstract
Existing semantic segmentation approaches are often limited by costly pixel-wise annotations and predefined classes. In this work, we present CLIP-S$^4$, a framework that leverages self-supervised pixel representation learning and vision-language models to enable various semantic segmentation tasks—including unsupervised, transfer learning, and language-driven segmentation—without human annotations or prior knowledge of class labels. We first learn pixel embeddings through pixel-segment contrastive learning from different augmented views of images. To further refine these embeddings and enable language-driven segmentation, we design two types of consistency guided by the pre-trained CLIP model: embedding consistency, which aligns pixel embeddings to CLIP’s joint feature space, and semantic consistency, which forces the model to match CLIP’s predictions across a set of known and unknown prototypes. CLIP-S$^4$ enables a new task of class-free semantic segmentation where no unknown class information is needed during training. Our approach shows consistent and substantial performance improvements over four popular benchmarks compared with state-of-the-art unsupervised and language-driven methods, particularly in unknown class recognition.
Introduction
Semantic segmentation—the task of assigning a category label to every pixel in an image—is traditionally a "data-hungry" field. Creating ground-truth labels is a grueling process; it can take a human annotator up to 1.5 hours to label a single complex image. Furthermore, standard models are typically "closed-world," meaning they are restricted to recognizing only the specific classes (e.g., "dog," "car") they were explicitly trained on.
While researchers have explored unsupervised methods (grouping pixels without labels) and language-driven methods (using models like CLIP to name segments), both approaches have significant flaws. Unsupervised methods struggle to assign meaningful names to their clusters, and existing CLIP-based methods often produce noisy pixel embeddings or fail to recognize objects that were not explicitly named during the training phase. CLIP-S$^4$ (Language-Guided Self-Supervised Semantic Segmentation) bridges this gap by anchoring self-supervised pixel learning to the massive "common sense" knowledge of the CLIP vision-language model.
Methodology
The core strategy of CLIP-S$^4$ is to learn pixel representations that are consistent across three distinct dimensions:
1. Pixel-Segment Contrastive Learning
This stage utilizes a standard self-supervised technique where the model learns that pixels within the same visual region—or across different augmented views of the same image—should have similar embeddings. This establishes a baseline of visual coherence without requiring any external labels.
2. Embedding Consistency
The model aligns its internal pixel embeddings with the joint feature space of a pre-trained CLIP model. This "grounds" the model's visual understanding in CLIP’s language-aligned space, ensuring that the visual features learned by the model are compatible with natural language descriptions.
3. Semantic Consistency
This is the framework's primary innovation. The model is forced to make the same predictions as CLIP over a set of target classes. Crucially, these target classes include:
- Known Prototypes: Derived from CLIP text and image features based on a provided vocabulary.
- Unknown Prototypes: Clusters learned dynamically from the data to represent categories not found in the initial vocabulary.
By performing these consistency checks at the segment level (groups of pixels) rather than the individual pixel level, the model filters out the noise inherent in CLIP’s dense feature maps, leading to sharper and more accurate boundaries.
Key Insights
The "Class-Free" Paradigm
Unlike previous work that requires a comprehensive list of all possible classes during training, CLIP-S$^4$ can handle "unknowns." It reserves specific "slots" for categories it does not yet recognize and learns their visual signatures through a process similar to k-means clustering within the CLIP embedding space. This allows the model to discover and segment objects it was never explicitly told to look for.
Bridging the Modality Gap
The authors observed that CLIP’s text embeddings and image embeddings do not perfectly overlap. To mitigate this, CLIP-S$^4$ represents "known" classes using the average CLIP image features of segments that highly correlate with the class name, rather than relying solely on raw text embeddings. This multi-modal approach provides a more robust representation of semantic categories.
Segment-Based Refinement
Because CLIP was trained on whole images, its pixel-level features are often blurry. CLIP-S$^4$ uses self-supervised grouping to "sharpen" these features. By aggregating pixel information into segments before applying CLIP-guided losses, the model achieves much cleaner segment boundaries than methods that apply CLIP directly to pixels.
Experimental Results
CLIP-S$^4$ was evaluated on several major benchmarks, including Pascal VOC 2012, Pascal Context, COCO-Stuff, and DAVIS 2017.
- Superior "Unknown" Recognition: In class-free tests on Pascal Context, CLIP-S$^4$ achieved a 32.0 mIoU on unknown classes. This represents a massive leap over the previous state-of-the-art, MaskCLIP+, which managed only 3.6 mIoU.
- State-of-the-Art Unsupervised Performance: On Pascal VOC, the model reached 73.0 mIoU using a linear classifier, a significant improvement (+3.0) over previous unsupervised methods.
- Zero-Shot Transfer: Without any fine-tuning on video data, CLIP-S$^4$ outperformed existing supervised and unsupervised methods on the DAVIS 2017 mask tracking task. This demonstrates that the learned pixel embeddings are highly robust and transferable across different domains and tasks.
Conclusion and Future Work
CLIP-S$^4$ represents a significant step toward label-free, open-world scene understanding. By successfully integrating self-supervised visual learning with the semantic breadth of vision-language models, it overcomes the limitations of closed-set vocabularies and expensive annotations.
However, the model still inherits certain biases from its foundation model, CLIP. If CLIP lacks a representation for a rare object, CLIP-S$^4$ may struggle to segment it accurately. Additionally, the number of "unknown" clusters is currently a fixed hyperparameter. Future research could focus on developing more flexible systems that automatically discover the optimal number of categories and scaling the approach to even larger, more diverse datasets to further unlock the potential of autonomous semantic understanding.
Summary updated