Selecting and Pruning: A Differentiable Causal Sequentialized State-Space Model for Two-View Correspondence Learning

Xiang Fang, Shihua Zhang, Hao Zhang, Xiaoguang Mei, Huabing Zhou, Jiayi Ma

TL;DR

CorrMamba is a new framework that brings the efficiency and selectivity of Mamba (State-Space Models) to the task of image matching. By introducing a novel, differentiable way to "sequence" unordered keypoints, it effectively filters out false matches (outliers) with linear complexity, outperforming previous state-of-the-art methods in both accuracy and computational efficiency.

What Problem Does This Paper Address?

In computer vision, "two-view correspondence learning" is the process of finding matching points between two different images of the same scene. This is a foundational step for tasks like 3D reconstruction (SfM) and visual localization.

The challenge lies in the "putative match set," which is usually riddled with outliers—false matches caused by repetitive textures or lighting changes. Existing solutions generally fall into two camps:

  1. MLP-based filters: These are fast but treat every match equally, failing to capture the complex geometric relationships needed to spot subtle outliers.
  2. Attention-based filters (Transformers): These are highly accurate because they look at the "global context," but they suffer from quadratic computational costs, making them slow and memory-hungry as the number of keypoints increases.

The authors identify a gap: we need a model that has the "selective focus" of attention mechanisms but the "linear efficiency" of simpler models.

Methods

The authors propose CorrMamba, which leverages the Selective State-Space Model (Mamba). However, Mamba was designed for sequential data (like text or audio), while image keypoints are unordered sets. To bridge this gap, they introduced three core components:

  • Causal Sequential Learning Block (CSLB): This is the paper's most clever "trick." Since Mamba requires a sequence, the authors use a learnable "Scorer" and the Gumbel-Softmax technique to sort unordered features into a causal sequence in a fully differentiable way. This allows the network to learn the best order for processing matches rather than relying on a random or handcrafted sequence.
  • Local Graph Pattern Learning (LGPL): Mamba is great at global context but can miss fine-grained local geometry. LGPL uses k-nearest neighbors and group-wise graph convolutions to ensure the model understands how a point relates to its immediate neighbors.
  • Channel-Aware Mamba Filter (CAMF): This is the engine of the model. It uses Mamba’s inherent "selectivity" to weight inliers (true matches) more heavily while suppressing outliers. They added a channel-attention mechanism to better capture the geometric constraints encoded across different feature dimensions.

Datasets

The model was evaluated on several standard benchmarks:

  • YFCC100M: A massive dataset of outdoor city scenes used for relative pose estimation.
  • SUN3D: An indoor dataset used to test performance in confined spaces with complex geometry.
  • Aachen Day-Night: A challenging visual localization benchmark that requires matching images taken during the day to those taken at night.

Key Insights and Ideas

  • Differentiable Sorting is Key: The most significant insight is that you don't have to feed Mamba a "natural" sequence. By making the sorting process part of the neural network's architecture (via CSLB), the model can autonomously determine which points are most "informative" to look at first.
  • Selectivity as a Filter: The authors realized that Mamba’s core strength—its ability to decide what to remember and what to forget in a hidden state—is mathematically analogous to the problem of outlier rejection (deciding which matches to keep and which to prune).
  • Efficiency without Sacrifice: Unlike Transformers, which compare every point to every other point ($O(N^2)$), CorrMamba maintains linear complexity ($O(N)$), making it significantly faster and lighter on memory while actually improving accuracy.

Key Results

  • State-of-the-Art Accuracy: On the YFCC100M outdoor dataset, CorrMamba outperformed the previous best method (DeMatch) by 2.58 absolute percentage points in AUC@20°.
  • Superior Efficiency: In head-to-head timing tests, CorrMamba was roughly 5x faster than LMCNet and 1.4x faster than MC-Net, while using fewer parameters and FLOPs than most attention-based competitors.
  • Robust Generalization: When trained on one type of descriptor (like SIFT) and tested on others (like SuperPoint), CorrMamba maintained its lead, proving it learns general geometric principles rather than just memorizing specific feature patterns.

Limitations and Future Work

  • Dependency on Initial Detectors: Like most outlier filters, CorrMamba’s performance is still bounded by the quality of the initial "putative matches" provided by off-the-shelf detectors like SIFT or SuperPoint.
  • Sequence Interpretation: While the CSLB learns an optimal sequence, the paper notes that these sequences are not always easily "interpretable" by humans (though they often show regional clustering).
  • Future Directions: The authors suggest that this "Mamba-for-unordered-sets" approach could be extended to other 3D tasks, such as point cloud registration or object detection, where processing efficiency is critical.

Summary updated

BibTeX
@article{fang2026selecting,
  author = {Xiang Fang and Shihua Zhang and Hao Zhang and Xiaoguang Mei and Huabing Zhou and Jiayi Ma},
  title = {{Selecting and Pruning: A Differentiable Causal Sequentialized State-Space Model for Two-View Correspondence Learning}},
  journal = {IEEE Trans. Image Process.},
  year = {2026},
  doi = {10.1109/tip.2026.3653189},
}
Figure