以检索为中心的增长型非参数神经网络深度学习

·

研究论文 · 2026/10/09

我们研究一种用于深度学习的通用层,该层在训练期间为每个数据点存储一对新的键值表示,而不是将任意大小的训练数据压缩为固定大小的权重矩阵,并在推理时通过注意力机制检索和重组这些表示,从而形成增长型神经网络。虽然Irie等人(arXiv:2202.05798)从经典对偶性出发提出了这一视角,将梯度下降训练的深度神经网络中的任何线性层表示为训练数据点上的线性注意力,但如他们所建议,用更强大的注意力函数替换线性注意力并非易事:我们表明,将线性注意力情况下的学习规则朴素地应用于高级核并不会导致有原则的优化。在此,我们填补了这一空白,并基于径向基函数和类softmax核,为核化注意力层开发了基于函数梯度的学习规则,从而建立了有原则的“以检索为中心的深度学习”范式。在实验上,我们展示了RCDL在图像分类和合成教师-学生学习任务上具有前景的性能和学习效率。此外,我们表明,将神经网络对偶形式中的线性注意力替换为高级线性注意力变体,即MesaNet/DeltaNet,与最近为传统固定大小神经网络提出的优化器形成了形式上的联系,为深度学习优化提供了新视角。

该研究填补了将线性注意力替换为更强大注意力函数时的优化空白,提出了有原则的以检索为中心的深度学习范式,并在多个任务上验证了其有效性,同时为深度学习优化提供了新视角。

We investigate a general-purpose layer for deep learning that, instead of compressing arbitrary-size training data into fixed-size weight matrices, stores a new pair of key-value representations for every data point during training, and retrieves and recombines these representations through an attention mechanism at inference time - resulting in a growing neural net (NN). While Irie et al. (arXiv:2202.05798) have put forward this perspective from the classic duality expressing any linear layer in a deep NN trained by gradient descent as linear attention (LA) over the training data points, replacing LA by more powerful attention functions, as they suggest, turns out to be non-trivial: we show that naively applying learning rules from the LA case to advanced kernels does not lead to principled optimization. Here we fill this gap and develop functional gradient-based learning rules for kernelized attention layers, based on radial basis function (RBF) and softmax-like kernels - establishing the principled "retrieval-centric deep learning" (RCDL) paradigm. Empirically, we demonstrate the promising performance and learning-efficiency of RCDL on image classification and synthetic teacher-student learning tasks. Moreover, we show that replacing LA in the dual form of NNs by advanced LA variants, namely MesaNet/DeltaNet, yields a formal connection to recently proposed optimizers for conventional fixed-size NNs, offering a novel perspective on deep learning optimization.

阅读原文

参与讨论