CoMatcher: Multi-View Collaborative Feature Matching

Jintao Zhang, Zimin Xia, Mingyue Dong, Shuhan Shen, Linwei Yue, Xianwei Zheng

Abstract

Feature matching is a cornerstone of computer vision, essential for tasks such as Structure-from-Motion (SfM) and Simultaneous Localization and Mapping (SLAM). Traditional methods rely on pairwise matching, which often struggles with ambiguities caused by repetitive textures or occlusions. This paper introduces CoMatcher, a novel framework that shifts the paradigm from pairwise to groupwise matching. By leveraging multi-view collaborative feature interaction and geometric constraints, CoMatcher produces more reliable 3D tracks and robust reconstructions.

Introduction

The fundamental goal of feature matching is to identify the same physical point across multiple images. While deep learning has significantly advanced this field, most state-of-the-art matchers still operate on pairs of images in isolation. This "pairwise" approach is inherently limited: a single pair of views often lacks the context necessary to resolve visual ambiguities, such as distinguishing between identical architectural features or finding points partially occluded in one view. CoMatcher addresses this by treating a set of co-visible images as a single collaborative unit, allowing information to flow across multiple views to reach a consensus.

Methodology: Beyond Pairwise Matching

CoMatcher introduces a groupwise matching pipeline designed to exploit cross-view geometric consistency. Instead of matching image A to B, then B to C, it considers the entire group simultaneously.

Multi-View Feature Interaction

The architecture replaces standard self-attention with two specialized modules:

  1. Source Cross-Attention: Points within a source view interact with points in other source views. This allows descriptors to be refined based on the shared 3D context of the entire group.
  2. Target Cross-Attention: The model simultaneously attends to the target view across all source-target pairs. This ensures that the target view's features are updated consistently relative to the group, rather than being biased by a single source image.

Geometric Constraints and RoPE

To guide the search process, CoMatcher utilizes coarse, precomputed tracks. It integrates Rotary Positional Encoding (RoPE) to embed 3D-to-2D projection geometry directly into the attention mechanism. By baking the expected geometric relationship into the model, the search space is constrained to regions where a match is physically plausible, significantly reducing errors in repetitive environments.

Multi-View Correlation and Consensus

The core innovation of CoMatcher is its "consensus" strategy. The model predicts confidence scores for matches. When a point in one view is ambiguous (low confidence), the model calculates a weighted average of attention distributions from corresponding points in other, more certain views. This collaborative correction allows the model to resolve occlusions and textures that would baffle a pairwise matcher.

Experimental Evaluation

The authors evaluated CoMatcher against industry standards like LightGlue and LoFTR across several benchmarks, including MegaDepth, HPatches, and the Image Matching Challenge (IMC).

Pose Estimation

On the MegaDepth dataset, CoMatcher achieved a pose Area Under the Curve (AUC) at 5° of 57.2. This outperforms the popular pairwise matcher LightGlue (56.2). While the dense matcher LoFTR achieved a slightly higher AUC (58.0), CoMatcher offers significantly higher computational efficiency and speed.

3D Reconstruction Quality

In Structure-from-Motion (SfM) evaluations on the "Sacre Coeur" scene, CoMatcher demonstrated superior stability. It generated 19.3k landmarks with an average track length of 7.21, surpassing LightGlue’s 18.7k landmarks and 6.92 track length. Longer track lengths indicate more consistent matching across multiple viewpoints, leading to more complete and stable 3D models.

Key Insights

  • Integrated Consistency: Multi-view consistency is most effective when integrated into the feature learning process itself, rather than applied as a post-processing step like RANSAC.
  • Efficiency of Groups: Processing a group of images (e.g., 4 source views to 1 target) in a single forward pass is often more accurate and faster than running multiple independent pairwise operations.
  • Optimal Group Size: Performance gains are most significant when moving from 2 to 5 views. Beyond 6 views, the complexity of the search space and noise levels tend to stabilize performance, suggesting diminishing returns for very large groups.

Limitations and Future Work

Despite its strengths, CoMatcher has limitations. The geometric constraint mechanism depends on initial co-visibility information; if the initial grouping is inaccurate, the model's performance may degrade. Additionally, processing multiple images simultaneously increases GPU memory requirements, currently limiting group sizes to approximately 4-5 images. Future research may focus on end-to-end global matching systems and optimized set-partitioning algorithms to further scale the multi-view approach.

Summary updated

BibTeX
@inproceedings{zhang2025comatcher,
  author = {Jintao Zhang and Zimin Xia and Mingyue Dong and Shuhan Shen and Linwei Yue and Xianwei Zheng},
  title = {{CoMatcher: Multi-View Collaborative Feature Matching}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02046},
}
Figure