arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1006.3514cs.DBcs.IR
收藏

基于TCAM的相似性搜索和局部敏感哈希算法

Similarity Search and Locality Sensitive Hashing using TCAMs

Rajendra Shinde, Ashish Goel, Pankaj Gupta, Debojyoti Dutta

摘要:

相似性搜索方法被广泛用作各种机器学习应用中的内核。最近邻搜索(NNS)算法通常用于在给定查询的情况下检索相似的条目。虽然存在使用散列进行精确查询查找的有效技术,但是已知使用精确最近邻的相似性搜索是一个难题,并且在高维中,最佳已知解决方案提供的线性扫描改进很少。近似NNS问题的快速解决方案包括基于局部敏感哈希(LSH)的技术,其需要指数大于$1$的$n$中的存储多项式,以及查询时间次线性,但在$n$中仍然是多项式,其中$n$是数据库的大小。在这项工作中,我们提出了一种新的技术,解决近似NNS问题在欧几里德空间使用三元内容寻址存储器(TCAM),它需要近线性空间,并具有O(1)的查询时间。事实上,该方法还使用数据库大小接近线性的数据结构围绕查询时间的单元探测模型中的最佳已知下限工作。TCAM是广泛用于诸如访问控制列表的网络应用中的高性能关联存储器。TCAM可以在三元向量的数据库内查询位向量,其中每个位位置表示$0$、$1$或$*$。$*$是代表$0$或$1$的通配符。我们利用TCAM来设计LSH的一个变体,称为三元局部敏感哈希(TLSH),其中我们将由欧几里得空间中的向量表示的数据库条目哈希到$\{0,1,*\}$中。通过使用TLSH方案相对于$*$字符的附加功能,我们解决了1 TCAM访问和存储在数据库的大小中接近线性的近似最近邻问题的实例。我们相信,这项工作可以开辟新的途径,在非常高速的数据采掘。

英文摘要:

Similarity search methods are widely used as kernels in various machine learning applications. Nearest neighbor search (NNS) algorithms are often used to retrieve similar entries, given a query. While there exist efficient techniques for exact query lookup using hashing, similarity search using exact nearest neighbors is known to be a hard problem and in high dimensions, best known solutions offer little improvement over a linear scan. Fast solutions to the approximate NNS problem include Locality Sensitive Hashing (LSH) based techniques, which need storage polynomial in $n$ with exponent greater than $1$, and query time sublinear, but still polynomial in $n$, where $n$ is the size of the database. In this work we present a new technique of solving the approximate NNS problem in Euclidean space using a Ternary Content Addressable Memory (TCAM), which needs near linear space and has O(1) query time. In fact, this method also works around the best known lower bounds in the cell probe model for the query time using a data structure near linear in the size of the data base. TCAMs are high performance associative memories widely used in networking applications such as access control lists. A TCAM can query for a bit vector within a database of ternary vectors, where every bit position represents $0$, $1$ or $*$. The $*$ is a wild card representing either a $0$ or a $1$. We leverage TCAMs to design a variant of LSH, called Ternary Locality Sensitive Hashing (TLSH) wherein we hash database entries represented by vectors in the Euclidean space into $\{0,1,*\}$. By using the added functionality of a TLSH scheme with respect to the $*$ character, we solve an instance of the approximate nearest neighbor problem with 1 TCAM access and storage nearly linear in the size of the database. We believe that this work can open new avenues in very high speed data mining.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑