MatchDet: A Collaborative Framework for Image Matching and Object Detection

Jinxiang Lai, Wenlong Wu, Bin-Bin Gao, Jun Liu, Jiawei Zhan, Congchong Nie, Yi Zeng, Chengjie Wang

Abstract

In computer vision, image matching and object detection are traditionally treated as independent tasks. MatchDet challenges this paradigm by introducing a collaborative framework where these tasks mutually benefit from shared spatial cues. By utilizing a shared backbone and specialized modules for bidirectional information flow—such as homography estimates for detection and bounding boxes for matching—MatchDet achieves superior performance in both pixel-level correspondence and object localization compared to standalone models.

Introduction

Real-world applications like autonomous driving, robotic manipulation, and augmented reality frequently require both precise image matching (pixel-to-pixel correspondence) and robust object detection. However, these tasks are often developed in silos. Image matching algorithms frequently struggle with background clutter and repetitive textures, while object detection can fail under extreme viewpoints or partial occlusions.

MatchDet addresses these limitations by recognizing that detection provides a "spatial mask" for matching, and matching provides a "geometric prior" for detection. This bidirectional feedback loop allows the model to focus on relevant foreground objects and leverage geometric relationships between views to improve localization.

Methodology

MatchDet is built upon a shared ResNet-50 backbone with two specialized branches for detection and matching. The core innovation lies in three collaborative modules designed to facilitate task interaction:

MatchDet architecture illustrating the collaborative learning between the Detector and Matcher branches.
  1. Weighted Attention Module (WAM): Integrated into the Matcher branch, WAM uses a Weights Generator to produce foreground maps. This directs the transformer-based matcher's attention toward objects, effectively ignoring distracting background textures like clouds or pavement.
  2. Weighted Spatial Attention Module (WSAM): In the Detector branch, WSAM utilizes the homography estimated by the matcher to align reference image features with the target image. This provides the detector with a geometric "hint," highlighting foreground regions from alternative perspectives.
  3. Box Filter: A post-processing step that uses predicted bounding boxes from the detector to prune matching outliers that fall outside identified object areas.

The framework is highly flexible and can be integrated with various detection architectures, including FCOS, Faster R-CNN, and AdaMixer.

Experimental Results

The researchers evaluated MatchDet on two benchmarks: Warp-COCO, a synthetic dataset with perfect ground truth for both tasks, and miniScanNet, a real-world indoor dataset featuring significant viewpoint changes and high-quality annotations.

Performance comparison of MatchDet against baselines in Object Detection (AP) and Image Matching (AUC@3).

As shown in the results, MatchDet significantly outperforms its baseline (MDBase) and standalone task-specific models. On Warp-COCO, it achieved a 4.06% improvement in Object Detection (AP) and a substantial 24.24% increase in Image Matching (AUC@3px). Even in challenging scenarios where no prior information about the reference image is available, MatchDet consistently surpassed state-of-the-art matchers like LoFTR and detectors like FCOS. Furthermore, the shared backbone architecture ensures computational efficiency compared to running two independent state-of-the-art networks.

Discussion and Future Work

MatchDet demonstrates the power of task collaboration in computer vision. By explicitly weighting attention toward foreground regions, the model converges faster and produces higher-quality matches. However, some limitations remain. The WSAM module's performance is tied to the accuracy of the initial homography estimate; extreme lighting changes that severely degrade matching could potentially mislead the detector. Additionally, the current homography-based approach assumes relatively planar scenes, which may not hold in complex 3D environments with significant parallax. Future research will focus on extending this collaborative framework to handle non-planar geometry and optimizing Transformer modules for real-time performance on edge devices.

Summary updated

BibTeX
@inproceedings{lai2024matchdet,
  author = {Jinxiang Lai and Wenlong Wu and Bin-Bin Gao and Jun Liu and Jiawei Zhan and Congchong Nie and Yi Zeng and Chengjie Wang},
  title = {{MatchDet: A Collaborative Framework for Image Matching and Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i3.28066},
}
Figure