SAH: Shifting-aware Asymmetric Hashing for Reverse k-Maximum Inner Product Search

Qiang Huang, Yanhao Wang, Anthony K. H. Tung
11/23/2022
cs.IRcs.DBcs.DS

Official code: HuangQiang/SAH (6 stars, C++, MIT, last commit 2023-08-04).

Abstract

This paper investigates a new yet challenging problem called Reverse $k$-Maximum Inner Product Search (R$k$MIPS). Given a query (item) vector, a set of item vectors, and a set of user vectors, the problem of R$k$MIPS aims to find a set of user vectors whose inner products with the query vector are one of the $k$ largest among the query and item vectors.

Show full abstract

We propose the first subquadratic-time algorithm, i.e., Shifting-aware Asymmetric Hashing (SAH), to tackle the R$k$MIPS problem. To speed up the Maximum Inner Product Search (MIPS) on item vectors, we design a shifting-invariant asymmetric transformation and develop a novel sublinear-time Shifting-Aware Asymmetric Locality Sensitive Hashing (SA-ALSH) scheme. Furthermore, we devise a new blocking strategy based on the Cone-Tree to effectively prune user vectors (in a batch). We prove that SAH achieves a theoretical guarantee for solving the RMIPS problem. Experimental results on five real-world datasets show that SAH runs 4$\sim$8$\times$ faster than the state-of-the-art methods for R$k$MIPS while achieving F1-scores of over 90\%. The code is available at \url{https://github.com/HuangQiang/SAH}.

View on arXivView PDF

Code Implementations(1)

HuangQiang/SAHOfficial100%
MIT

Shfiting-aware Asymmetric Hashing for Reverse k-MIPS (AAAI 2023)

60C++, ShellMay 22, 20223 years agoMIT
cone-treelshrkmipssahsimpfer

Similar Papers

Cite this paper

@article{huang2022sah,
  title  = {SAH: Shifting-aware Asymmetric Hashing for Reverse k-Maximum Inner Product Search},
  author = {Qiang Huang and Yanhao Wang and Anthony K. H. Tung},
  year   = {2022},
  eprint = {2211.12751},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.12751}
}

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

Discussion