Open-vocabulary Semantic Segmentation with Frozen Vision-Language Models

Chaofan Ma, Yuhuan Yang, Yan-Feng Wang, Ya Zhang, Weidi Xie

Abstract

Open-vocabulary semantic segmentation aims to identify and delineate objects in images based on arbitrary textual descriptions, moving beyond the constraints of fixed category sets. While large-scale vision-language models (VLMs) like CLIP have excelled at image-level tasks, adapting them for dense, pixel-level prediction remains challenging. This paper introduces Fusioner, a lightweight transformer-based module that bridges frozen, pre-trained vision and language encoders. By facilitating "early fusion"—allowing image and text features to interact deeply before the final prediction—Fusioner achieves state-of-the-art zero-shot performance on novel categories without the need for expensive fine-tuning of massive foundation backbones.

Introduction

Traditional semantic segmentation models are typically "closed-vocabulary," meaning they are restricted to the specific classes present in their training sets (e.g., the 20 classes of PASCAL VOC). Consequently, these models cannot segment novel objects—such as a specific type of drone or a rare animal—without retraining.

Open-vocabulary semantic segmentation seeks to overcome this by leveraging the joint embedding space of VLMs. However, existing methods face two primary hurdles: computational cost and architectural limitations. Many approaches require fine-tuning massive foundation models, which is expensive and risks "forgetting" general knowledge. Others rely on "late fusion," where image and text features only meet at the final similarity calculation, often failing to capture the complex spatial-semantic relationships required for precise segmentation.

The Fusioner Architecture

The core contribution of this work is Fusioner, an architecture designed to adapt frozen foundation models to dense prediction tasks through deep cross-modal interaction.

1. Frozen Encoders

Fusioner utilizes off-the-shelf, pre-trained encoders (such as ViT for vision and BERT or CLIP-Text for language) and keeps their weights frozen. This strategy preserves the rich, high-level representations learned from billions of images and words while significantly reducing the number of trainable parameters.

2. Early Cross-Modality Fusion

Unlike late-fusion models, Fusioner passes concatenated visual and textual tokens through a dedicated 12-layer transformer module. This allows visual features to be "conditioned" by the text (and vice versa) iteratively throughout the fusion process. This early interaction helps the model resolve lexical ambiguities and better align specific visual patterns with their corresponding textual labels.

3. Visual Decoder and Segmentation

A lightweight decoder upsamples the fused visual features back to the original image resolution. The final segmentation mask is generated by calculating the cosine similarity between each upsampled pixel embedding and the refined textual embeddings of the target categories.

Experimental Setup and Benchmarking

The authors evaluated Fusioner on standard benchmarks, including PASCAL-5$^i$ and COCO-20$^i$, using the FSS-1000 dataset for training the fusion module.

To rigorously test the model's reliance on language versus simple visual prominence, the authors introduced Mosaic-4. This synthetic benchmark creates a grid of four random images from FSS-1000. To succeed, a model cannot simply segment the most salient (obvious) object in the center; it must accurately follow the text prompt to find the correct target among the four quadrants.

Key Insights and Results

State-of-the-Art Performance

Fusioner established new benchmarks for zero-shot semantic segmentation:

  • PASCAL-5$^i$: Achieved 59.0 mIoU, significantly outperforming the previous SOTA, LSeg (52.3 mIoU).
  • COCO-20$^i$: Achieved 33.5 mIoU, compared to LSeg’s 27.2 mIoU.

Robustness and Language Grounding

On the Mosaic-4 benchmark, Fusioner maintained a strong performance of 53.7 mIoU, while LSeg’s performance plummeted to 19.5 mIoU. This suggests that while previous models relied heavily on "saliency bias," Fusioner demonstrates true language-driven understanding.

Foundation Agnostic Capabilities

A surprising finding was that Fusioner remains effective even when the vision and language models were never pre-trained together. For instance, pairing a vision-only model (DINO) with a language-only model (BERT) still yielded strong results once bridged by the Fusioner module. This indicates that the fusion module is capable of "unlocking" latent segmentation capabilities within disparate foundation models.

The Necessity of Fusion

Ablation studies highlighted the importance of the early fusion mechanism; removing the module resulted in a massive 21% drop in performance, confirming that deep cross-modality interaction is the primary driver of the model's success.

Conclusion and Future Work

Fusioner demonstrates that a lightweight, early-fusion bridge is sufficient to adapt frozen foundation models for high-performance open-vocabulary segmentation. While the 12-layer transformer adds some computational overhead and the module requires training on segmented data, the approach offers a scalable and robust alternative to full-model fine-tuning. Future research may focus on optimizing the efficiency of the fusion module for real-time applications and exploring its performance with even larger-scale foundation models.

Summary updated

BibTeX
@inproceedings{ma2022open,
  author = {Chaofan Ma and Yuhuan Yang and Yan-Feng Wang and Ya Zhang and Weidi Xie},
  title = {{Open-vocabulary Semantic Segmentation with Frozen Vision-Language Models}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=KnKK9NMkj9},
}
Figure