Few-Shot Segmentation via Cycle-Consistent Transformer

Gengwei Zhang, Guoliang Kang, Yi Yang, Yunchao Wei
6/4/2021
296 citations
cs.CV
transformer-attention

Official code: GengDavid/CyCTR (6 stars, last commit 2021-12-13).

Abstract

Few-shot segmentation aims to train a segmentation model that can fast adapt to novel classes with few exemplars. The conventional training paradigm is to learn to make predictions on query images conditioned on the features from support images.

Show full abstract

Previous methods only utilized the semantic-level prototypes of support images as conditional information. These methods cannot utilize all pixel-wise support information for the query predictions, which is however critical for the segmentation task. In this paper, we focus on utilizing pixel-wise relationships between support and query images to facilitate the few-shot segmentation task. We design a novel Cycle-Consistent TRansformer (CyCTR) module to aggregate pixel-wise support features into query ones. CyCTR performs cross-attention between features from different images, i.e. support and query images. We observe that there may exist unexpected irrelevant pixel-level support features. Directly performing cross-attention may aggregate these features from support to query and bias the query features. Thus, we propose using a novel cycle-consistent attention mechanism to filter out possible harmful support features and encourage query features to attend to the most informative pixels from support images. Experiments on all few-shot segmentation benchmarks demonstrate that our proposed CyCTR leads to remarkable improvement compared to previous state-of-the-art methods. Specifically, on Pascal-$5^i$ and COCO-$20^i$ datasets, we achieve 67.5% and 45.6% mIoU for 5-shot segmentation, outperforming previous state-of-the-art methods by 5.6% and 7.1% respectively.

View on arXivView PDF

Code Implementations(1)

GengDavid/CyCTROfficial100%

Home Page of our NeurIPS 2021 paper "Few-Shot Segmentation via Cycle-Consistent Transformer"

61Dec 3, 20214 years ago

Similar Papers

Cite this paper

@article{zhang2021fewshot,
  title  = {Few-Shot Segmentation via Cycle-Consistent Transformer},
  author = {Gengwei Zhang and Guoliang Kang and Yi Yang and Yunchao Wei},
  year   = {2021},
  eprint = {2106.02320},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.02320}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.02320.svg)](https://codeofpaper.com/paper/2106.02320)

Discussion