[Paper Review] Density Sensitive Hashing
This paper proposes Density Sensitive Hashing (DSH), a novel hashing method that improves approximate nearest neighbor search in high-dimensional spaces by leveraging data geometry instead of random projections. By using k-means clustering to guide projection vector selection and maximizing entropy for bit discrimination, DSH achieves superior retrieval accuracy over state-of-the-art methods, especially in high-dimensional settings like GIST1M and Flickr1M.
Nearest neighbors search is a fundamental problem in various research fields like machine learning, data mining and pattern recognition. Recently, hashing-based approaches, e.g., Locality Sensitive Hashing (LSH), are proved to be effective for scalable high dimensional nearest neighbors search. Many hashing algorithms found their theoretic root in random projection. Since these algorithms generate the hash tables (projections) randomly, a large number of hash tables (i.e., long codewords) are required in order to achieve both high precision and recall. To address this limitation, we propose a novel hashing algorithm called {\em Density Sensitive Hashing} (DSH) in this paper. DSH can be regarded as an extension of LSH. By exploring the geometric structure of the data, DSH avoids the purely random projections selection and uses those projective functions which best agree with the distribution of the data. Extensive experimental results on real-world data sets have shown that the proposed method achieves better performance compared to the state-of-the-art hashing approaches.
Motivation & Objective
- Address the high storage and computational cost of random projection-based hashing methods like LSH, which require many hash tables to achieve high precision and recall.
- Overcome the limitation of purely random projections in LSH by incorporating the geometric structure of data to generate more informative hash functions.
- Develop a method that maintains efficiency while significantly improving retrieval accuracy, especially in high-dimensional data scenarios.
- Balance accuracy and efficiency by using k-means clustering and entropy maximization to guide the selection of projection vectors.
- Demonstrate that data-driven projection selection leads to better performance than random or learning-based alternatives on large-scale real-world datasets.
Proposed method
- Apply k-means clustering to partition the data into k groups, using the cluster structure to guide the selection of projection vectors.
- For each pair of adjacent clusters, generate a projection vector that best separates the two groups, ensuring the projection aligns with local data density.
- Select the final set of projection vectors based on the maximum entropy principle to maximize information content per bit.
- Use a linear projection function: h_l(x) = sgn(w_l^T x + t_l), where w_l is a learned projection vector and t_l is a threshold.
- Introduce three key parameters: p (k-means iterations), α (controls number of clusters), and r (number of adjacent groups considered), which influence performance and efficiency.
- Optimize the hashing code generation through geometric structure exploitation, avoiding purely random or complex learning-based optimization.
Experimental results
Research questions
- RQ1Can data geometry be effectively leveraged to improve the quality of hash functions in high-dimensional nearest neighbor search?
- RQ2Does replacing random projections in LSH with data-adaptive projections lead to better retrieval accuracy with fewer hash bits?
- RQ3How does the performance of DSH compare to state-of-the-art random projection and learning-based hashing methods on large-scale, high-dimensional datasets?
- RQ4What is the impact of key parameters (p, α, r) on the accuracy and efficiency of DSH?
- RQ5Is DSH particularly effective in high-dimensional settings where traditional LSH struggles due to the need for long codewords?
Key findings
- DSH achieves significantly better mean average precision (MAP) than LSH, SIKH, KLSH, SpH, and AGH on three large-scale datasets: GIST1M, Flickr1M, and SIFT1M.
- On GIST1M (960-d) and Flickr1M (512-d), DSH outperforms other methods more substantially than on SIFT1M (128-d), indicating particular strength in high-dimensional settings.
- With 64-bit codes, DSH achieves a MAP of 0.78 on GIST1M, 0.71 on Flickr1M, and 0.65 on SIFT1M, outperforming all baselines across all datasets and code lengths.
- The training time of DSH increases with k-means iterations (p) and α, but 3 iterations and α=1.5 provide a good balance between accuracy and efficiency.
- Performance degrades when r (number of adjacent groups) exceeds 5, indicating that overly redundant projections reduce effectiveness.
- DSH is faster than learning-based methods like SpH and AGH, and comparable in testing time to LSH and PCAH, making it efficient for both training and inference.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.