arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.02752cs.DS
收藏

数据流中近似邻域搜索的在线K-d树

Online K-d tree for approximate neighborhood search in data streams

École de Technologie Supérieure(工程技术学院);LIVIA(LIVIA实验室)

Eduardo V. L. Barboza, Robert Sabourin, Rafael M. O. Cruz

AI总结:

提出一种在线K-d树算法,支持数据流上的动态更新,并适配Canberra距离以保持结构不变性,实现高效近似邻域搜索,在准确率损失较小的情况下显著提升处理速度。

摘要:

k-最近邻(kNN)算法长期以来广泛应用于机器学习(ML)应用中。然而,使用该算法时的主要问题是邻域搜索所需的计算成本,这可能使其在大规模应用中不可行。优化算法,如K-d树,在此类场景中成为一种选择。在数据流下,维护K-d树的属性可能具有挑战性,因为它需要动态插入和删除节点。这些操作可能使维护树的平衡和不变量变得困难。此外,传统的K-d树最初是为基于闵可夫斯基的距离函数设计的。在这项工作中,我们描述了一种在线K-d树及其对Canberra距离的适配,该树支持数据流上的动态更新,同时保留高效遍历所需的结构不变量。实验分析表明,在线K-d树算法在数据流下实现了更快的处理时间,并且适配Canberra距离实现了有效的子树剪枝,这通过平均准确率的微小损失和每秒处理实例数的显著提升得以证明。我们的实现可在我们的GitHub仓库中找到。

英文摘要:

The k-Nearest Neighbors (kNN) algorithm has long been widely used in Machine Learning (ML) applications. However, the main concern when using it is the computational cost required for neighborhood search, which can make it unfeasible for large-scale applications. Optimization algorithms, such as the K-d tree, become an option in such scenarios. Under data streams, it can be challenging to maintain the properties of the K-d tree, as it requires inserting and deleting nodes on the fly. These operations can make maintaining the tree's balance and invariants difficult. Additionally, traditional K-d trees were initially designed for Minkowski-based distance functions. In this work, we describe an Online K-d tree and its adaptation to the Canberra distance that supports dynamic updates over data streams while preserving the structural invariants required for efficient traversal. Experimental analysis demonstrates that the Online K-d tree algorithm achieves faster processing time under data streams, and that adapting to the Canberra distance enabled effective subtree pruning, as evidenced by a minor loss in average accuracy and a substantial gain in instances processed per second. Our implementation can be found in our GitHub repository

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

↑