Abstract
Image matching across different modalities—such as visible-to-thermal, MRI-to-CT, or photos-to-maps—is a critical yet challenging task due to extreme variations in appearance and texture. MatchAnything introduces a large-scale pre-training framework that enables "detector-free" matching models to generalize across diverse, unseen modalities using a single set of weights. By training on a massive mixture of synthetic cross-modal data and structural signals, MatchAnything achieves state-of-the-art performance on eight real-world tasks without any task-specific fine-tuning.
Introduction: The Challenge of Cross-Modality Matching
Image matching—identifying corresponding pixel locations between two images—is a cornerstone of computer vision, essential for medical image fusion, autonomous drone navigation, and remote sensing. While deep learning has mastered matching images within the same modality (e.g., two photos of the same building), it often fails when textures and colors change drastically across modalities.
The primary bottleneck is data scarcity; annotating cross-modal pairs, such as histology slides with different stains, requires hundreds of hours of expert labor. MatchAnything addresses this by training a model on synthetic data so effectively that it "just works" on real-world modalities it has never seen before.
Methodology: Building a Universal Matcher
The authors propose a two-pronged strategy to develop their universal matching framework:
1. Multi-Resource Dataset Mixture
To teach the model geometry and perspective, they combine three types of data:
- Multi-View Images: Using datasets with known 3D geometry (e.g., MegaDepth, ScanNet++) to warp pixels accurately.
- Video Sequences: A novel coarse-to-fine strategy builds long-range point trajectories across video frames, creating "pseudo-ground truth" matches for distant frames.
- Image Warping: Applying random homographies to single images ensures diversity in the training set.
2. Cross-Modality Stimulus Data Generator
To force the model to ignore modality-specific "noise" (like color or heat signatures) and focus on structure, they generate synthetic cross-modal pairs:
- Style Translation: Using CycleGAN to turn visible images into "synthetic thermal" or "synthetic night" images.
- Depth as Modality: By replacing one image in a pair with its monocular depth map (estimated via DepthAnything), the model learns to match based on fundamental geometric structures—edges, shapes, and layouts—rather than surface textures.
This framework was applied to two state-of-the-art "detector-free" matchers: ROMA (dense matching) and ELoFTR (semi-dense matching).
Evaluation and Performance
The model was evaluated on eight "unseen" tasks across medical imaging, histology, remote sensing, and robotics. Crucially, the same network weights were used for all tasks without any fine-tuning.
The results demonstrate a massive leap in zero-shot generalization:
- Medical Imaging: On the Harvard Brain dataset, the MatchAnything-enhanced ROMA model showed a 76.9% relative improvement over the original. On Liver CT-MR, the ELoFTR version achieved a staggering 423.7% relative improvement.
- Abstract Map Matching: In the highly abstract task of matching visible photos to vectorized maps, the model achieved a 90.4% success rate (at 10 pixels), whereas the original ROMA model failed completely.
- Zero-Shot Robustness: The model successfully matched SAR images, pathology slides, and thermal ground views, proving that pre-training on ~800 million image pairs allows for a level of robustness that specialized models cannot reach.
Conclusion and Future Work
MatchAnything proves that synthetic signals, even if not perfectly realistic, are sufficient to force networks to become "appearance-insensitive." By prioritizing structure over texture, the framework creates a "universal translator" for image matching.
While the model is highly robust across modalities, it still struggles with extreme perspective changes, such as matching ground-level photos to top-down aerial views. Future work may involve using parameter-efficient fine-tuning (like LoRA) or incorporating more diverse perspective-shifting data into the pre-training mix to address these specific geometric challenges.
Summary updated