arXiv:2608.14361cs.CLAug 2026

Manuscript Offprint

arXiv:2608.14361

Local and Global Regimes of Geometric Complexity in Language Model Representations

Arwa Osman, Marco Baroni, Iuri Macocco

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Intrinsic dimensionality (ID) is widely used to probe the representational complexity of language models, but it remains unclear whether ID differences reflect properties of language itself or artefacts of how the underlying dataset was constructed. In this paper, we focus specifically on how lexical diversity, the number of unique last-token items present in a dataset, affects ID estimates of that dataset. We find a scale-dependent transition between two regimes: at low lexical diversity, conditions with fewer unique final words produce higher ID, while at high lexical diversity, this ordering reverses, and conditions with more unique words produce higher ID. We derive an exact, parameter-free formula for the point at which this reversal occurs, which matches the observed transition point at every scale tested. On the one hand, our results highlight how care must be taken when interpreting the intrinsic dimensionality of a set of representations as a straightforward cue of their complexity. On the other hand, our discovery of the two ID regimes reveals a general principle of organisation of linguistic data in LLMs that sheds new light on their inner manifold structures.

1 Introduction

Intrinsic dimensionality (ID) is the effective number of degrees of freedom needed to describe the structure of high-dimensional data (Ansuini et al., 2019; Recanatesi et al., 2019; Pope et al., 2021), and it has become a common tool in NLP for probing the representational complexity of language models (Tulchinskii et al., 2023; Valeriani et al., 2023; Cheng et al., 2025): how “spread out” or constrained hidden states are across layers or models.

However, it remains poorly understood whether ID measurements reflect properties of language itself, or simply artefacts of how the underlying dataset was constructed. For example, a natural question is whether different parts of speech differ in intrinsic dimensionality (Domenichelli et al., 2026). We find that they do: in a naive comparison, nouns occupy a substantially higher-ID space than prepositions across nearly every layer of a transformer (Figure 1, left). One could be tempted to conclude that the larger semantic variety of nouns is reflected by richer geometric structure in the transformer representations.

But this comparison is not as fair as it first appears. In natural text, the noun class contains thousands of unique word types, while prepositions are drawn from a closed set of only a few dozen. When we repeat the comparison after matching the two classes in both lexical diversity and token frequency, the pattern does not just weaken; it reverses: prepositions now show higher ID than nouns across the layers (Figure 1, right). What looked like a part-of-speech effect turns out to be an artefact of lexical diversity.

Figure 1: Apparent NOUN vs. ADP differences in intrinsic dimensionality reverse once lexical diversity is controlled (GRIDE, Qwen3-8B, k=128k=128; N=10,000N=10{,}000 samples). Left: naive comparison, unmatched vocabulary size (NOUN: 2600+ types; ADP: ∼\sim43 types). Right: both classes matched to 25 types, with 400 tokens per type (Section 3).

This example leads to the question we address in this paper: independent of syntactic category or semantic content, how does lexical diversity shape the intrinsic dimensionality of contextualised word representations? We isolate lexical diversity as a controlled experimental variable. Using a custom WikiText-derived dataset, we construct eleven conditions spanning from 1 to 10,000 unique contextualised nouns, holding total sample size fixed at N=10,000N=10{,}000 across all conditions, and estimate ID using the generalised ratios intrinsic dimension estimator (GRIDE), introduced by Denti et al. (2022), across the hidden states of two language models: Qwen3-8B and Meta-Llama-3-8B.

Our results reveal a transition in ID that depends on how the neighbourhood scale used to estimate it compares to the number of samples available per word: when the scale is small relative to this sample count, ID reflects a word’s own contextual variability, while once the scale reaches it, ID instead reflects the diversity of the vocabulary as a whole. We derive the exact point at which this shift occurs and confirm it empirically across models, estimators, and word classes.

Any comparison of ID across categories, whether word classes, languages, domains, or models, must not rest solely on the assumption that the categories differ only in the property under study. We show this assumption can fail without any visible sign: two categories can diverge in ID purely because they differ in lexical diversity, and the resulting curves look just as clean and reproducible as a genuine effect would. More generally, our results show how the numerical values returned by standard ID estimators might, depending on scale, be based on very different views of the same broader manifold.