Abstract
We design an open-vocabulary image segmentation model to organize an image into meaningful regions indicated by arbitrary texts. Recent works (CLIP and ALIGN), despite attaining impressive open-vocabulary classification accuracy with image-level caption labels, are unable to segment visual concepts with pixels. We argue that these models miss an important step of visual grouping, which organizes pixels into groups before learning visual-semantic alignments. We propose OpenSeg to address the above issue while still making use of scalable image-level supervision of captions. First, it learns to propose segmentation masks for possible organizations. Then it learns visual-semantic alignments by aligning each word in a caption to one or a few predicted masks. We find the mask representations are the key to support learning image segmentation from captions, making it possible to scale up the dataset and vocabulary sizes. OpenSeg significantly outperforms the recent open-vocabulary method of LSeg by +19.9 mIoU on PASCAL dataset, thanks to its scalability.
Introduction
Traditional semantic segmentation models are typically "specialists," trained on a fixed set of categories such as the 20 classes in PASCAL VOC. These models fail when encountering objects outside their predefined closed-set vocabulary. While vision-language models like CLIP and ALIGN have achieved remarkable success in open-vocabulary classification by training on billions of image-caption pairs, they lack spatial precision. They represent an entire image as a single vector, failing to distinguish between specific regions like a "bride" versus a "groom." Conversely, existing open-vocabulary segmentation attempts often rely on expensive pixel-level labels, which are difficult to scale to the millions of concepts found in natural language.
Methods
OpenSeg bridges the gap between high-level text alignment and low-level pixel grouping using a two-stage approach:
- Visual Grouping (Mask Proposal): The model employs a class-agnostic segmentation module (inspired by architectures like MaskFormer) to propose a set of candidate masks. This module learns to group pixels into meaningful regions (objects or "stuff" like sky/grass) without requiring category labels.
- Visual-Semantic Alignment: Instead of aligning the whole image to a caption, OpenSeg extracts nouns and adjectives from the caption and aligns them to the proposed masks. A grounding loss encourages each word to match at least one or a few predicted masks.
- Scaling with Pseudo-Labels: To move beyond datasets with manual segmentation, the authors utilize a "teacher-student" method (MuST). A teacher model trained on COCO generates pseudo-segmentation masks for the Localized Narratives dataset, enabling the model to learn from 652,000 images.
- Inference: At test time, the model computes the similarity between arbitrary text query embeddings (from a BERT-Large encoder) and the mask features to produce the final segmentation map.
Key Insights and Ideas
A central finding of this work is that masks serve as a "Goldilocks" representation: pixels are too fine-grained for weak caption supervision, while image-level vectors are too coarse. Mid-level mask proposals provide the ideal level of abstraction to align visual regions with words.
Furthermore, the model demonstrates that class-agnostic grouping skills learned on one dataset (like COCO) transfer effectively to entirely different scenes. The authors also found that filtering captions to retain only nouns and adjectives significantly improves visual-semantic alignment quality.
Key Results
OpenSeg achieves state-of-the-art performance in zero-shot transfer:
- Massive Performance Gains: It outperformed the previous state-of-the-art, LSeg, by +19.9 mIoU on the PASCAL-20 dataset.
- Superior Localization: On the challenging PC-459 dataset (459 categories), OpenSeg outperformed ALIGN-based baselines by 5.4 mIoU.
- Scaling Effect: Increasing training data from 118k images (COCO) to 652k images (Localized Narratives) led to an average improvement of 2.5 mIoU across benchmarks.
- Qualitative Success: The model successfully segments complex, fine-grained queries like "bride" and "groom" separately, or "scuba" and "goggles" as parts of a "diver."
Conclusion
OpenSeg advocates for a shift from "specialist" models to "generalist" models that use language as a universal interface. While the model currently depends on the quality of mask proposals and pre-trained backbones, it demonstrates a scalable path toward segmenting any visual concept using arbitrary natural language. Future work may involve simultaneous learning of grouping and alignment on even larger datasets.
Summary updated