English

Diamond Sampling for Approximate Maximum All-pairs Dot-product (MAD) Search

Social and Information Networks 2018-08-23 v3 Data Structures and Algorithms

Abstract

Given two sets of vectors, A={a1,,am}A = \{{a_1}, \dots, {a_m}\} and B={b1,,bn}B=\{{b_1},\dots,{b_n}\}, our problem is to find the top-tt dot products, i.e., the largest aibj|{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 mnmn dot products. We select diamonds (i.e., four-cycles) from the weighted tripartite representation of AA and BB. The probability of selecting a diamond corresponding to pair (i,j)(i,j) is proportional to (aibj)2({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.

Cite

@article{arxiv.1506.03872,
  title  = {Diamond Sampling for Approximate Maximum All-pairs Dot-product (MAD) Search},
  author = {Grey Ballard and Ali Pinar and Tamara G. Kolda and C. Seshadhri},
  journal= {arXiv preprint arXiv:1506.03872},
  year   = {2018}
}
R2 v1 2026-06-22T09:52:17.603Z