HAP: An Efficient Hamming Space Index Based on Augmented Pigeonhole Principle
Qiyu Liu, Yanyan Shen, Lei Chen
Abstract
The emerging deep learning techniques prefer mapping complex data objects (e.g., images, documents) to compact binary vectors (i.e., hash codes) for efficient similarity search. In this paper, we study the problem of indexing large-scale binary databases to support fast Hamming distance-based similarity queries. Existing Hamming space indices usually divide long binary vectors into short disjoint pieces and apply the Pigeonhole Principle to prune unnecessary candidates. In our work, we relax the disjoint partition constraint by allowing dimension redundancy, which yields a tighter pruning bound named Augmented Pigeonhole Principle (APP). Intuitively, APP enables more optimization opportunities by capturing the correlation between database and query workloads. Based on APP, we propose HAP, an efficient Hamming space index framework to support both Hamming range queries and k-NN queries.
Ask Lune
Know where this paper stands in minutes, not an afternoon.
Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
its abstract · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers3
- Cardinality Estimation for Similarity Search on High-Dimensional Data Objects: The Impact of Reference ObjectsHai Lan, Shixun Huang, Zhifeng Bao, Renata Borovica-GajicVLDB 2025 · 7 citations
- A Two-Level Signature Scheme for Stable Set Similarity JoinsDaniel Ulrich Schmitt, Daniel Kocher, Nikolaus Augsten, Willi Mann et al.VLDB 2023 · 3 citations
- Not Small Enough? SegPQ: A Learned Approach to Compress Product Quantization CodebooksQiyu Liu, Yanlin Qi, Siyuan Han, Jingshu Peng et al.VLDB 2025 · 1 citation
Related papers
- SECRET: Towards Scalable and Efficient Code Retrieval via Segmented Deep HashingWenchao Gu, Ensheng Shi, Yanlin Wang, Lun Du et al.ICSE 2025 · 3 citations
- GHashing: Semantic Graph Hashing for Approximate Similarity Search in Graph DatabasesZongyue Qin, Yunsheng Bai, Yizhou SunKDD 2020 · 29 citations
- Monotonic Cardinality Estimation of Similarity Selection: A Deep Learning ApproachYaoshu Wang, Chuan Xiao, Jianbin Qin, Xin Cao et al.SIGMOD 2020 · 19 citations
- PDX: A Data Layout for Vector Similarity SearchLeonardo Kuffó, Elena Krippner, Peter BonczSIGMOD 2025 · 6 citations
- Maximum-Margin Hamming HashingRong Kang, Yue Cao, Mingsheng Long, Jianmin Wang et al.ICCV 2019 · 33 citations
