Abstract
Local feature learning under weak supervision typically relies on the joint optimization of detectors and descriptors. However, this approach often leads to training ambiguity, where the model fails to distinguish between poor detection and poor description. We present PoSFeat (Camera Pose Supervised Feature), which introduces a decoupled training strategy. By first establishing a robust descriptor through a geometry-aware "Line-to-Window" search and subsequently training the detector, PoSFeat eliminates hallucinated keypoints and achieves state-of-the-art performance across multiple benchmarks, including HPatches, Aachen Day-Night, and ETH 3D reconstruction.
Introduction
Establishing pixel-level correspondences is a fundamental challenge in computer vision, underpinning tasks such as Simultaneous Localization and Mapping (SLAM), Structure-from-Motion (SfM), and visual localization. While deep learning has significantly advanced the state-of-the-art, the requirement for dense, pixel-perfect ground truth labels remains a major bottleneck. Weakly supervised methods, which utilize camera poses as a supervisory signal, offer a scalable alternative.
Despite their promise, existing weakly supervised frameworks often employ joint training of the detector and descriptor. This coupling introduces a significant flaw: the loss function cannot pinpoint whether a matching failure stems from a sub-optimal keypoint location or an uninformative descriptor. Consequently, models often "hallucinate" keypoints in untextured regions like the sky or on repetitive patterns that are mathematically easy to match but geometrically irrelevant.
Methodology: The Decoupled Training Pipeline
PoSFeat addresses these issues through a two-stage decoupled training pipeline designed to provide a cleaner gradient signal.
Stage 1: Descriptor Training with Epipolar Constraints
The first stage focuses solely on the descriptor. To ensure geometric consistency, the authors implement a Line-to-Window search strategy. Given a point in the source image and the relative camera pose, the search space in the target image is constrained to the epipolar line. The process involves a coarse sampling along this line followed by a differentiable fine search within a local window. This approach forces the descriptor to learn features that strictly adhere to the underlying scene geometry rather than relying on simple appearance matching.
Stage 2: Postponed Detection Training
Once the descriptor network has matured and demonstrates high discriminative power, its weights are frozen. A lightweight detection network is then introduced. This detector is trained to identify regions where the pre-trained descriptors produce the most reliable and unique matches. By decoupling the tasks, the detector is not forced to compensate for an immature descriptor, leading to more stable and meaningful keypoint discovery.
Experimental Results
The model was trained on a subset of the MegaDepth dataset and evaluated on several industry-standard benchmarks.
- HPatches: PoSFeat achieved a Mean Matching Accuracy (MMA) of 0.775, significantly outperforming previous weakly supervised methods like DISK-W (0.719) and rivaling fully supervised alternatives.
- Visual Localization: On the Aachen Day-Night v1.1 benchmark, PoSFeat demonstrated superior accuracy, particularly in high-precision scenarios (0.5m, 2°), proving its robustness to extreme illumination changes.
- 3D Reconstruction: In the ETH Local Feature Benchmark, PoSFeat yielded the lowest mean reprojection error among learning-based methods, confirming its ability to provide highly accurate geometric correspondences for SfM.
Qualitative Analysis
Visual comparisons highlight the effectiveness of the decoupled approach. Baseline methods often scatter keypoints across the sky and foliage because those areas can be matched mathematically even if they lack geometric stability. In contrast, PoSFeat focuses on stable, structural elements of the architecture.
Discussion and Conclusion
PoSFeat demonstrates that decoupling is a powerful principle for weakly supervised feature learning. By prioritizing descriptor robustness and leveraging geometric constraints during training, the model avoids the pitfalls of joint optimization. While the method currently depends on accurate training poses, it sets a new standard for weakly supervised local features and suggests a promising path for other multi-task learning problems in computer vision where task dependencies create optimization bottlenecks.
Summary updated