动态查询修改用于二进制局部敏感哈希
Dynamic Query Modification for Binary Locality Sensitive Hashing
AI总结:
提出动态查询修改方法,通过修改查询点提高二进制局部敏感哈希在近似最近邻搜索中的碰撞概率和鲁棒性,并设计MQ-Forest结构实现高达40%的构建和查询时间减少。
摘要:
我们的关注背景是二进制局部敏感哈希函数如何用于解决近似近邻问题,该问题旨在找到数据集X中与查询点q最近的k个元素。二进制局部敏感函数族H是一组函数,每个函数接受一个点并返回一个二进制值。当且仅当两个相近向量作为输入时,函数输出更可能相等(即“哈希碰撞”),而两个远离向量作为输入时则不然,这样的函数称为局部敏感。通过为X的每个成员生成二进制哈希码(通过从H中抽取并应用一个或多个函数)可以构建数据结构。当q作为查询时,对其应用相同的函数集,并检索具有相同二进制哈希码的X中的元素。在本文中,我们引入了动态查询修改。该过程在查询时改变q以形成新值c,通过理论和实验分析证明其具有两个显著优势。首先,c的哈希输出与近邻碰撞的概率大于q。其次,我们表明c与任何近邻碰撞失败的可能性很小;我们证明这一性质对q不成立。为了展示该技术的有效性,我们定义了一种新颖的结构MQ-Forest,它是RP-Forest的修改版本。两者都是基于二进制LSH的ANN机制,但MQ-Forest在查询过程中动态估计c的值。我们表明,在多个大型高维基准数据集上测量时,MQ-Forest将构建和查询时间减少了高达40%。
英文摘要:
Our context of interest is how binary locality sensitive hash (LSH) functions can be used to solve the approximate near neighbour (ANN) problem in hyperspherical spaces, which seeks to find the $k$ closest elements of some dataset $X \subset \mathbb{R}^d$ to some further point $\mathbf{q} \in \mathbb{R}^d$ presented as a query. Binary locality sensitive function families $\mathcal{H}$ are sets of functions each with signature $h: \mathbf{x} \in \mathbb{R}^d \rightarrow \{ 0, 1 \}$. A function is locality sensitive if the output of the function is more likely to be equal (a `hash collision') if two close vectors are used as input than if two far vectors are used. In this paper we introduce dynamic query modification. This procedure changes $\mathbf{q}$ at query time using information acquired during search to approximate the point $\langle \mathbf{c} \rangle$, which is the $\ell_2$-normalised centroid of the $k$-nearest neighbour set of $\mathbf{q}$. By theoretical and experimental analysis we demonstrate $\langle \mathbf{c} \rangle$ has two significant advantages when compared to $\mathbf{q}$. Firstly, we show that the hash function output of $\langle \mathbf{c} \rangle$ is likely to have a higher average collision probability with the $k$-nearest neighbours than the hash output of $\mathbf{q}$. Secondly, in our experiments, we observe no instances of $\langle \mathbf{c} \rangle$ failing to collide with any member of the near-neighbour set; a property which we demonstrate is not true for $\mathbf{q}$. To demonstrate the efficacy of the technique, we define a novel structure MQ-Forest, a modified version of RP-Forest. Both are binary LSH-based ANN mechanisms, but MQ-Forest dynamically estimates $\langle\mathbf{c}\rangle$ during the query process. We show that MQ-Forest reduces both build and query times by up to $40\%$ when measured over several large, high-dimensional benchmark datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。