TL;DR
This paper introduces a novel method to probe the internal linguistic knowledge of Large Language Models (LLMs) by analyzing their responses to "linguistic minimal pairs" – sentences that differ by only one grammatical feature. They found that LLMs' understanding of linguistic similarity is influenced by training data, aligns well with fine-grained linguistic categories, and is context-dependent, offering a new lens into how LLMs process language.
What Problem Does This Paper Address?
Understanding how LLMs internally represent and process linguistic knowledge is a significant challenge. While LLMs exhibit impressive language capabilities, the specific linguistic phenomena they learn and how they relate these phenomena remain largely opaque. Traditional methods often rely on output probabilities or broad accuracy metrics, which don't reveal the nuanced internal representations. This paper aims to bridge this gap by using "linguistic minimal pairs" – pairs of sentences that differ by a single linguistic feature (e.g., grammatical vs. ungrammatical) – to elicit and measure the LLMs' internal "linguistic similarity" for various linguistic phenomena.
Methods
The core of the methodology involves:
- Eliciting Representations: For each linguistic minimal pair (e.g., a grammatical sentence and its ungrammatical counterpart), the authors feed both sentences into an LLM and extract their hidden layer activations.
- Isolating Linguistic Phenomena: The difference between the activations for the grammatical and ungrammatical sentences is computed. This difference is hypothesized to isolate the LLM's internal representation of the specific linguistic phenomenon that distinguishes the pair.
- Measuring Linguistic Similarity: The similarity between these "activation differences" across different minimal pairs is measured using cosine similarity. This similarity score quantifies how similarly the LLM represents distinct linguistic phenomena.
- Large-Scale Analysis: This process is scaled up to over 100 LLMs and 150,000 minimal pairs across English, Chinese, and Russian, allowing for a comprehensive analysis of consistency, alignment with linguistic theory, and cross-lingual patterns.
Datasets
The study utilizes linguistic minimal pairs from three existing datasets:
- BLiMP (Warstadt et al., 2020): A large-scale benchmark for English linguistic minimal pairs.
- SLING (Song et al., 2022): A benchmark for Chinese linguistic minimal pairs.
- RuBLiMP (Taktasheva et al., 2024): A benchmark for Russian linguistic minimal pairs.
Each dataset covers numerous linguistic phenomena, and the authors combined them to create a total of 150,000 minimal pairs.
Key Insights and Ideas
- LLMs are sensitive to fine-grained linguistic distinctions: The method effectively captures how LLMs represent specific grammatical features, aligning well with detailed linguistic categories.
- Training data matters (a lot): LLMs show much higher agreement in linguistic similarity for English (a high-resource language) compared to Chinese and Russian, suggesting that the quantity and composition of training data heavily influence their linguistic knowledge.
- Linguistic similarity is not semantic similarity: The weak correlation between linguistic and semantic similarity highlights that LLMs can distinguish between grammatical correctness and meaning, and their linguistic representations are context-dependent.
- Cross-lingual clustering reveals language bias: Multilingual LLMs tend to group phenomena by language, but there's still evidence of "attraction" between related phenomena across languages, suggesting some level of cross-lingual understanding.
Key Results
- Consistency: Linguistic similarity is most consistent across LLMs for English (average alignment score of 0.471), followed by Chinese (0.414), and significantly lower for Russian (0.139).
- Theoretical Alignment: Linguistic similarity strongly aligns with fine-grained theoretical linguistic categories (e.g., specific types of agreement or licensing) but weakens considerably at broader levels (e.g., general categories like "syntax" or "semantics").
- Semantic Correlation: A weak correlation (around 0.3-0.4) was observed between linguistic similarity and semantic similarity, indicating that LLMs' internal linguistic representations are not solely driven by semantic content.
- Cross-Lingual Grouping: UMAP visualizations show that multilingual LLMs tend to cluster phenomena by language, but English phenomena exhibit an "attraction" towards their Chinese counterparts, suggesting some cross-lingual relationships are captured.
Limitations and Future Work
The authors acknowledge several limitations:
- Dataset Quality: The findings are dependent on the quality and scope of existing linguistic minimal pair datasets, which might not perfectly isolate single phenomena.
- Language Coverage: The study is limited to three languages, which doesn't fully represent global linguistic diversity.
- Phenomena Scope: While 150 phenomena were studied, this is still a fraction of the complexity of language.
Future work could involve developing more high-quality minimal pairs, expanding language coverage to diverse families, and studying a wider range of phenomena.
Summary updated