TL;DR
This paper introduces a novel, annotation-free few-shot semantic segmentation (FSS) framework that eliminates the need for manual annotations during inference. By leveraging spectral decomposition on self-supervised features to automatically discover objects in support images, combined with advanced multi-scale attention mechanisms, it achieves state-of-the-art performance on both natural and medical image datasets.
What Problem Does This Paper Address?
Few-shot semantic segmentation (FSS) aims to segment novel object classes in a "query" image using only a few labeled examples, known as "support" images. While promising, standard FSS techniques rely heavily on precise, manual pixel-level annotations (support masks) to guide the network.
In specialized fields like medical image analysis, obtaining these expert annotations is incredibly time-consuming, costly, and often impractical due to data privacy and the scarcity of rare diseases. To unlock the true potential of FSS in medical imaging, we need algorithms that can generalize to new classes without requiring human-labeled support masks at inference time.
Methods
The authors propose an end-to-end framework that replaces manual annotations with automated, self-supervised object discovery and pairs it with an optimized attention-based decoder.
1. Support Mask Estimation via Spectral Decomposition
Instead of relying on a human-drawn mask to isolate the object of interest in a support image, the method reframes image decomposition as a graph partitioning task:
- It extracts feature representations from a self-supervised backbone and constructs a pixel-correlation affinity matrix.
- It computes the eigenvectors of the affinity matrix's Laplacian matrix.
- By analyzing the Fiedler eigenvector (the first non-constant eigenvector) and discretizing it by its sign, the model naturally separates the foreground object from the background. A bounding box is drawn around this region to act as an automated support mask, creating a "support prototype."
2. Cross Large Kernel Attention (CLKA)
To effectively condition the query image features on the discovered support prototype, the authors introduce the CLKA module. Standard self-attention mechanisms suffer from quadratic computational complexity. CLKA avoids this by decomposing a large-kernel convolution into a spatial long-range convolution (depth-wise dilation), a spatial local convolution, and a channel convolution. This allows the network to capture long-range dependencies between the support and query images efficiently.
3. Multi-scale Attention Gate (MS-AG)
To refine the query mask prediction, the decoder blocks utilize MS-AG modules. This module employs Atrous (dilated) convolutions at multiple rates (6, 8, 12, and 18) to selectively integrate spatial details from different scales while actively suppressing irrelevant background noise.
Datasets
The model was evaluated on two distinct datasets to prove its versatility across both natural and medical domains:
- FSS-1000: A large-scale few-shot segmentation dataset consisting of 1000 natural object classes (760 for training, 240 for testing), with 10 images per class.
- $\text{PH}^2$ Dataset: A medical dataset containing 200 RGB dermoscopic images of melanocytic skin lesions (common nevi, atypical nevi, and melanomas), used to evaluate clinical generalization.
Key Insights and Ideas
- Eigenvectors as Annotation Replacements: The feature affinity matrices of self-supervised networks inherently contain strong geometric and semantic boundaries. The sign of the Fiedler eigenvector provides a remarkably reliable proxy for human annotations.
- Efficient Global Context: Extending Large Kernel Attention (LKA) to a cross-attention setup (CLKA) allows the model to map relationships between two different images (support and query) with a fraction of the computational footprint of standard Vision Transformers (ViTs).
- Model-Agnostic Generality: Because the framework operates directly on the feature maps of an encoder, it is entirely model-agnostic and can be seamlessly integrated with various deep architectures (e.g., ResNet50).
Key Results
FSS-1000 (Natural Images)
Even without using any manual annotations for the support images during inference, the proposed method achieves outstanding results:
- 1-shot setting: Achieved a 85.0% mIoU, representing a massive 19.7% absolute improvement over the conventional FSS baseline (65.3%).
- 5-shot setting: Achieved a 86.8% mIoU.
- Remarkably, the annotation-free approach performs competitively with, and sometimes outperforms, state-of-the-art methods that do use manual annotations (such as HSNet and DAN).
$\text{PH}^2$ (Medical Skin Lesion Images)
When tested on skin lesion segmentation, the model demonstrated superior clinical generalization:
- Achieved a Dice Similarity Coefficient (DSC) of 87.3%.
- Outperformed unsupervised clustering ($k$-means: 71.3%) and other prominent self-supervised strategies like DeepCluster (79.6%) and SGSCN (83.4%).
Limitations and Future Work
The authors do not include a dedicated limitations section, but a few constraints are apparent:
- Dependency on Self-Supervised Quality: The spectral decomposition step relies heavily on the quality of the underlying self-supervised network's features. If the backbone features fail to capture clean object boundaries, the automated bounding box estimation could degrade.
- Extension to 3D: The current framework is validated on 2D images. Extending this annotation-free FSS approach to 3D medical imaging modalities (like CT or MRI volumes) remains an open and highly valuable direction for future research.
Summary updated