Unsupervised Multi-Index Semantic Hashing

Christian Hansen, Casper Hansen, Jakob Grue Simonsen, Stephen Alstrup, Christina Lioma
3/26/2021
cs.IRcs.LG

Official code: Varyn/MISH (3 stars, Python, last commit 2022-12-11).

Abstract

Semantic hashing represents documents as compact binary vectors (hash codes) and allows both efficient and effective similarity search in large-scale information retrieval. The state of the art has primarily focused on learning hash codes that improve similarity search effectiveness, while assuming a brute-force linear scan strategy for searching over all the hash codes, even though much faster alternatives exist.

Show full abstract

One such alternative is multi-index hashing, an approach that constructs a smaller candidate set to search over, which depending on the distribution of the hash codes can lead to sub-linear search time. In this work, we propose Multi-Index Semantic Hashing (MISH), an unsupervised hashing model that learns hash codes that are both effective and highly efficient by being optimized for multi-index hashing. We derive novel training objectives, which enable to learn hash codes that reduce the candidate sets produced by multi-index hashing, while being end-to-end trainable. In fact, our proposed training objectives are model agnostic, i.e., not tied to how the hash codes are generated specifically in MISH, and are straight-forward to include in existing and future semantic hashing models. We experimentally compare MISH to state-of-the-art semantic hashing baselines in the task of document similarity search. We find that even though multi-index hashing also improves the efficiency of the baselines compared to a linear scan, they are still upwards of 33% slower than MISH, while MISH is still able to obtain state-of-the-art effectiveness.

View on arXivView PDF

Code Implementations(1)

Varyn/MISHOfficial100%

Unsupervised Multi-Index Semantic Hashing (WWW'21)

30PythonFeb 14, 20213 years ago

Similar Papers

Cite this paper

@article{hansen2021unsupervised,
  title  = {Unsupervised Multi-Index Semantic Hashing},
  author = {Christian Hansen and Casper Hansen and Jakob Grue Simonsen and Stephen Alstrup and Christina Lioma},
  year   = {2021},
  eprint = {2103.14460},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.14460}
}

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

Discussion