Papers › Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformer

Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformer

6 Aug 2021ICCV 2021 10arXiv:2108.03032archive 2025-07-28

Zhihe Lu, Sen He, Xiatian Zhu, Li Zhang, Yi-Zhe Song, Tao Xiang

A few-shot semantic segmentation model is typically composed of a CNN encoder, a CNN decoder and a simple classifier (separating foreground and background pixels). Most existing methods meta-learn all three model components for fast adaptation to a new class. However, given that as few as a single support set image is available, effective model adaption of all three components to the new class is extremely challenging. In this work we propose to simplify the meta-learning task by focusing solely on the simplest component, the classifier, whilst leaving the encoder and decoder to pre-training. We hypothesize that if we pre-train an off-the-shelf segmentation model over a set of diverse training classes with sufficient annotations, the encoder and decoder can capture rich discriminative features applicable for any unseen classes, rendering the subsequent meta-learning stage unnecessary. For the classifier meta-learning, we introduce a Classifier Weight Transformer (CWT) designed to dynamically adapt the supportset trained classifier's weights to each query image in an inductive way. Extensive experiments on two standard benchmarks show that despite its simplicity, our method outperforms the state-of-the-art alternatives, often by a large margin.Code is available on https://github.com/zhiheLu/CWT-for-FSS.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2108.03032")

Code

Syntology Ran 2 of 2 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 2 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhiheLu/CWT-for-FSS officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

2 samples harvested; 2 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran

Licence: 2 of the 2 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhiheLu/CWT-for-FSS. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

MultiHeadAttentionOne zhiheLu/CWT-for-FSS/src/model/transformer.py official repository ran · metamorphic tier: deterministic GPL-3.0 (copyleft) · pointer only · 47fb2d1c653fb575 · report
ScaledDotProductAttention zhiheLu/CWT-for-FSS/src/model/transformer.py official repository ran · metamorphic tier: deterministic fingerprinted GPL-3.0 (copyleft) · pointer only · 9c976ae8ada271c7 · report

Tasks

DecoderFew-Shot Semantic SegmentationMeta-LearningSemantic Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Semantic Segmentation COCO-20i (1-shot) CWT (ResNet-50) Mean IoU 32.9 #78 of 85 Archive leaderboard report
Few-Shot Semantic Segmentation COCO-20i (1-shot) CWT (ResNet-101) Mean IoU 32.4 #80 of 85 Archive leaderboard report
Few-Shot Semantic Segmentation COCO-20i (5-shot) CWT (ResNet-101) Mean IoU 42 #68 of 81 Archive leaderboard report
Few-Shot Semantic Segmentation COCO-20i (5-shot) CWT (ResNet-50) Mean IoU 41.3 #72 of 81 Archive leaderboard report
Few-Shot Semantic Segmentation COCO-20i -> Pascal VOC (1-shot) CWT (ResNet-50) Mean IoU 59.5 #12 of 13 Archive leaderboard report
Few-Shot Semantic Segmentation COCO-20i -> Pascal VOC (5-shot) CWT (ResNet-50) Mean IoU 66.5 #11 of 12 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) CWT (ResNet-101) Mean IoU 58 #91 of 105 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) CWT (ResNet-50) Mean IoU 56.4 #95 of 105 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) CWT (ResNet-101) Mean IoU 64.7 #74 of 96 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) CWT (ResNet-50) Mean IoU 63.7 #79 of 96 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections