Response to Reviewer oyWf
### Main Concerns
**Q1:** The core claim of "sharp transition in test accuracy" is not supported by any of the generalization analyses. Without such an analysis, the best one can conclude is that the models can fit the training data and reach perfect training accuracy eventually.
**A:** We thank the reviewer for raising the concern.
1. In our paper, we have instantiated our theorems on regression tasks on the matrix completion example in Sec. 3.3.3. We can prove that initially gradient flow can fit the observed entries but make no progress on the remaining ones, but eventually it can generalize to unobserved entries and recover the ground truth.
2. For classification tasks, we added generalization bounds in the updated version of our paper. Concretely, in the “empirical validation: grokking” part of Sec. 3.2.3, where we consider the sparse linear classification task, we added generalization bounds (proved in Section E), showing that the sample complexity required for achieving good generalization in the kernel regime is much higher than that of the rich regime.
3. In the general cases, our main results for both classification (Thm. 3.4 and 3.5) and regression (Thm. 3.9 and 3.10) settings highlight a sharp kernel-to-rich transition from $T=\frac{1-c}{\lambda}\log\alpha$ to $T=\frac{1+c}{\lambda}\log\alpha$. As the reviewer noticed, our results do not directly lead to generalization guarantees. However, for general deep learning, it is known to be very hard to provide any tight generalization bounds. In the literature, existing generalization bounds for DL are usually vacuous in real-world settings, and no generalization measures are known to be fully predictive of the actual generalization error in practice. Hence, the line of works on implicit bias usually uses the following strategy: analyze the training dynamics and show how the training method shapes a neural net’s properties that are known to be correlated with generalization, then exemplify the result in simple settings with generalization analysis. This is indeed the strategy we take.
**Q2:** Comparison with Moroshko et al. (2020)
**A:** While Moroshko et al. (2020) also characterize the implicit bias in the kernel and rich regimes, our results differ from theirs in two crucial aspects:
1. We consider running gradient flow with weight decay, while they do not use weight decay.
2. Our results highlight a sharp transition from kernel to rich regimes, while their paper does not imply such transition bounds.
### Other Questions
**Q3:** Can the authors add more examples in text with datasets commonly used in ``Grokking'' literature?
**A:**
1. The grokking phenomenon was originally observed on modular arithmetic datasets. In the revised version of the paper, we conducted experiments on modular addition and showed that enlarging the initialization scale or reducing the weight decay indeed delays the sharp transition in test accuracy. This is consistent with our theory, which predicts the grokking time to be scaled with $\frac{1}{\lambda}$ and $\log(\text{init scale})$,
2. Beyond algorithmic datasets, Liu et al. (2023) observed that grokking can also be induced by using a large initialization and a small but nonzero weight decay. This is true for many tasks, including image classification on MNIST and sentiment analysis on IMDB. This can be seen as an important justification of our theory.
Ziming Liu, Eric J Michaud, and Max Tegmark. Omnigrok: Grokking beyond algorithmic data. In The Eleventh International Conference on Learning Representations, 2023.
**Q4:** One point that the paper makes is about identifying a transition time from memorization to generalization and attributes it to different inductive biases. This is not true when weight decay = 0, which weakens the importance of the first phase as it may not even be necessary to understand ``Grokking''.
**A:** In Sec 4 (now Sec B.1), we have included a discussion on the training regime without weight decay, where the perfect generalization is delayed. However, the transition in test accuracy is extremely slow: in Fig 2 (now Fig 4), we have shown that the transition lasts from $10^{10^2}$ to $10^{10^6}$ in continuous time. (The experiments are done via some simulation with unnaturally growing LR.) This means this grokking phenomenon is not relevant to the practice. It also does not quite satisfy the most strict definition of grokking, where the transition is required to be “sharp”.
In contrast, in our main setting, we study training with large initialization and small weight decay, where the transition in the implicit bias is very sharp: $\frac{1-c}{\lambda} \log \alpha$ leads to the kernel predictor, but increasing it slightly to $\frac{1+c}{\lambda} \log \alpha$ leads to a KKT solution of min-norm/max-margin problems associated with the neural net.