Language models show links between word types and local representation complexity
Linguistic Features of Local Geometry in Language Models
Computation and Language
Summary
Language models create complex internal patterns to understand text, but this complexity can change depending on the specific words or phrases they process. The authors found that measuring complexity for individual inputs reveals clear connections to different types of linguistic features, like word forms or sentence structure. These connections vary across the layers inside the model, with simpler features influencing early layers and more complex grammar-related features affecting later ones. This helps explain how language models organize and process language in a detailed way.
What this means in practice
- •For natural language processing engineers: Improve language model layer design by targeting specific linguistic features associated with different model depths.
- •For machine learning model auditors: Detect biases or errors tied to particular linguistic features by examining representation complexity at each input.
Authors
Lucia Domenichelli, Iuri Macocco, Dominique Brunato, Felice Dell'Orletta, Marco Baroni
Abstract
Intrinsic dimensionality (ID) describes the effective complexity of language-model representations, but dataset-level estimates obscure variation across individual inputs and make it difficult to examine multiple linguistic properties jointly. We address this limitation by estimating pointwise ID relative to a fixed reference set and relating it to interpretable surface, morphosyntactic, and syntactic features. Across Pythia, Qwen, and Apertus, compact linguistic profiles predict pointwise ID at every analysed depth, with the strongest relationship consistently emerging in intermediate layers. Early-layer geometry is more closely associated with surface properties, whereas nominal composition, pronouns, subject dependencies, and verbal structure become more prominent at intermediate and later depths. These patterns persist across ID estimators, neighbourhood sizes, and controls for input length and lexical frequency. Our findings show that variation in local representation geometry hidden by dataset-level summaries is systematically associated with the linguistic properties of individual inputs.