NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Retrieval-Centric Deep Learning in Growing Nonparametric Neural Networks

Maximilian Schlegel, Rajai Nasser, Seijin Kobayashi, Yanick Schimpf, Oliver Sieberling, Robert Obryk, Kazuki Irie, João Sacramento, Johannes von Oswald

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Interpretability & Model Adaptation › Neural Network Optimization and Training · Type: new method · Keywords: retrieval-centric deep learning, growing neural networks, attention mechanisms, kernelized attention, sample efficiency

Areas: Model Architectures & Sequence Modeling › Neural and brain architectures › Efficient neural architectures

Summary

RCDL introduces a growing neural network layer that stores a key-value pair for each training example and retrieves them via attention at inference, providing a nonparametric deep learning paradigm with theoretical foundations and improved sample efficiency on image classification and synthetic datasets.

Explained to a 5-year-old

The paper makes a new kind of brain for computers that can keep little notes for every picture it sees. For every picture, it writes down two small pieces of information: a key and a value, like a secret note. These notes are kept safe and not forgotten, so the computer can remember each picture individually. When the computer needs to guess something, it looks at the notes that are most similar to the new problem. It then mixes those notes together, like mixing colors, to create a new answer.

Explained to a 5-year-old, longer

Imagine a computer brain that works like a growing tree, adding a new branch for each new picture it learns. For every picture, it writes down two small pieces of information: a key and a value, like a secret note. These notes are kept safe and not forgotten, so the computer can remember each picture individually. When the computer needs to make a decision, it looks at the notes that are most similar to the new problem. It then mixes those notes together, like mixing colors, to create a new answer. This way, the computer doesn't have to shrink all the pictures into a tiny space, which can make learning slower. By using this method, the computer can learn from fewer examples, which saves time and effort. The researchers also showed that this idea works well on simple picture-recognition tasks. They also created a special kind of math that tells us how to train this growing brain safely. They even found a new way to make other computer tools work more efficiently by borrowing ideas from this approach.

For a technical reader

The paper proposes a layer that stores a key-value pair for each training sample, enabling retrieval-based inference instead of compressing data into fixed weights. It connects this to linear attention duality and replaces simple linear attention with kernelized and advanced attention mechanisms like MesaNet and DeltaNet. Theoretical derivations provide learning algorithms for the growing layer, and experiments on image classification and synthetic datasets demonstrate improved sample efficiency. Extensions also reveal a link to recent optimizer designs, offering insights for conventional networks.

Problem

Existing deep learning layers compress training data into fixed-size weight matrices, which can be inefficient and limit scalability. There is a need for a more flexible, nonparametric approach that retains training data representations and can grow with data while maintaining sample efficiency.

Method

The approach stores a key-value pair for each training instance during training and uses an attention mechanism to retrieve and recombine these stored representations at inference, forming a growing neural network. It derives this paradigm from the duality of linear layers as linear attention and replaces linear attention with kernelized attention (e.g., RBF and softmax kernels) and advanced linear attention variants like MesaNet and DeltaNet. Theoretical learning algorithms are derived for the growing layers, and empirical evaluations are performed.

Results

The approach achieves promising performance and improved sample efficiency on classic image classification tasks and synthetic teacher-student learning datasets.

Contributions

It introduces a retrieval-centric deep learning paradigm that stores key-value pairs per data point and uses attention for inference, derives theoretical learning algorithms for kernelized attention, and establishes a formal connection between MesaNet/DeltaNet extensions and a recently proposed optimizer.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction