Abstract
The joint visual-language model CLIP has enabled new and exciting applications, such as open-vocabulary segmentation, which can locate any segment given an arbitrary text query. In our research, we ask whether it is possible to discover semantic segments without any user guidance in the form of text queries or predefined classes, and label them using natural language automatically? We propose a novel problem zero-guidance segmentation and the first baseline that leverages two pre-trained generalist models, DINO and CLIP, to solve this problem without any fine-tuning or segmentation dataset. The general idea is to first segment an image into small over-segments, encode them into CLIP’s visual-language space, translate them into text labels, and merge semantically similar segments together. The key challenge, however, is how to encode a visual segment into a segment-specific embedding that balances global and local context information, both useful for recognition. Our main contribution is a novel attention-masking technique that balances the two contexts by analyzing the attention layers inside CLIP. We also introduce several metrics for the evaluation of this new task. With CLIP’s innate knowledge, our method can precisely locate the Mona Lisa painting among a museum crowd.
Introduction
Traditional semantic segmentation is a "closed-world" problem, requiring models to be trained on a fixed set of categories. While recent "open-vocabulary" methods have expanded this by allowing users to find objects via text queries, they still require a human in the loop to define what to look for. This paper introduces zero-guidance segmentation, a novel task where a model must partition an image and label every segment in natural language without any user prompts, text queries, or predefined classes.
Methodology
The authors propose a four-stage pipeline that requires no fine-tuning or specialized segmentation datasets:
- Candidate Discovery (DINO): The model uses DINO, a self-supervised model known for its "object-awareness," to over-segment the image into small, visually consistent patches.
- Segment Encoding (CLIP + Global Subtraction): This is the core innovation. To get a clean embedding for a specific segment, the whole image is fed into CLIP, but a novel attention-masking technique is applied. In CLIP’s deeper layers, attention often "collapses," where every token begins describing the same dominant object. The authors use "global subtraction" to attenuate these dominant global features, allowing the specific semantics of smaller segments to emerge.
- Text Generation (ZeroCap): An existing image-to-text method (ZeroCap) translates these CLIP embeddings into natural language labels (e.g., "a vintage clock" or "the Mona Lisa").
- Semantic Merging: Adjacent segments with similar visual embeddings and generated text labels are merged to form coherent objects.
Key Results and Insights
The model was evaluated on standard benchmarks like Pascal Context (PC-59 and PC-459) and Pascal VOC 2012. Because the model generates arbitrary text, the authors introduced a Label Reassignment protocol using Sentence-BERT to map free-form labels back to ground-truth categories for fair comparison.
- Superiority in Complexity: On the challenging PC-459 dataset, the method achieved an IoU of 11.3, significantly outperforming the previous state-of-the-art unsupervised baseline, GroupViT (4.9).
- Discovery vs. Retrieval: Unlike models that retrieve segments based on a query, this model discovers them. It can label specific entities like "Mona Lisa" or descriptive scenes like "crowd observing" even if they weren't in the original evaluation classes.
- Human Validation: In a user study, human evaluators rated 64% of the model's generated labels as at least "partially correct."
Limitations and Future Work
The model currently struggles with hierarchical "part-whole" relationships, sometimes failing to merge a "face" and "shirt" into a single "person." Additionally, background regions can occasionally suffer from "global leakage," inheriting labels from prominent adjacent objects. Future research will focus on developing embedding spaces that inherently understand the hierarchy of objects and their constituent parts.
Summary updated