LGAIDSNov 5, 2024

Discovering Data Structures: Nearest Neighbor Search and Beyond

arXiv:2411.03253v1h-index: 16
Originality Incremental advance
AI Analysis

This work addresses the challenge of automating data structure design for machine learning practitioners, though it appears incremental as it builds on existing concepts like k-d trees and hashing.

The authors tackled the problem of end-to-end learning of data structures from scratch, without requiring initialization or seeding, and applied it to nearest neighbor search, where the model discovered optimal algorithms like binary search in 1D and structures resembling k-d trees or locality-sensitive hashing in higher dimensions.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes