arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.02736cs.DScs.LG
收藏

DEANN:使用近似最近邻搜索加速核密度估计

DEANN: Speeding up Kernel-Density Estimation using Approximate Nearest Neighbor Search

IT University of Copenhagen(哥本哈根信息技术大学);BARC;University of Copenhagen(哥本哈根大学)

Matti Karppa, Martin Aumüller, Rasmus Pagh

摘要:

核密度估计(Kernel Density Estimation,KDE)是一种非参数方法,用于估计密度函数的形状,给定一组来自分布的样本。最近,最初作为最近邻搜索工具提出的局部敏感哈希已被证明可以实现快速KDE数据结构。然而,这些方法没有利用在最近邻算法的算法中已经取得的许多其他进展。我们提出了一种算法,称为密度估计近似最近邻(DEANN),我们应用近似最近邻(ANN)算法作为一个黑盒子程序来计算一个公正的KDE。这个想法是使用ANN找到对KDE有很大贡献的点,精确计算它们的贡献,并使用随机采样(RS)近似剩余部分。我们提出了一个理论论据,支持的想法,人工神经网络子程序可以加快评估。此外,我们提供了一个带有Python接口的C++实现,可以使用任意的ANN实现作为核密度估计的子例程。我们的经验表明,我们的实现优于我们考虑的所有高维数据集的最先进的实现,并匹配RS的性能在ANN的性能没有收益的情况下。

英文摘要:

Kernel Density Estimation (KDE) is a nonparametric method for estimating the shape of a density function, given a set of samples from the distribution. Recently, locality-sensitive hashing, originally proposed as a tool for nearest neighbor search, has been shown to enable fast KDE data structures. However, these approaches do not take advantage of the many other advances that have been made in algorithms for nearest neighbor algorithms. We present an algorithm called Density Estimation from Approximate Nearest Neighbors (DEANN) where we apply Approximate Nearest Neighbor (ANN) algorithms as a black box subroutine to compute an unbiased KDE. The idea is to find points that have a large contribution to the KDE using ANN, compute their contribution exactly, and approximate the remainder with Random Sampling (RS). We present a theoretical argument that supports the idea that an ANN subroutine can speed up the evaluation. Furthermore, we provide a C++ implementation with a Python interface that can make use of an arbitrary ANN implementation as a subroutine for kernel density estimation. We show empirically that our implementation outperforms state of the art implementations in all high dimensional datasets we considered, and matches the performance of RS in cases where the ANN yield no gains in performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑