Summary
This paper proposes a new learning algorithm, "ResMem," that combines deep neural networks (DNNs) with k-Nearest Neighbors (kNNs). The algorithm is a form of two-stage boosting: we first train a neural network. Then we construct a kNN algorithm that is trained to predict the residuals. The final output combines these two predictions. The nearest-neighbor search is performed in the feature space defined by an intermediate layer of the neural network. The intuition behind this algorithm is the growing body of literature which attributes some of deep learning's success to memorization: why not make it an explicit part of the pipeline?
The first result in the paper is theoretical, giving a toy problem where (a constrained but natural algorithm for) linear regression performs poorly, vanilla kNN also performs poorly, but ResMem does reasonably well.
The remaining results are empirical, applying their algorithm to image classification and language modeling. They show that ResMem provides modest but consistent and significant improvements over the deep networks alone.
Strengths
I think this is a nice idea. As they acknowledge, prior work has explicitly explored connections between kNNs and DNNs, but this paper aims to use the kNN to boost where the DNN fails.
The algorithm is practical and simple, it seems quite reasonable to fit into existing pipelines.
Beyond practice, I think this is also a paper to spark discussion. It provides a complement to the work of Cohen, Sapiro, and Giryes (2018), who used kNNs to probe the memorization capabilities of DNNs.
I felt the introduction and related work sections were well-written.
Weaknesses
One might use ResMem to better understand deep networks, perhaps following Sections 3 and 4.4. Instead, the paper is more like a proposal for a practical algorithm. However, I am not sure where ResMem is the best algorithm available. In Section 1.1, "Applicable Scenarios," the paper gives three ideal settings. The first is "complex dataset," where the task is beyond the capacity of the learner. We only see this setting theoretically in the paper. The other two examples are "large sample size" and "[s]mall model," but in both of these cases it is not clear to me that ResMem makes practical sense. ResMem requires storing representations of the entire training set, so when the sample size is large or the model is small I expect this would be serious overhead.
I found it hard to find the algorithm in the paper: Section 3 analyzes "ResMem for regression," which is described in text and equations. Section 4.1 gives the algorithm for classification in a enumerated list, plus some additional details in the surrounding text. I strongly prefer putting the algorithm in a separate environment, making it clear to the reader what you propose.
The paragraph "Memorization is sufficient for generalization" (line 76) seems extremely confused. I have not read all the cited papers, but my understanding is that they focus on how memorization is *compatible* with generalization. It seems to me that memorization alone *suffices* for generalization only in trivial learning tasks. Concretely, consider an algorithm that uses a lookup table on it training data and answers randomly on unseen points. This always memorizes but only generalizes when the training data captures most of the probability mass of the data distribution.
Questions
Lines 82-83 say "One recurring message from the theory is that memorization (in the form of interpolation) can be sufficient for generalization." Can you connect this statement more directly with an example or two from the preceeding citations?
How do you pick the intermediate layer to use as the representations for the kNN?
ResMem requires storing representations of the training data. Do you think this is an obstacle to its practical application?
Can you present some comparisons about space usage? For instance, in in line 257, you compare the computation of ResNet-14 to that of ResMem (on ResNet-8). What is the footprint of these two models?
Rating
6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.
Confidence
3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.
Limitations
Aside from potential issues around space usage, which are addressed above, I feel the authors adequately address the limitations of their work.