NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HPatches: A benchmark and evaluation of handcrafted and learned local descriptors

Vassileios Balntas, Karel Lenc, Andrea Vedaldi, Krystian Mikolajczyk

TL;DR

HPatches (Homography Patches) is a new, large-scale benchmark designed to bring reproducibility and rigor to the evaluation of local image descriptors. By moving to a patch-based system and introducing diverse tasks like matching and retrieval, the authors reveal that classic handcrafted descriptors like SIFT, when properly normalized, remain surprisingly competitive with state-of-the-art deep learning models.

What Problem Does This Paper Address?

For over a decade, the computer vision community relied heavily on the Oxford matching dataset to evaluate local descriptors (the mathematical "fingerprints" of small image regions). However, this dataset is tiny (only 48 images) and has become "saturated"—modern descriptors perform so well on it that it's hard to distinguish between them.

More importantly, the authors point out a reproducibility crisis: different papers often report contradictory rankings for the same descriptors. This happens because evaluations are often "image-based," meaning the results depend heavily on the choice of interest point detector and its specific parameters rather than the descriptor itself. Furthermore, most recent deep-learned descriptors are trained and tested only on "patch verification" (deciding if two patches match), which doesn't always translate to real-world performance in tasks like image retrieval.

Methods

The authors propose a patch-based benchmark to isolate the descriptor from the detector.

  1. Patch Extraction: They extract patches from 116 image sequences. To simulate real-world detector noise, they apply varying levels of geometric perturbations—labeled EASY, HARD, and TOUGH—to the patch coordinates before extraction.
  2. Multitask Evaluation: Instead of just one test, they define three distinct tasks:
  3. Patch Verification: A binary classification task: do these two patches represent the same physical point?
  4. Image Matching: Given a patch in a reference image, find its counterpart in a target image among many candidates.
  5. Patch Retrieval: Find all instances of a query patch in a large pool containing thousands of "distractor" patches from other images.
  6. Metrics: They advocate for mean Average Precision (mAP). Unlike ROC curves, mAP is better suited for the highly unbalanced nature of descriptor matching, where negative examples (non-matches) vastly outnumber positive ones.
  7. Normalization: The authors test the impact of post-processing, specifically ZCA whitening, power-law normalization (square-rooting), and L2 normalization.
Figure 2. Example of the geometric noise visualized with the ex- tracted patches for the EASY, HARD and TOUGH distributions.

Datasets

The authors introduce the HPatches dataset, which is significantly larger and more diverse than its predecessors.

  • Scale: 116 sequences (57 with illumination changes, 59 with viewpoint changes).
  • Diversity: Images are sourced from multiple existing datasets (like DTU, Oxford, and PhotoTourism) to ensure a wide variety of scenes, from graffiti to indoor laboratory settings.
  • Comparison: As shown in the paper's comparison table, HPatches is the only dataset that is simultaneously patch-based, diverse, real-world, large-scale, and multitask.
Diverse scenes included in the HPatches dataset, showing variations in viewpoint and illumination.

Key Insights and Ideas

  • Normalization is a Game-Changer: One of the most striking findings is that simple post-processing (like ZCA whitening and RootSIFT-style normalization) can boost the performance of traditional descriptors like SIFT to the level of modern deep-learned descriptors.
  • Task Generalization is Not Guaranteed: Descriptors that excel at patch verification (the standard training task for deep models) often drop in rank when tested on image matching or retrieval. This highlights the danger of over-optimizing for a single, narrow metric.
  • Illumination vs. Geometry: The benchmark reveals that modern descriptors are actually more robust to geometric viewpoint changes than they are to extreme illumination changes, suggesting a clear direction for future research.
  • Binary Descriptors Trade-off: While binary descriptors like ORB and BRIEF are significantly faster and more compact, they are consistently outperformed by real-valued descriptors in matching and retrieval tasks.

Key Results

The evaluation compared a wide range of descriptors, including handcrafted (SIFT, BRIEF, ORB) and deep-learned (DeepDesc, TFeat, DeepCompare).

  • Top Performers: The best overall results were achieved by +DDESC (a learned descriptor) and +RSIFT (normalized SIFT). In the retrieval task, +DDESC achieved a mAP of 44.55%, closely followed by +RSIFT at 43.84%.
  • SIFT's Resilience: Standard SIFT (24.92% mAP in matching) sees a massive jump when normalized (+SIFT reaches 32.76% and +RSIFT reaches 36.77%), outperforming several deep learning models that were not post-processed.
  • Verification vs. Retrieval: A baseline like MSTD (mean and standard deviation of the patch) performs decently on verification (48.75%) but fails completely on retrieval (1.20%), proving that verification alone is an insufficient benchmark.
Summary of results across the three tasks, showing how descriptor rankings shift and the impact of normalization (indicated by dashed bars).

Limitations and Future Work

While HPatches solves the descriptor evaluation problem, it intentionally ignores the detector side of the pipeline by using pre-extracted patches. The authors acknowledge that the dataset contains ground-truth homographies that could be used to evaluate detectors in the future, but that is not the focus of this specific study.

Future work could involve expanding the dataset to include non-planar scenes where homographies are insufficient, or developing end-to-end learned systems that are optimized for the more challenging retrieval and matching tasks identified here, rather than just simple patch verification.

Summary updated

BibTeX
@misc{balntas2017hpatches,
  author = {Vassileios Balntas and Karel Lenc and Andrea Vedaldi and Krystian Mikolajczyk},
  title = {{HPatches: A benchmark and evaluation of handcrafted and learned local descriptors}},
  year = {2017},
  eprint = {1704.05939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.05939},
}
Figure