Abstract
Semantic correspondence is the problem of establishing correspondences across images depicting different instances of the same object or scene class. One of the recent approaches to this problem is to estimate parameters of a global transformation model that densely aligns one image to the other. Since an entire correlation map between all feature pairs across images is typically used to predict such a global transformation, noisy features from different backgrounds, clutter, and occlusion distract the predictor from correct estimation of the alignment. In this paper, we introduce an attentive semantic alignment method that focuses on reliable correlations, filtering out distractors. For effective attention, we also propose an offset-aware correlation kernel that learns to capture translation-invariant local transformations in computing correlation values over spatial locations. Experiments demonstrate the effectiveness of the attentive model and offset-aware kernel, and the proposed model combining both techniques achieves the state-of-the-art performance.
Introduction
Establishing correspondences between images is a foundational task in computer vision. While "standard" correspondence deals with the same scene (like stereo matching or motion estimation), semantic correspondence is significantly more challenging. It requires matching objects of the same class that may differ wildly in appearance, pose, and scale—for example, matching the wing of a mallard duck to the wing of a wooden decoy.
Existing global transformation models often struggle because they use the entire correlation map between two images to predict alignment. This makes them highly susceptible to "distractors": background clutter, occlusions, and noisy features that are irrelevant to the object of interest. To address this, the Attentive Semantic Alignment Network (A2Net) was developed to intelligently filter these distractors and focus on reliable object parts.
Methodology
The A2Net architecture consists of three main stages designed to improve both accuracy and efficiency:
- Feature Extraction: The model utilizes a pre-trained VGG-16 network to extract high-level semantic features from both source and target images.
- Local Transformation Encoding (The OAC Kernel): A core innovation of this work is the Offset-Aware Correlation (OAC) kernel. Standard correlation layers produce maps where the order of elements depends on absolute coordinates, making it difficult for a network to decode local shifts. OAC kernels reorder correlations based on the relative spatial offset between features. This makes the local transformation representation translation-invariant, allowing the model to recognize the same "movement" regardless of its location in the image.
- Attentive Global Transformation Estimation: Rather than treating every pixel as equally important, A2Net employs a spatial attention mechanism. It learns to assign probabilities to different regions, suppressing noisy background features and aggregating only the "reliable" local transformations to predict final global alignment parameters (either Affine or Thin-Plate Spline).
The model is trained using self-supervision. By applying random synthetic transformations to a single image to create a "target" pair, the network learns to predict those transformations without requiring expensive, manually labeled datasets.
Key Insights and Results
Attention as a Filter
A critical insight of this research is that global alignment is essentially a regression problem easily poisoned by outliers. By introducing attention, the authors effectively implement a "weighted" regression. This allows the network to ignore irrelevant details, such as grass behind an animal, and focus strictly on the object itself. Surprisingly, this filtering mechanism also improved efficiency; by removing noise early, subsequent layers required fewer parameters to process the data.
Performance Benchmarks
The model was evaluated on several key benchmarks, including PF-WILLOW, PF-PASCAL, and Caltech-101. Key results include:
- State-of-the-Art Accuracy: A2Net outperformed the previous leading model (GeoCNN) by 12.5% on the PF-WILLOW benchmark and 8% on PF-PASCAL.
- Parameter Efficiency: A2Net achieved these results with only 0.95M parameters, a reduction of roughly 70% in the transformation estimation part of the network compared to GeoCNN.
- Robustness: The model demonstrated strong performance even on object classes not seen during ImageNet pre-training, suggesting the correlation-based approach is effectively class-agnostic.
Conclusion and Future Work
A2Net represents a significant step forward in semantic correspondence by combining translation-invariant kernels with robust spatial attention. While highly effective, the authors noted limitations in scenarios involving multiple instances of the same class or extreme occlusions. Future research may explore extending this attentive approach to handle multiple object instances simultaneously or integrating more complex local-to-global reasoning for highly ambiguous scenes.
Summary updated