29
3
v1v2 (latest)

Efficient Approximate Search for Sets of Vectors

Abstract

We consider a similarity measure between two sets AA and BB of vectors, that balances the average and maximum cosine distance between pairs of vectors, one from set AA and one from set BB. As a motivation for this measure, we present lineage tracking in a database. To practically realize this measure, we need an approximate search algorithm that given a set of vectors AA and sets of vectors B1,...,BnB_1,...,B_n, the algorithm quickly locates the set BiB_i that maximizes the similarity measure. For the case where all sets are singleton sets, essentially each is a single vector, there are known efficient approximate search algorithms, e.g., approximated versions of tree search algorithms, locality-sensitive hashing (LSH), vector quantization (VQ) and proximity graph algorithms. In this work, we present approximate search algorithms for the general case. The underlying idea in these algorithms is encoding a set of vectors via a "long" single vector. The proposed approximate approach achieves significant performance gains over an optimized, exact search on vector sets.

View on arXiv
Comments on this paper