Few-Shot Segmentation (FSS) is a challenging computer vision task that requires a model to segment novel objects in a query image given only a handful of annotated support examples. While existing methods have made significant strides, they often struggle with scale imbalances between support and query images and noisy feature correlations. This paper introduces LC-CAN, a framework designed to overcome these hurdles through two primary innovations: Instance-Aware Data Augmentation (IDA) and Local Consensus Guided Cross Attention (LCCA).
The Challenge: Scale Mismatch and Noisy Correlations
Few-shot segmentation models typically follow one of two paradigms: prototype-based or fine-tuning-based. Prototype-based methods compress support features into a single vector, which often discards vital spatial details, leading to plateaus in performance as more data (e.g., 5-shot or 10-shot) becomes available. Fine-tuning-based methods treat the support set as a mini-dataset to train a classifier on the fly; while they scale better with more data, they are highly susceptible to overfitting and distribution bias in low-shot scenarios.
The authors identify two specific technical hurdles:
- Scale Mismatch: Significant size differences between objects in the support and query images (e.g., a small bird in the support set vs. a large bird in the query set) hinder generalization.
- Noisy Correlations: Pixel-to-pixel feature alignment between different images is often corrupted by variations in lighting, pose, and background clutter.
Methodology: The LC-CAN Framework
To address these issues, the authors propose the Local Consensus guided Cross Attention Network (LC-CAN). This framework integrates two novel components into a two-stage fine-tuning pipeline.
1. Instance-Aware Data Augmentation (IDA)
Standard random cropping can inadvertently increase the distribution gap between support and query sets. IDA adaptively transforms support images based on the target object's relative size (denoted as $\mu$):
- Small Objects ($\mu < 0.15$): The model performs an "instance-aware crop" to zoom in on the object, providing a clearer signal for the classifier.
- Large Objects ($\mu > 0.3$): The model downsizes the image to ensure the classifier learns a balanced representation of both foreground and background.
2. Local Consensus Guided Cross Attention (LCCA)
LCCA enables the query image to effectively "borrow" knowledge from the support image while filtering out unreliable matches. It leverages a "neighborhood consensus" mechanism:
- A 4D correlation map is constructed to represent all possible pixel matches between the query and support features.
- 4D convolutions are applied to this map to enforce spatial consistency. The core idea is that a true match should have neighboring pixels that also match well. This process suppresses random, noisy correlations and refines the alignment before final classification.
Experimental Results and Scaling
The model was evaluated on the gold-standard PASCAL-$5^i$ and COCO-$20^i$ benchmarks. A key finding is LC-CAN's superior scaling ability. Unlike many previous models that plateau after 5 shots, LC-CAN continues to improve as more support images are provided.
On the challenging COCO-$20^i$ dataset, LC-CAN achieved a state-of-the-art 50.6 mIoU at 20-shot. Even in the 1-shot setting, it improved the baseline mIoU from 32.3% to 37.6%, a substantial +5.3% absolute gain. Cross-domain tests (training on COCO and evaluating on PASCAL) further demonstrated the model's robustness, outperforming the strong RePRI baseline by 3.4% in the 5-shot setting.
Conclusion and Future Directions
LC-CAN successfully bridges the gap between prototype-based and fine-tuning-based FSS methods. By combining surgical data augmentation with local consensus constraints, it achieves robust performance across varying scales and data distributions. While the use of 4D convolutions introduces some computational overhead, the significant gains in accuracy and scaling represent a major step forward for few-shot segmentation. Future work may focus on optimizing these 4D operations for real-time mobile applications.
Summary updated