Generalization and Memorization along the Learning Trajectory of Neural Language Models: A Geometric Account of Categorization
Abstract
We investigate how generalization and memorization develop along the learning trajectory of neural language models. Using controlled synthetic grammars, we examine both the geometry of representation space and model behaviour over training. We find that continuous regions of representation space not occupied by observed tokens become systematically structured from the earliest stages of learning, forming category-level geometric organization that supports generalization to unattested combinations. Generalization therefore emerges from the beginning of learning rather than only after extensive memorization. With prolonged training, larger models increasingly distinguish observed from unobserved grammatical combinations. At the same time, the continuous geometric structure supporting category-level generalization is gradually destructed. Together, these results suggest that neural language models initially learn through categorization-based generalization, followed by a gradual transition toward more exemplar-specific memorization.
Create a lesson
Metadata
- Comments
- 5 figures in main text, 9 page main text
Related papers
LimeTree: Linear-Memory Graph Neural Networks over Tree-Graphs for Resource-Efficient Language Modeling and Context Extrapolation
Shared title terminologycs.CLElisabeth Fink
Neural Language Models Learn the Contextual Distributions of Dependency Structures: a statistical learning theory to compositionality
Shared title terminologycs.CLWang Bojun, Junjie Chen, Holly Jenkins et al.
How Far Do Persona Effects Generalize in Language Models?
Shared title terminologycs.CLYufan Zhou, Yuxuan Liu, Enze Ma et al.
TRAP: Understanding and Mitigating Privacy Memorization in Language Models
Shared title terminologycs.CLMuhammed Ustaomeroglu, Ziyue Xu, Hanshen Xiao et al.
Disciplined Anthropomorphism: How to Extend Cognitive Language to Artificial Intelligence
Shared title terminologycs.CLMatthieu Queloz
Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting
Shared title terminologycs.CLDmytro Babarytskyi, Oleksandr Babarytskyi, Vadym Savanevych