modded-nanogpt study finds 1% repetitive tokens spike gradients 15–334x

parameterfree.com13 min read

An investigator exploring LLM pre-training dynamics discovered that replacing just one percent of a training batch with repeated common words can cause the full-batch gradient norm to spike by a factor of 15 to 334 across various models. The author found that individual gradient vectors in such repetitive windows grow substantially larger and reinforce one another rather than cancelling out. The results suggest that optimizers must always be prepared to handle massive, unexpected gradient updates even when processing clean data. Open article →