- Rating
- 5
- Clarity
- 3
- Confidence
- 2
- Originality
- 4
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes a new layer, replacing the standard linear layer with a growing nonparametric layer that instead of compressing the data into the connection weights, creates a key-value pair for each training example and use an attention style mechanism. They begin with the observation that the gradient descent on a linear model acts like an attention mechanism over the training examples, where keys are these training examples, and values are gradients of the loss. They generalize this observation, by generalizing the interaction between the keys and the queries: first using positive definite kernels, for which the relation between gradient descent and creation of key-values is shown to still hold; second using a weighted-softmax attention. They derive a new update rule of the weights and values.
They support the introduction of this new mechanism with various experiments, showing that the growing weighted softmax models achieve good train/test errors.
Strengths and weaknesses
Strengths:
This seems to be a really original point of view and the attention point of view of gradient descent is a kind of perspective-shifting idea that is very valuable to the community.
The introduction of the weight softmax attention is clever, with a neat relation between the discrete softmax and their continuous weight softmax.
Limitations are well established, typically the memory problem
Weaknesses:
The linear memory growth is a big limitation.
It would have been nice to have the most natural baselines (kernel methods).
The updates are obtained for a layer in isolation, but what about many layers ? (the paper does provide illustration about multiple hidden layers but is not clear about the update in this setting)
Questions
How do you really implement the rule for a stack of hidden-layers in your setting ? Is the depth saturation the result of not studying the whole stack of layers at once ?
2- In the teacher student regression experiments, you are considering d_in = 2, which is quite low-dimnensional. How does it behave with a larger dimension ?
Limitations
Yes
Paper formatting concerns
No
We sincerely thank the reviewer for the positive assessment, and for recognizing the originality and theoretical rigor of our work.
Below, we address the specific questions and weaknesses raised by the reviewer:
Natural Baselines (Kernel Methods)
We agree that comparing Retrieval-Centric Deep Learning (RCDL) to standard nonparametric methods will better contextualize its capabilities. In the final version of the paper, we will include experimental comparisons of our proposed method against memory-matched non-parametric baselines, specifically kNN (sweep over k={5,10,15,20,25}) and SVM-RBF. |Model|Test Accuracy after one epoch| |---|---| |KNN (uniform)|0.3409| |KNN (proportional|0.3566| |RBF-SVM|0.5410|
Implementation in a Stack of Hidden Layers and Depth Saturation
Our growing layers are not updated in isolation; they are optimized jointly using standard backpropagation. To see how this works in a deep architecture, consider a model where the forward pass is f=fd∘fgrowing∘fu. Here, fd represents downstream layers and fu represents upstream layers. For a growing RBF, if the t-th training data point is (xt,yt), the key to be added to the database of fgrowing is simply the output of the upstream layers: kt=fu(xt). The corresponding value vector is derived from the backpropagated gradient gt of the global loss function passed down through the downstream layers fd: vt=−ηgt. We would also like to note that a formal discussion on the training of deep architectures—specifically for growing positive definite kernel layers—is already included in Appendix A.3. To ensure this is readily apparent to all readers, we will clarify in the main text of the final version that our learning rules fully support deep, multi-layer architectures.
The depth saturation observed in our experiments is likely due to the inherent complexity of the task (e.g., CIFAR-10 not requiring massive depth).
Higher Dimensions in the Teacher-Student Experiment
We have conducted additional teacher-student regression experiments using a much larger input dimension of din=100. The conclusions remain qualitatively the same: the growing weighted softmax model continues to successfully optimize the loss and significantly outperforms the parametric softmax baseline. We will include these high-dimensional experiments in the final version of the paper. |Model|Final Loss (MSE)| |---|---| |Reference MLP|0.000160| |Weighted Softmax (Growing)|0.000259| |Parametric Softmax|0.003817|
Linear Memory Growth
We fully acknowledge that the linear memory growth—storing a key-value pair for every training example—is the most critical challenge for RCDL's practical adoption on large datasets. One way to make the method more scalable is through advanced key-value memory compression techniques. Several existing methods for KV-merging and pruning from the Transformer literature (e.g., token merging) are natural candidates for RCDL. However, a thorough investigation and evaluation of these techniques is a substantial undertaking that warrants its own dedicated paper, falling outside the scope of this initial theoretical work.
Another idea for memory growth control is via a hybrid parametric/non-parametric approach. We could treat the existing key-value pairs in the database as learnable parameters optimized via standard optimizers (like Adam or AdamW), while conditionally growing the database using functional gradient descent only when a newly encountered key is sufficiently orthogonal/distinct from the existing keys in the database. We have started to test this hybrid method empirically in this rebuttal phase and we have found that the memory growth can be made sublinear while preserving strong performance. |Test Accuracy after one epoch|Final size (as fraction of full size)| |--- |--- | | 0.4937 | 0.015547 | | 0.5180 | 0.035625 | | 0.5278 | 0.050273 | | 0.5379 | 0.088574 | | 0.5438 | 0.139043 | | 0.5568 | 0.172910 | | 0.5632 | 0.257637 | | 0.5675 | 0.320918 | | 0.5718 | 0.358262 |
Note that using this hybrid growing approach, we retain full test set accuracy (cf. Figure 2) at 35.8% of the full-growing capacity and perform on par with or even beating most baselines using only 1.6% of the full-growing capacity, enabling us to train performant models with significantly less memory overhead.
We will add these first compression results in the final manuscript to highlight this important direction of future work.
We thank the reviewer again for the feedback and support of the paper.