Local Geometry of Language Models: How Pointwise Intrinsic Dimension Relates to Linguistic Features

The paper uses pointwise intrinsic dimension to reveal systematic links between language models' local representation geometry and input linguistic features.
This article introduces the arXiv paper *Linguistic Features of Local Geometry in Language Models*. To address how dataset-level intrinsic dimension (ID) obscures differences among individual inputs, the authors estimate pointwise ID relative to a fixed reference set and relate each input's local intrinsic dimension to surface, morphosyntactic, and syntactic features. Across Pythia, Qwen, and Apertus, pointwise ID is estimated at each layer and predictive models are trained. Results show compact linguistic features predict pointwise ID at all depths, strongest in middle layers; early-layer geometry relates more to surface properties, while mid-to-late layers relate to noun compounds, pronouns, subject dependencies, and verb constructions. These patterns hold across ID estimators, neighborhood sizes, and controls for length and word frequency, indicating a systematic link between local geometry and linguistic properties and offering a finer-grained diagnostic tool for interpretability.
How language models represent input has always been a core question in interpretability research. Traditionally, we have used dataset-level intrinsic dimensionality (ID) to characterize the overall complexity of model representations, but this approach obscures differences between individual inputs. A recent arXiv paper, Linguistic Features of Local Geometry in Language Models, proposes a new perspective: by estimating pointwise intrinsic dimension (pointwise ID) and relating it to interpretable linguistic features, it reveals patterns hidden in local geometry.

Why Is Dataset-Level ID Not Enough?
Intrinsic dimensionality measures the number of effective degrees of freedom in a representation space; the lower the dimension, the more compact the representation. However, a dataset-level estimate is an average and cannot reflect variation across different inputs. For example, a simple noun phrase and a complex nested clause may induce very different representation geometries inside the model, but dataset-level ID lumps them together.
To address this, the authors propose estimating pointwise ID relative to a fixed reference set, that is, computing each input's local intrinsic dimensionality individually and then relating it to surface, morphosyntactic, and syntactic features. In this way, we can observe at the level of individual inputs how linguistic properties affect representation complexity.
Intrinsic Dimensionality (ID) is a core geometric concept in representation learning, referring to the number of effective degrees of freedom actually occupied by a set of high-dimensional data points. Intuitively, if a set of representations, although located in a space of hundreds of dimensions, is locally approximately distributed on a low-dimensional manifold, then the dimensionality of that manifold is the intrinsic dimensionality. Commonly used estimation methods include MLE estimation based on the power law of nearest-neighbor distances, effective rank based on PCA spectral decay, and TwoNN. Lower ID means more compact representations, which is generally considered more favorable for generalization and compression; higher ID means the representation uses information from more directions. The traditional approach estimates an average ID over the entire dataset, but recent research on representation geometry points out that ID is not uniform across space, and different regions may have very different local complexity, which is precisely the motivation for pointwise estimation.
Experimental Design and Core Findings
The study covers three model families: Pythia, Qwen, and Apertus. For each input, the authors extract a set of compact linguistic features, including surface properties (such as length and word frequency), morphosyntax (such as noun compounds and pronouns), and syntactic structure (such as subject dependencies and verb constructions). They then estimate pointwise ID at each layer of the model and train predictive models to test the relationship between linguistic features and ID.
Compact Linguistic Features Can Predict Pointwise ID
The results show that compact linguistic features can predict pointwise ID at every analyzed depth, and that this relationship is strongest in the middle layers. This suggests that the middle layers may be where linguistic information and geometric representation are most tightly coupled.
Early Layers and Surface Properties, Middle-to-Late Layers and Syntactic Structure
Further analysis finds that the geometry of early layers is more closely associated with surface properties, while features such as noun compounds, pronouns, subject dependencies, and verb constructions become more prominent in the middle and late layers. This aligns with the intuition of hierarchical processing in language models: early layers capture shallow form, while deeper layers handle more abstract syntactic relations.
The hierarchical processing hypothesis of language models holds that different depths of a Transformer undertake different levels of linguistic processing: shallow layers favor surface information such as word form, position, and local collocations; middle layers gradually integrate syntactic dependencies; and deep layers are more involved in semantics and task-related abstract representations. This hypothesis has received varying degrees of support in probing experiments, causal interventions, and representation similarity analyses. The findings of this paper—that early-layer geometry is more strongly coupled with surface properties such as length and word frequency, while middle-to-late layers are more prominently associated with syntactic features such as noun compounds, pronouns, subject dependencies, and verb constructions—are consistent with this hierarchical picture. Notably, what is measured here is "the strength of association between geometric complexity and linguistic properties," not "whether information is linearly decodable." The two are complementary: the former characterizes how the shape of the representation space changes with linguistic structure, while the latter characterizes whether information is explicitly present.
Robustness Checks
The authors also verify that these patterns persist across different ID estimators, neighborhood sizes, and after controlling for input length and lexical frequency. This shows that the observed associations are not driven by confounders such as length or frequency, but that linguistic properties themselves have a systematic connection with local geometry.
The key difference between pointwise intrinsic dimension (pointwise ID) and dataset-level ID lies in the granularity of estimation. The pointwise method centers on each input's representation vector and estimates the effective dimensionality within the local neighborhood formed by its k nearest neighbors, thus obtaining "the geometric complexity of the local region in which that input is situated." Because sampling density can significantly affect the scale of nearest-neighbor distances, directly comparing pointwise ID across different inputs introduces bias, so the authors introduce a fixed reference set: each input's local neighborhood is aligned with the local statistics of the reference set, thereby eliminating scale drift caused by global density differences. This approach places the pointwise ID of different inputs on the same comparable scale, which is what makes regression or predictive analysis with linguistic features possible. The neighborhood size k and the composition of the reference set are key hyperparameters of the method and are also the focus of robustness checks.
Implications for Interpretability Research
The core contribution of this work is that the variation in local representation geometry hidden by dataset-level summaries is in fact systematically related to the linguistic properties of individual inputs. This provides a finer-grained tool for understanding the internal representations of language models.
Previously, we might have regarded ID as a global, static property, but this study shows that ID changes dynamically with the linguistic features of the input. Pointwise ID can serve as a new diagnostic signal to help us locate at which layers and for which linguistic properties the model is more sensitive.
In addition, the study reminds us that when analyzing model representations, we should not overlook differences among individual inputs. Future interpretability research might draw on this pointwise analysis framework and combine it with more types of linguistic features to further reveal the correspondence between model computation and linguistic structure.
Limitations and Future Directions
The paper focuses mainly on three model families, and future work can extend to more architectures and training data. At the same time, although the selection of linguistic features covers surface, morphosyntactic, and syntactic aspects, semantic and pragmatic features have not yet been included. The computation of pointwise ID also requires a fixed reference set, and whether the choice of reference set affects the results is worth further investigation.
Overall, this study opens a new window for geometric analysis of language models, linking local geometry with interpretable linguistic features and providing new ideas for understanding internal model representations.
One-line Summary
Using pointwise intrinsic dimension, the paper reveals systematic connections between the local representation geometry of language models and the linguistic features of inputs.
Paragraph Summary
This article introduces the core work of the arXiv paper Linguistic Features of Local Geometry in Language Models. To address the problem that dataset-level intrinsic dimension (ID) obscures differences among individual inputs, the authors propose estimating pointwise ID relative to a fixed reference set and relating each input's local intrinsic dimension to surface, morphosyntactic, and syntactic features. The study covers three model families—Pythia, Qwen, and Apertus—estimating pointwise ID at each layer and training predictive models. The results show that compact linguistic features can predict pointwise ID at all depths, with the strongest relationship in the middle layers; early-layer geometry is more associated with surface properties, while middle-to-late layers are more related to syntactic features such as noun compounds, pronouns, subject dependencies, and verb constructions. These patterns remain robust across different ID estimators, neighborhood sizes, and after controlling for length and word frequency, indicating a systematic connection between local geometric variation and linguistic properties and providing a finer-grained diagnostic tool for interpretability research.
Related articles

Jensen Huang Testifies Before Congress: Key Takeaways on Chip Export Controls
NVIDIA CEO Jensen Huang faces questioning from the U.S. House Foreign Affairs Committee on AI chip export controls, commercial interests, and national security.

Tencent WorkBuddy in Practice: Building an AI Automated Testing Workbench with SKILL Capabilities
Based on Bilibili creator Baili Yang's sharing, this article analyzes how Tencent WorkBuddy AI agent desktop workbench can be used for automated testing: the shift from AI-assisted to AI-led, the relationship among large models, agents, and SKILL capabilities, zero-configuration installation and permission control, and practical ideas for building a personal AI automated testing workbench.

Adding Authentication to Remix SaaS Apps: A Practical Guide to WorkOS AuthKit
Based on the official WorkOS AuthKit guide, this article covers the full approach to integrating authentication in Remix or React Router SaaS apps, including session management, protected routes, multi-tenant organizations, enterprise SSO, and SCIM sync, and analyzes its engineering value for SaaS teams.