IEEE Open Journal of the Computer Society (Jan 2022)

Cardinality Estimation in Inner Product Space

  • Kohei Hirata,
  • Daichi Amagata,
  • Takahiro Hara

DOI
https://doi.org/10.1109/OJCS.2022.3215206
Journal volume & issue
Vol. 3
pp. 208 – 216

Abstract

Read online

This article addresses the problem of cardinality estimation in inner product spaces. Given a set of high-dimensional vectors, a query, and a threshold, this problem estimates the number of vectors such that their inner products with the query are not less than the threshold. This is an important problem for recent machine-learning applications that maintain objects, such as users and items, by using matrices. The important requirements for solutions of this problem are high efficiency and accuracy. To satisfy these requirements, we propose a sampling-based algorithm. We build trees of vectors via transformation to a Euclidean space and dimensionality reduction in a pre-processing phase. Then our algorithm samples vectors existing in the nodes that intersect with a search range on one of the trees. Our algorithm is surprisingly simple, but it is theoretically and practically fast and effective. We conduct extensive experiments on real datasets, and the results demonstrate that our algorithm shows superior performance compared with existing techniques.

Keywords