GIM: Learning Generalizable Image Matcher From Internet Videos

Xuelun Shen, zhipeng cai, Wei Yin, Matthias Müller, Zijun Li, Kaixuan Wang, Xiaozhi Chen, Cheng Wang

Overview

GIM (Generalizable Image Matcher) is a self-training framework that leverages the vast diversity of internet videos to create a single image matching model capable of handling "in-the-wild" scenes. By replacing complex 3D reconstruction pipelines with a clever label propagation technique, GIM produces models that outperform specialized indoor/outdoor baselines and generalize to entirely unseen domains, such as Bird’s Eye View (BEV) point clouds.

The Challenge of Image Matching Generalization

Image matching—finding corresponding points between two different views of a scene—is a foundational task for computer vision applications like 3D reconstruction and autonomous navigation. While deep learning has significantly advanced the state-of-the-art, current models suffer from a severe "domain gap."

Most models are trained on highly specific datasets: ScanNet for indoor scenes or MegaDepth for outdoor landmarks. Consequently, an "indoor" model often fails outdoors, and vice versa. In the real world, where scene types are mixed or unknown in advance, this lack of generalization is a major bottleneck. Furthermore, creating training data usually requires Structure-from-Motion (SfM), a computationally expensive process that frequently fails on non-landmark images, severely limiting the diversity of available training data.

The GIM Framework

To address these limitations, the authors introduce GIM, a framework designed to turn any existing image matching architecture (like SuperGlue, LoFTR, or DKM) into a robust generalist. The process follows four main steps:

  1. Initial Training: The chosen architecture is first trained on standard domain-specific datasets to create a "base label generator."
  2. Self-Training on Videos: The researchers utilize 50–100 hours of YouTube tourism videos. Because videos provide a continuous stream of viewpoints, the base model, combined with complementary methods like RootSIFT, can reliably find matches between nearby frames.
  3. Label Propagation & Filtering: To create more challenging training pairs, matches are "propagated." If Frame A matches Frame B, and Frame B matches Frame C, the system infers matches between A and C. These labels are then cleaned using robust fitting (MAGSAC) to remove outliers.
  4. Strong Augmentation: The final model is trained on these video-derived labels using aggressive perspective transformations. This simulates the extreme angles and camera rolls often missing in standard datasets, forcing the model to learn highly robust features.

Crucially, GIM avoids full 3D reconstruction (SfM/MVS), making the data generation pipeline significantly faster and more reliable for diverse, in-the-wild footage.

Data and Evaluation

  • Training Data: The framework utilizes 50 to 100 hours of YouTube tourism videos covering 26 countries and 43 cities, providing a massive variety of lighting, weather, and scene types.
  • Zero-shot Evaluation Benchmark (ZEB): The authors introduce ZEB, the first benchmark specifically designed to test how well a matcher generalizes to unseen domains. It aggregates 12 different datasets (8 real-world, 4 simulated), including KITTI (driving), ETH3D (basements/schools), and RobotCar (night/weather changes).

Key Insights

  • Videos as a Scalability Engine: Internet videos are a virtually infinite resource. Unlike static photo collections, the temporal continuity of video makes it much easier to generate dense, reliable labels through propagation.
  • Bypassing the 3D Requirement: By focusing on 2D label propagation rather than 3D SfM, the authors bypass the most fragile part of traditional data pipelines. This allows GIM to learn from scenes where SfM typically fails, such as repetitive patterns or low-texture areas.
  • Generalization is a Data Diversity Problem: The results suggest that the underlying architecture of the matcher matters less than the diversity of the data it sees. A single "generalist" model can outperform specialized "expert" models on their own home turf if trained on enough varied video data.

Key Results

Performance scaling and qualitative results of GIM compared to baselines.
  • Consistent Gains: Applying the GIM framework to three state-of-the-art architectures (SuperGlue, LoFTR, DKM) improved their zero-shot performance by 6.9% to 18.1%.
  • Scaling Laws: Performance improved consistently as the amount of video data increased from 12.5 hours to 50+ hours, suggesting that the model has not yet hit a performance ceiling.
  • Extreme Generalization: The GIM-trained DKM model successfully matched Bird’s Eye View (BEV) images projected from point clouds—a domain it was never explicitly trained on—while standard models failed completely.
  • Downstream Success: In practical applications like 3D reconstruction, GIM-DKM produced significantly denser and more accurate point clouds with fewer artifacts compared to the original DKM.

Limitations and Future Directions

  • Video Selection Bias: The current method relies on high-quality tourism videos. The quality of training data still impacts performance; extremely shaky or low-resolution video might hinder the label propagation process.
  • Computational Cost: While more efficient than SfM, generating labels for 100 hours of video still requires significant GPU time (roughly 4 days on 16 A100s for label generation alone).
  • Future Work: The authors suggest scaling the framework to thousands of hours of video and exploring how GIM can be used to improve other geometric tasks beyond simple matching, such as absolute pose estimation.

Summary updated

BibTeX
@inproceedings{shen2024gim,
  author = {Xuelun Shen and zhipeng cai and Wei Yin and Matthias Müller and Zijun Li and Kaixuan Wang and Xiaozhi Chen and Cheng Wang},
  title = {{GIM: Learning Generalizable Image Matcher From Internet Videos}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=NYN1b8GRGS},
}
Figure