Discovering Data Structures: Nearest Neighbor Search and Beyond

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Salemohamed, Omar, Charlin, Laurent, Garg, Shivam, Sharan, Vatsal, Valiant, Gregory
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913572074815488
author Salemohamed, Omar
Charlin, Laurent
Garg, Shivam
Sharan, Vatsal
Valiant, Gregory
author_facet Salemohamed, Omar
Charlin, Laurent
Garg, Shivam
Sharan, Vatsal
Valiant, Gregory
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_03253
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Discovering Data Structures: Nearest Neighbor Search and Beyond
Salemohamed, Omar
Charlin, Laurent
Garg, Shivam
Sharan, Vatsal
Valiant, Gregory
Machine Learning
Artificial Intelligence
Data Structures and Algorithms
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.
title Discovering Data Structures: Nearest Neighbor Search and Beyond
topic Machine Learning
Artificial Intelligence
Data Structures and Algorithms
url https://arxiv.org/abs/2411.03253