A Simple Baseline with Single-encoder for Referring Image Segmentation

Seonghoon Yu, Ilchae Jung, Byeongju Han, Taeoh Kim, Yunho Kim, Dongyoon Wee, Jeany Son

TL;DR

Traditional Referring Image Segmentation (RIS) models rely on complex, heavy dual-encoder architectures to fuse separate vision and language features. This paper introduces Shared-RIS, a simple yet highly efficient baseline that uses a single multi-modal encoder (BEiT-3) to seamlessly blend text and image inputs from the very first layer. By leveraging shared self-attention throughout the entire pipeline, it achieves state-of-the-art performance on standard benchmarks while drastically reducing computational overhead.

What Problem Does This Paper Address?

Referring Image Segmentation (RIS) requires a model to identify and outline a specific object in an image based on a natural language description (e.g., "the wood chair next to the desk"). This task demands a highly granular, pixel-to-word level understanding.

Most current RIS frameworks use a dual-encoder paradigm: one encoder processes the image (like a Swin Transformer) and another processes the text (like BERT or CLIP). However, these backbones are pre-trained either completely independently or with only global-level alignment (like CLIP's image-sentence contrastive loss). This creates a fundamental mismatch with the dense, localized interaction required by RIS. To compensate, researchers typically tack on heavy, over-parameterized cross-attention fusion modules after the encoders, leading to massive computational costs.

Methods

The authors propose Shared-RIS, which replaces the dual-encoder setup with a single unified backbone (BEiT-3) and extends the concept of shared self-attention across the entire architecture.

  1. Shared Vision-Language Encoder: The input image is split into patches, and the text is tokenized. Both modalities are projected into the same embedding space, concatenated into a single sequence, and fed into a shared Transformer. This allows visual patches and textual words to interact deeply at every single layer.
  2. Shared Vision-Language FPN: Instead of using heavy cross-attention to inject text into multi-level visual features, the authors project intermediate features from multiple encoder stages into a reduced dimension and apply a simple, single shared self-attention layer.
  3. Shared Vision-Language Mask Decoder: A lightweight decoder consisting of just one shared transformer layer processes the aggregated features to predict the final segmentation mask via a dot-product similarity map between the visual features and the textual class token.
Fig. 1: Comparison of previous RIS methods [3], [4] and our approach. (a) previous methods focus on bridging two encoders with high-cost fusion modules to compensate for coarse interaction at dual-backbones pre-training, resulting in an over-parameterized architecture. In contrast, our approach in (b) provides a cost-efficient architecture by fully leveraging shared self-attention across all processes, eliminating the need for interacting two encoders and offering granular alignments at patch-word levels.

Datasets

The model was evaluated on three standard RIS benchmark datasets:

  • RefCOCO: Focuses on spatial descriptions (e.g., "left", "right").
  • RefCOCO+: Bans purely spatial attributes, forcing the model to rely on appearance and color descriptors.
  • RefCOCOg: Features longer, more complex, and structurally varied natural language captions.

Key Insights and Ideas

  • The Single-Encoder Advantage: Pre-training a single encoder with shared self-attention natively aligns vision and language at a granular token level. This eliminates the need to "force" alignment later using heavy fusion modules.
  • Seamless Fusion: By concatenating inputs at the very beginning, the model performs "seamless fusion," allowing continuous, bidirectional patch-word interaction from input to final prediction.
  • Lightweight Decoders Suffice: Because the features coming out of the single encoder are already highly aligned, the subsequent Feature Pyramid Network (FPN) and Mask Decoder can be incredibly lightweight (e.g., just a single transformer layer in the decoder) without sacrificing accuracy.

Key Results

  • State-of-the-Art Performance: On the RefCOCO+ validation set, Shared-RIS (using a BEiT-3 Base backbone) achieved an overall Intersection over Union (oIoU) of 68.42%, outperforming previous state-of-the-art dual-encoder methods like CGFormer (64.54%) and DMMI (63.98%).
  • Extreme Efficiency: Shared-RIS achieves this performance with only 155 GFLOPs, compared to CGFormer's 959 GFLOPs and RISCLIP's 1380 GFLOPs. This represents a massive reduction in computational complexity while delivering superior segmentation accuracy.
  • When scaled up to a BEiT-3 Large backbone and trained on combined datasets, it reaches up to 82.8% oIoU on RefCOCO val.

Limitations and Future Work

  • Small Object Performance: The model struggles somewhat when dealing with very small objects. Because it relies on a plain Vision Transformer (ViT) architecture inherent to BEiT-3, it lacks the native hierarchical, multi-scale feature representations found in CNNs or Swin Transformers.
  • Dataset Biases: Like most vision-language models, it inherits the downstream negative social impacts and biases present in web-sourced pre-training data and human-annotated datasets.
  • Future Direction: The authors plan to explore incorporating hierarchical or multi-scale feature architectures into the single-encoder paradigm to improve small-object segmentation.

Summary updated

BibTeX
@misc{yu2024simple,
  author = {Seonghoon Yu and Ilchae Jung and Byeongju Han and Taeoh Kim and Yunho Kim and Dongyoon Wee and Jeany Son},
  title = {{A Simple Baseline with Single-encoder for Referring Image Segmentation}},
  year = {2024},
  eprint = {2408.15521},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.15521},
}
Figure