Abstract: We present a deep learning framework for accurate visual correspondences and demonstrate its effectiveness for both geometric and semantic matching, spanning across rigid motions to intra-class shape or appearance variations. In contrast to previous CNN-based approaches that optimize a surrogate patch similarity objective, we use deep metric learning to directly learn a feature space that preserves either geometric or semantic similarity. Our fully convolutional architecture, along with a novel correspondence contrastive loss allows faster training by effective reuse of computations, accurate gradient computation through the use of thousands of examples per image pair and faster testing with $O(n)$ feed forward passes for $n$ keypoints, instead of $O(n^2)$ for typical patch similarity methods. We propose a convolutional spatial transformer to mimic patch normalization in traditional features like SIFT, which is shown to dramatically boost accuracy for semantic correspondences across intra-class shape variations. Extensive experiments on KITTI, PASCAL, and CUB-2011 datasets demonstrate the significant advantages of our features over prior works that use either hand-constructed or learned features.
TL;DR
The Universal Correspondence Network (UCN) is a deep learning framework that masters both geometric and semantic image matching by directly learning a feature space where similar points are close together. By utilizing a fully convolutional architecture and a novel "convolutional spatial transformer," UCN achieves state-of-the-art accuracy across diverse datasets while being significantly faster than traditional patch-based CNN approaches.
The Correspondence Problem
Finding correspondences—identifying which point in one image matches a point in another—is a fundamental task in computer vision, essential for 3D reconstruction (geometric correspondence) and functional part recognition (semantic correspondence). Historically, hand-crafted features like SIFT were the standard. While Convolutional Neural Networks (CNNs) have improved performance, many rely on computationally expensive "patch similarity" Siamese networks that optimize surrogate tasks rather than direct correspondence.
Methodology: Architecture and Learning
The UCN introduces several architectural innovations to move beyond simple patch matching:
- Deep Metric Learning: Instead of training a network to output a similarity score for two patches, UCN learns a mapping into a feature space. In this space, the Euclidean distance between features directly represents their correspondence.
- Fully Convolutional Feature Learning: By using a fully convolutional architecture, the network can process an entire image in one go. This allows for the efficient reuse of computations for overlapping regions and enables dense feature extraction.
- Convolutional Spatial Transformer (CST): This component mimics the "patch normalization" found in SIFT (which accounts for rotation and scale) but does so within the CNN. It applies independent spatial transformations to local features, allowing the network to be invariant to the massive shape and pose variations found in semantic matching.
- Correspondence Contrastive Loss & Hard Negative Mining: The authors propose a generalized contrastive loss that can handle thousands of correspondences per image pair. To speed up training, the network actively searches for "hard negatives"—points that the network incorrectly thinks are matches—and focuses on correcting those errors.
Evaluation and Results
UCN was evaluated on diverse benchmarks including KITTI (geometric), PASCAL-Berkeley, and CUB-2011 (semantic). UCN consistently outperformed both hand-crafted features and prior deep learning methods:
- Semantic Accuracy: On the PASCAL-Berkeley semantic dataset, UCN achieved a Mean PCK (Percentage of Correct Keypoints) of 44.0%, nearly doubling the performance of previous state-of-the-art methods like SIFT Flow (24.7%).
- Geometric Precision: On KITTI, UCN achieved an accuracy of 86.5% (PCK@10px), outperforming specialized methods like DaisyFF and DeepMatching.
- Computational Efficiency: Moving from $O(n^2)$ to $O(n)$ complexity at test time is a massive practical win. Because UCN maps everything into a shared metric space, finding a match becomes a simple nearest-neighbor search rather than a pairwise comparison of every possible patch.
Conclusion and Future Work
UCN demonstrates that direct optimization of a metric space, combined with local invariance via CST, significantly improves correspondence accuracy across both geometric and semantic tasks. The authors suggest that integrating UCN features with global optimization techniques (like Markov Random Fields) could further improve results by handling occlusions more effectively. Future work may also apply UCN to non-rigid shape estimation and video-based tracking.
Summary updated