Learning to Align Images Using Weak Geometric Supervision

Jing Dong, Byron Boots, Frank Dellaert, Ranveer Chandra, Sudipta N. Sinha

Introduction

Image alignment is a cornerstone of computer vision, essential for tasks ranging from panorama stitching to autonomous drone navigation. Traditionally, this process relies on matching "local descriptors"—mathematical fingerprints of small image patches. However, training deep learning models to generate these descriptors typically requires massive datasets with pixel-perfect ground truth correspondences, which are prohibitively expensive to produce.

This paper proposes a self-supervised framework that jointly learns local feature descriptors and estimates 2D homography parameters between image pairs. By treating geometric transformation as a differentiable component within a Siamese network, the model learns to align images—including challenging multi-modal pairs like RGB and Infrared—starting from scratch with only a rough initial guess as "weak" supervision.

Methodology: Joint Optimization Framework

The core innovation is a joint optimization framework that bypasses the need for pre-labeled data. Instead of using a pre-trained model, the authors train a Siamese Convolutional Neural Network (CNN) while simultaneously estimating the alignment (a 2D homography).

The proposed joint optimization framework for learning descriptors and alignment parameters simultaneously.

The system consists of several key components:

  • Siamese Network: Two identical CNN branches process patches from image pairs. A contrastive loss is used to minimize the distance between descriptors of matching points while maximizing it for non-matching ones.
  • Differentiable Alignment: The homography parameters ($\psi$) are treated as variables in the loss function. Utilizing differentiable bilinear interpolation, the framework uses backpropagation to update both the network weights (descriptor learning) and the homography parameters (alignment) in tandem.
  • Weak Supervision & Coarse-to-Fine Strategy: The method requires a rough initial alignment. To handle larger offsets, a coarse-to-fine image pyramid is employed, starting optimization at low resolutions and refining as the model converges.
  • Pseudo-Siamese Variant: For multi-modal data (e.g., RGB vs. NIR), a "partially shared" network is used where the initial layers are unshared, allowing the model to adapt to the distinct low-level statistics of different sensors.

Key Results and Evaluation

The model was evaluated on the standard HPatches benchmark and a custom RGB-NIR aerial dataset collected via drone.

Performance metrics showing estimated translation error and mAP across different difficulty levels as a function of initial translation error.
  • Standard Benchmarks: On HPatches, the "from scratch" method achieved a Mean Average Precision (mAP) of 0.63, comparable to state-of-the-art models trained on massive supervised datasets (ranging from 0.59 to 0.62).
  • Multi-Modal Superiority: In RGB vs. NIR alignment, the method (mAP 0.603) significantly outperformed traditional SIFT (0.098) and pre-trained deep descriptors like DeepCompare (0.101).
  • Robustness: As shown in the performance plots, the system maintains high mAP and low estimation error even with initial translation offsets up to 10% of the image size, demonstrating strong convergence properties.

Discussion

A key insight from this work is that the training loss surface relative to alignment offsets is surprisingly smooth, even with an untrained network. This allows the gradient to guide alignment before the descriptors are fully optimized. As alignment improves, the network receives better training pairs, creating a virtuous cycle of mutual reinforcement.

While the method currently assumes a planar scene (2D homography) and requires a reasonable initial overlap, it represents a significant step toward fully automated, self-supervised image registration. Future work will focus on extending this approach to complex 3D scenes with significant parallax.

Summary updated

BibTeX
@inproceedings{dong2018learning,
  author = {Jing Dong and Byron Boots and Frank Dellaert and Ranveer Chandra and Sudipta N. Sinha},
  title = {{Learning to Align Images Using Weak Geometric Supervision}},
  booktitle = {3DV},
  year = {2018},
  doi = {10.1109/3dv.2018.00085},
}
Figure