Learning Second-Order Attentive Context for Efficient Correspondence Pruning

Xinyi Ye, Weiyue Zhao, Hao Lu, Zhiguo Cao

Introduction

Correspondence pruning is a fundamental task in computer vision, essential for applications ranging from 3D reconstruction to autonomous navigation. The goal is to identify "inliers"—true matches between two images—from a set of potential point correspondences that often contain a high percentage of "outliers" (false matches). While deep learning has significantly advanced this field, existing high-accuracy methods often struggle with extreme noise or suffer from prohibitive computational costs.

Presented at AAAI 2023, the authors introduce ANA-Net, a framework designed to address these challenges by leveraging "second-order attentive context." By approximating complex matrix operations into a linear-time formulation, ANA-Net achieves state-of-the-art accuracy while running significantly faster than previous leading methods.

The Challenge of Correspondence Pruning

Modern correspondence pruning faces two primary obstacles:

  1. High Outlier Ratios: In many real-world scenarios, the true signal is submerged in noise, with outlier ratios exceeding 80-90%. Standard models frequently fail to distinguish the underlying geometric structure under such conditions.
  2. Efficiency Bottlenecks: High-performance methods, such as LMCNet, often rely on complex operations like Singular Value Decomposition (SVD). These operations typically have a computational complexity of $O(N^3)$, where $N$ is the number of points. This makes them unsuitable for real-time applications where thousands of points must be processed rapidly.

Methodology: Attention in Attention (ANA)

The core of the proposed framework is the Attention in Attention (ANA) block. This module captures two distinct levels of context to better differentiate inliers from outliers.

First-Order and Second-Order Attention

  • First-Order Attention: This follows the standard self-attention mechanism, evaluating the feature similarity between individual points. It essentially asks: "How similar is the feature of point A to point B?"
  • Second-Order Attention: This represents the primary innovation. It examines the consistency of attention patterns. Instead of just looking at raw features, it asks: "Does point A 'pay attention' to the same neighbors that point B pays attention to?" The authors observed that inliers tend to exhibit similar global attention footprints, even if their local features vary.

Linear-Time Approximation

Calculating second-order similarity traditionally requires constructing an $N \times N$ matrix and performing heavy computations. To overcome this, the authors derived a Linear Form approximation. By capturing the "distinctive information" of the attention matrix with $O(N)$ complexity, the model achieves global consensus with negligible overhead. ANA-Net stacks five of these ANA blocks to iteratively refine the probability of each match being an inlier.

Experimental Evaluation

The authors evaluated ANA-Net across several diverse benchmarks to ensure robustness and generalization:

  • YFCC100M: A large-scale dataset of outdoor tourist landmarks.
  • SUN3D: An indoor dataset used to test performance in confined, cluttered spaces.
  • MULTI: A challenging dataset containing multiple consistent motions (e.g., moving objects), testing the model's ability to handle non-rigid environments.
  • Feature Generalization: The model was tested using both traditional SIFT descriptors and modern learned SuperPoint features.

Key Results and Insights

ANA-Net demonstrates significant improvements in both speed and robustness:

  • Computational Efficiency: ANA-Net processes 2,048 points in approximately 14.36ms, compared to 212.99ms for LMCNet—a 14x speedup. This performance makes it highly viable for real-time robotics and mobile applications.
  • Robustness in Extreme Noise: On the SUN3D dataset, ANA-Net maintained high precision in scenarios with 80-95% outliers, where previous models like OANet began to degrade significantly.
  • Multi-Motion Handling: On the MULTI dataset, ANA-Net achieved an F1-score of 68.34, outperforming OANet (59.18) and LMCNet (56.00). This suggests that second-order context is particularly effective at distinguishing between different groups of valid matches in dynamic scenes.

Conclusion

The "Attention in Attention" approach treats attention weights as a rich structural signal rather than just intermediate values. By deriving a linear approximation of spectral properties, the authors provide the benefits of complex clustering methods at a fraction of the cost. While the model faces challenges in extremely chaotic distributions where bimodal signals are weak, the ANA block remains a versatile module with potential applications in object detection and point cloud processing.

Summary updated

BibTeX
@inproceedings{ye2023learning,
  author = {Xinyi Ye and Weiyue Zhao and Hao Lu and Zhiguo Cao},
  title = {{Learning Second-Order Attentive Context for Efficient Correspondence Pruning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i3.25431},
}
Figure