Partially canonical axes in large language model representations
Authors: Andrea Gregor de Varda, Ferdinando D'Elia, Greta Tuckute, Evelina Fedorenko, Meenakshi Khosla
Organizations: McGovern Institute for Brain Research, Massachusetts Institute of Technology · Department of Brain and Cognitive Sciences, Massachusetts Institute of Technology · Center for Language Technology, University of Copenhagen · Kempner Institute, Harvard University · Department of Cognitive Science, University of California San Diego
Large language models (LLMs) develop rich internal representations of language, but whether their individual coordinate axes carry meaning, or whether meaning is encoded only in directions in representation space, is still an open question. A common assumption is that individual axes in LLMs are arbitrary. We here challenge this view: across 12 LLMs from six model families, the native axes are reliably more aligned with other models' representations, with human brain responses to language, and with interpretable linguistic features than randomly rotated axes that preserve the same geometry. The native axes nonetheless fall well short of the best achievable alignment, so LLM coordinates are not fully arbitrary but also not fully canonical: they are partially canonical. A theory of how LLMs represent language must explain both the population geometry they learn and why individual units acquire patterns of response profiles that recur across systems.
Figures & tables
Figure 1: Axis-by-axis alignment under rotation of the coordinates. A. Schematic of the unit matching procedure. Each coordinate axis of an LLM hidden representation X (one axis per unit) generates a response profile across the input stimuli. Each unit of a target representation Y (a unit of another LLM, a voxel in the brain, or an interpretable linguistic feature) is matched to its most correlated axis in X on a training split; the alignment score is the correlation r between matched pairs on held-out stimuli, averaged over target units in Y . B. The stimuli in X are represented as a point cloud in three coordinate frames (with all pairwise distances fully preserved). Left: a random orthogonal rotation ( α=1 ) moves away from the native axes but keeps the geometry intact. Middle: the native basis ( α=0 ), where each axis corresponds to one model unit. Right: the optimal rotation Q∗ , learned by gradient descent on SO(n) to maximize the pairwise alignment with the target. If the native axes were arbitrary, the matching in A would give identical alignment scores in the left and middle panel; if they were fully canonical, it would give identical scores in the middle and right panels.
Figure 2: Three settings for probing the LLM representation basis. In each setting an LLM’s hidden representation ( X ) is aligned to a target representation ( Y ) via axis-by-axis matching. For each basis of X (native or rotated), we match each target dimension to the single axis of X with which it has the highest absolute correlation on training stimuli and evaluate that match on held-out stimuli. Top: Model-to-model , where Y is the hidden representation of another LLM elicited by the same set of 627 naturalistic sentences (the 384 sentences of Pereira Experiment 2 combined with the 243 sentences of Pereira Experiment 3). Middle: Model-to-brain , where Y is human fMRI responses recorded in the language network while participants read the same 627 sentences across two experiments. Bottom: Model-to-feature , where Y is an interpretable linguistic feature, either a binary well-formedness label from a minimal-pair task ( Y∈{0,1} ; morphology, syntax, hypernymy) or a multi-dimensional rating vector ( Y∈Rk ; perceptual and affective ratings).
Figure 3: Model-to-model and model-to-brain alignment as a function of rotation. A. Pairwise alignment between Pythia-160M and every other model in the set, as a function of the rotation fraction α . The light-blue dashed line is the comparison with an identical model trained with a different seed. B, C. Pairwise alignment of each LLM with human fMRI responses in the language network, separately for Experiment 2 (B) and Experiment 3 (C) of Pereira et al. (2018) . Each curve is the mean over layers (and participants); alignment decreases with α in most models and in every panel on average.
Figure 4: Model-to-feature alignment as a function of rotation. Pairwise alignment of each LLM against five interpretable feature targets that span morphology (Wug), syntax (BLiMP, averaged across 12 sub-tasks) and lexical semantics (hypernymy minimal pairs; perceptual sensorimotor norms; affective valence/arousal/dominance norms). Each curve is the mean over layers; the same decline with α appears in all panels.
Figure 5: Random, native and optimal alignment. From left to right: model-to-model alignment (with Pythia-160M as the reference); model-to-brain alignment (Pereira Experiments 2 and 3); and model-to-feature alignment (grouped by morphology, syntax, and lexical semantics). Each box shows the distribution across models of the alignment under a full random rotation ( α=1 , gray), the native basis ( α=0 , light blue), and the optimal axis alignment ( Q∗ , dark blue); thin lines connect the three values of one model. Across all alignment targets, the pattern is random < native ≪ optimal .
Figure 6: Readout sparsity and training dynamics. A. Kurtosis of the ridge readout weights across hidden units in the native basis, for the discrete features (left; Wug, BLiMP and hypernymy labels) and the continuous features (right; perceptual and affective norms). For each model, the line shows the distribution over layers of the native kurtosis (median over tasks); the small dots are the individual layers (darker = deeper; gray if within the null of that layer), and the vertical square is the median over tasks and layers. The gray band is the 95% interval of this median under a full random rotation of the basis ( α=1 , 10 rotation samples) using the widest interval across models. B. Basis privilege across training. The difference between native and random alignment across 29 log-spaced Pythia training checkpoints, for five model sizes. The thick line indicates the mean across sizes; the shaded band around it, the SEM across sizes. The basis privilege is positive but small at random initialization and increases with training.
Phenomenon class
Sub-task sampled
Anaphor agreement
anaphor_gender_agreement
Argument structure
transitive
Binding
principle_A_c_command
Control / raising
existential_there_object_raising
Determiner–noun agreement
determiner_noun_agreement_1
Ellipsis
ellipsis_n_bar_1
Table 1: The 12 BLiMP sub-tasks used in the model-to-feature alignment analyses, one per broad linguistic-phenomenon class.
Figure S1 : Training trajectories across sizes and rotation-invariant RSA control. Each panel shows the trajectories of native (blue, solid), random (gray, dashed) and optimal axis alignment (dark blue, dash-dotted) for one Pythia size, as a function of training step (log scale); shaded areas are ±1 SEM across layers. The privilege gap (Fig. 6 B) is the difference between native and random. The ochre line (right axis) is the RSA control across the same checkpoints; RSA peaks and declines in the small models but increases in the larger ones.
Normalized depth
Target
0.25
0.5
0.75
1.0
Δr
n+
Δr
n+
Δr
n+
Δr
n+
Model-to-model
− 0.0216
12/12
∗∗∗
− 0.0216
12/12
∗∗∗
− 0.0215
12/12
∗∗∗
− 0.0196
12/12
∗∗∗
Brain, Exp. 2
− 0.0115
12/12
∗∗∗
− 0.0109
9/12
∗∗
− 0.0133
12/12
∗∗∗
− 0.0105
10/12
∗∗
Brain, Exp. 3
− 0.0193
12/12
∗∗∗
− 0.0178
12/12
∗∗∗
− 0.0228
12/12
∗∗∗
− 0.0085
10/12
∗
Wug
− 0.0186
8/12
− 0.0384
11/12
∗∗
− 0.0282
10/12
− 0.0839
12/12
∗∗∗
Table 2: Basis privilege at different depths. For each target and depth (normalized relative to the total number of layers), Δr is the mean difference between native and random across models at the layer closest to the depth, and n+ the number of models (out of 12) with a positive gap. Asterisks indicate statistical significance ( ∗p<0.05 , ∗∗p<0.01 , ∗∗∗p<0.001 ).
Figure S2 : Basis privilege for all BLiMP sub-tasks. Difference between native and random alignment, averaged across layers, for each model. Symbols indicate the models; colors the model family; shapes the models within each family. Black dots and bars are the mean and 95% confidence interval across models; asterisks mark statistical significance above zero ( ∗p<0.05 , ∗∗p<0.01 , ∗∗∗p<0.001 ).
We show that the geometric relations between semantic features in large language models' hidden states closely mirror human psychological associations. We construct feature vectors corresponding to 360 words and project them on 32 semantic axes (e.g. beautiful-ugly, soft-hard), and find that these projections correlate highly with human ratings of those words on the respective semantic scales. Second, we find that the cosine similarities between the semantic axes themselves are highly predictive of the correlations between these scales in the survey. Third, we show that substantial variance across the 32 semantic axes lies on a low-dimensional subspace, reproducing patterns typical of human semantic associations. Finally, we demonstrate that steering a word on one semantic axis causes spillover effects on the model's rating of that word on other semantic scales proportionate to the cosine similarity between those semantic axes. These findings suggest that features should be understood not only in isolation but through their geometric relations and the meaningful subspaces they form.
Austin C. Kozlowski, Andrei Boutyline
Knowledge Lab · University of Chicago · Department of Sociology +1
Large language models (LLMs) are increasingly used as computational models of human language processing, yet it remains unclear which components of their representations drive alignment with neural activity. Here, we use ridge reduced-rank regression to identify the brain-predictive subspace of LLM representations: the representational directions that support linear prediction of neural responses. Across three naturalistic language-listening datasets spanning intracranial electrophysiology and fMRI, and six model conditions spanning autoregressive, bidirectional masked, and randomly initialized language models, we find that full linear encoding performance can be recovered using only 1-3% of the original embedding dimensionality. These low-dimensional subspaces generalize across held-out participants and, to a lesser extent, across datasets, suggesting that neural predictivity is concentrated in a compact and partially shared representational space. We next compare these brain-predictive directions with the principal axes of variation in the embeddings. Principal component analysis requires substantially more dimensions to recover neural prediction, demonstrating that the directions most useful for predicting neural activity are distinct from those capturing the most overall variance within LLM representations themselves. Finally, characterizing the learned subspaces allows us to surface interpretable features that are overrepresented in neural activity above and beyond the LLM representations. Together, these results show that LLM-brain alignment is supported by a small, structured subset of model representations and provides a framework for better understanding exactly why these representations align. Code can be found at: https://github.com/thefinnlab/low-rank-alignment
Zach Paris, Emily Finn
Department of Psychological and Brain Sciences, Dartmouth College, Hanover, NH 03755, USA
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.