Learning Covariant Feature Detectors

Karel Lenc, Andrea Vedaldi

Abstract

Local covariant feature detection, namely the problem of extracting viewpoint invariant features from images, has so far largely resisted the application of machine learning techniques. In this paper, we propose the first fully general formulation for learning local covariant feature detectors. We propose to cast detection as a regression problem, enabling the use of powerful regressors such as deep neural networks. We then derive a covariance constraint that can be used to automatically learn which visual structures provide stable anchors for local feature detection. We support these ideas theoretically, proposing a novel analysis of local features in term of geometric transformations, and we show that all common and many uncommon detectors can be derived in this framework. Finally, we present empirical results on translation and rotation covariant detectors on standard feature benchmarks, showing the power and flexibility of the framework.

Introduction

In computer vision, image matching is a fundamental task for applications like 3D reconstruction and object recognition. To match two images, one must identify the same points in both, regardless of changes in viewpoint, lighting, or rotation. This property is known as covariant detection.

For decades, the field relied on handcrafted detectors such as Harris Corners or SIFT (Scale-Invariant Feature Transform). While deep learning has revolutionized feature descriptors (how we describe a point), it has struggled to replace feature detectors (how we find the point). The primary hurdle is the lack of "ground truth" labels; there is no universal definition of what makes a good anchor point. This paper addresses this by introducing a general framework for learning local feature detectors using deep neural networks without manual labeling.

Methodology

Detection as Regression

The authors propose a radical shift: instead of scanning an image for pixels that maximize a "cornerness" score, they train a neural network to look at an image patch and predict the exact coordinates of the nearest stable feature.

The detection pipeline: input images are processed to regress feature locations (red arrows), resulting in stable detections (orange circles) that move consistently with the transformation $g$.

As shown in the figure, the network produces a vector field of regressed locations. Because the network is applied convolutionally, multiple overlapping patches "vote" for a feature location. The density of these votes acts as a natural confidence score—the more patches that agree on a feature's location, the more stable that feature likely is.

The Covariance Constraint

The "secret sauce" for unsupervised learning is the covariance constraint. A detector is covariant if, when an image is transformed (e.g., rotated), the detector returns the same feature point, transformed by the same amount.

The geometric relationship between a canonical frame $f_0$ and transformed image patches $f_1, f_2$ used to define the covariance constraint.

By using this constraint as a loss function, the network learns to find visual structures that are mathematically consistent under transformation. It doesn't need to be told to look for corners; it discovers them because they are stable anchors. This framework handles various transformations, including translations, rotations (via a specialized ROTNET), and affinities.

Experiments and Results

The models were trained on unlabeled random crops from the ImageNet ILSVRC 2012 dataset. Evaluation was performed using the VGG-Affine benchmark and the DTU-Robots dataset.

  • Superior Repeatability: The large model (DetNet-L) significantly outperformed the Harris detector and SIFT (DoG) on the DTU dataset, especially as viewpoint angles became more extreme.
  • Improved Orientation: The learned orientation detector (ROTNET) halved the error rate compared to SIFT’s standard orientation assignment, improving final matching scores across almost all test categories.
  • Efficiency: The "DetNet-S" model achieved over 80 FPS on a GPU for small images, making it viable for real-time applications.

Conclusion

This work provides a unified theory for covariant detection, demonstrating that many classic detectors are specific instances of this general formulation. By casting detection as regression and enforcing covariance, the authors enable machines to automatically discover stable visual anchors. Future work includes fully integrating learned scale selection and exploring the joint training of detectors and descriptors.

Summary updated

BibTeX
@inproceedings{lenc2016learning,
  author = {Karel Lenc and Andrea Vedaldi},
  title = {{Learning Covariant Feature Detectors}},
  booktitle = {Workshops @ ECCV},
  year = {2016},
  url = {https://openreview.net/forum?id=rkbCYY-O-B},
}
Figure