What Makes Two Language Models Think Alike?

Louis Jalouzot
UNICOG, CNRS, INSERM, CEA, Paris-Saclay University
LSCP, EHESS, ENS, CNRS, PSL University
jalouzot.louis@gmail.com
Christophe Pallier
UNICOG, CNRS, INSERM, CEA, Paris-Saclay University
Emmanuel Chemla
LSCP, EHESS, ENS, CNRS, PSL University
Earth Species Project
Yair Lakretz
LSCP, EHESS, ENS, CNRS, PSL University


Abstract

Do architectural and training differences influence the way models represent and process language? Traditional similarity metrics tell us whether two models share a similar representational geometry, but they cannot explain why. Here, we propose a new, simple, approach to address this question. This approach maps neural activity in each model layer onto a set of interpretable linguistic features and quantifies how much each of them drives similarities and differences between models. We use this approach to compare 43 language models across 10 families, including decoder Transformers, State-Space Models, and Recurrent Neural Networks. We find that model-level similarity is driven most strongly by release date, a proxy for general LLM development, and model family, suggesting that linguistic signatures are not primarily shaped by scale or architecture class. Overall, our approach provides a way to link theoretically-motivated symbolic descriptions to neural representations and can readily be extended to other domains such as speech and vision, and to other neural systems such as biological brains.

Keywords: Neural Representations; Metric Learning; Large Language Models; Interpretability; Symbolic and non-Symbolic approaches

1 Introduction↩︎

Marr’s hierarchy describes information-processing systems using three levels (1; [1]): computational, algorithmic, and implementational. The computational level defines the system’s goal. Many algorithms can solve the same computational goal. Finally, the implementational level concerns how an algorithm is realized. In biological systems, this includes physical hardware such as brains. In artificial systems, it also includes network topology and architecture. Many implementations can run the same algorithm.

Large Language Models (LLMs) fit into Marr’s hierarchy. At the computational level, most language models share the same goal: next-token prediction (but see [2] for multi-token prediction). At the implementational level, models can use very different architectures, such as Transformers, State-Space Models (SSMs), or Recurrent Neural Networks (RNNs). At the algorithmic level, the Platonic Representation Hypothesis [3] predicts increasing convergence: as models become larger and more competent, their representations should align across architectures, objectives, and even data modalities. From Marr’s perspective, different implementational choices can still lead to shared algorithmic organization. Yet differences in architecture and training recipes may also make models rely on distinct linguistic representations. Empirical work on this hypothesis has primarily used geometric alignment measures, such as mutual nearest-neighbor overlap between representational kernels, leaving open whether convergent representations are organized by the same explicit linguistic features. In this work, we ask whether language models converge at this algorithmic level, and if so which linguistic features explain that convergence.

Figure 1: Marr’s levels of analysis: While many language models share the computational goal of next-token prediction (top level), their architectures and training might differ substantially (bottom level: Transformer, SSM, RNN). Given the one-to-many relationship between each level of Marr’s hierarchy to the level below it, it is unclear whether distinct LLM architectures (bottom level) would develop the same representations and algorithms (middle level) to perform the computational task (top level).

Standard model-similarity measures compare raw representational geometry, including second-order isomorphism/RSA [4][8], linear regression [9], CCA [10][13], statistical shape analysis [14], and DSA [15]. These measures tell us whether two models share a similar raw geometric space. However, they act as a black box. They do not explain why the representations align. They cannot tell us if two models are similar because, e.g., they both heavily encode the same syntactic structure, or simply because they share superficial lexical biases.

To address this, we shift from purely geometric comparisons to feature-based representational similarity. We use metric-learning encoding models (MLEMs; [16]). MLEMs learn a metric over interpretable features of stimuli to approximate the distances between the neural representations of those stimuli. Applied to embeddings of language models on sentences with specific linguistic properties, this produces a linguistic signature, a profile that quantifies how much each linguistic feature contributes to predicting neural distances among stimuli for a specific layer or model. By comparing these signatures, we measure similarity based on explicit linguistic strategies, rather than raw geometry.

We test this approach on 43 models across three different classes of neural architectures: decoder Transformers, State-Space Models (SSMs), and Recurrent Neural Networks (RNNs). We find that the similarity between model linguistic signatures is driven most strongly by their family and release date. The latter acts as a proxy for general LLM development, summarizing correlated changes in architecture and training recipes. Parameter count, training token count, and depth make smaller contributions. This suggests that the way language models solve language processing is shaped more by model family and model generation than by scale or specific architectural differences.

More broadly, the same feature-based comparison can extend to speech, vision, or brain recordings whenever stimuli can be paired with explicit theoretical features.

2 Methodology: Linguistic Signature Similarity↩︎

2.1 Measuring Similarity through Interpretable Features↩︎

Two standard approaches relate theoretical features to neural representations: decoding and encoding models [17]. Decoding models, or probes, predict features from neural activity [18][20]. High decoding performance shows that feature-related information is available in the representations, but it does not show that the feature itself organizes the neural space. A feature can be decodable simply because it correlates with another variable actually used by the model [21][23]. Encoding models instead predict neural activity from features and can include several features or confounds at once, disentangling their contributions. However, standard encoding models are often univariate: they fit each neuron, voxel, or embedding dimension independently. They can therefore miss information encoded only in distributed geometry across a population of units [24], [25]. MLEMs keep the encoding logic but move the target from individual activations to pairwise neural distances among stimuli. They learn which feature distances best predict those neural distances, yielding feature importances for the geometry of a layer’s representations. In our approach, these importances define the layer’s linguistic signature. We then compare linguistic signatures across layers and models. If two models or layers have similar signatures, their representations are organized by similar linguistic variables, even when their raw geometries differ.

a
b
c

Figure 2: Methodological Approach: (a) General MLEM Pipeline: MLEMs identify which interpretable stimulus features organize neural representations by testing which feature distances predict neural distances among stimuli. To do so, they start from stimuli paired with features and neural representations, predict pairwise neural distances \(D^N\) from pairwise feature-based distances \(D^f\), and compute the importance of each feature. We apply MLEM to a synthetic dataset of sentence stimuli with corresponding linguistic features and neural representations from the layers of language models. (b) Model Similarity: To compare whole language models, we ask whether they assign similar importance to linguistic features across layers. We represent each model by the layer-wise profile of its linguistic feature importances and compare these profiles with multi-dimensional Dynamic Time Warping. (c) Layer-Wise Similarity: To compare individual layers, we ask whether two layers assign similar importance to the same linguistic features. We define each layer’s linguistic signature as its vector of linguistic feature importances and compare these vectors with Euclidean distance (\(L_2\)).
This approach yields an interpretable similarity measure based on linguistic priorities rather than raw geometry alone.. a — General MLEM Pipeline (figure adapted from [16]), b — Model Comparison, c — Layer Comparison

2.2 Metric-Learning Encoding Models (MLEMs)↩︎

MLEMs [16] learn a distance function over input features (e.g., tense, subject number) to match the actual distances between neural representations (2).

Formally, consider a set of \(n\) stimuli (e.g. sentences), each described by \(m\) interpretable features \(F\) (e.g., tense, gender). First, we consider the pairwise neural distances \(D^N\) between the neural embeddings \(Y_i\) and \(Y_j\) corresponding to stimuli \(s_i\) and \(s_j\) (for instance with the Euclidean distance)1: \(D_{ij}^N = \left\|Y_i - Y_j\right\|_2\). Second, we consider the pairwise feature distances. Let \(D_{ij}^F\) be the \(m\)-dimensional vector of feature distances for a pair of stimuli: \(D_{ij}^F=\left( \;D_{ij}^{f_1} \;, \;D_{ij}^{f_2} \;, \;\ldots \;, \;D_{ij}^{f_m} \;\right)\), where \(D_{ij}^{f_k}\) is the distance with respect to feature \(f_k\). For example, for a categorical feature such as sentence tense, \(D_{ij}^{f_k}=0\) if two sentences have the same tense and \(D_{ij}^{f_k}=1\) otherwise. For an ordered feature such as word frequency, \(D_{ij}^{f_k}\) can instead be the absolute difference between the two feature values. To evaluate which input features best explain the neural distances, MLEMs learn a distance over the feature-distance vectors \(D_{ij}^F\) that best models the neural distances \(D_{ij}^N\). Formally, they learn a symmetric positive definite matrix \(W \in \mathbb{S}^{++}_m\) such that \(D_{ij}^N\) is modeled as \(\widehat{D}_{ij}^N=\left\|D_{ij}^F\right\|_W = \sqrt{{D_{ij}^F}^T W D_{ij}^F}\).

The diagonal entries of \(W\) weigh individual features, while its off-diagonal entries weigh feature interactions. MLEMs optimize \(W\) to maximize the Spearman correlation \(\rho\) between the empirical neural distances \(D_{ij}^N\) and the modeled distances \(\widehat{D}_{ij}^N\): \(\sup_{W\in\mathbb{S}^{++}_m} \rho_{i<j}\left( \;\widehat{D}_{ij}^N \;, \;D_{ij}^N \;\right)\).

The Spearman correlation focuses on preserving the relative arrangement (topology) of stimuli, rather than the absolute scale which is arbitrary in neural spaces. Because exact ranks are not differentiable, the model optimizes a differentiable relaxation of \(\rho\) [27]. The model is then trained using stochastic gradient descent on batches of stimulus pairs. Positive definiteness of \(W\) is enforced via Cholesky parameterization.

2.3 Extracting Linguistic Signatures (Feature Importance Profiles)↩︎

Feature Importances (FI) for each interpretable feature can be computed from an MLEM. Feature Importance is defined as the average decrease in the model’s Spearman correlation score on a test set when randomly permuting a specific feature’s distance matrix or that of an interaction between two features. This approach is more robust than looking at the raw weights in \(W\), which can be more affected by correlations between features and scaling [28]. The scale of FIs is more interpretable as they are differences of Spearman scores and in particular it allows for comparison between different MLEMs (e.g. trained on neural representations from different language models).

For each layer of a language model, we collect sentence-level embeddings from the last-token representation of each sentence in a synthetic dataset balanced to mitigate correlations among linguistic features of interest (described later), and compute the FIs for those features using MLEMs. We refer to the resulting FI vector as the layer’s linguistic signature. A high FI means that differences along that feature predict relatively large distances between sentence embeddings in that layer. For example, if tense has high FI, sentence pairs that differ in tense tend to be farther apart in the layer’s representation space than sentence pairs with the same tense. For an entire model, we consider the layer-wise profile formed by the linguistic signatures of its different layers and refer to this profile as the model’s linguistic signature. It tracks the development of linguistic features along its layers.

The FIs are computed on held-out sentences using 5-fold cross-validation. Throughout the different analyses, we report the average of the metric of interest across those folds and display the variability (standard deviation) as error bars or shaded areas to help reliably compare data points.

2.4 Linguistic Signature Similarity↩︎

Because a linguistic signature summarizes how strongly a layer relies on each linguistic feature, comparing signatures lets us move beyond standard geometric similarity. The question is not only whether two representations are close, but whether they prioritize the same linguistic information. We analyze linguistic-signature similarity at three levels: model-level, layer-level, and feature-level.

At the model level, we want to compare how linguistic signatures evolve across layers, but models often have different numbers of layers. A direct layer-by-layer comparison is therefore not well defined, and even models with the same number of layers may express similar feature-importance patterns at shifted relative layer positions. To address this, for each pair of models we compute normalized multi-dimensional Dynamic Time Warping (DTW; [29]) between their layer-wise FI profiles (2 (b)). DTW aligns similar feature-importance vectors along the depth axis, allowing us to test whether linguistic features follow similar profiles across layers even when models differ in layer count or features emerge at different depths. The normalization further mitigates the confounding effect of large differences in numbers of layers between models. Implementation details can be found above 11 in Appendix.

We then fit a second MLEM on the resulting model-level similarity matrix to explain its structure from model properties. The predictors are family membership, architecture class (Transformer, SSM, RNN), parameter count, release date, depth, depth-to-width ratio2, and training token count. Numerical properties that span multiple orders of magnitude (parameter count, depth, and training token count) are log-scaled We included release date as a proxy for general LLM development. It summarizes many architectural choices (e.g., activation type, normalization type, positional encoding, attention type) which are highly correlated with one another, as well as factors we cannot easily retrieve or estimate (e.g., training FLOPs, training data types). We also excluded width and vocabulary size because they were highly correlated with the other variables. The remaining model properties show only moderate pairwise correlations (7 in Appendix), making the resulting FI profile more reliable.

At the layer level, we compare individual FI profiles using Euclidean distance (2 (c)). Two layers are close only if they rely on the same linguistic features with the same intensity.

At the feature level, we inspect why particular layer pairs are close or far. We compare their linguistic signatures in scatter plots to find which features lead the similarity or difference. We visualize the neural representations at those layers using Multi-Dimensional Scaling (MDS; [30]) to study whether in fact the models organize their neural space with respect to the leading features in a similar way or not. This provides a qualitative validation that linguistic-signature similarity reflects actual neural representations similarity with respect to the identified linguistic features.

Finally, we compare this feature-based approach at the layer level to a feature-agnostic baseline. We use Representational Similarity Analysis (RSA; [7]) directly on the pairwise neural distance matrices \(D^N\) for each layer. Contrary to RSA, linguistic-signature similarity is more interpretable and naturally supports the three complementary levels of analysis above.

3 Experimental Setup↩︎

We evaluated 43 autoregressive language models from 10 families, spanning 100M to 14B parameters and 3 architecture classes: decoder Transformers, State-Space Models, and Recurrent Neural Networks. The model set includes older Transformer baselines (GPT-2, OPT, Pythia), newer Transformer families (OLMo-2, Llama-3.2, Ministral-3, Qwen3), State-Space Models (Mamba, Mamba-2), and a Recurrent Neural Network family (RWKV-7). All models share the next-token prediction objective but differ in architecture, scale, training data, and release date, allowing us to test which factors explain linguistic-signature similarity. For each model and layer, we collected the hidden state of the last token of each sentence, as it is the position that has access to the full sentence in autoregressive models.

We used the Relative Clause dataset from [16] which contains 7.7k sentences generated using Context-Free Grammars. The dataset crosses relative clause attachment site (center-embedded vs. peripheral) with relative clause type (subject vs. object), and provides 12 linguistic features including syntactic properties, and lexical frequency and morphological attributes of particular elements of the sentence. Its balanced design mitigates feature correlations (6), which is important for reliable Feature Importances [28].

More details on the included models, embedding extraction procedure, and dataset design are provided in [sec:model_inventory] [sec:relative_clause_dataset] in Appendix.

a
b

Figure 3: What Makes Two Language Models Think Alike? (a): MDS visualization of model linguistic signature similarities computed using Dynamic Time Warping. Each marker corresponds to an LLM. Successive LLMs from the same family ordered by size are connected by a line. Models from the same family group together, highlighting that they share similar linguistic feature importance profiles across layers. The DTW distance matrix is shown in 11 in Appendix. (b): To identify which model properties best predict distances among model linguistic signatures, we fit an MLEM to the DTW distance matrix and compute Feature Importances for those properties. This analysis shows that model-level distances are explained mainly by family membership and release date, highlighting the role of correlated architectural changes from different LLM generations.. a — MDS projection of similarity between model linguistic signatures., b — Feature importance of model properties for explaining linguistic signature similarities. Error bars show standard deviation across the original 5-fold cross-validation used to estimate layer-wise linguistic signatures.

Figure 4: Layer-wise Similarity for all LLMs: To visualize how linguistic signatures change across layers, we project the layer-level signatures of all models into a shared PCA space. Each marker represents one layer, successive layers from the same model are linked, and models are displayed family by family for readability. The main pattern is that models from the same family trace similar paths, indicating that they develop similar linguistic signatures across layers.

4 Results↩︎

We trained an MLEM for each layer of all the 43 models. 8 in Appendix shows the performance of these MLEMs measured with Spearman correlation on the held-out splits. Across models, encoding performance follows the same broad profile: Spearman correlation is low in shallow and deep layers (\(\approx 0.2\)) and peaks in middle layers (0.5-0.7). This is consistent with prior work finding that syntactic information is primarily processed in middle layers of large language models [31], [32]. Within each family, the peak tends to occur at a similar relative layer position across model sizes, but this position differs across families.

4.1 Linguistic Signatures↩︎

We first examined the linguistic signatures themselves and how they evolve across layers (9 in Appendix). Three main patterns emerge from this analysis.

Linguistic features show different importance dynamics across model layers. This validates the sanity of the method and shows that features do not organize the sentence-level representations at the same layer depths.

In many models, the main syntactic features of the dataset, namely Relative Clause type and Attachment site, have their highest importance in middle layers. This pattern mirrors the global encoding-performance profile and recovers again prior findings that syntactic information is primarily represented in middle layers of language models.

Models within the same family show visually similar linguistic signatures, even when they differ substantially in parameter count and number of layers. This suggests that linguistic signatures are shaped by model family rather than scale.

a
b

Figure 5: What Makes Two Linguistic Signatures Similar? To keep the feature-level comparison tractable, we retained one layer per eighth of relative layer position for each model. For each retained layer, we compared retained layers from other model families in the same eighth and selected the layers with the closest and farthest linguistic signatures. The top row compares Pythia-6.9B layer 14 with Mamba-790M layer 21 and Qwen3-4B layer 16. Relative Clause type dominates the reference and similar signatures and yields clear clustering in the corresponding neural spaces, whereas it has low importance and weak clustering in the dissimilar Qwen3-4B layer. The bottom row compares Pythia-1.4B layer 8 with Mamba2-780M layer 14 and Qwen3-4B layer 11. Here Verb lemma contributes moderately in the reference and similar layers, but much more strongly in the dissimilar Qwen3-4B layer, producing correspondingly sharper clustering.. a — Feature Importances for reference layers against those of layers from other families with the closest and farthest linguistic signatures., b — MDS projections of the neural representations of the reference, similar, and dissimilar layers, colored by the feature leading the similarity in each row.

4.2 What Makes Two Models Think Alike?↩︎

We asked which language models have the most similar linguistic signatures. To do so, we compared their layer-wise linguistic-signature profiles using Dynamic Time Warping (DTW). The resulting similarity structure is summarized with an MDS projection in 3a and the full DTW distance matrix is shown in 11 in Appendix. We see a broad axis corresponding to release date and again models visually cluster primarily by family, indicating that models from the same family tend to develop similar linguistic signatures across layers. To explain this structure quantitatively, we then treated the pairwise DTW matrix itself as the target of a second MLEM defined over model properties. The right panel of 3 shows that release date, which acts as a proxy to summarize general LLM development, is the strongest predictor of model-level linguistic signature similarity, followed by family membership, with smaller contributions from parameter count, training token count, and depth. By contrast, architecture class and depth-to-width ratio contribute little once the other model properties are included. These results suggest that similarity in model-level linguistic signatures is not primarily shaped by scale or architecture class. This pattern is consistent with the Platonic Representation Hypothesis in showing that different architectures can share representational profiles across layers. However we find that convergence is partial and structured by model family and model generation rather than collapsing to a single endpoint when scale increases.

Do models from the same family follow similar layer-wise trajectories of linguistic signatures? To address this question, we examined layer-level linguistic signatures (FI vectors) with a PCA computed over all layers from all models (4). We also show a Euclidean distance matrix between layer-level linguistic signatures in 10 in Appendix. In this shared PCA space, models from the same family trace remarkably similar trajectories, indicating that their linguistic signatures evolve similarly across layers. For many families, these trajectories form loops, with the last layers returning close to the first layers. This loop-like organization is visible even in models without tied input and output embeddings, where weight tying means sharing the input token embedding matrix with the output softmax matrix [33]. Because models must map their internal representations back to token space for next-token prediction, this return toward early-layer signatures may reflect constraints imposed by the output objective.

We also compare our approach to a feature-agnostic RSA baseline applied directly to the neural representations of the models from the GPT-2, OPT and Pythia families. 12 13 in Appendix show the RSA similarity matrix and its MDS projection. The latter shows that models from the same family tend to follow similar trajectories, much like the PCA of linguistic signatures. However, it does not clearly show the loop-like organization, even for GPT-2, whose input and output embeddings are tied. More importantly, RSA remains purely geometric: it does not identify which linguistic features drive similarity and it does not support the model-level, layer-level, and feature-level analyses enabled by linguistic signatures.

4.3 What Makes Two Linguistic Signatures Similar?↩︎

Why do two model layers represent linguistic information similarly or differently? We addressed this question by zooming in on specific Feature Importance (FI) differences between layers. For a given pair of layers, we asked which linguistic features account for their similarity or discrepancy, and whether the same features visibly organize their neural spaces. To choose informative pairs, we turned to the layer-level linguistic-signature distance matrix (10 in Appendix). Inspecting all layer pairs was impractical so for all models we kept only one layer per eighth of relative layer position. For each of them, we considered other retained layers from models in other families within the same eighth of relative layer position, then selected the ones with the closest and farthest linguistic signatures. 5 shows two illustrative comparisons from this systematic search.

The first row of 5a shows the FIs for Pythia-6.9B layer 14 against those of its closest counterpart, Mamba-790M layer 21, and its farthest counterpart, Qwen3-4B layer 16. This comparison dissociates architecture and scale from linguistic signature, since Qwen3-4B is closer to Pythia-6.9B in architecture and parameter count but much farther in linguistic-signature space. The most important feature for the similar layers is Relative Clause type and we see clear clustering in their neural spaces whereas the dissimilar Qwen3-4B layer shows little such organization (5b top row). In the second row, Pythia-1.4B layer 8 and Mamba2-780M layer 14 are again close, with Verb lemma moderately important in both cases, while Qwen3-4B layer 11 assigns much higher importance to this feature and shows correspondingly sharper clustering in neural space. This analysis shows that the feature-based approach provides a clear, interpretable explanation for why two layers are similar or different in their linguistic processing.

5 Summary and Conclusions↩︎

Language models share the same computational task of next-token prediction. However, architectural differences can drastically change the algorithms and representations they use to process text. In this paper, we introduced a framework to test whether different models converge on similar linguistic representations or instead process text in different ways. While traditional approaches treat similarity as a purely geometric property, we introduced a feature-based notion of representational similarity based on explicit linguistic signatures derived from Metric-Learning Encoding Models.

We tested this framework on decoder Transformers, State-Space Models, and Recurrent Neural Networks. At the model level, profiles of linguistic signatures are broadly organized by release date, serving as a proxy for general LLM development while architecture class seems to not be a predictive feature. Analyses at the model and layer levels comparing these profiles show that models within the same family tend to organize linguistic information similarly. Finally, at the feature level, the method makes it possible to explain particular similarities and differences by identifying which linguistic features dominate which translates into organization differences of the corresponding neural spaces.

These findings refine the kind of convergence hypothesized by the Platonic Representation Hypothesis. They support that different architecture classes, including Transformers, SSMs, and RNNs, can exhibit similar linguistic signatures. However, they do not support a simple picture in which scale alone drives all models toward one undifferentiated representational endpoint. Instead, linguistic convergence is structured by model family and model generation.

Together, these results illustrate the value of feature-based approaches. By decomposing neural spaces into symbolic dimensions, we obtain an interpretable account of how language models represent and process language. This comparison based on linguistic signatures can naturally generalize to domains like speech and vision, and to comparing artificial networks with biological brains.

6 Limitations↩︎

While our approach explains model similarity using clear linguistic features, it has limitations. First, we use a synthetic dataset where the linguistic features are largely independent, but it limits the analysis to a specific set of syntactic constructions. Future work should test whether the same conclusions hold on natural, unconstrained text.

Second, linguistic signatures are defined relative to the features included in the symbolic description of the stimuli. A model might rely on variables outside this feature set. In that case, MLEMs would still explain which of the specified features account for pairwise neural distances, but the resulting signature would only capture part of the model’s representational organization.

Third, our analyses operate at the level of whole layers. This is appropriate for comparing broad representational geometries, but it does not identify the specific units, circuits, or algorithms that produce those geometries. A feature could be perfectly computed by a localized mechanism and therefore have a weak layer-level importance. MLEMs should therefore be viewed as complementary to mechanistic, causal, and unit-level analyses: they add a feature-level account of neural distances, but they do not replace circuit-level explanations.

Our results also do not directly test the cross-modal part of the Platonic Representation Hypothesis. Our analysis is restricted to language models and to a syntactic dataset. Future work could apply MLEMs to paired text, speech, vision, and brain data using shared interpretable features, testing whether cross-modal alignment is driven by the same explicit variables rather than by raw geometric overlap alone.

We are grateful to Malo Renaudin, Maxence Pajot, and Pablo Diego-Simón for their valuable support and insightful feedback.

Funding: This work was performed using HPC resources from GENCI-IDRIS (Grant 2026-AD011016055R1).

Competing interests: The authors declare no competing interests.

Supplementary Material

7 Broader Impact↩︎

This work introduces a framework for understanding the linguistic representations of large language models. By shifting from purely geometric comparisons to feature-based analyses, our approach contributes to the growing field of representational interpretability. Improving our understanding of how different architectures process language is a critical step toward making these systems more transparent, predictable, and safe. Furthermore, explicitly identifying the linguistic features that drive model representations can eventually help researchers uncover and mitigate implicit biases encoded in neural spaces.

8 Model Inventory and Experimental Setup↩︎

We included the GPT-2 [34], OPT [35], and Pythia [36] families as older decoder-only Transformer baselines, because they represent different stages of open next-token prediction models, from early models trained on relatively modest corpora to systematic scaling suites. We also included newer families trained with more recent methods and larger datasets, namely OLMo-2 [37], Llama-3.2 [38], Ministral-3 [39], and Qwen3 [40]. These newer families were chosen for complementary reasons: OLMo-2 for its transparent open training recipe [37], Llama-3.2 and Ministral-3 as recent distilled families [38], [39], and Qwen3 for very large-scale multilingual pretraining. Finally, we included Mamba and Mamba-2 [41], [42] and RWKV-7 [43] to test whether similarities in linguistic structure persist across state-space and recurrent architectures.

We collected sentence representations as the hidden state from each layer on the last token (the period). Due to causal attention in autoregressive Transformers and the recurrent nature of SSMs and RNNs, the last token is the only token that has seen the full sentence. Therefore, only the last-token embedding can encode information from the whole sentence, including the linguistic features of interest. We also tested representations as the concatenation of all token embeddings. This richer representation was not retained because pairwise distances were driven by specific token identities rather than by linguistic features.

@c l c c c@ Family & HuggingFace model & #Params & Training tokens & Reference
& gpt2 & 117M & &
& gpt2-medium & 345M & &
& gpt2-large & 762M & &
& gpt2-xl & 1.5B & &
(lr)1-5 & opt-125m & 125M & &
& opt-1.3b & 1.3B & &
& opt-2.7b & 2.7B & &
& opt-6.7b & 6.7B & &
& opt-13b & 13B & &
(lr)1-5 & pythia-410m-deduped & 410M & &
& pythia-1b-deduped & 1B & &
& pythia-1.4b-deduped & 1.4B & &
& pythia-6.9b-deduped & 6.9B & &
& pythia-12b-deduped & 12B & &
(lr)1-5 & OLMo-2-0425-1B & 1B & 4T &
& OLMo-2-1124-7B & 7B & 4T &
& OLMo-2-1124-13B & 13B & 5T &
(lr)1-5 & Llama-3.2-1B & 1B & \(\leq\)​9T &
& Llama-3.2-3B & 3B & \(\leq\)​9T &
& Llama-3.1-8B & 8B & \(\geq\)​15T &
(lr)1-5 & Ministral-3-3B-Base-2512 & 3B & &
& Ministral-3-8B-Base-2512 & 8B & &
& Ministral-3-14B-Base-2512 & 14B & &
(lr)1-5 & Qwen3-0.6B-Base & 0.6B & &
& Qwen3-1.7B-Base & 1.7B & &
& Qwen3-4B-Base & 4B & &
& Qwen3-8B-Base & 8B & &
& Qwen3-14B-Base & 14B & &
(lr)1-5 & mamba-130m-hf & 130M & &
& mamba-370m-hf & 370M & &
& mamba-790m-hf & 790M & &
& mamba-1.4b-hf & 1.4B & &
& mamba-2.8b-hf & 2.8B & &
(lr)1-5 & mamba2-130m-hf & 130M & &
& mamba2-370m-hf & 370M & &
& mamba2-780m-hf & 780M & &
& mamba2-1.3b-hf & 1.3B & &
& mamba2-2.7b-hf & 2.7B & &
(lr)1-5 & rwkv7-191M-world & 191M & 1.6T &
& rwkv7-0.4B-world & 0.4B & 3.1T &
& rwkv7-1.5B-world & 1.5B & 5.6T &
& rwkv7-2.9B-world & 2.9B & 5.6T &
& rwkv7-7.2B-g0a & 7.2B & 5.6T &

OPT: We excluded facebook/opt-350m because its architecture uses heterogeneous hidden state dimensions (1024 to 512 in the final layer), which prevents the uniform layer-wise analysis applied to all other models.

Pythia: We excluded EleutherAI/pythia-14m-deduped, EleutherAI/pythia-70m-deduped, and EleutherAI/pythia-160m-deduped because exploratory MLEM fits stayed near floor across layers and did not reliably recover the Relative Clause type and Attachment site contrasts. These models therefore appeared too small to produce stable sentence-level syntactic structure for the present analysis. We also excluded EleutherAI/pythia-2.8b-deduped because its FI profiles were degenerate and inconsistent with neighboring Pythia checkpoints, so we suspect a corrupted checkpoint or failed training.

9 Relative Clause Dataset↩︎

This section details the synthetic Relative Clause dataset used throughout the study. We detail its 2x2 design in [tab:rc95design], its linguistic features in 1, and the correlations between them in 6. This dataset is a derived version of the Relative Clause dataset introduced by [16]. Relative to the original release, we removed the intervener-number and intervener-gender columns, used a simplified noun lexicon and the verbs see and like to instantiate the templates, and recomputed Zipf-frequency values from those lexical items.

ccl & &
& & Subj [who verb obj] verb obj.
& & The woman [who sees the girl] likes the queen.
& & Subj [who subj verb] verb obj.
& & The woman [who the girl sees] likes the queen.
& & Subj verb obj [who verb obj].
& & The woman sees the girl [who likes the queen].
& & Subj verb obj [who subj verb].
& & The woman likes the girl [who the queen sees].

Table 1: Linguistic features in the Relative Clause dataset (adapted from [16]).
Feature Values Description
Relative Clause type Subject relative, Object relative RC modifies subject or object of main clause.
Attachment site Peripheral, Center-embedded Position of RC relative to main clause.
Subject number Singular, Plural Grammatical number of main clause subject.
Subject gender Feminine, Masculine Grammatical gender of main clause subject.
Subject frequency 4.86, 5.17, 5.35, 5.38, 5.82 Zipf frequency of main clause subject.
Object number Singular, Plural Grammatical number of main clause object.
Object gender Feminine, Masculine Grammatical gender of main clause object.
Object frequency 4.86, 5.17, 5.35, 5.38, 5.82 Zipf frequency of main clause object.
Embedded number Singular, Plural Grammatical number of embedded clause subject or object.
Embedded gender Feminine, Masculine Grammatical gender of embedded clause subject or object.
Embedded frequency 4.86, 5.17, 5.35, 5.38, 5.82 Zipf frequency of embedded clause subject or object.
Verb lemma see, like Lemma of the verb.
Figure 6: Linguistic features in the Relative Clause dataset are largely uncorrelated. This heatmap shows the Pearson correlations between the pairwise distance matrices of the 12 linguistic features in the dataset. The correlations are very low so the dataset is well-balanced and the Feature Importances are reliable.

10 Model Properties Analysis↩︎

Figure 7: Model properties are moderately correlated. This heatmap shows the Pearson correlations between the pairwise distance matrices of the model properties used in the analysis of DTW similarities (3 (b)). Width and vocabulary size were excluded from this analysis because they correlate too much with family membership and number of parameters which would compromise the interpretability of the Feature Importances.

11 Additional Results↩︎

The remaining figures provide full visual outputs for layer-wise signatures, model-level similarity, baseline geometric similarity, and MLEM fit quality.

Figure 8: Layer-wise MLEM performance. Spearman correlation between predicted and actual neural distances for all evaluated models, shown as a function of relative layer position.
Figure 9: Linguistic Signatures. Metric-Learning Encoding Models measure the importance of each linguistic feature in explaining differences between sentence representations at each layer. Dominant features vary across layers, showing which linguistic rules structure the layer’s neural space.
Figure 10: Heatmap of layer-level linguistic signature similarity. Each row and column corresponds to one model layer, ordered by model family, model size, and layer. Individual model and layer labels are omitted for readability and white gaps separate families. Colors show Euclidean distances between layer-level linguistic signatures, with smaller values indicating more similar FI profiles.

To compute DTW distances, we use the implementation available in the Python package dtw-python (cf. corresponding GitHub repository; [44]). We used the returned normalizedDistance attribute.

Figure 11: DTW heatmap of model-level linguistic signature similarity. Each row and column corresponds to one full model, ordered by family and model size. Individual model labels are omitted for readability and white gaps separate families. Colors show normalized Dynamic Time Warping distances between layer-wise FI profiles, with smaller values indicating more similar linguistic-signature trajectories.
Figure 12: RSA heatmap of raw geometric similarity. Each row and column corresponds to one model layer from the GPT-2, OPT, and Pythia models included in this baseline, ordered by model family, model size, and layer. Individual layer labels are omitted for readability and white gaps separate families. Colors show Spearman correlations between pairwise neural-distance matrices computed directly from sentence-level representations, with larger values indicating more similar raw representational geometry.
Figure 13: Feature-agnostic RSA projection. MDS projection of the RSA-based raw geometric similarity shown in 12, computed jointly over all layers from all models and displayed family by family for readability. Models from the same family still follow similar trajectories, but the loop-like organization is weaker than in the PCA of linguistic signatures.

12 Compute Resources↩︎

The project, including exploration and final experiments, required roughly 2,500 CPU hours and 500 H100 GPU hours on an HPC cluster. The extraction of LLM embeddings was performed on H100 GPUs and the MLEM pipeline can leverage GPUs and was run on a mix of GPU and CPU workers.

13 Asset Licenses↩︎

The Relative Clause dataset used in this paper is a slight modification of the dataset introduced by [16]. The original dataset does not currently have a public license. We obtained authorization from the original authors to modify and redistribute this version in the supplementary material code. The public models used in the paper are released under the following terms: GPT-2 under MIT; OPT under the Meta OPT non-commercial research license; Pythia, OLMo-2, Ministral-3, Qwen3, Mamba, and RWKV-7 under Apache-2.0; Mamba-2 converted checkpoints under MIT; and Llama 3.1/3.2 under the Llama Community License and Acceptable Use Policy. The main software dependencies are under permissive open-source licenses, except dtw-python, an external GPLv3 package used to compute the Dynamic Time Warping distance. We use it as an external dependency without modifying its source code.

References↩︎

[1]
[2]
F. Gloeckle, B. Y. Idrissi, B. Roziere, D. Lopez-Paz, and G. Synnaeve, “Better & Faster Large Language Models via Multi-token Prediction,” in Proceedings of the 41st International Conference on Machine Learning, Jul. 2024, pp. 15706–15734.
[3]
M. Huh, B. Cheung, T. Wang, and P. Isola, “The Platonic Representation Hypothesis.” arXiv, Jul. 2024, doi: 10.48550/arXiv.2405.07987.
[4]
R. N. Shepard and S. Chipman, “Second-order isomorphism of internal representations: Shapes of states,” Cognitive Psychology, vol. 1, no. 1, pp. 1–17, Jan. 1970, doi: 10.1016/0010-0285(70)90002-2.
[5]
A. Laakso and G. Cottrell, “Content and cluster analysis: Assessing representational similarity in neural systems,” Philosophical Psychology, vol. 13, no. 1, pp. 47–76, Mar. 2000, doi: 10.1080/09515080050002726.
[6]
J. Mehrer, C. J. Spoerer, N. Kriegeskorte, and T. C. Kietzmann, “Individual differences among deep neural network models,” Nature Communications, vol. 11, no. 1, p. 5725, Nov. 2020, doi: 10.1038/s41467-020-19632-w.
[7]
N. Kriegeskorte, M. Mur, and P. A. Bandettini, “Representational similarity analysis - connecting the branches of systems neuroscience,” Frontiers in Systems Neuroscience, vol. 2, Nov. 2008, doi: 10.3389/neuro.06.004.2008.
[8]
S. Abnar, L. Beinborn, R. Choenni, and W. Zuidema, “Blackbox Meets Blackbox: Representational Similarity & Stability Analysis of Neural Language Models and Brains,” Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pp. 191–203, 2019, doi: 10.18653/v1/W19-4820.
[9]
A. Romero, N. Ballas, S. E. Kahou, A. Chassang, C. Gatta, and Y. Bengio, FitNets: Hints for Thin Deep Nets.” arXiv, Mar. 2015, doi: 10.48550/arXiv.1412.6550.
[10]
M. Raghu, J. Gilmer, J. Yosinski, and J. Sohl-Dickstein, SVCCA: Singular vector canonical correlation analysis for deep learning dynamics and interpretability,” in Proceedings of the 31st International Conference on Neural Information Processing Systems, Dec. 2017, vol. 30, pp. 6078–6087.
[11]
A. S. Morcos, M. Raghu, and S. Bengio, “Insights on representational similarity in neural networks with canonical correlation,” in Proceedings of the 32nd International Conference on Neural Information Processing Systems, Dec. 2018, pp. 5732–5741.
[12]
J. Wu, Y. Belinkov, H. Sajjad, N. Durrani, F. Dalvi, and J. Glass, “Similarity Analysis of Contextual Word Representation Models,” in Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Jul. 2020, pp. 4638–4655, doi: 10.18653/v1/2020.acl-main.422.
[13]
Y. Belinkov and J. Glass, “Analysis Methods in Neural Language Processing: A Survey,” Transactions of the Association for Computational Linguistics, vol. 7, pp. 49–72, Apr. 2019, doi: 10.1162/tacl_a_00254.
[14]
A. H. Williams, E. Kunz, S. Kornblith, and S. W. Linderman, “Generalized Shape Metrics on Neural Representations.” arXiv, Jan. 2022, doi: 10.48550/arXiv.2110.14739.
[15]
M. Ostrow, A. J. Eisen, L. Kozachkov, and I. R. Fiete, “Beyond Geometry: Comparing the Temporal Structure of Computation in Neural Circuits with Dynamical Similarity Analysis,” in Thirty-seventh Conference on Neural Information Processing Systems, Nov. 2023.
[16]
L. Jalouzot, C. Pallier, E. Chemla, and Y. Lakretz, “Metric Learning Encoding Models: A Multivariate Framework for Interpreting Neural Representations.” arXiv, Nov. 2025, doi: 10.48550/arXiv.2402.11608.
[17]
N. Kriegeskorte and P. K. Douglas, “Interpreting encoding and decoding models,” Current Opinion in Neurobiology, vol. 55, pp. 167–179, Apr. 2019, doi: 10.1016/j.conb.2019.04.002.
[18]
D. Hupkes, S. Veldhoen, and W. Zuidema, “Visualisation and ’Diagnostic ClassifiersReveal How Recurrent and Recursive Neural Networks Process Hierarchical Structure,” Journal of Artificial Intelligence Research, vol. 61, pp. 907–926, Apr. 2018, doi: 10.1613/jair.1.11196.
[19]
I. Tenney et al., “What do you learn from context? Probing for sentence structure in contextualized word representations,” ArXiv, May 2019.
[20]
D. Arps, Y. Samih, L. Kallmeyer, and H. Sajjad, “Probing for Constituency Structure in Neural Language Models,” 2022, doi: 10.48550/ARXIV.2204.06201.
[21]
J. Hewitt and P. Liang, “Designing and Interpreting Probes with Control Tasks,” Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 2733–2743, 2019, doi: 10.18653/v1/D19-1275.
[22]
Y. Belinkov, “Probing Classifiers: Promises, Shortcomings, and Advances,” Computational Linguistics, vol. 48, no. 1, pp. 207–219, Apr. 2022, doi: 10.1162/coli_a_00422.
[23]
A. Kumar, C. Tan, and A. Sharma, “Probing classifiers are unreliable for concept removal and detection,” in Proceedings of the 36th International Conference on Neural Information Processing Systems, Nov. 2022, pp. 17994–18008.
[24]
A. P. Georgopoulos, A. B. Schwartz, and R. E. Kettner, “Neuronal Population Coding of Movement Direction,” Science, vol. 233, no. 4771, pp. 1416–1419, Sep. 1986, doi: 10.1126/science.3749885.
[25]
D. E. Rumelhart, J. L. McClelland, and AU, “Parallel Distributed Processing: Explorations in the Microstructure of Cognition: Foundations,” 1986, doi: 10.7551/mitpress/5236.001.0001.
[26]
J. Diedrichsen and N. Kriegeskorte, “Representational models: A common framework for understanding encoding, pattern-component, and representational-similarity analysis,” PLOS Computational Biology, vol. 13, no. 4, p. e1005508, Apr. 2017, doi: 10.1371/journal.pcbi.1005508.
[27]
M. Blondel, O. Teboul, Q. Berthet, and J. Djolonga, “Fast Differentiable Sorting and Ranking,” ArXiv, Feb. 2020.
[28]
L. Breiman, “Random Forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, Oct. 2001, doi: 10.1023/A:1010933404324.
[29]
H. Sakoe and S. Chiba, “Dynamic programming algorithm optimization for spoken word recognition,” IEEE Transactions on Acoustics, Speech, and Signal Processing, vol. 26, no. 1, pp. 43–49, Feb. 1978, doi: 10.1109/TASSP.1978.1163055.
[30]
J. B. Kruskal, “Multidimensional Scaling by Optimizing Goodness of Fit to a Nonmetric Hypothesis,” Psychometrika, vol. 29, no. 1, pp. 1–27, Mar. 1964, doi: 10.1007/BF02289565.
[31]
J. Hewitt and C. D. Manning, “A Structural Probe for Finding Syntax in Word Representations,” in Proceedings of the 2019 Conference of the North, 2019, pp. 4129–4138, doi: 10.18653/v1/N19-1419.
[32]
P. Diego-Simón, S. D’Ascoli, E. Chemla, Y. Lakretz, and J.-R. King, “A polar coordinate system represents syntax in large language models,” in Proceedings of the 38th International Conference on Neural Information Processing Systems, Dec. 2024, vol. 37, pp. 105375–105396.
[33]
O. Press and L. Wolf, “Using the Output Embedding to Improve Language Models,” in Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, Apr. 2017, pp. 157–163.
[34]
A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever, “Language models are unsupervised multitask learners,” OpenAI blog, vol. 1, no. 8, p. 9, 2019.
[35]
S. Zhang et al., OPT: Open Pre-trained Transformer Language Models,” arXiv.org. https://arxiv.org/abs/2205.01068v4, May 2022.
[36]
S. Biderman et al., “Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling,” in Proceedings of the 40th International Conference on Machine Learning, Jul. 2023, pp. 2397–2430.
[37]
T. OLMo et al., “2 OLMo 2 Furious.” arXiv, Oct. 2025, doi: 10.48550/arXiv.2501.00656.
[38]
A. Grattafiori et al., “The Llama 3 Herd of Models.” arXiv, Nov. 2024, doi: 10.48550/arXiv.2407.21783.
[39]
A. H. Liu et al., “Ministral 3.” arXiv, Jan. 2026, doi: 10.48550/arXiv.2601.08584.
[40]
A. Yang et al., “Qwen3 Technical Report.” arXiv, May 2025, doi: 10.48550/arXiv.2505.09388.
[41]
A. Gu and T. Dao, “Mamba: Linear-Time Sequence Modeling with Selective State Spaces.” arXiv, May 2024, doi: 10.48550/arXiv.2312.00752.
[42]
T. Dao and A. Gu, “Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality.” arXiv, May 2024, doi: 10.48550/arXiv.2405.21060.
[43]
B. Peng et al., RWKV-7 "Goose" with Expressive Dynamic State Evolution.” arXiv, Mar. 2025, doi: 10.48550/arXiv.2503.14456.
[44]
T. Giorgino, “Computing and Visualizing Dynamic Time Warping Alignments in R: The dtw Package,” Journal of Statistical Software, vol. 31, pp. 1–24, Aug. 2009, doi: 10.18637/jss.v031.i07.

  1. Many neural dissimilarities could be used such as ones based on cosine similarity, correlation, or Mahalanobis distance depending on the representation type and noise structure [7], [26]. We choose the classical Euclidean distance for its simplicity and interpretability.↩︎

  2. We call depth the number of layers and width the number of hidden units per layer.↩︎