Collaborative Vision-Text Representation Optimizing for Open-Vocabulary Segmentation

Siyu Jiao, Hongguang Zhu, Jiannan Huang, Yao Zhao, Yunchao Wei, Humphrey Shi

Abstract

Open-Vocabulary Segmentation (OVS) aims to segment objects in images using arbitrary text descriptions, overcoming the limitations of closed-set models. While CLIP-based methods are the current standard, they face a fundamental trade-off: frozen encoders preserve zero-shot knowledge but lack local sensitivity, while fine-tuned encoders improve localization at the cost of semantic richness. This paper presents MAFT+, a collaborative fine-tuning framework that simultaneously optimizes vision and text representations. By introducing Content-Dependent Transfer (CDT) to adapt text embeddings to image context and Representation Compensation (RC) to anchor visual features to CLIP’s original space, MAFT+ achieves new state-of-the-art results across multiple semantic and panoptic segmentation benchmarks.

Introduction: The OVS Dilemma

Traditional segmentation models are restricted to recognizing a small, predefined set of categories. Open-Vocabulary Segmentation (OVS) seeks to generalize this capability to any text description by leveraging large-scale vision-language models like CLIP. However, effectively adapting CLIP for pixel-level tasks remains a challenge.

Comparison of OVS approaches: (a) frozen CLIP, (b) fine-tuning CLIP-V, and (c) the proposed collaborative fine-tuning.

Current approaches generally fall into two categories:

  1. Frozen CLIP: Keeping the CLIP encoders frozen preserves the massive "zero-shot" knowledge gained during pre-training. However, because CLIP was trained on global image-text pairs, it often lacks the sensitivity required for local region segmentation.
  2. Fine-tuned CLIP: Fine-tuning the vision encoder improves local sensitivity but frequently leads to "catastrophic forgetting," where the model loses its ability to recognize general concepts not present in the specific fine-tuning dataset.

The authors of MAFT+ observe that previous works focus almost exclusively on the vision side, leaving the text representation static. This creates a sub-optimal alignment for complex, pixel-level tasks.

Methods: The MAFT+ Framework

MAFT+ treats vision and text optimization as a joint effort, creating a "meeting in the middle" for the two modalities.

Overview of the MAFT+ framework for open-vocabulary segmentation.

The framework integrates several key components to enhance both feature extraction and cross-modal alignment. It utilizes a mask proposal generator and a mask pooling layer to extract visual embeddings, which are then matched against optimized text embeddings to produce final classification scores.

Key Innovations

The core technical contributions of MAFT+ are two novel strategies designed to improve alignment and preserve knowledge:

  • Content-Dependent Transfer (CDT): Standard CLIP uses the same text embedding for a category regardless of the image context. MAFT+ recognizes that visual appearances vary based on the scene. CDT employs parameter-efficient Transformer layers to allow text embeddings to "interact" with input image features. This results in "conditioned" text embeddings that are better aligned with the specific visual context of the scene.
  • Representation Compensation (RC): To fine-tune the vision encoder without losing CLIP's original semantic capabilities, the authors introduce a secondary loss. They compare the features of the fine-tuned vision encoder against a frozen "gold standard" CLIP-V. By minimizing the difference using multi-scale pooling and SmoothL1 loss, they ensure the model retains its broad zero-shot capabilities while gaining local precision.
  • Mask-Aware Fine-tuning: Building on their previous work (MAFT), the authors use a loss function that aligns the model's classification confidence with the actual Intersection-over-Union (IoU) of the proposed masks. This makes the model more "aware" of what constitutes a high-quality segment.

Experimental Results

MAFT+ was trained on COCO-Stuff and COCO-Panoptic and evaluated across a wide array of challenging benchmarks to test its open-vocabulary limits.

  • Semantic Segmentation: The model outperformed previous state-of-the-art (SOTA) models across five major benchmarks. Notable improvements include a +3.4 mIoU jump on Pascal-Context (PC-459) and a +2.3 mIoU increase on ADE20K (A-150).
  • Panoptic Segmentation: On the ADE20K dataset, MAFT+ achieved 27.1 PQ, significantly outperforming other training-free or vision-only fine-tuning methods.
  • Efficiency: By using CDT instead of fine-tuning the entire CLIP text encoder, the model remains computationally feasible, avoiding the massive GPU memory requirements typically associated with language model fine-tuning.

Conclusion and Future Work

MAFT+ demonstrates that optimizing the representation space for OVS is a two-sided problem. By allowing the text side to adapt to image content and safeguarding visual knowledge through representation compensation, the model achieves a much stronger bridge between modalities.

While MAFT+ sets a new high bar, the authors acknowledge that it is still fundamentally bounded by the inherent capabilities of the pre-trained CLIP model. If a concept was not encountered during CLIP's massive pre-training phase, fine-tuning on a smaller segmentation dataset is unlikely to "teach" it from scratch. Future work may involve exploring larger foundation models or incorporating external knowledge from Large Language Models (LLMs) to further expand the model's vocabulary and understanding.

Summary updated

BibTeX
@inproceedings{jiao2024collaborative,
  author = {Siyu Jiao and Hongguang Zhu and Jiannan Huang and Yao Zhao and Yunchao Wei and Humphrey Shi},
  title = {{Collaborative Vision-Text Representation Optimizing for Open-Vocabulary Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73414-4\_23},
}
Figure