当哈希遇到楔形时:一种寻找高相似向量的分布式算法
When Hashes Met Wedges: A Distributed Algorithm for Finding High Similarity Vectors
摘要:
寻找相似的用户对是社交网络中的一项基本任务,在排名和个性化任务(例如链接预测和领带强度检测)中有许多应用。用户相似性的一种常见表现形式是基于网络结构:每个用户由一个表示用户网络连接的向量表示,其中这些向量之间的成对余弦相似性定义了用户相似性。用户相似性应用的主要任务是发现具有大于给定阈值$τ$的成对余弦相似性值的所有相似对。在以前的工作中,假设$τ$是非常接近1,我们专注于推荐应用程序中,$τ$是小的,但仍然有意义的。在具有数十亿条边的网络上,所有对余弦相似性问题在计算上具有挑战性,尤其是对于具有小$τ$的设置。据我们所知,没有实际的解决方案来计算所有用户对,比如说在大型社交网络上的$τ= 0.2$,即使使用分布式算法的能力。我们的工作直接解决了这个挑战,通过引入一个新的算法- WHIMP -有效地解决了这个问题,在MapReduce模型。WHIMP的关键见解是将Cohen-Lewis的近似矩阵乘法的“楔形采样”方法与Charikar的SimHash随机投影技术相结合。我们提供了一个理论分析的WHIMP,证明它有接近最佳的通信成本,同时保持计算成本与国家的最先进的。我们还实证证明WHIMP的可扩展性,通过计算所有高度相似的对四个大规模的数据集,并表明,它准确地找到高相似性对。特别是,我们注意到WHIMP成功地处理了整个Twitter网络,它有数百亿条边。
英文摘要:
Finding similar user pairs is a fundamental task in social networks, with numerous applications in ranking and personalization tasks such as link prediction and tie strength detection. A common manifestation of user similarity is based upon network structure: each user is represented by a vector that represents the user's network connections, where pairwise cosine similarity among these vectors defines user similarity. The predominant task for user similarity applications is to discover all similar pairs that have a pairwise cosine similarity value larger than a given threshold $τ$. In contrast to previous work where $τ$ is assumed to be quite close to 1, we focus on recommendation applications where $τ$ is small, but still meaningful. The all pairs cosine similarity problem is computationally challenging on networks with billions of edges, and especially so for settings with small $τ$. To the best of our knowledge, there is no practical solution for computing all user pairs with, say $τ= 0.2$ on large social networks, even using the power of distributed algorithms. Our work directly addresses this challenge by introducing a new algorithm --- WHIMP --- that solves this problem efficiently in the MapReduce model. The key insight in WHIMP is to combine the "wedge-sampling" approach of Cohen-Lewis for approximate matrix multiplication with the SimHash random projection techniques of Charikar. We provide a theoretical analysis of WHIMP, proving that it has near optimal communication costs while maintaining computation cost comparable with the state of the art. We also empirically demonstrate WHIMP's scalability by computing all highly similar pairs on four massive data sets, and show that it accurately finds high similarity pairs. In particular, we note that WHIMP successfully processes the entire Twitter network, which has tens of billions of edges.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。