Self-Calibrated Cross Attention Network for Few-Shot Segmentation

The key to the success of few-shot segmentation (FSS) lies in how to effectively utilize support samples. Most solutions compress support foreground (FG) features into prototypes, but lose some spatial details. Instead, others use cross attention to fuse query features with uncompressed support FG. Query FG could be fused with support FG, however, query background (BG) cannot find matched BG features in support FG, yet inevitably integrates dissimilar features. Besides, as both query FG and BG are combined with support FG, they get entangled, thereby leading to ineffective segmentation. To cope with these issues, we design a self-calibrated cross attention (SCCA) block. For efficient patch-based attention, query and support features are firstly split into patches. Then, we design a patch alignment module to align each query patch with its most similar support patch for better cross attention. Specifically, SCCA takes a query patch as Q, and groups the patches from the same query image and the aligned patches from the support image as K&V. In this way, the query BG features are fused with matched BG features (from query patches), and thus the aforementioned issues will be mitigated. Moreover, when calculating SCCA, we design a scaled-cosine mechanism to better utilize the support features for similarity calculation. Extensive experiments conducted on PASCAL-5^i and COCO-20^i demonstrate the superiority of our model, e.g., the mIoU score under 5-shot setting on COCO-20^i is 5.6%+ better than previous state-of-the-arts. The code is available at https://github.com/Sam1224/SCCAN.

PDF Abstract ICCV 2023 PDF ICCV 2023 Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Few-Shot Semantic Segmentation COCO-20i (1-shot) SCCAN (ResNet-101) Mean IoU 48.2 # 9
FB-IoU 69.7 # 15
Few-Shot Semantic Segmentation COCO-20i (1-shot) SCCAN (ResNet-50) Mean IoU 46.3 # 19
FB-IoU 69.9 # 13
Few-Shot Semantic Segmentation COCO-20i (5-shot) SCCAN (ResNet-101) Mean IoU 57 # 7
FB-IoU 74.8 # 5
Few-Shot Semantic Segmentation COCO-20i (5-shot) SCCAN (ResNet-50) Mean IoU 53.9 # 13
FB-IoU 74.2 # 7
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) SCCAN (ResNet-50) Mean IoU 66.8 # 29
FB-IoU 77.7 # 26
Few-Shot Semantic Segmentation PASCAL-5i (1-Shot) SCCAN (ResNet-101) Mean IoU 68.3 # 16
FB-IoU 78.5 # 17
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) SCCAN (ResNet-50) Mean IoU 70.3 # 33
FB-IoU 81.8 # 14
Few-Shot Semantic Segmentation PASCAL-5i (5-Shot) SCCAN (ResNet-101) Mean IoU 71.5 # 23
FB-IoU 82.1 # 13

Methods