PRISM: PRogressive dependency maxImization for Scale-invariant image Matching

Xudong Cai, Yongcai Wang, Lun Luo, Minhang Wang, Deying Li, Jintao Xu, Weihao Gu, Rui Ai · DOI

TL;DR

This paper introduces PRISM, a novel detector-free image matching framework that tackles the challenges of irrelevant feature interference and scale discrepancy. PRISM progressively prunes unmatchable image regions and adaptively handles scale variations, leading to state-of-the-art performance in various computer vision tasks.

What Problem Does This Paper Address?

Image matching, the task of finding corresponding points between two images, is fundamental to many computer vision applications like image stitching and 3D reconstruction. While "detector-free" methods have advanced significantly, they still face two major hurdles:

  1. Irrelevant Feature Interference: These methods often process the entire image, even regions that are unmatchable (e.g., sky, clouds) or lack distinct features. This leads to erroneous matches and reduced accuracy and efficiency.
  2. Scale Discrepancy: Significant differences in the scale of objects or scenes between images pose a challenge for matching algorithms, often requiring computationally expensive multi-scale processing or leading to inaccurate results.

Existing approaches struggle to effectively address both issues simultaneously, either by focusing on specific parts of the image or by attempting to handle scale variations in a less integrated manner.

Methods

PRISM introduces two key novel components:

  • Multi-scale Pruning Module (MPM): This module iteratively prunes irrelevant patch features. It works by maximizing the dependency (measured by Mutual Information) between feature sets from the two images. This progressive pruning allows the model to focus computational resources on more informative regions, gradually refining the feature sets.
  • Scale-Aware Dynamic Pruning Attention (SADPA): This attention mechanism is designed to handle scale discrepancies. It employs a hierarchical design to aggregate information from different scales. SADPA injects scale-space analysis into the attention process, allowing it to focus on relevant features across various resolutions while also incorporating pruning masks to further refine the attention.

The overall PRISM framework uses these modules within an iterative process, starting with coarse-level features from a CNN backbone and progressively refining them through multiple MPM layers. Finally, it predicts a matching matrix, refines matches to sub-pixel accuracy, and uses a weighted dual-softmax for prediction.

Datasets

PRISM was trained and evaluated on the following datasets:

  • MegaDepth: Used for training and evaluation, it's a large-scale outdoor dataset.
  • ScanNet: An indoor dataset used for evaluation.
  • InLoc: An indoor visual localization benchmark dataset.
  • Aachen Day-Night v1.1: An outdoor dataset used for visual localization, known for its challenging illumination changes.
  • HPatches: Used for homography estimation evaluation.

Key Insights and Ideas

  • Pruning is not a one-off task: The paper argues that progressively pruning irrelevant features throughout the network (rather than just at the end) is crucial for sustained accuracy and efficiency.
  • Mutual Information as a guide: Using Mutual Information to measure feature dependency provides a principled way to identify and discard uninformative or redundant features.
  • Scale and pruning are intertwined: The SADPA module elegantly combines scale-awareness with pruning, suggesting that handling scale variations is more effective when integrated with feature selection.
  • Detector-free methods can benefit from structured pruning: While detector-free methods avoid keypoint detection limitations, they can still suffer from processing noisy or irrelevant regions. PRISM shows that targeted pruning can significantly improve their performance.

Key Results

PRISM achieves state-of-the-art (SOTA) performance across various benchmarks:

  • Homography Estimation: PRISM outperforms other dense and sparse methods on the HPatches dataset, demonstrating strong accuracy.
  • Relative Pose Estimation: It sets new SOTA results on both MegaDepth and ScanNet datasets, showing significant improvements in AUC scores across different thresholds. Notably, PRISM shows impressive generalization capabilities, performing well on ScanNet even when trained solely on MegaDepth.
  • Visual Localization: PRISM achieves competitive results on InLoc and Aachen Day-Night datasets, showcasing its versatility in different environments.
  • Qualitative Results: Visualizations show PRISM generating denser and more accurate matches compared to SP+LG and LoFTR, particularly in challenging scenarios with significant scale differences or repetitive textures. It also demonstrates better handling of irrelevant regions.
  • Efficiency: While not the fastest, PRISM offers competitive runtime and significantly reduces VRAM usage compared to some baselines, especially at higher resolutions.

Limitations and Future Work

  • Runtime: While PRISM achieves excellent accuracy, its runtime is slightly slower than some highly optimized methods like LoFTR. The authors suggest that further engineering optimizations could enhance its time efficiency.
  • Generalization to extreme scale differences: While SADPA handles scale variations well, the paper notes that further improvements might be needed for extremely large scale splits.
  • Ablation studies suggest further exploration: The paper includes ablation studies that highlight the importance of each component (MPM, SADPA, gradual pruning, ROPE). Future work could explore variations or combinations of these components.
  • NMI estimator accuracy: The paper notes that the mIoU for predicted pruning masks is moderate, suggesting potential for improving the accuracy of the learned NMI estimator.

Summary updated

BibTeX
@inproceedings{cai2024prism,
  author = {Xudong Cai and Yongcai Wang and Lun Luo and Minhang Wang and Deying Li and Jintao Xu and Weihao Gu and Rui Ai},
  title = {{PRISM: PRogressive dependency maxImization for Scale-invariant image Matching}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3681209},
}
Figure