MFilter: Pair-Conditioned Keypoint Matchability for Lightweight Sparse Matching

Xinpeng Zhu, Zhixiong Zhang, Wentao ChengarXiv 2026

TL;DR

When matching two images to figure out 3D camera geometry, ultra-fast "sparse" feature matchers often guess wrong because they rely on isolated appearance cues rather than context across both images. MFilter slips a tiny, 6,273-parameter neural network right after standard matching to re-rank candidate pairs based on how genuinely "matchable" each keypoint is for that specific image pair. The twist? Filtering for cleaner matches doesn't always guarantee better 3D pose estimation—revealing a fascinating gap between correspondence purity and geometric utility.

What Problem Does This Paper Address?

To reconstruct 3D scenes or localize a robot, computers find distinct visual landmarks (keypoints) in two images, summarize their local appearance into vectors (descriptors), and link them up. On resource-constrained devices, engineers love lightweight sparse pipelines (like XFeat): detect keypoints independently in each image, pair up Mutual Nearest Neighbors (MNN)—where point A’s best match is B, and B’s best match is A—and hand those pairs to a geometric solver like RANSAC (an algorithm that estimates 3D camera motion while ignoring bad matches).

Here is the catch: a keypoint's confidence score only reflects a single image (e.g., "this is a sharp corner"), and descriptor similarity only measures local look-alike agreement. Neither tells you if that corner has ten identical twin corners in the other image, or if it sits in an occluded region. Heavyweight attention networks (like SuperGlue or LoFTR) solve this with deep cross-image reasoning, but at a steep computational cost. The authors ask: without touching the frozen detector, matcher, or solver, can a tiny pair-aware filter smartly re-order the candidate matches?

Methods

MFilter is a lightweight post-matching filter that leaves feature extraction, MNN matching, and geometric estimation completely unchanged.

Fig. 1: Overview of MFilter. Frozen sparse XFeat provides keypoints, descriptors, de- tector scores, and MNN candidate matches. A shared matchability head evaluates pair-conditioned features for the two keypoints of each candidate. Their scores sym- metrically gate descriptor similarity, after which the highest-ranked correspondences are passed to the unchanged pose solver. The schematic depicts the geometric-mean gate (α = 0.5); the validation-selected setting uses α = 1.5 in Eq. (3).
  1. Pair-Conditioned Feature Engineering (31 dims): Instead of running a heavy cross-attention transformer, MFilter builds a compact 31-number summary for every keypoint. Twenty numbers capture single-image context (confidence, normalized coordinates, and how crowded its $8\times8$ spatial grid cell is). Eleven numbers inject cross-image cues—such as best and second-best match similarities, similarity ratios, and the confidence/location of its best match in the opposite image.
  2. Pipeline-Derived Supervision & Shared MLP: During training, the authors run the frozen matcher and RANSAC on image pairs; any keypoint participating in a RANSAC-verified match gets a positive "M-label." A tiny shared MLP ($31 \to 64 \to 64 \to 1$, just 24.5 KiB) predicts matchability scores $m_a, m_b \in [0, 1]$ for both keypoints in a candidate match.
  3. Symmetric Fusion: Descriptor similarity $q_j$ is symmetrically gated by both endpoints: $s_j = q_j (m_a m_b)^\alpha$ (with $\alpha=1.5$). The top 90% of candidates (retaining at least 100) are passed to RANSAC.

Datasets

No new datasets are introduced; the authors evaluate across three standard benchmarks:

  • MegaDepth1500: Outdoor tourist landmarks with extreme viewpoint and lighting shifts (1,000 training pairs, 200 validation pairs, 1,500 test pairs for relative pose estimation).
  • HPatches: 116 planar sequences (580 pairs) testing homography estimation under illumination and viewpoint changes, used for zero-shot transfer and 5-fold in-domain retraining.
  • ScanNet1500: Challenging indoor RGB-D scenes (often textureless walls/floors), used for zero-shot transfer (1,500 test pairs) and in-domain retraining (1,200 pairs).

Key Insights and Ideas

  • Cleaner matches $\neq$ better 3D geometry: Across backbones and datasets, MFilter reliably boosts the inlier ratio (the percentage of geometrically valid matches). Yet downstream camera pose accuracy (AUC) doesn't always rise in lockstep! Why? Geometric solvers need spatially spread-out points for leverage. MFilter actually retains fewer total inliers on XFeat than the raw baseline (830.8 vs. 852.2), yet achieves better pose accuracy because it prunes noisy local clusters while preserving wide spatial support.
  • Classic heuristics punch way above their weight: When tested against stronger zero-cost baselines—like Lowe's ratio or similarity margin (the gap between the best and second-best match)—classic heuristics remain fiercely competitive, beating MFilter on 3 out of 4 feature backbones.
  • Tiny model, sneaky workspace memory: Even a microscopic 24.5 KiB neural network can bottleneck memory if its input features require computing a full $n_a \times n_b$ all-pairs descriptor similarity matrix first.

Key Results

On MegaDepth1500 with sparse XFeat, MFilter improves mean Pose-AUC from 55.62% (raw) and 55.58% (similarity-filtered at the same 90% keep rate) to 56.65%. In zero-shot transfer to indoor ScanNet1500, mean Pose-AUC rises from 28.80% (raw) and 29.18% (similarity-filtered) to 29.64%.

Table 4: MegaDepth1500 experiments with backbone-specific heads. Mean pose AUC and the MFilter-minus-control difference are percentages. Each row uses the strongest reported low-cost control for that backbone.

When retrained on other backbones (SuperPoint, ALIKED, DISK), MFilter improves RANSAC inlier ratios across the board (+0.40%, +0.18%, +1.58%), and beats the strongest handcrafted control on SuperPoint (+0.70% AUC), though margin/Lowe-ratio edge it out on XFeat (-0.19%), DISK (-0.40%), and ALIKED (-0.63%). On an RTX 4090, MFilter adds just 5.02 ms of latency (42.94 ms $\to$ 47.96 ms), while peak GPU memory climbs from 144.3 MiB to 464.4 MiB.

Limitations and Future Work

  • Memory overhead: Constructing the full $O(n_a n_b)$ pairwise similarity matrix to extract best/second-best match features adds 320.1 MiB to peak VRAM, limiting true low-memory deployment despite the tiny MLP.
  • Pipeline-locked supervision: Because M-labels come from a specific matcher and RANSAC verifier, the head learns pipeline-specific quirks rather than universal matchability, and requires backbone-specific retraining.
  • Unmeasured geometric leverage: Optimizing for per-point matchability improves correspondence purity, but does not directly optimize for spatial coverage or geometric leverage—pointing to an exciting open problem for future lightweight filters.

Summary updated

BibTeX
@misc{zhu2026mfilter,
  author = {Xinpeng Zhu and Zhixiong Zhang and Wentao Cheng},
  title = {{MFilter: Pair-Conditioned Keypoint Matchability for Lightweight Sparse Matching}},
  year = {2026},
  eprint = {2611.37076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37076},
}
Figure