Attentive Semantic Alignment with Offset-Aware Correlation Kernels

Paul Hongsuck Seo, Jongmin Lee, Deunsol Jung, Bohyung Han, Minsu Cho

Abstract

Semantic correspondence is the problem of establishing correspondences across images depicting different instances of the same object or scene class. One of 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. This is a challenging issue, in particular, in the problem of semantic correspondence where a large degree of image variations is often involved. 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 tasks like stereo matching or optical flow deal with different views of the same scene, semantic correspondence involves matching different instances of the same object class (e.g., matching different breeds of dogs). This is significantly more challenging due to large variations in appearance, pose, and layout between instances.

Recent "global" alignment approaches attempt to estimate a single transformation (e.g., an affine warp) to align images. However, these models often struggle because they process the entire image indiscriminately. Noisy features from background clutter, occlusions, and varying backgrounds distract the model, leading to poor alignment of the actual object of interest.

The A2Net Architecture

To address these challenges, we propose the Deep Attentive Semantic Alignment Network (A2Net). The core idea is to focus on reliable local correlations while filtering out distractors through an attention mechanism.

Conceptual overview of the A2Net pipeline, illustrating how attention filters local transformations to estimate a global alignment.

The architecture consists of three main stages: feature extraction, local transformation encoding, and attentive global transformation estimation.

Feature Extraction

High-level semantic features are extracted from both source and target images using a pre-trained VGG-16 backbone (specifically the pool4 layer). These features provide the semantic context necessary for matching different instances of a class.

Local Transformation Encoding with OAC Kernels

A key innovation of A2Net is the Offset-Aware Correlation (OAC) kernel. Standard correlation layers compute similarities between all pairs of features but often lose the sense of local displacement because they rely on absolute coordinates.

Detailed architecture of A2Net, showing the three main stages: feature extraction, local transformation encoding with OAC kernels, and attentive estimation.

OAC kernels reorder correlations based on the relative offset (displacement) between features. This makes the representation translation-invariant and much more effective at capturing how local parts of an object have moved. Furthermore, by compactly encoding local displacements into fewer channels, OAC kernels reduce the model's parameter count by approximately 40% compared to previous leading models like GeoCNN.

Attentive Global Transformation Estimation

Instead of treating every local match as equally important, A2Net employs an attention process. The model predicts an "attention score" for each local transformation. Reliable matches—typically those on the object of interest—receive high scores, while distractors from background noise are suppressed. These weighted features are then aggregated to predict the final global transformation parameters (e.g., Affine or Thin-Plate Spline).

The model is trained in a self-supervised manner. By applying random synthetic warps to single images to create training pairs, the network learns to recover transformations without requiring expensive manual keypoint annotations.

Experimental Results

A2Net was evaluated on standard semantic correspondence benchmarks, including PF-WILLOW and PF-PASCAL.

  • Performance: A2Net set a new state-of-the-art for self-supervised semantic alignment. On the PF-WILLOW benchmark, it achieved a 12.5% improvement in PCK (Probability of Correct Keypoint) over the non-attentive GeoCNN baseline.
  • Robustness: Qualitative analysis confirms that the attention mechanism successfully ignores complex backgrounds to focus on object geometry.
  • Backbone Scaling: Upgrading the backbone from VGG-16 to ResNet-101 further improved performance, reaching a PCK of 0.68 on both benchmarks.

Conclusion

A2Net demonstrates that attention is a powerful tool for denoising in spatial alignment tasks. By combining an attention mechanism with translation-invariant OAC kernels, the model achieves superior accuracy and parameter efficiency. While the model currently focuses on global transformations, future work may explore more flexible, non-parametric transformations to handle highly non-rigid deformations and multi-instance scenarios.

Summary updated

BibTeX
@inproceedings{seo2018attentive,
  author = {Paul Hongsuck Seo and Jongmin Lee and Deunsol Jung and Bohyung Han and Minsu Cho},
  title = {{Attentive Semantic Alignment with Offset-Aware Correlation Kernels}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=rJ4gvc-_WB},
}
Figure