近似最大全对点积(MAD)搜索的菱形抽样
Diamond Sampling for Approximate Maximum All-pairs Dot-product (MAD) Search
摘要:
给定两组向量,$A = \{{a_1}, \dots, {a_m}\}$和$B=\{{b_1},\dots,{b_n}\}$,我们的问题是找到顶部- $t$点积,即,所有可能对中最大的$|{a_i}\cdot{b_j}|$。这是一个基本的数学问题,出现在许多数据应用程序中,包括相似性搜索,链接预测和协同过滤。我们提出了一种基于采样的方法,避免了直接计算的所有$mn$点积。我们选择钻石(即,四个循环)从$A$和$B$的加权三重表示中。选择对应于对$(i,j)$的菱形的概率与$({a_i}\cdot{b_j})^2$成比例,放大了对最大幅度条目的关注。实验结果表明,菱形采样是数量级快于直接计算,并需要更少的样本比任何竞争的方法。我们还将菱形抽样应用于最大内积搜索的特殊情况,并获得了比最先进的哈希方法更好的结果。
英文摘要:
Given two sets of vectors, $A = \{{a_1}, \dots, {a_m}\}$ and $B=\{{b_1},\dots,{b_n}\}$, our problem is to find the top-$t$ dot products, i.e., the largest $|{a_i}\cdot{b_j}|$ among all possible pairs. This is a fundamental mathematical problem that appears in numerous data applications involving similarity search, link prediction, and collaborative filtering. We propose a sampling-based approach that avoids direct computation of all $mn$ dot products. We select diamonds (i.e., four-cycles) from the weighted tripartite representation of $A$ and $B$. The probability of selecting a diamond corresponding to pair $(i,j)$ is proportional to $({a_i}\cdot{b_j})^2$, amplifying the focus on the largest-magnitude entries. Experimental results indicate that diamond sampling is orders of magnitude faster than direct computation and requires far fewer samples than any competing approach. We also apply diamond sampling to the special case of maximum inner product search, and get significantly better results than the state-of-the-art hashing methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。