Discovering Data Structures: Nearest Neighbor Search and Beyond
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 36 of its 62 references that are in the map. First posted on arXiv 5 Nov 2024.
Builds on
36 of 62 references.
References · 36
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Layer Normalizationcited by 5,579
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2020Rethinking Attention with Performerscited by 1,584
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,489
- 2020Point Transformercited by 1,462
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2020A Generalization of Transformer Networks to Graphscited by 653
24 more
- 2014Neural Turing Machinescited by 630
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 616
- 2016Neural Combinatorial Optimization with Reinforcement Learningcited by 600
- 2018Learning a SAT Solver from Single-Bit Supervisioncited by 198
- 2017The Case for Learned Index Structurescited by 188
- 2020Algorithms with Predictionscited by 152
- 2018ANN-Benchmarks: A Benchmarking Tool for Approximate Nearest Neighbor Algorithmscited by 130
- 2019Neural Execution of Graph Algorithmscited by 118
- 2019Differentiable Ranks and Sorting using Optimal Transportcited by 113
- 2019Stochastic Optimization of Sorting Networks via Continuous Relaxationscited by 111
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
- 2018Approximate Nearest Neighbor Search in High Dimensionscited by 45
- 2019ALEX: An Updatable Adaptive Learned Indexcited by 43
- 2015Learning to Hash for Indexing Big Data - A Surveycited by 39
- 2022Learning Augmented Binary Search Treescited by 31
- 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 30
- 2021Properly learning decision trees in almost polynomial timecited by 20
- 2023Neural Algorithmic Reasoning Without Intermediate Supervisioncited by 16
- 2023Improved Frequency Estimation Algorithms with and without Predictionscited by 10
- 2021Decision tree heuristics can fail, even in the smoothed settingcited by 7
- 2021Learning to Hash Robustly, Guaranteedcited by 7
- 2023On Distribution Dependent Sub-Logarithmic Query Time of Learned Indexingcited by 6
- 2017Tight Cell Probe Bounds for Succinct Boolean Matrix-Vector Multiplicationcited by 4
- 2021Practical Near Neighbor Search via Group Testingcited by 3
Built on by
Not cited yet.