Slower Generalization, Faster Memorization: A Sweet Spot in Algorithmic Learning
Shin SoKyelim LeeAlbert No
Shin So
Kyelim Lee
Albert No
+3
This paper identifies and explains an inverted-U relationship between dataset size and learning speed: in Needleman-Wunsch matrix generation, small Transformers reach high exact-match validation accuracy in the fewest optimizer updates at an intermediate dataset size, while larger datasets converge more slowly. A random-suffix probe shows that with more data, models fit structured matrices before memorizing their random suffixes, suggesting rule learning aids training-set fitting. Experiments on elementary cellular automata, where each binary cell updates from its own state and its two neighbors, attribute learnability to lower-order predictive signals—output biases or dependencies on a few input bits. In Rule 90, finite-sample fluctuations create output biases and single-input dependencies absent from the uniform population, and these weaken as the dataset grows; biased training that introduces such signals accelerates generalization on an unchanged uniform validation distribution. The authors propose that sampling fluctuations facilitate rule acquisition, and larger datasets weaken this advantage.

OpenReview ·
· May 4, 2026