TL;DR
In 3D computer vision, relying on a single algorithm to spot visual "keypoints" in an image is like trying to paint a landscape using only one brush—what works for crisp architectural corners fails miserably on smooth, low-texture walls. Mixture of Detectors (MoD) solves this by distilling six wildly different detectors (points, lines, and edges) into one fast, unified network, and pairing it with a smart "router" that dynamically assigns the best detector to each image patch based on local texture and your total keypoint budget.
What Problem Does This Paper Address?
To reconstruct 3D scenes from 2D photos (Structure-from-Motion) or help robots navigate (SLAM), computers find distinctive visual landmarks—keypoints—in one image and match them to another. Recently, "dense matchers" shifted the paradigm: instead of needing two images to independently find the exact same points, you just pick a good spread of keypoints in Image A and let a heavy-duty matcher hunt for them across all of Image B.
Suddenly, the spatial distribution of your keypoints matters enormously. Yet, existing detectors have stubborn blind spots. Point-based detectors love rich textures; line and edge detectors shine in man-made, low-texture corridors. Furthermore, the "best" detector changes depending on your keypoint budget (whether you can afford 512 points or 8,192). Running half a dozen detectors at once is way too slow, and blindly mushing their outputs together is suboptimal. How do we get the right detector, in the right place, for the right budget—fast?
Methods
Inspired by the Mixture-of-Experts (MoE) paradigm used in large language models, the authors treat heterogeneous detectors as specialized experts. MoD operates in two stages:
- Stage 1: Multi-Teacher Distillation. Running six separate neural networks is computationally painful. Instead, MoD uses a single shared VGG backbone and six lightweight "student" heads to mimic six frozen "teacher" detectors: four point-based (DaD, DeDoDe, SuperPoint, ALIKED), one line-based (DeepLSD), and one edge-based (MuGE). Because these teachers normalize probabilities differently (image-wide Softmax vs. patch-level Softmax vs. pixel-wise Sigmoid), MoD tailors the distillation loss (KL divergence or $\ell_2$ loss) to each head. One forward pass now yields six diverse detection maps.
- Stage 2: Reward-Guided Router. With the backbone and heads frozen, a lightweight router looks at $8\times8$ image patches and decides which detector (or a "background" ignore class for useless areas like sky) takes charge. Crucially, the router fuses two branches: a texture branch (local patterns) and a budget branch (a global bias conditioned on target counts from 512 to 8,192, which can even be interpolated for custom budgets).
- Training & Sampling: Since there is no ground-truth label for "which detector belongs here," the router is trained via task-driven rewards using an off-the-shelf matcher (RoMa v2), balancing quantity (number of accurate matches) and precision (pixel error). Finally, to avoid comparing uncalibrated scores across different heads, MoD allocates the total keypoint budget proportionally to how many patches each detector won.
Datasets
- MegaDepth: 1 million internet photos of 196 outdoor scenes. Used for training (including sky/background supervision via zero-depth regions) and evaluated on 1,500 pairs for outdoor pose estimation.
- ScanNet: 1,613 monocular indoor sequences; 1,500 pairs used to evaluate indoor pose estimation.
- HPatches: Evaluates homography estimation across 56 sequences featuring geometric viewpoint changes.
- No new benchmarks were introduced.
Key Insights and Ideas
- Students beat their teachers: Because the shared encoder absorbs geometric wisdom from six diverse teachers simultaneously, the distilled student heads actually outperform their original standalone teacher models in the vast majority of test settings—while still preserving each teacher's unique spatial personality ($0.89$–$0.98$ Pearson correlation).
- Budget dictates strategy: Visualizing the router's learned biases reveals a fascinating shift in priorities as your keypoint allowance grows:
At tight budgets (512), sparse, ultra-reliable detectors like DaD are heavily favored. Around mid-tier budgets (1,024–2,048), edge detectors (MuGE) surge to trace structural boundaries. At massive budgets (8,192), edge detectors are strongly suppressed in favor of dense point clouds from DeDoDe and SuperPoint.
- Knowing when to quit: Explicitly giving the router a "background" class to mute unmatchable regions (like blank skies) measurably stabilizes routing and boosts downstream accuracy.
Key Results
Evaluated with the RoMa matcher across five budgets (512 to 8,192), MoD consistently matches or beats every standalone teacher and distilled student head:
- Outdoor Pose (MegaDepth AUC@5°): Hits 66.3 (at 512) up to 68.5 (at 8,192), beating the strongest individual teacher (DaD, which peaks at 67.8 and drops to 66.0 at 8,192).
- Indoor Pose (ScanNet AUC@5°): Reaches 30.3 (at 4,096) vs. DaD’s 29.1—a notable jump in notoriously tricky, low-texture indoor rooms.
- Homography (HPatches AUC@3px): Tops the board across all budgets, peaking at 62.6 (vs. DeDoDe’s 62.1 and DaD’s 61.1).
- Efficiency: MoD runs in 37.4 ms with 9.4M parameters on an RTX 4090—faster and far lighter than running single heavyweights like DeDoDe (65.8 ms, 14.6M) or MuGE (58.7 ms, 72.5M), let alone running all six sequentially (~231 ms).
Limitations and Future Work
The authors tried feeding final camera pose estimation errors directly back into the router as a training reward, but saw no improvement. Because the link between picking a local patch detector and solving global 3D geometry is noisy and indirect, credit assignment breaks down. Future work aims to find more structured, stable ways to wire end-to-end geometric accuracy directly into the router's reward signal.
Summary updated