RISCLIP: Referring Image Segmentation Framework using CLIP

Seoyeon Kim, Minguk Kang, Jaesik Park

Abstract

Referring Image Segmentation (RIS) is a cross-modal task that aims to segment an instance described by a natural language expression. Recent methods leverage large-scale pretrained unimodal models as backbones along with fusion techniques for joint reasoning across modalities. However, the inherent cross-modal nature of RIS raises questions about the effectiveness of unimodal backbones. We propose RISCLIP, a novel framework that effectively leverages the cross-modal nature of CLIP for RIS. Observing CLIP's inherent alignment between image and text features, we capitalize on this starting point and introduce simple but strong modules that enhance unimodal feature extraction and leverage rich alignment knowledge in CLIP's image-text shared-embedding space. RISCLIP exhibits outstanding results on all three major RIS benchmarks and also outperforms previous CLIP-based methods, demonstrating the efficacy of our strategy in extending CLIP's image-text alignment to RIS.

Introduction: Bridging Global Alignment and Pixel-Level Precision

Referring Image Segmentation (RIS) requires generating a pixel-precise mask for an object described in natural language (e.g., "the woman in the purple coat adjusting the cake"). This "vision-plus-language" problem demands a deep understanding of both modalities and their interactions. Traditionally, researchers employed separate unimodal backbones—such as Vision Transformers for images and BERT for text—and developed complex fusion modules to integrate them.

The authors of RISCLIP argue that starting with models that lack cross-modal awareness is inefficient. Instead, they leverage CLIP (Contrastive Language-Image Pre-training), which is pre-trained on 400 million image-text pairs. While CLIP excels at global matching, it is not natively designed for dense, pixel-level segmentation. RISCLIP bridges this gap by adapting CLIP's cross-modal power for the RIS task.

Methods

The RISCLIP framework utilizes a frozen CLIP backbone (ViT-B or ViT-L) and introduces three lightweight, trainable components to refine features and exploit CLIP's shared embedding space.

The RISCLIP architecture, featuring CFE and SKE modules integrated with a frozen CLIP backbone.
  1. Adapters: Small bottleneck layers inserted into the CLIP transformer blocks allow the model to learn task-specific features without losing the general knowledge in the frozen weights.
  2. Cross-modal Feature Extraction (CFE): These modules use cross-attention to allow image features to attend to relevant words early in the process, refining unimodal features before final processing.
  3. Shared-space Knowledge Exploitation (SKE): Operating on CLIP’s final shared embedding space, SKE uses multi-head attention to help the model reason through complex descriptions and distinguish target objects from distractors.

A simple Decoder then upsamples the resulting patch-level grounding maps into high-resolution segmentation masks. Training occurs in two stages: first for the adapters and alignment modules, followed by a single epoch for the decoder to sharpen boundaries.

Key Insights and Ideas

A core observation of this work is the "Free" Grounding Map. Even a "vanilla" frozen CLIP can produce a rough grounding map via cosine similarity between image patches and text embeddings, providing a strong starting point (approx. 23.86 mIoU on RefCOCOg).

Qualitative comparison showing the refinement of grounding maps from Vanilla CLIP through CFE and SKE modules.

The authors found that keeping the backbone frozen and using Adapters outperformed full fine-tuning, which often degrades the rich pre-trained alignment knowledge. Furthermore, the efficiency of simple Multi-Head Cross-Attention (MHCA) in CFE and SKE modules suggests that for CLIP-based models, streamlined fusion architectures are often superior to more complex alternatives.

Key Results

RISCLIP achieved state-of-the-art (SOTA) results across major benchmarks:

  • RefCOCOg: On this challenging benchmark with complex descriptions, RISCLIP-L reached 71.65 mIoU, significantly outperforming previous CLIP-based methods like CRIS (60.36) and ETRIS (59.91).
  • RefCOCO/RefCOCO+: The model consistently outperformed previous leaders like LAVT and PolyFormer, especially when using the larger ViT-L backbone.
  • Qualitative Performance: Visualizations demonstrate the model's ability to identify partially occluded objects and distinguish between similar instances based on subtle descriptive cues (e.g., "the horse with the blue cover" vs. "the brown and white horse").

Limitations and Future Work

Despite its success, RISCLIP faces challenges in character recognition (e.g., identifying specific numbers on jerseys) and comprehending "negative" descriptions (e.g., "a vase with no flowers"). These limitations stem from CLIP's pre-training focus. Future research may explore other cross-modal backbones like ALIGN or Florence to further generalize these improvements.

Summary updated

BibTeX
@inproceedings{kim2024risclip,
  author = {Seoyeon Kim and Minguk Kang and Jaesik Park},
  title = {{RISCLIP: Referring Image Segmentation Framework using CLIP}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.258},
}
Figure