Abstract
Standard one-shot segmentation (OSS) methods typically compare image features only at identical network depths, failing to capture the rich relationships between different levels of abstraction. This paper introduces Fully Connected Correlation (FCC), a novel approach that leverages the uniform feature structure of Vision Transformers (ViTs) to compute correlations across all layers. By matching every support layer to every query layer, FCC establishes a more robust object prior. The proposed method achieves state-of-the-art results on major benchmarks, including PASCAL-5ⁱ and COCO-20ⁱ, while accelerating model convergence by up to 2.7x.
Introduction
One-Shot Segmentation (OSS) involves identifying and segmenting a specific object in a "query" image based on a single "support" image and its corresponding mask. This task is inherently difficult because target objects can vary significantly in scale, orientation, texture, and lighting between the two images.
Most existing frameworks rely on same-layer correlation, comparing support features at Layer N only with query features at Layer N. While this was a logical constraint for hierarchical Convolutional Neural Networks (CNNs), it is a bottleneck for modern Vision Transformers where features are more uniform across layers. By ignoring cross-layer relationships, current models miss nuanced correspondences that could help identify objects under heavy occlusion or extreme scale differences.
Methodology
The authors propose two primary innovations to overcome the limitations of same-layer matching:
- Fully Connected Correlation (FCC): Instead of a 1-to-1 layer comparison, FCC performs an $N \times N$ comparison. For a backbone with 12 layers (such as DINOv2), FCC computes 144 correlation maps. This allows the model to find correspondences between high-level semantic shapes in the support image and low-level textures in the query image, or vice-versa.
- Dual-Conditioned FCC (DCFC): To address cases where a support mask might be too restrictive, the authors designed a dual-pathway approach. One branch focuses on the masked target object, while the other considers the entire support image. This helps the network uncover target information that might be present in the background or context of the support set.
These correlation maps are concatenated and processed through a 1x1 convolution to reduce dimensionality before being fed into a lightweight 4D convolutional decoder to produce the final segmentation mask.
Key Insights
- ViT Uniformity: The core innovation leverages the architectural properties of ViTs. Unlike CNNs, ViT layers maintain consistent spatial dimensions and channel counts, making direct cross-layer mathematical operations both possible and meaningful.
- Scale Invariance: By comparing low-level layers (capturing fine detail) with high-level layers (capturing scale-invariant semantics), the model becomes significantly more robust to objects appearing at different sizes.
- Faster Convergence: Providing a rich set of initial correspondences allows the model to learn more efficiently, resulting in a 2.7x speedup in training convergence compared to baseline methods.
Experimental Results
The model was evaluated on the PASCAL-5ⁱ and COCO-20ⁱ benchmarks, as well as cross-domain tests to ensure generalizability.
- State-of-the-Art Performance: FCC achieved 81.0 mIoU on PASCAL-5ⁱ and 65.7 mIoU on COCO-20ⁱ, outperforming both specialized OSS models and generalist foundation models like SegGPT.
- Efficiency: Despite the increased number of correlations, the model remains highly efficient, running at 40 FPS on an NVIDIA H100 GPU.
- Robustness in Hard Cases: FCC excels when support information is limited. In scenarios where the support mask covers less than 5% of the image, it improved performance by nearly 10 mIoU over the baseline.
Conclusion
FCC breaks the traditional same-layer comparison bottleneck in few-shot segmentation. By utilizing the full depth of Vision Transformer features, it provides a denser and more informative prior for the target object. This approach not only sets new performance records but also offers a more efficient path to model convergence, demonstrating the power of cross-layer feature correlation.
Summary updated