Scale, Drivers, and Limits of Representational Alignment Across Large Language Models
Abstract
Comparing large language models can reveal shared representational structure and systematic differences between them. However, aggregate similarity measures can obscure how agreement varies across geometric scales and which linguistic properties support it. We introduce two complementary methods to resolve where models agree and what supports that agreement. Standard representational similarity analysis (RSA) summarizes similarity across all stimulus pairs, potentially obscuring differences in alignment between nearby and distant inputs. Neighborhood-Weighted RSA (NW-RSA) addresses this limitation by weighting stimulus pairs according to their proximity in representational space, placing alignment from local neighborhoods to global geometry on a common scale. Counterfactual RSA (CF-RSA) tests which linguistic properties support alignment by comparing intact representations in one model with representations under controlled linguistic perturbations in another. Across diverse language models, we find strong agreement in coarse representational geometry but substantial divergence in local neighborhoods. Alignment is observed both across broadly sampled natural text and within linguistic equivalence classes that preserve particular aspects of meaning or structure. Counterfactual analyses reveal selective sensitivity: changes to logical scope reduce alignment substantially more than the tested changes to hierarchical syntax, event roles, or discourse structure. Alignment also decreases when sentence structure or lexical meaning is disrupted in word lists and jabberwocky sentences, suggesting that the regularities of natural language support stronger convergence. These findings refine claims of representational universality by showing that strong overall similarity need not imply agreement in how models represent finer linguistic distinctions.
Figures & tables
| Axis | Model A input | Model B input |
|---|---|---|
| Hierarchical syntax ( Shivagunde et al., 2023 ) | The journalist investigated which athlete the team had recruited. | The journalist investigated which team the athlete had joined. |
| Event roles ( McCoy et al., 2019 ; Zhang et al., 2019 ) | The president advised the doctor. | The doctor advised the president. |
| Logical scope ( Marelli et al., 2014 ) | Nobody is riding the bicycle on one wheel. | A person is riding the bicycle on one wheel. |
| Discourse structure ( Chen et al., 2019 ; Mostafazadeh et al., 2016 ) | The boy kicked the ball. The ball rolled away. | The ball rolled away. The boy kicked the ball. |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Experiment | Source | Scale |
|---|---|---|
| Geometric scale (§ 5.1 ) | DCLM ( Li et al., 2024 ) , FineWeb ( Penedo et al., 2024 ) , Control ( Tuckute et al., 2024 ) | sents each, Control (Control (T) ) |
| Linguistic scale (§ 5.2 ) | Generated equivalence classes | classes groups (anchor neighbors) |
| Counterfactual (§ 5.3 ) | ROLE, HANS+PAWS, SICK, DiscoEval+ROCStories | pairs per phenomenon |
| Perturbation (§ 5.4 ) | Generated paraphrase pairs | anchors {paraphrase, scrambled, word list} |
| Off-manifold (§ 5.5 ) | Derived from sentences | sents conditions |
| Anchors | Neighbor sets | Invalid | Discarded | ||||
|---|---|---|---|---|---|---|---|
| Type | rule | LLM | resampled | rule | LLM | calls | sentences |
| Task | 0 | 74 | 1 | 36 | 32 | 10 | 3,475 |
| Semantic | 0 | 78 | 4 | 85 | 90 | 29 | 8,832 |
| Syntactic | 92 | 67 | 39 | 229 | 88 | 45 | 16,048 |
| Entity | 43 | 105 | 0 | 8 | 17 | 22 | 1,398 |
| Discourse | 0 | 27 | 0 | 0 | 0 | 3 | 27 |
| Source | Subset | Sentences |
|---|---|---|
| SICK | contradiction subset | 242 |
| ROCStories | training set | 213 |
| PAWS | label-0 subset | 132 |
| STS-B | filtered | 69 |
| ROLE-1500 | deduplicated | 41 |
| DCLM | web corpus | 30 |
| Condition | Meaning | Structure |
|---|---|---|
| Sentences | Yes | Yes |
| Word lists | Yes | No |
| Jabberwocky | No | Yes |
| Nonword lists | No | No |
| Noun pseudoword | Partial | Yes |
| Verb pseudoword | Partial | Yes |
| Category | Item | License / Terms |
|---|---|---|
| Models | BERT, ALBERT, ELECTRA ( Devlin et al., 2019 ; Lan et al., 2020 ; Clark et al., 2020 ) | Apache-2.0 |
| RoBERTa, MiniLM, DeBERTaV3 ( Liu et al., 2019 ; Wang et al., 2020 ; He et al., 2023 ) | MIT | |
| GPT-2 ( Radford et al., 2019 ) | MIT | |
| Mistral-7B ( Jiang et al., 2023 ) | Apache-2.0 | |
| Qwen-2.5 ( Yang et al., 2024 ) | Apache-2.0 (3B: Qwen Research License) | |
| Llama-3.2 ( Dubey et al., 2024 ) | Llama 3.2 Community License |
Representation Alignment
Representation alignment studies how learned feature spaces can be compared or mapped to transfer meaning, capabilities, and information across models and tasks.
See all 111 papers