TL;DR
This paper introduces IMD, a novel framework that bridges the gap between general-purpose vision foundation models and the specific demands of image feature matching. By leveraging generative diffusion models and a novel cross-image interaction prompt module, IMD achieves state-of-the-art performance, particularly in challenging multi-instance scenarios.
What Problem Does This Paper Address?
Image feature matching is a fundamental task in computer vision, crucial for applications like image stitching and 3D reconstruction. While recent advancements have seen the integration of powerful vision foundation models (like those trained on massive datasets) to improve matching performance, a critical misalignment has emerged. These foundation models are primarily designed for single-image understanding, whereas feature matching requires understanding the relationships between images. This discrepancy leads to difficulties, especially in scenarios with multiple instances of the same object class, where distinguishing between similar but distinct objects is paramount. Existing methods often fail to capture these instance-level details, leading to suboptimal performance.
Methods
The proposed IMD framework tackles this misalignment with two core innovations:
- Generative-Based Feature Extraction: Instead of relying on contrastive-learning based foundation models that prioritize global semantics and can lose instance-specific information, IMD utilizes generative diffusion models. These models inherently capture detailed, instance-level representations. IMD employs a frozen UNet decoder from a pre-trained text-to-image diffusion model (specifically Stable Diffusion) to extract features. This process is guided by a novel Cross-image Interaction Prompt Module (CIPM).
- Cross-image Interaction Prompt Module (CIPM): This module is designed to facilitate explicit interaction between image pairs during the feature extraction process. It generates personalized prompts for each image, conditioned on the other image in the pair. This allows the diffusion model to learn cross-image relationships and geometric/semantic correspondences more effectively than simply concatenating image features or using a shared prompt. The CIPM uses cross-attention mechanisms to achieve this interaction.
The overall framework follows a two-stage approach: first, coarse-level correspondences are established using the diffusion model's features and the CIPM, followed by a subpixel-level refinement module to achieve precise matches.
Datasets
- MegaDepth: Used for training and evaluating relative pose estimation.
- ScanNet: Used for evaluating relative pose estimation.
- HPatches: Used for evaluating homography estimation.
- InLoc: Used for evaluating visual localization.
- IMIM (Image Multi-Instance Matching): A new benchmark introduced by the authors. It is built upon the BURST dataset and specifically designed to address the limitations of existing datasets in evaluating multi-instance feature matching. IMIM contains image pairs from videos with multiple instances of the same object class, requiring more precise instance-level discrimination.
Key Insights and Ideas
- Generative Models for Matching: The paper argues that generative models, with their inherent ability to capture detailed instance-level information, are better suited for feature matching than traditional contrastive models, especially in complex scenarios.
- Misalignment is Key: The core problem identified is not just the performance of foundation models, but their misalignment with the specific requirements of feature matching tasks.
- Interaction is Crucial: Simply using foundation models independently on each image is insufficient. Explicit cross-image interaction during feature extraction is vital for capturing relationships and improving accuracy.
- Prompting for Interaction: The CIPM demonstrates that carefully designed prompts, informed by cross-image relationships, can effectively guide feature extraction for matching.
- Multi-Instance Challenge: The introduction of the IMIM benchmark highlights the growing need for datasets that specifically test the ability of models to handle multiple instances of the same object class.
Key Results
- State-of-the-Art Performance: IMD achieves state-of-the-art results on several standard benchmarks, including MegaDepth and HPatches.
- Significant Improvement on IMIM: The proposed IMD method shows a substantial improvement of 12% in matching accuracy on the newly introduced IMIM benchmark, demonstrating its effectiveness in mitigating the misalignment issue in multi-instance scenarios.
- Generalization: The model trained on MegaDepth shows impressive generalization capabilities when evaluated on other datasets.
- Qualitative Improvements: Qualitative results show IMD accurately matching correct instances, even in challenging scenarios where other methods struggle.
Limitations and Future Work
- Computational Cost: While not explicitly detailed as a limitation, the use of diffusion models and transformer architectures generally implies higher computational requirements compared to some traditional methods.
- Future Work: The authors suggest that their work will inspire future research on better utilizing vision foundation models for downstream tasks and exploring their broader applicability across diverse domains. The paper also mentions conducting further ablation studies on time steps and block indices in the supplementary material, indicating potential areas for future exploration.
Summary updated