Papers › Cost Aggregation with 4D Convolutional Swin Transformer for Few-Shot Segmentation

Cost Aggregation with 4D Convolutional Swin Transformer for Few-Shot Segmentation

22 Jul 2022arXiv:2207.10866archive 2025-07-28

Sunghwan Hong, Seokju Cho, Jisu Nam, Stephen Lin, Seungryong Kim

This paper presents a novel cost aggregation network, called Volumetric Aggregation with Transformers (VAT), for few-shot segmentation. The use of transformers can benefit correlation map aggregation through self-attention over a global receptive field. However, the tokenization of a correlation map for transformer processing can be detrimental, because the discontinuity at token boundaries reduces the local context available near the token edges and decreases inductive bias. To address this problem, we propose a 4D Convolutional Swin Transformer, where a high-dimensional Swin Transformer is preceded by a series of small-kernel convolutions that impart local context to all pixels and introduce convolutional inductive bias. We additionally boost aggregation performance by applying transformers within a pyramidal structure, where aggregation at a coarser level guides aggregation at a finer level. Noise in the transformer output is then filtered in the subsequent decoder with the help of the query's appearance embedding. With this model, a new state-of-the-art is set for all the standard benchmarks in few-shot segmentation. It is shown that VAT attains state-of-the-art performance for semantic correspondence as well, where cost aggregation also plays a central role.

PaperPDFCodeCode 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="2207.10866")

Code

Syntology Ran 11 of 20 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 8 ran with no contract checked.

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

Seokju-Cho/Volumetric-Aggregation-Transformer officialmentioned on GitHubpytorch 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

20 samples harvested; 11 ran; 0 honoured the contract we drafted; 9 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 · our draft was wrong
1ran · fixture could not drive it
8ran
9unverified

Licence: 2 of the 20 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 Seokju-Cho/Volumetric-Aggregation-Transformer. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

Conv4d Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran MIT (permissive) · a689dd29d10a5588 · report
Correlation Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran MIT (permissive) · d957466bd907d3e2 · report
Interpolate4d Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran MIT (permissive) · 97b275801cca78fc · report
MaxPool4d Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran MIT (permissive) · b966405e9e7c94fc · report
PatchMerging Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran MIT (permissive) · 688a7c109b6a8925 · report
TransformerWarper Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran MIT (permissive) · 9f47dd1aa3379e7a · report
TransformerWarper2d Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran fingerprinted MIT (permissive) · 3c9c3d947cf636e4 · report
WindowAttention Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran MIT (permissive) · c45ba97aae362041 · report
extract_feat_vgg Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository ran · our draft was wrong MIT (permissive) · cda8eb3e776a0591 · report
BasicLayer Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · 30c94d4ce2dcc31b · report
Encoder4D Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · f753e1094cc84a3f · report
OurModel Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · fcf09c7f87136ef1 · report
SwinTransformer Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · 211001493120f0e2 · report
SwinTransformer2d Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · 4390e9116e6b7b05 · report
SwinTransformerBlock Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · cf7fdf758691ee4a · report
VAT Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · 09ecea11a241565f · report
VATLearner Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · 616c158398e06b3e · report
extract_feat_res Seokju-Cho/Volumetric-Aggregation-Transformer/model/vat.py official repository unverified MIT (permissive) · 5e71dad5278d69a0 · report
window_partition identical code first harvested elsewhere ran · fixture could not drive it fingerprinted licence of this copy not recorded · f9fd6241d935f07b · report
window_reverse identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · fb32094c6dbece71 · report

Tasks

DecoderFew-Shot Semantic SegmentationInductive BiasSemantic correspondence

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Semantic Segmentation COCO-20i (1-shot) VAT (ResNet-101) FB-IoU 68.8 #58 of 85 Archive leaderboard report
Few-Shot Semantic Segmentation COCO-20i (1-shot) VAT (ResNet-101) Mean IoU 41.3 #58 of 85 Archive leaderboard report
Few-Shot Semantic Segmentation COCO-20i (5-shot) VAT (ResNet-101) FB-IoU 72.4 #51 of 81 Archive leaderboard report
Few-Shot Semantic Segmentation COCO-20i (5-shot) VAT (ResNet-101) Mean IoU 47.9 #51 of 81 Archive leaderboard report
Few-Shot Semantic Segmentation FSS-1000 (1-shot) VAT (ResNet-101) FB-IoU 94 #4 of 24 Archive leaderboard report
Few-Shot Semantic Segmentation FSS-1000 (1-shot) VAT (ResNet-101) Mean IoU 90.3 #4 of 24 Archive leaderboard report
Few-Shot Semantic Segmentation FSS-1000 (1-shot) VAT (ResNet-50) FB-IoU 93.8 #6 of 24 Archive leaderboard report
Few-Shot Semantic Segmentation FSS-1000 (1-shot) VAT (ResNet-50) Mean IoU 90.1 #6 of 24 Archive leaderboard report
Few-Shot Semantic Segmentation FSS-1000 (5-shot) VAT (ResNet-101) FB-IoU 94.4 #3 of 22 Archive leaderboard report
Few-Shot Semantic Segmentation FSS-1000 (5-shot) VAT (ResNet-101) Mean IoU 90.8 #3 of 22 Archive leaderboard report
Few-Shot Semantic Segmentation FSS-1000 (5-shot) VAT (ResNet-50) FB-IoU 94.2 #4 of 22 Archive leaderboard report
Few-Shot Semantic Segmentation FSS-1000 (5-shot) VAT (ResNet-50) Mean IoU 90.7 #4 of 22 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) VAT (ResNet-101) FB-IoU 79.6 #21 of 105 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) VAT (ResNet-101) Mean IoU 67.9 #21 of 105 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) VAT (ResNet-50) FB-IoU 77.8 #48 of 105 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) VAT (ResNet-50) Mean IoU 65.5 #48 of 105 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) VAT (ResNet-101) FB-IoU 83.2 #19 of 96 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) VAT (ResNet-101) Mean IoU 72 #19 of 96 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) VAT (ResNet-50) FB-IoU 80.9 #41 of 96 Archive leaderboard report
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) VAT (ResNet-50) Mean IoU 70.1 #41 of 96 Archive leaderboard report
Semantic correspondence PF-PASCAL VAT (ECCV) PCK 92.3 #8 of 15 Archive leaderboard report
Semantic correspondence PF-WILLOW VAT (ECCV) PCK 81.6 #2 of 8 Archive leaderboard report
Semantic correspondence SPair-71k VAT (ECCV) PCK 55.5 #12 of 22 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 ConnectionSoftmaxStochastic DepthSwin TransformerTransformer

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