This work suggests faster and space-efficient index construction algorithms for LSH for Euclidean distance (~\ELSH) and cosine similarity (~\SRP). The index construction step of these LSHs relies on grouping data points into several bins of hash tables based on their hashcode. To generate an -dimensional hashcode of the -dimensional data point, these LSHs first project the data point onto a -dimensional random Gaussian vector and then discretise the resulting inner product. The time and space complexity of both \ELSH~and \SRP~for computing an -sized hashcode of a -dimensional vector is , which becomes impractical for large values of and . To overcome this problem, we propose two alternative LSH hashcode generation algorithms, both for Euclidean distance and cosine similarity, namely, \CSELSH, \HCSELSH~and \CSSRP, \HCSSRP, respectively. \CSELSH~and \CSSRP~are based on count sketch \cite{count_sketch} and \HCSELSH~and \HCSSRP~utilize higher-order count sketch \cite{shi2019higher}. These proposals significantly reduce the hashcode computation time from to . Additionally, both \CSELSH~and \CSSRP~reduce the space complexity from to ; ~and \HCSELSH, \HCSSRP~ reduce the space complexity from to respectively, where denotes the size of the input/reshaped tensor. Our proposals are backed by strong mathematical guarantees, and we validate their performance through simulations on various real-world datasets.

生成讲解博客的中文版本

生成AI智能校验的中文版本