atlas

Research map / Learning theory and algorithms / Prediction and decision losses

Discovering Data Structures: Nearest Neighbor Search and Beyond

NeurIPS 2025 · Learning theory and algorithms › Prediction and decision losses · approach: Approximate nearest neighbor indexing · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes learning data structures end-to-end from scratch with a transformer data-processing network and per-lookup MLP query networks, and studies nearest-neighbor search (1D, 2D, high-D) and frequency estimation.

Problem

Whether neural networks can discover data structures and query algorithms end-to-end, under explicit space and query-complexity constraints, without hand-designed initialization, focusing on nearest-neighbor search.

Approach

Jointly train a transformer that ranks/permutes the dataset into a data structure and M MLP query models that perform adaptive discrete lookups (softmax with logit noise during training, hardmax at inference), trained from scratch on sampled (dataset, query, nearest neighbor) tuples so the structure and query algorithm co-adapt.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use E2E instead of LSHHigh-dimensional nearest-neighbor search · Hypersphereaccuracy: 30.0 -> 35.0Helped
Use E2E instead of NeuralLSHHigh-dimensional nearest-neighbor search · FashionMNISTaccuracy: 68.2 -> 67.2Hurt
Use E2E instead of KMeansHigh-dimensional nearest-neighbor search · SIFTaccuracy: 47.1 -> 46.9Hurt
Use E2E instead of LSHHigh-dimensional nearest-neighbor search · MNIST (3-digit)accuracy: 76.2 -> 97.7Helped
Use E2E instead of a k-d tree2D nearest-neighbor search · 2D uniformaccuracy: ~52% -> ~75%Helped
Increase learned extra space from 0 to 128 vectorsE2E · 1D uniformaccuracy: 44.0 -> 91.3Helped
Learn data rankings rather than freeze the data-processing network (ablation)E2E · 1D uniformaccuracyHelped
Add query-history conditioning (ablation)E2E · 1D uniformnearest-neighbor accuracyHelped
Keep a permutation-based data-processing network instead of directly transforming data points (ablation)E2E · 1D uniformnearest-neighbor accuracyHelped
Use a learned smaller update deltaCountMinSketch · CAIDA IP datasetrelative performance: ≈1.9×Helped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic uniform (-1,1) 1D and 2D synthetic hard distribution synthetic Zipfian uniform unit hypersphere 30D 3-digit MNIST FashionMNIST SIFT CAIDA IP trace

Benchmarks: synthetic 1D/2D/30D NN search FashionMNIST (PCA 100D) SIFT 3-digit MNIST NN CAIDA IP frequency estimation Zipfian frequency estimation

Metrics: nearest neighbor accuracy mean squared error mean absolute error of frequency estimates

Baselines: binary search k-d tree LSH ITQ KMeans NeuralLSH CountMinSketch learning-augmented treap

Builds on: NanoGPT Gumbel softmax k-d tree SimHash CountMinSketch

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy