Deep Neural Networks Training Efficiency: Does Grokking Modify its Dynamics?
Organizations: Technological University Dublin · Trinity College Dublin
Abstract
We study whether grokking, the delayed emergence of out-of-distribution generalization after apparent overfitting, alters training efficiency in deep neural networks, where efficiency is measured as accuracy per unit energy. Using two canonical settings, modular arithmetic and MNIST, we analyze two neural network models under 16-, 32-, and 64-bit precision and use Orthograd to test whether grokking produces noticeable deviations from the typically decreasing dynamics of training efficiency. We consider both short training runs of up to 500 epochs and long training runs of up to 20,000 epochs, and in both cases identify grokking as a sharp improvement in test accuracy after a sustained train-test gap. In the short-horizon experiments, applying Orthograd at progressively stronger levels during early training does not induce grokking, and efficiency remains smoothly decreasing. In the long-horizon experiments, Orthograd induces grokking, but the efficiency curves remain approximately monotonic and show no appreciable local increase at the grokking transition. These results suggest that, in our setting, grokking does not materially alter overall training-efficiency dynamics.
Figures & tables
| Epoch | Accuracy | Accuracy | Accuracy | Accuracy | |
|---|---|---|---|---|---|
| MLP 16-bit | 50 | 0.3198 | 0.3208 | 0.3228 | 0.3235 |
| MLP 16-bit | 100 | 0.3496 | 0.3516 | 0.3516 | 0.3517 |
| MLP 16-bit | 150 | 0.3506 | 0.3503 | 0.3516 | 0.3520 |
| MLP 32-bit | 50 | 0.31047714 | 0.31050083 | 0.31050990 | 0.3105144 |
| MLP 32-bit | 100 | 0.36048922 | 0.36049768 | 0.36049932 | 0.36050236 |
| MLP 32-bit | 150 | 0.40048927 | 0.40049290 | 0.40050557 | 0.40051800 |
| Orthograd epoch | Grokking epoch | |
|---|---|---|
| MLP 16-bit | 12287 | 12329 |
| MLP 32-bit | 9731 | 9775 |
| MLP 64-bit | 7484 | 7523 |
| LeNet 16-bit | 11193 | 11252 |
| LeNet 32-bit | 14964 | 15041 |
| LeNet 64-bit | 17046 | 17105 |
Grokking
Grokking is delayed generalization in which neural networks memorize training data before abruptly learning a rule that works on unseen examples.
See all 83 papers