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

发现数据结构:最近邻搜索及其他

Discovering Data Structures: Nearest Neighbor Search and Beyond

Université de Montréal(蒙特利尔大学);Mila;HEC Montréal(蒙特利尔高等商学院);Microsoft Research(微软研究院);University of Southern California(南加州大学);Stanford University(斯坦福大学)

Omar Salemohamed, Laurent Charlin, Shivam Garg, Vatsal Sharan, Gregory Valiant

AI总结:

提出一个端到端学习数据结构的通用框架,自动适应数据分布并控制查询与空间复杂度,在最近邻搜索中逆向工程出二分搜索、插值搜索、k-d树和局部敏感哈希等算法。

摘要:

我们提出了一个用于端到端学习数据结构的通用框架。我们的框架适应底层数据分布,并对查询和空间复杂度提供细粒度控制。关键在于,数据结构是从头开始学习的,不需要仔细初始化或用候选数据结构/算法进行种子化。我们首先将该框架应用于最近邻搜索问题。在多种设置中,我们能够逆向工程出学习到的数据结构和查询算法。对于一维最近邻搜索,模型发现了最优的分布(不)依赖算法,如二分搜索和插值搜索的变体。在更高维度中,模型学习到的解决方案在某些情况下类似于k-d树,而在其他情况下则具有局部敏感哈希的元素。该模型还能学习高维数据的有用表示,并利用它们设计有效的数据结构。我们还将框架应用于数据流上的频率估计问题,并相信它也可以成为新问题的强大发现工具。

英文摘要:

We propose a general framework for end-to-end learning of data structures. Our framework adapts to the underlying data distribution and provides fine-grained control over query and space complexity. Crucially, the data structure is learned from scratch, and does not require careful initialization or seeding with candidate data structures/algorithms. We first apply this framework to the problem of nearest neighbor search. In several settings, we are able to reverse-engineer the learned data structures and query algorithms. For 1D nearest neighbor search, the model discovers optimal distribution (in)dependent algorithms such as binary search and variants of interpolation search. In higher dimensions, the model learns solutions that resemble k-d trees in some regimes, while in others, they have elements of locality-sensitive hashing. The model can also learn useful representations of high-dimensional data and exploit them to design effective data structures. We also adapt our framework to the problem of estimating frequencies over a data stream, and believe it could also be a powerful discovery tool for new problems.

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

↑