Skip to main content
QUICK REVIEW

[Paper Review] MaIL: A Unified Mask-Image-Language Trimodal Network for Referring Image Segmentation

Zizhang Li, Mengmeng Wang|arXiv (Cornell University)|Nov 21, 2021
Multimodal Machine Learning ApplicationsComputer Science37 references8 citations
TL;DR

MaIL proposes a unified mask-image-language trimodal transformer network for referring image segmentation, replacing the traditional encoder-fusion-decoder pipeline with a deep modality interaction encoder that jointly processes image, language, and instance mask inputs. By introducing masks as a first-class modality and using an adaptive selection strategy, MaIL achieves state-of-the-art performance with 3%-10% relative gains across RefCOCO, RefCOCO+, and G-Ref benchmarks.

ABSTRACT

Referring image segmentation is a typical multi-modal task, which aims at generating a binary mask for referent described in given language expressions. Prior arts adopt a bimodal solution, taking images and languages as two modalities within an encoder-fusion-decoder pipeline. However, this pipeline is sub-optimal for the target task for two reasons. First, they only fuse high-level features produced by uni-modal encoders separately, which hinders sufficient cross-modal learning. Second, the uni-modal encoders are pre-trained independently, which brings inconsistency between pre-trained uni-modal tasks and the target multi-modal task. Besides, this pipeline often ignores or makes little use of intuitively beneficial instance-level features. To relieve these problems, we propose MaIL, which is a more concise encoder-decoder pipeline with a Mask-Image-Language trimodal encoder. Specifically, MaIL unifies uni-modal feature extractors and their fusion model into a deep modality interaction encoder, facilitating sufficient feature interaction across different modalities. Meanwhile, MaIL directly avoids the second limitation since no uni-modal encoders are needed anymore. Moreover, for the first time, we propose to introduce instance masks as an additional modality, which explicitly intensifies instance-level features and promotes finer segmentation results. The proposed MaIL set a new state-of-the-art on all frequently-used referring image segmentation datasets, including RefCOCO, RefCOCO+, and G-Ref, with significant gains, 3%-10% against previous best methods. Code will be released soon.

Motivation & Objective

  • To address the limitations of existing bimodal encoder-fusion-decoder pipelines in referring image segmentation, including insufficient cross-modal interaction and misaligned pre-training tasks.
  • To improve segmentation accuracy by explicitly modeling instance-level features, which are often underutilized in prior methods.
  • To unify uni-modal feature extraction and cross-modal fusion into a single deep modality interaction encoder, eliminating the need for independently pre-trained uni-modal encoders.
  • To investigate the effectiveness of introducing pre-segmented instance masks as a third modality to enhance fine-grained localization.
  • To develop a selective mask fusion mechanism in the decoder that adaptively selects the most relevant mask representation for refining predictions.

Proposed method

  • Proposes a unified encoder-decoder architecture where image, language, and mask features are processed simultaneously in a single deep modality interaction transformer encoder.
  • Introduces instance masks as a dedicated modality, enabling explicit cross-modal interaction at both low- and high-level features across image, language, and mask modalities.
  • Eliminates the need for separate uni-modal encoders by replacing them with a unified modality interaction mechanism, reducing architectural complexity and improving modality alignment.
  • Employs an adaptive mask selection strategy in the decoder that selects the highest-scoring mask representation from K candidate masks to refine the final segmentation output.
  • Uses multi-modal pre-trained weights for the unified encoder to align representations with the target multi-modal task, avoiding inconsistencies from uni-modal pre-training.
  • Applies a learnable attention mechanism across all three modalities in the encoder to enable dynamic, multi-level feature interaction, enhancing representation quality.

Experimental results

Research questions

  • RQ1Can replacing the traditional encoder-fusion-decoder pipeline with a unified modality interaction encoder improve performance in referring image segmentation?
  • RQ2Does introducing instance masks as a first-class modality lead to better instance-level feature learning and finer segmentation results?
  • RQ3How does the adaptive mask selection strategy compare to simple pooling or weighted sum methods in terms of selecting relevant mask features?
  • RQ4What is the impact of background information and location context when using mask-cropped images instead of full images?
  • RQ5Can a unified trimodal framework outperform existing bimodal approaches across diverse referring image segmentation benchmarks?

Key findings

  • MaIL achieves state-of-the-art performance on RefCOCO, RefCOCO+, and G-Ref benchmarks, with 3%-10% relative gains over previous best methods.
  • Introducing masks as a separate modality leads to a 2.89% IoU improvement over the bimodal baseline, demonstrating the benefit of explicit instance-level feature modeling.
  • Using mask-cropped images (variant 2) causes a significant performance drop due to loss of background context and reliance on pre-segmented mask quality.
  • The proposed adaptive mask selection strategy achieves a 2.57% improvement over using no mask features and outperforms mean, max, and weighted sum pooling strategies.
  • Visualizations confirm that the selected mask is highly relevant to the referent, and the final prediction corrects flaws in the pre-generated mask, such as spurious segments.
  • The unified encoder-decoder pipeline with deep modality interaction enables more effective cross-modal representation learning than traditional two-stage fusion.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.