Skip to main content

P-QALSH+: Exploiting Multiple Cores to Parallelize Query-Aware Locality-Sensitive Hashing on Big Data

  • Conference paper
  • First Online:
Web and Big Data (APWeb-WAIM 2023)

Abstract

Approximate nearest neighbor (ANN) search in high dimensional Euclidean space is a fundamental problem of big data processing. Locality-Sensitive Hashing (LSH) is a popular scheme to solve the ANN search problem. In the index phase, an LSH scheme needs to preprocess multiple hash tables, and in the query phase it exploits the preprocessed hash tables to speedup the ANN search. Query-Aware LSH (QALSH), a state-of-the-art LSH scheme, has rigorous theoretical guarantee on query accuracy, while suffering from high time overhead in the index and query phase. To improve the query efficiency, a multi-core parallel QALSH scheme called P-QALSH was proposed, which is mainly optimized for the query phase. In this paper, we further extend P-QALSH to P-QALSH+, which parallelizes QALSH in both the index and query phases based on multiple cores. Specifically, we first propose a Parallel Table Design to fully accelerate the index construction. Then, we follow P-QALSH to exploit a novel K-Counter Parallel Counting Technology and a novel Search Radius Estimation Strategy to improve the query performance. Using six real-world datasets and eight synthetic datasets, we have performed extensive experiments on a 16-core machine. Experimental results demonstrate the superiority of P-QALSH+ in terms of efficiency of parallel computing. Specifically, compared to QALSH, P-QALSH+ is 10-12X faster on index construction, and achieves 6-8X speedup on query search, and notably shows obvious improvement in query accuracy.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    http://groups.csail.mit.edu/vision/SUN.

  2. 2.

    https://lms.comp.nus.edu.sg/wp-content/uploads/2019/research/nuswide/NUS-WIDE.html.

  3. 3.

    https://nlp.stanford.edu/projects/glove/.

  4. 4.

    http://yann.lecun.com/exdb/mnist.

  5. 5.

    http://sites.skoltech.ru/compvision/noimi/.

  6. 6.

    https://archive.ics.uci.edu/ml/datasets/SIFT10M/.

References

  1. Anastasiu, D.C., Rangwala, H., Tagarelli, A.: Are you my neighbor? Bringing order to neighbor computing problems. In: SIGKDD. KDD 2019 (2019)

    Google Scholar 

  2. Datar, M., Immorlica, N., Indyk, P., Mirrokni, V.S.: Locality-sensitive hashing scheme based on p-stable distributions. In: SoCG, pp. 253–262 (2004)

    Google Scholar 

  3. Echihabi, K., Palpanas, T., Zoumpatianos, K.: New trends in high-d vector similarity search: AI-driven, progressive and distributed. VLDB 14(12), 3198–3201 (2021)

    Google Scholar 

  4. Echihabi, K., Zoumpatianos, K., Palpanas, T.: High-dimensional similarity search for scalable data science. In: ICDE. ICDE 2021 (2021)

    Google Scholar 

  5. Gan, J., Feng, J., Fang, Q., Ng, W.: Locality-sensitive hashing scheme based on dynamic collision counting. In: SIGMOD, pp. 541–552 (2012)

    Google Scholar 

  6. Huang, Q., Feng, J., Zhang, Y., Fang, Q., Ng, W.: Query-aware locality-sensitive hashing for approximate nearest neighbor search. VLDB 9(1), 1–12 (2015)

    Google Scholar 

  7. Huang, Y., Yao, Z., Feng, J.: P-QALSH: parallelizing query aware locality-sensitive hashing for big data. In: International Conference on Big Data (Big Data), Orlando, FL, USA, 15–18 December 2021, pp. 629–634. IEEE (2021)

    Google Scholar 

  8. Indyk, P., Motwani, R.: Approximate nearest neighbors: towards removing the curse of dimensionality. In: STOC, pp. 604–613 (1998)

    Google Scholar 

  9. Jafari, O., Maurya, P., Nagarkar, P., Islam, K.M., Crushev, C.: A survey on locality sensitive hashing algorithms and their applications. arXiv:2102.08942 (2021)

  10. Jafari, O., Nagarkar, P., Montaño, J.: Improving locality sensitive hashing by efficiently finding projected nearest neighbors. In: Satoh, S., et al. (eds.) SISAP 2020. LNCS, vol. 12440, pp. 323–337. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-60936-8_25

    Chapter  Google Scholar 

  11. Li, W., Zhang, Y., Sun, Y., Wang, W., Zhang, W., Lin, X.: Approximate nearest neighbor search on high dimensional data–experiments, analyses, and improvement. TKDE 32, 1475–1488 (2016)

    Google Scholar 

  12. Liu, W., Wang, H., Zhang, Y., Wang, W., Qin, L.: I-LSH: I/O efficient C-approximate nearest neighbor search in high-dimensional space. In: ICDE, pp. 1670–1673 (2019)

    Google Scholar 

  13. Liu, W., Wang, H., Zhang, Y., Wang, W., Qin, L., Lin, X.: EI-LSH: an early-termination driven I/O efficient incremental c-approximate nearest neighbor search. VLDB J. 30(2), 215–235 (2021)

    Article  Google Scholar 

  14. Lu, K., Kudo, M.: R2LSH: a nearest neighbor search scheme based on two-dimensional projected spaces. In: ICDE, pp. 1045–1056 (2020)

    Google Scholar 

  15. Lu, K., Wang, H., Wang, W., Kudo, M.: VHP: approximate nearest neighbor search via virtual hypersphere partitioning. VLDB 13(9), 1443–1455 (2020)

    Google Scholar 

  16. Sun, Y., Wang, W., Qin, J., Zhang, Y., Lin, X.: SRS: solving c-approximate nearest neighbor queries in high dimensional Euclidean space with a tiny index. VLDB 8(1), 1–12 (2014)

    Google Scholar 

  17. Tao, Y., Yi, K., Sheng, C., Kalnis, P.: Efficient and accurate nearest neighbor and closest pair search in high-dimensional space. TODS 35(3), 20:1–20:46 (2010)

    Google Scholar 

  18. Weber, R., Schek, H.J., Blott, S.: A quantitative analysis and performance study for similarity-search methods in high-dimensional spaces. In: VLDB, vol. 98, pp. 194–205 (1998)

    Google Scholar 

  19. Yang, C., Deng, D., Shang, S., Shao, L.: Efficient locality-sensitive hashing over high-dimensional data streams. In: ICDE, pp. 1986–1989 (2020)

    Google Scholar 

  20. Zhang, S., Huang, J., Xiao, R., Du, X., Gong, P., Lin, X.: Toward more efficient locality-sensitive hashing via constructing novel hash function cluster. Concurr. Comput. Pract. Exp. 33(20) (2021)

    Google Scholar 

Download references

Acknowledgments

The corresponding author of this work is Jianlin Feng. This work is partially supported by China NSFC under Grant No. 61772563.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jianlin Feng .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Huang, Y., Hu, Z., Feng, J. (2024). P-QALSH+: Exploiting Multiple Cores to Parallelize Query-Aware Locality-Sensitive Hashing on Big Data. In: Song, X., Feng, R., Chen, Y., Li, J., Min, G. (eds) Web and Big Data. APWeb-WAIM 2023. Lecture Notes in Computer Science, vol 14332. Springer, Singapore. https://doi.org/10.1007/978-981-97-2390-4_3

Download citation

  • DOI: https://doi.org/10.1007/978-981-97-2390-4_3

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-97-2389-8

  • Online ISBN: 978-981-97-2390-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics