Fast Exact Search in Hamming Space with Multi-Index Hashing

Mohammad Norouzi, Ali Punjani, David J. Fleet
7/11/2013
cs.CVcs.AIcs.DS

Official code: norouzi/mih (289 stars, last commit 2015-11-02).

Abstract

There is growing interest in representing image data and feature descriptors using compact binary codes for fast near neighbor search. Although binary codes are motivated by their use as direct indices (addresses) into a hash table, codes longer than 32 bits are not being used as such, as it was thought to be ineffective. We introduce a rigorous way to build multiple hash tables on binary code substrings that enables exact k-nearest neighbor search in Hamming space. The approach is storage efficient and straightforward to implement. Theoretical analysis shows that the algorithm exhibits sub-linear run-time behavior for uniformly distributed codes. Empirical results show dramatic speedups over a linear scan baseline for datasets of up to one billion codes of 64, 128, or 256 bits.

View on arXivView PDF

Code Implementations(1)

norouzi/mihOfficial100%

Fast exact nearest neighbor search in Hamming distance on binary codes with Multi-index hashing

28968C, C++Jun 8, 201210 years agoNOASSERTION

Similar Papers

Cite this paper

@article{norouzi2013fast,
  title  = {Fast Exact Search in Hamming Space with Multi-Index Hashing},
  author = {Mohammad Norouzi and Ali Punjani and David J. Fleet},
  year   = {2013},
  eprint = {1307.2982},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1307.2982}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1307.2982.svg)](https://codeofpaper.com/paper/1307.2982)

Discussion