Skip to main content
QUICK REVIEW

[Paper Review] Mask Matching Transformer for Few-Shot Segmentation

Siyu Jiao, Gengwei Zhang|arXiv (Cornell University)|Dec 5, 2022
Advanced Neural Network ApplicationsComputer Science20 citations
TL;DR

MM-Former decouples segmentation and matching by first generating class-agnostic mask proposals for the query image and then performing a mask-level few-to-few matching with support to produce the final segmentation, enabling lower training complexity and strong transferability.

ABSTRACT

In this paper, we aim to tackle the challenging few-shot segmentation task from a new perspective. Typical methods follow the paradigm to firstly learn prototypical features from support images and then match query features in pixel-level to obtain segmentation results. However, to obtain satisfactory segments, such a paradigm needs to couple the learning of the matching operations with heavy segmentation modules, limiting the flexibility of design and increasing the learning complexity. To alleviate this issue, we propose Mask Matching Transformer (MM-Former), a new paradigm for the few-shot segmentation task. Specifically, MM-Former first uses a class-agnostic segmenter to decompose the query image into multiple segment proposals. Then, a simple matching mechanism is applied to merge the related segment proposals into the final mask guided by the support images. The advantages of our MM-Former are two-fold. First, the MM-Former follows the paradigm of decompose first and then blend, allowing our method to benefit from the advanced potential objects segmenter to produce high-quality mask proposals for query images. Second, the mission of prototypical features is relaxed to learn coefficients to fuse correct ones within a proposal pool, making the MM-Former be well generalized to complex scenarios or cases. We conduct extensive experiments on the popular COCO-$20^i$ and Pascal-$5^i$ benchmarks. Competitive results well demonstrate the effectiveness and the generalization ability of our MM-Former.

Motivation & Objective

  • Address the high complexity and limited flexibility of joint learning in existing few-shot segmentation methods.
  • Propose a two-stage framework that decouples segmentation (POS) and matching (MM) to enable simple, effective mask-level matching.
  • Leverage a class-agnostic mask proposal generator to improve query mask quality and robustness across datasets.
  • Improve generalization and transferability between datasets (e.g., COCO to Pascal) through a mask-focused paradigm.

Proposed method

  • Stage 1: Potential Objects Segmenter (POS) uses a transformer decoder (inspired by Mask2Former) to predict multiple class-agnostic mask proposals for the query image from features extracted by a fixed backbone.
  • Stage 2: Mask Matching Module (MM) aligns query and support features via a Feature Alignment Block (Self-Alignment and Cross-Alignment) and then performs Learnable Mask Matching to fuse mask proposals into the final segmentation.
  • Feature Alignment Block includes a Self-Alignment non-parametric channel-wise normalization and a Cross-Alignment block using shared transformers to align support and query features.
  • Prototypes are created by masked global average pooling from aligned features; cosine similarity between support prototypes and query mask proposals guides a Learnable Matching Block that merges masks.
  • A Dice loss is used for the POS proposals (via Hungarian matching), and a Dice loss plus a cross-alignment contrastive loss is used for MM. A two-stage training strategy separates POS training from MM training to reduce coupling and training complexity.

Experimental results

Research questions

  • RQ1Can decoupling segmentation and matching improve few-shot segmentation performance and training efficiency?
  • RQ2Does a two-stage POS+MM framework with mask-level (few-to-few) matching offer better generalization across datasets than traditional few-shot, few-to-many approaches?
  • RQ3How do feature alignment and learnable mask matching contribute to improving segmentation quality and robustness in few-shot settings?
  • RQ4What is the transferability of the MM-Former when trained on a large dataset (COCO) and tested on a smaller dataset (Pascal) compared to training on Pascal directly?

Key findings

  • MM-Former achieves competitive to state-of-the-art results on COCO-20i and shows strong transferability from COCO to Pascal-5i.
  • A two-stage training strategy (POS then MM) significantly improves performance and training efficiency over joint end-to-end training.
  • Feature Alignment (Self and Cross) substantially boosts performance, with learnable cross-alignment being essential for gains.
  • Using a learnable mask matching block to fuse multiple mask proposals outperforms simple cosine-similarity-based selection, leading to higher mean IoU.
  • Increasing the number of mask proposals in POS yields better upper-bound results (oracle potential) and demonstrates room for further improvement in the new mask-matching paradigm.

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.