Fast Search on Binary Codes by Weighted Hamming Distance

Zhenyu Weng, Yuesheng Zhu, Ruixin Liu
9/18/2020
cs.CV

Official code: zyweng2pku/FSWBC (4 stars, C++, last commit 2020-09-22).

Abstract

Weighted Hamming distance, as a similarity measure between binary codes and binary queries, provides superior accuracy in search tasks than Hamming distance. However, how to efficiently and accurately find $K$ binary codes that have the smallest weighted Hamming distance to the query remains an open issue.

Show full abstract

In this paper, a fast search algorithm is proposed to perform the non-exhaustive search for $K$ nearest binary codes by weighted Hamming distance. By using binary codes as direct bucket indices in a hash table, the search algorithm generates a sequence to probe the buckets based on the independence characteristic of the weights for each bit. Furthermore, a fast search framework based on the proposed search algorithm is designed to solve the problem of long binary codes. Specifically, long binary codes are split into substrings and multiple hash tables are built on them. Then, the search algorithm probes the buckets to obtain candidates according to the generated substring indices, and a merging algorithm is proposed to find the nearest binary codes by merging the candidates. Theoretical analysis and experimental results demonstrate that the search algorithm improves the search accuracy compared to other non-exhaustive algorithms and provides orders-of-magnitude faster search than the linear scan baseline.

View on arXivView PDF

Code Implementations(1)

zyweng2pku/FSWBCOfficial100%

An extension version of AAAI 2020: Efficient Querying from Weighted Binary Codes.

41C++, CSep 16, 20206 years ago

Similar Papers

Cite this paper

@article{weng2020fast,
  title  = {Fast Search on Binary Codes by Weighted Hamming Distance},
  author = {Zhenyu Weng and Yuesheng Zhu and Ruixin Liu},
  year   = {2020},
  eprint = {2009.08591},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.08591}
}

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/2009.08591.svg)](https://codeofpaper.com/paper/2009.08591)

Discussion