[Paper Review] COTR: Correspondence Transformer for Matching Across Images
COTR introduces a Transformer-based correspondence network that predicts sparse or dense correspondences between images via a functional mapping, leveraging multi-scale inference and self-attention to model both local and global priors. It achieves state-of-the-art performance across diverse tasks—including wide-baseline stereo, optical flow, and object-centric scenes—without retraining.
We propose a novel framework for finding correspondences in images based on a deep neural network that, given two images and a query point in one of them, finds its correspondence in the other. By doing so, one has the option to query only the points of interest and retrieve sparse correspondences, or to query all points in an image and obtain dense mappings. Importantly, in order to capture both local and global priors, and to let our model relate between image regions using the most relevant among said priors, we realize our network using a transformer. At inference time, we apply our correspondence network by recursively zooming in around the estimates, yielding a multiscale pipeline able to provide highly-accurate correspondences. Our method significantly outperforms the state of the art on both sparse and dense correspondence problems on multiple datasets and tasks, ranging from wide-baseline stereo to optical flow, without any retraining for a specific dataset. We commit to releasing data, code, and all the tools necessary to train from scratch and ensure reproducibility.
Motivation & Objective
- To bridge the gap between sparse and dense correspondence methods by unifying them under a single differentiable framework.
- To enable accurate correspondence prediction for arbitrary query points, supporting both sparse and dense inference.
- To model complex correspondence patterns, including discontinuities due to 3D geometry, using attention mechanisms.
- To develop a recursive multi-scale inference strategy that improves localization accuracy through iterative refinement.
- To demonstrate generalization across datasets and tasks without fine-tuning or architectural changes.
Proposed method
- COTR formulates correspondence as a functional mapping: $ x' = \mathcal{F}_{\Phi}(x \mid I, I') $, where $ \mathcal{F}_{\Phi} $ is a Transformer-based network that predicts the corresponding point $ x' $ in the second image given a query point $ x $ in the first.
- The model uses cross-attention between query positions and image features to attend to relevant global and local context, enabling it to handle large displacements and complex motions.
- A recursive zoom-in mechanism is applied at inference: the model refines predictions by focusing on smaller regions around estimated correspondences, progressively improving accuracy.
- The network is trained with a differentiable loss that minimizes the end-to-end pixel error (EPE) between predicted and ground-truth correspondences.
- A filtering mechanism is applied post-prediction to remove low-confidence correspondences, improving the quality of dense interpolation.
- The architecture is ablated by replacing the Transformer with a Multi-Layer Perceptron (MLP), demonstrating the necessity of attention for modeling discontinuous correspondences.
Experimental results
Research questions
- RQ1Can a single deep learning framework effectively handle both sparse and dense correspondence tasks without architectural or training reconfiguration?
- RQ2How does the self-attention mechanism in a Transformer improve correspondence estimation compared to fully connected or MLP-based models, especially in the presence of geometric discontinuities?
- RQ3To what extent does recursive multi-scale refinement enhance the accuracy of correspondence predictions?
- RQ4Can the model generalize to unseen datasets and motion types, such as multi-object motion or object pose changes, without fine-tuning?
- RQ5What is the impact of filtering low-confidence correspondences on the quality of dense correspondence maps?
Key findings
- COTR achieves state-of-the-art performance on HPatches, KITTI, ETH3D, and IMC2020 datasets for both sparse and dense correspondence tasks without any retraining.
- On the HPatches dataset, COTR outperforms SuperGlue (the 2k-keypoint category winner) with only 512 input matches and DISK (runner-up) with 256 matches.
- The recursive zoom-in strategy reduces the end-to-end pixel error (EPE) significantly, with error distributions shifting left and becoming more concentrated at higher zoom levels.
- Abllation studies show that replacing the Transformer with an MLP leads to globally smooth but geometrically inaccurate predictions, especially at object boundaries.
- Filtering bad correspondences improves AEPE by approximately 5% relative on ETH3D, with only 1.2% of predictions removed on average.
- Qualitative results demonstrate that COTR successfully captures complex motions such as object swapping and non-planar 3D structures, while baselines like GLU-Net fail.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.