Pretraining Data Statistics Shape the Phases of Learning Entity Comparison in Language Models
TL;DR - Pretraining-data statistics causally shape how language models learn entity comparisons, progressing through frequency, prompt-position, and correct-answer phases. Small synthetic experiments reproduced dynamics later observed in OLMo-2 32B.
- Experiments covered nine comparison tasks and five entity types using 163M-parameter models.
- Too little task-specific data prevented task learning, while larger amounts enabled a direct transition from frequency heuristics to correct answers.
- Replacing Zipfian entity frequencies with a uniform distribution weakened frequency bias and accelerated learning.
- The findings connect data distributions to heuristic formation during pretraining.