Introduction
Large Language Models (LLMs) have achieved unprecedented levels of linguistic performance, yet the nature of their internal representations remains a subject of intense debate. A central question in computational linguistics is whether these models acquire a structural understanding of language that aligns with formal linguistic theories or if they rely on sophisticated statistical heuristics. This study introduces a novel framework to quantify linguistic similarity—the relationship between different grammatical phenomena—by analyzing the internal activations of LLMs across thousands of controlled sentence pairs.
Methodology: Isolating Linguistic Signals
The researchers utilized linguistic minimal pairs—sentence pairs $\langle x^+, x^-\rangle$ that differ by only a single grammatical feature (e.g., "The dog barks" vs. "The dog bark")—to isolate linguistic signals within 104 different LLMs.
As illustrated above, the process involves extracting hidden activations ($z^+$ and $z^-$) for both sentences and calculating their difference ($\Delta z$). This subtraction effectively "cancels out" shared semantic and lexical information, leaving a vector that represents the specific linguistic phenomenon. The cosine similarity between these difference vectors across various pairs provides a measure of how consistently a model represents specific linguistic rules. The study leveraged 150,000 minimal pairs across three benchmarks: BLiMP (English), SLING (Chinese), and RuBLiMP (Russian).
Key Insights and Results
Hierarchical Representation and Structural Understanding
The analysis reveals that LLMs act as "micro-linguists," capable of distinguishing fine-grained categories like specific island effects. However, this resolution decays at higher levels of the linguistic hierarchy; as one moves from specific phenomena to broader categories like "Syntax" vs. "Semantics," the internal distinctions become blurrier. Crucially, linguistic similarity was found to be distinct from semantic similarity, indicating that LLMs develop a dedicated structural understanding of language that is not merely a byproduct of meaning.
The Impact of Training Data
A model's internal linguistic map is heavily dictated by its training diet. In English, models exhibit high internal consistency (alignment score of 0.471). However, in Chinese (0.414), a sharp bimodal distribution emerges based on model lineage.
As shown in the UMAP visualizations, English-only models form a separate cluster from bilingual and multilingual models when processing Chinese. This suggests that cross-lingual training fundamentally alters the model's structural "map" of a language, proving that architectural similarities often matter less than training data overlap.
Cross-Lingual Effects and Resource Disparities
The study also identified "cross-lingual attraction," where representations of similar phenomena in different languages influence each other (e.g., English anaphora representations being influenced by Chinese counterparts). Despite this, a significant resource gap persists: alignment scores for Russian (0.139) were substantially lower than for English and Chinese, underscoring the necessity of high-quality, diverse training data for robust structural learning.
Conclusion
This work provides a quantitative bridge between neural representations and formal linguistics. By demonstrating that LLMs develop consistent, theory-aligned internal maps of grammar—albeit maps heavily influenced by training data—the research offers a new lens through which to view the "black box" of modern AI. Future research will expand these methods to a broader array of language families and more complex linguistic structures to further refine our understanding of neural grammar.
Summary updated