[Paper Review] Cost Aggregation Is All You Need for Few-Shot Segmentation
This paper proposes Volumetric Aggregation with Transformers (VAT), a novel cost aggregation network that combines 4D convolutions and 4D Swin transformers to efficiently process high-dimensional correlation maps between query and support images in few-shot segmentation. By using a pyramidal encoder with volume embedding and volumetric transformer modules, VAT achieves state-of-the-art performance on all standard few-shot segmentation benchmarks and surprisingly attains SOTA results on semantic correspondence tasks without architectural modification.
We introduce a novel cost aggregation network, dubbed Volumetric Aggregation with Transformers (VAT), to tackle the few-shot segmentation task by using both convolutions and transformers to efficiently handle high dimensional correlation maps between query and support. In specific, we propose our encoder consisting of volume embedding module to not only transform the correlation maps into more tractable size but also inject some convolutional inductive bias and volumetric transformer module for the cost aggregation. Our encoder has a pyramidal structure to let the coarser level aggregation to guide the finer level and enforce to learn complementary matching scores. We then feed the output into our affinity-aware decoder along with the projected feature maps for guiding the segmentation process. Combining these components, we conduct experiments to demonstrate the effectiveness of the proposed method, and our method sets a new state-of-the-art for all the standard benchmarks in few-shot segmentation task. Furthermore, we find that the proposed method attains state-of-the-art performance even for the standard benchmarks in semantic correspondence task although not specifically designed for this task. We also provide an extensive ablation study to validate our architectural choices. The trained weights and codes are available at: https://seokju-cho.github.io/VAT/.
Motivation & Objective
- To address the challenge of limited labeled data in semantic segmentation by enabling few-shot segmentation with only a few support samples.
- To improve matching accuracy by reformulating few-shot segmentation as a semantic correspondence task, focusing on robust pixel-wise correspondence under appearance and geometric variations.
- To overcome limitations of prior methods that rely on raw correlation maps or local convolutions by introducing a global, attention-based cost aggregation mechanism.
- To validate the effectiveness of combining convolutional inductive bias with self-attention mechanisms for high-dimensional correlation maps in few-shot learning.
- To explore whether a few-shot segmentation model can generalize to semantic correspondence tasks, despite not being specifically designed for them.
Proposed method
- The method introduces a pyramidal encoder with a volume embedding module using 4D convolutions to reduce the dimensionality of correlation maps while injecting convolutional inductive bias.
- The volumetric transformer module applies 4D Swin transformers to perform global cost aggregation on the transformed correlation maps, enabling long-range interactions across spatial and channel dimensions.
- The encoder processes features at multiple scales, with coarser-level aggregated scores guiding finer-level learning to enforce complementary matching score learning.
- An affinity-aware decoder refines the aggregated cost features using projected appearance features and affinity maps to improve segmentation mask prediction.
- The model is trained end-to-end on standard few-shot segmentation benchmarks using a standard learning-to-learn paradigm with support-query supervision.
- Minor architectural modifications allow the same model to be evaluated on semantic correspondence benchmarks by adjusting output resolution and feature projection.
Experimental results
Research questions
- RQ1Can cost aggregation with a hybrid convolutional-transformer architecture significantly improve few-shot segmentation performance compared to prior methods relying on raw correlations or 4D convolutions?
- RQ2To what extent can a few-shot segmentation model generalize to the semantic correspondence task, given the shared underlying challenge of finding pixel-wise correspondences?
- RQ3Does the integration of convolutional inductive bias with self-attention in 4D feature spaces lead to better generalization and robustness under intra-class variations?
- RQ4How do different backbone architectures (CNN vs. vision transformer) affect performance in few-shot segmentation, and is there a performance gap between them?
- RQ5Is the proposed cost aggregation mechanism more effective than existing approaches like HSNet or CATs in handling ambiguous patterns and background clutter?
Key findings
- VAT achieves state-of-the-art performance on all standard few-shot segmentation benchmarks, including PASCAL-Part, COCO-Part, and LVIS, outperforming previous methods.
- On the SPair-71k benchmark, VAT achieves 54.2 PCK, setting a new SOTA, surpassing previous methods like CATs (49.9) and PMNC (50.4).
- On PF-PASCAL, VAT achieves 92.3 PCK, second only to CHM (91.6) but with a significant margin over other methods, indicating strong generalization.
- On PF-WILLOW, VAT achieves 81.0 PCK, outperforming CATs (79.2) and PMNC (79.4), demonstrating robustness to geometric variations.
- The model achieves SOTA performance on semantic correspondence tasks without architectural modification, indicating that cost aggregation is a key transferable component across vision tasks.
- Ablation studies confirm that the combination of volume embedding and volumetric transformers is essential, with linear and fastformer variants showing similar performance, suggesting global attention is more critical than architecture type.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.