Exact and Deterministic Patch Descriptor Retrieval via Hierarchical Normalization
About
We present a patch descriptor retrieval method that returns the exact nearest neighbour -- provably identical to exhaustive full-vector search -- while evaluating only a small fraction of the database, and does so deterministically: the same (database, query) pair always produces the same result, independent of run order, thread count, or hardware. This contrasts with approximate nearest-neighbour (ANN) approaches such as HNSW and IVF-PQ, which trade exactness for speed and may return different results across runs. The enabling mechanism is Hierarchical Normalization (HN): a normalisation scheme that splits the pre-normalisation feature vector into a K-dim major component (norm sqrt(1-alpha)) and a (128-K)-dim minor component (norm sqrt(alpha)). Since the minor inner product is bounded by alpha (Cauchy-Schwarz on the prescribed norms), the major similarity plus alpha is an admissible upper bound on the full similarity: the search scans the K-dim major component for all entries, then applies full 128-dim evaluation only to entries that cannot be pruned -- a provably exact branch-and-bound scan. We train HN-modified HardNet on the notredame split of the UBC patch dataset and evaluate on trevi and halfdome. With a cache-optimised Structure-of-Arrays layout and K=8, alpha=1/32, the search achieves 13.7x (trevi) / 12.7x (halfdome) speed-up over brute-force 128-dim search, with only 0.4% of entries requiring full evaluation. At K=16, alpha=1/8, FPR@95 rises from 0.0062 to 0.0064 on trevi at 7.2x speed-up, with 98.8% of entries bypassing full evaluation.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Local Descriptor Matching | UBC trevi (test) | FPR@950.56 | 15 | |
| Local Descriptor Matching | UBC halfdome (test) | FPR@950.0414 | 15 | |
| Nearest Neighbor Search | UBC Trevi fine-tuned HN, 128-dim (N=99,000) | Recall@1100 | 11 | |
| Nearest Neighbor Search | UBC Trevi fine-tuned HN, 128-dim (N=1,000) | Speed-up9.5 | 7 | |
| Nearest Neighbor Search | UBC Trevi fine-tuned HN, 128-dim (N=5,000) | Speed-up9.5 | 7 |