Abstract
Establishing reliable correspondences between image pairs is fundamental to 3D reconstruction and autonomous navigation. While Transformer-based detector-free methods have set new performance benchmarks, they suffer from high computational costs and memory usage. We present EcoMatcher, a novel framework that replaces global attention with an efficient Context Cluster (CoC) mechanism. By grouping features into clusters and facilitating message sharing through anchors, EcoMatcher achieves state-of-the-art accuracy on ScanNet and MegaDepth while significantly reducing GFLOPs and memory consumption.
Introduction
The "detector-free" paradigm in image matching has gained prominence by directly matching features without an explicit interest point detection step. However, the reliance on Transformers for global receptive fields introduces quadratic complexity and high memory overhead. EcoMatcher addresses this by proposing Context Clusters as a proxy for attention, maintaining expressive power while optimizing for efficiency.
Methodology
The core of EcoMatcher is the Context Cluster (CoC) operation, which avoids the dense pixel-to-pixel communication of standard attention. Instead of every pixel interacting with every other pixel, features are grouped into clusters that share information through a central anchor.
The Context Cluster Operation
A CoC block processes features through four distinct phases:
- Preprocess: Mapping features into similarity and value spaces.
- Clustering: Assigning each feature point to its most similar center (anchor).
- Aggregating: Centers aggregate information from assigned points.
- Dispatching: Updated center information is broadcast back to the points.
System Architecture
The framework utilizes two specialized blocks to handle internal and external feature relationships:
- Self-CoC: Enhances features within a single image to capture internal structure and context.
- Cross-CoC: Facilitates interaction between image pairs by dispatching messages from "cross-anchors" in the target image to the source image, enabling efficient cross-view communication.
To ensure a global receptive field without the memory overhead typically associated with region partitioning, the authors implemented an efficient vector-based approach. By flattening tensors and using index mapping instead of sparse matrix operations, they achieved a global view with a 62% reduction in memory usage compared to naive implementations.
Experiments and Results
EcoMatcher was evaluated on industry-standard benchmarks including ScanNet (indoor), MegaDepth (outdoor), and HPatches (homography).
Key Performance Metrics
- Efficiency: EcoMatcher recorded the lowest GFLOPs (257.88) among all compared semi-dense matchers, outperforming established models like LoFTR (328.67) and ASpanFormer (391.38).
- Accuracy: On the ScanNet indoor pose estimation task, it achieved an AUC@20° of 64.1, surpassing the previous state-of-the-art ASpanFormer (63.3).
- Memory Optimization: The optimized implementation reduced inference memory consumption from 2.736 GB to 1.042 GB.
Discussion and Conclusion
EcoMatcher demonstrates that clustering-based mechanisms can effectively capture long-range dependencies at a fraction of the cost of Transformers. By enforcing local consistency through the dispatching phase, it produces more focused activations than traditional attention mechanisms. While the model still utilizes standard attention for fine-level refinement, it represents a significant step toward efficient, real-time detector-free image matching.
Summary updated