Manuscript Offprint
arXiv:2608.27813Representation of syntax in LLMs through the lens of linear distance and similarity-aware entropy
Abstract
Structural probes were introduced by Hewitt and Manning to reconstruct syntactic trees from a neural language model's latent representations. They are evaluated by calculating the proportion of syntactic tree edges correctly reconstructed over an annotated corpus (as measured by undirected unlabeled attachment score). Here, we disaggregate this measure, considering undirected attachment score by label (UASL), which assesses the reconstruction accuracy of each syntactic relation separately, establishing important differences among relations that overlap linguistic distinctions. Moreover, we identify two factors that predict most of UASL's variability across relations: (i) the mean and dispersion of the linear distance (on a log scale) between the related words, and (ii) the diversity (similarity-aware entropy) of the syntactic relation's head. These results, which hold across a range of model sizes and architectures, shed light on the degree of abstraction of the representation of syntax in language models and the dependence of such representation on geometric properties of the embedding space.
1 Introduction
Probing vector representations has been widely used as a means for extracting insights into the inner workings of neural language models (Alain and Bengio, 2017; Conneau et al., 2018). Since the seminal work of Hewitt and Manning (2019) found that dependency trees could be recovered with probes with a reasonable degree of success, there has been a proliferation of syntactic probing methodologies (Chi et al., 2020; Davis et al., 2022; Tucker et al., 2022; Eisape et al., 2022; Arps et al., 2022; Diego-Simón et al., 2024). We would like to leverage these results to identify to what extent and through which mechanisms the algebraic

Figure 1: Held-out UASL against the similarity-corrected entropy of the relation’s head , for the optimal structural probe trained on BERT-base embeddings of the PTB. Both axes are residuals with respect to the other two predictors in the weighted linear regression of §6. Each point is one relation, with area proportional to the number of edges used to measure its UASL; the ten largest are labelled.
structure of syntax is encoded and processed by LLMs in the geometry of their latent spaces. This includes not just the question of whether syntactic relations and hierarchical structures are detectable, but more precisely whether linguistic differences among dependency relations correspond to quantitative differences in performance and whether these differences can be traced back to distinct computational mechanisms.
The work we present in this paper represents the first steps in such an investigation. It shows that individual syntactic relations behave differently with respect to probe performance, quantifying in precise mathematical terms certain significant “limitations of abstraction” in the representation of syntactic dependencies.
Firstly, we show that the accuracy at reconstructing a given dependency relation varies widely
*Corresponding author: jpvigneaux@northwestern.edu Code and data: github.com/jpvigneaux/structural-probes-labelwise-analysis among relations. In §4 we study this variability across multiple relations and looking at representations at different model depths. We then consider possible underlying explanatory variables derived from linguistic theory: nature of the syntactic-role, frequency of the relation, linear distance between head and dependent, and similarity-aware entropy of the head or dependent.
Secondly, by performing a more detailed analysis of the UASL dependence on distance, based both on a log-linear decay model ( ) and on a model-free comparison between the UASL-vs-distance curves ( ), we find that dependency relations with similar properties from the perspective of syntactic theory exhibit similar behaviors. Therefore, linguistic distinctions provide useful cues for the identification of likely distinct mechanisms that underlie the model’s processing of these relations.
Thirdly, we uncover another variable that modulates UASL performance across relations, largely independent of the linear distance descriptors: the similarity-aware entropy of a relation’s heads. The similarity in question is derived from neural word embeddings; we see these embeddings as an instance of a geometrically-structured semantic space (Shepard, 2024; Piantadosi et al., 2024; Grindrod, 2025), partly shared between models (Huh et al., 2024; Jha et al., 2025) and somewhat comparable with human conceptualization—see, e.g. (Reif et al., 2019; Garí Soler and Apidianaki, 2021; Gupta et al., 2022; Trott and Bergen, 2023).
Higher values of the similarity-aware entropy of a relation head (i.e. greater diversity in heads' embeddings) hinder probe performance. We conjecture that this measures difficulties that the attention heads encounter in encoding, geometrically, the connections between dependents and heads and hence the relation as an abstract construct. It is suggestive that the majority of the “syntactic” attention heads identified by Clark et al. (2019) are such that the dependent attends predominantly to its head; this makes us think that the problem of reconstructing the relation might be recast by the models as identifying the head given the dependent, which is more complex if the attention mechanism has to point into independent or even conflicting directions. This is the kind of understanding that we would like to motivate with this study.
Our results are stable across a range of models, which differ both in parameter counts and architecture: BERT-base, DeBERTa-v3-base, ModernBERT-base, GPT-2-base, and GPT-J-6B. This points to some underlying structure present in the language itself, or at least to the way transformers can capture that structure.
Similarity-aware entropy. This function first appeared in ecology (Leinster and Cobbold, 2012; Leinster, 2021) as a way of measuring diversity. It shows up in the literature under various names, including “kernelized 2-complexity” (Aishwarya et al., 2026) and “geometry-aware Shannon entropy” (Posada et al., 2020). In NLP, this function has been used to quantify uncertainty in machine translation (Cheng and Vlachos, 2024).
3 Background
3.1 Transformer embeddings
Models. In this paper we work with several transformer-based language models (Vaswani et al., 2017). The main text utilizes BERT-base (Devlin et al., 2019), which almost matches BERT-large at syntactic tree reconstruction by structural probes (Hewitt and Manning, 2019) at a fraction of the cost. BERT is one of the most impactful models in NLP research (Rogers et al., 2020). Appendices B–D repeat every analysis on four other models: DeBERTa-v3-base (He et al., 2023), ModernBERT-base (Warner et al., 2025), GPT-2-base (Radford et al., 2019) and GPT-J-6B (Wang and Komatsuzaki, 2021), which differ from BERT on various architectural choices. Moreover, in Appendix E we repeat all our analysis on RoBERTa-Shuffle-n1, a variant of RoBERTa (Liu et al., 2019) pre-trained on permuted sentences (Sinha et al., 2021), to test how much of our results can be retrieved for distributional information alone (spoiler: none). The model architectures are summarized in Table A.1.
Residual stream and checkpoints. A transformer maintains, for each token, a running vector—the residual stream—that every attention and MLP module reads from and adds back into (Elhage et al., 2021; Ferrando et al., 2024). At any stage of the computation, the residual stream can be seen as a latent contextualized representation of the token. With exceptions, we train structural probes on the representations that arise after each modification of the residual stream (from raw token embeddings to the final representation used for prediction) and we refer to these extraction points as residual stream checkpoints. If the L transformer blocks of a model apply attention and MLP sequentially, they contribute with 2L residual stream checkpoints, but if they apply attention and MLP in parallel they contribute only with L. Appendix A.1 introduces the formulas that characterize the checkpoints and Table A.1 gives the number of checkpoints we introduced for each model. For BERT-base, we introduce 26 residual stream checkpoints indexed from 0, of which the odd ones 3, 5, ..., 25 (post-transformer block) are the twelve “layers” of Hewitt and Manning (2019).
3.2 Structural probes
Data. We utilize dependency trees derived from the WSJ section of the Penn Treebank (Marcus et al., 1993) according to de Marneffe et al. (2006)'s methodology for generation from phrase structures, with the standard parsing split of sections 02–21 for training, 22 for development and 23 for test (Collins, 1997). Each sentence yields a tree whose vertices are PTB tokens—mainly words and symbols—and whose edges are labelled by dependency relations; forty-two relations occur in the train and development sets. Table A.2 details label counts for each split.
Probes. A structural probe reconstructs the undirected, unlabelled version of the dependency tree from the model's latent representations. It consists of a linear map from the model's latent space into a vector space of dimension k (we restrict ourselves to k = 64, following Hewitt and Manning (2019)), fitted so that the squared Euclidean distance between the images of two words approximates the number of edges separating them in the tree; the predicted tree is then the minimum spanning tree of the projected points. We fit one probe per residual stream checkpoint. Remark that labels do not enter into the training objective. We use the implementation of Hewitt and Manning (2019), with modifications that extend it to tokenizers other than BERT's.

Figure 2: UASL curves for verbs' external and internal arguments. Edge counts per relation and split are in Table A.2.
Alignment. It is worth remarking that, to generate the embeddings, we feed the model natural looking sentences (no PTB-specific symbols, no spurious spaces). Hence we need to align model tokens with PTB tokens. For this we generalize Hewitt et al. (2021)'s method: each model token is assigned the natural sentence's characters that it covers, using the tokenizer's offsets, and those characters are mapped to PTB tokens via character-level Levenshtein alignment. A PTB token's representation is the weighted average of the model tokens' vectors assigned to it this way.
Metrics. A probe is ordinarily scored by the proportion of gold edges its reconstructed trees recover, the undirected unlabelled attachment score (UUAS), computed over a section of the corpus. Our main object of study is its restriction to a single relation, which we call the undirected attachment score by label: UASL( ) is the proportion of the edges labelled that the probe recovers. Since the probe is not trained on labels, UASL measures how legible a relation is in a representation, not the accuracy of a labelled parser. Both scores are defined in Appendix A.3.
4 UASL performance by dependencies
As a first step, we look at the representative dev set probe performance by dependency label through a simple qualitative analysis of different linguistic properties and general trends of the syntactic dependencies. We outline candidate theoretical explanations for the UASL performance that we quantitatively confirm in §5 and §6.
Thematic dependencies. Of the 41 dependencies analyzed, some have direct relevance to the syntax of argumentation (see Figure 2). Complements, also known as internal arguments (Horn-

Figure 3: UASL curves of dependency relation that represent top, intermediate, and low performance, with intermediate performance further divided among high, middle and low range. Edge counts per relation and split are in Table A.2.
stein and Pietroski, 2009), have a tendency to pattern similarly to each other. For example, dobj and pobj have nearly identical patterns and not dissimilar performances to xcomp, pcomp, and iobj, the latter of which has an even better performance for reasons we will discuss in §6. In this, we observe internal arguments perform better than their external counterparts.
Performance. As seen in Figure 3, top probe performance is held by a largely closed class of words that tend to have a set phraseology, such as mwe, auxpass, and expl (not depicted). Intermediate performance can vary from relations like copulas and adjectival modifiers in the higher range to the dependency relations between nouns and the verbs of their relative clause (rcmod) and between coordinated words (conj) in the low-intermediate range. The relation conj should not be confused with cc, (between a coordinated head and its conjunction), which occurs in the intermediate-mid range.
The bottom-performing relations are demonstrated with advcl (e.g. “the cookies burned because I forgot them in the oven”) and parataxis (e.g. “I learned my lesson: don’t forget to set the timer”). Both denote syntactically complex sentences and serve to link two clauses, which may help to explain some of their low performance. Parataxis occurs at a similar rate to expl and advcl has a comparable presence to auxpass or rcmod, and yet both perform far lower. Advcl performs even worse than parataxis despite having a greater presence in the corpus.

Figure 4: Mean UASL against linear distance, for each model at its own optimal residual stream checkpoint, given in parentheses. The average is taken over the dependency relations with at least five gold edges at that distance, and the same decay appears in all five models: steep over the first few words, then close to flat. Figure C.1 gives the BERT-base curve at every post-block checkpoint.
Together, we may observe that probe performance is not strictly dictated by a dependency relation’s frequency in the corpus. In §5 and §6, we explain the additional confounding linguistic factors that interact to predict probe performance.
Length and diversity. This simple qualitative linguistic analysis of the different dependencies points to two main factors that drive the different UASL performance: the distance between the two terms in the relation, and a measure of diversity of the terms involved in the relation, which we discuss in §5 and §6, respectively. We also find the ordered distance to have a large impact, which we confirm below with an analysis of the effect of permutations.
5 Distance and UASL performance
In the qualitative analysis of §4, we identified that both the distribution of linear distances associated with a dependency relation and the variability or diversity of its arguments modulate its UASL. In this section, we study the UASL dependency on linear distance across different relations in more detail; we will see that dependency relations group naturally in this respect according to syntactically motivated distinctions. §6 below incorporates the diversity of the arguments into the picture.
While the results in this section confirm the findings of Diego-Simón et al. (2025), who find that
External subjects are those taken by a vP or VoiceP head (Kratzer, 1996; Hale and Keyser, 2002). We recognize that not all subjects (e.g. subjects of unaccusatives, see Harley (2017)) are external arguments. We treat nsubj as external due to it being prototypically external.
increased linear distance decreases a probe’s accuracy on that word-pair, they also refine them by disaggregating the analysis over dependency relations.
5.1 Log-distance as predictor
While on average, the effect of linear distance on performance is significant, distance is not necessarily a good predictor for individual dependencies.
Based on the decay pattern in Figure 4, we fit a log-linear decay model across dependency relations and residual stream checkpoints, using a least-square regression:
Let be the gold edges labeled by a relation and associated with a linear distance ; then is the proportion of elements of recovered by the structural probe at residual stream checkpoint . We restrict the regression to the for which on the PTB test set is at least 5.
In Figures 5 and C.3, we display the coefficient of determination of the regression for each pair . Ten relations had fewer than three observed distance values and were excluded from analysis. Among the best matches, we find dependencies like neg, cop, aux (occurring in the top and high-intermediate performance range in §4), which exhibit near-perfect log-linear decay at all residual stream checkpoints. At the opposite end, near the bottom, we find relations such as vmod, ccomp, cc (occurring in the middle-intermediate performance range in §4) that deviate very significantly from a log-linear decay. Meanwhile, §4's worst-performer, advcl, appears here in the middle.
5.2 Clustering of dependencies by impact of distance on UASL
We want to group the 42 dependency relations that we extracted from the PTB by similar dependence of their UASL on distance, without assuming log-linearity. Here, we introduce a measure that compares UASL associated with two relations over their shared range of observed distances. In Appendix C.3, we incorporate a measurement of the difference of the ranges, based on optimal transport, as a complementary and a priori independent point of comparison.
For each pair of relation and residual stream checkpoint, we introduce its range , an interval with endpoints given by the minimal and maximal linear distance present in the data set, and the function that we obtain by interpolating the values . The mean squared error per residual stream checkpoint is
where is the common range , and the UASL distance defined as
where is the number of residual stream checkpoints for which the intersection is non-empty.
Averaging first over distances, for a fixed checkpoint, and then over residual stream checkpoints, ensures uniform contribution of residual stream checkpoints regardless of the size of the , and of distances at each checkpoint. Pairs with at all are assigned .
: mean UASL

Figure 5: Fitness of the log-linear decay model across selected dependency relations, with the residual stream evaluated after each full transformer block. Relations taken from Figures 2 and 3, and §5.1; csubj, iobj and mwe omitted because they vary too little in linear distance. Relations are ordered by mean across residual stream checkpoints. Auxpass is fitted on only three points. See Figure C.4 in the Appendix for elaboration.
(UAS only)

Figure 6: Dendrogram of dependency relations, clustered by UASL performance as a function of linear distance, with symmetric log-scale on the horizontal axis (linear below 0.3, logarithmic above) and a vertical line marking 25% of the tallest merge.
We use the average linkage method (UPGMA), to produce dendrograms of the agglomerative clustering of dependency relations with respect (and with respect to a composite metric that incorporates range differences in Appendix C.2). The results for are depicted in Figure 6. At the highest level, dependency relations are divided into two main clusters, colored green-yellow and red-purple-brown (we ignore the singletons for now). The green-yellow cluster consists predominantly of relations involving function words (excepting nn and poss) that are largely nominal modifiers. The relations in the red-purple-brown cluster are largely headed either uniquely by verbs or by verbs as well other parts of speech in addition to verb, such as cop/prep/npadvmod/conj; exceptions are det/amod/appos/num/rcmod.
More specifically, the green cluster (possessive/number/quantmod) involves a largely closed class of words operating as dependents of nominal heads. The yellow cluster, while also involving largely nominal modification, has greater variation in its set of dependent words. Predet, poss and nn all modify nouns in the sense that they specify or pick out the reference of their nominal head. In contrast, neg and cc involve closed class dependents and play functional syntactic roles, though their heads have greater variability. Neg negates its head (mostly verbs but also possibly nominals and adjectives) while cc indicates its head (noun/adj/prep/verb/etc) is coordinated.
The red cluster is notable for its tendency to involve clause-level dependents: from relative clause modification rcmod to parataxis/advcl (see §4). It is perhaps for this reason that conj clusters into the red group rather than the yellow group where cc occurs; though conj and cc dependencies share the same class of heads, only the dependents of conj are highly variable as opposed to the closed-class dependents in cc. In contrast, conj dependents must be the same part of speech as their heads, and this relation can coordinate clauses (“I baked cookies and John ate them”). Such verb dependent to verb head linkages may be a characteristic feature of the red cluster (dep excluded) and may explain why ccomp (“I think he needs cookies”) is in the next nearest cluster.
The large brown cluster is defined by largely open-class dependents (excepting det/cop/prep/mark/auxpass/num) and has a tendency towards being verbally headed (exceptions being nominally-headed det/amod/appos/num and prep/npadvmod/cop, which can be headed by a variety of parts of speech). Overall, it contains the argument relations (nsubj/dobj/iobj/pobj/xcomp) likely as a by-product of the cluster’s proclivity towards verbal heads.
In sum, there is a broad tendency for the green-yellow clusters to exhibit more functionally modificational roles to nominals, while the brown-purple-red cluster shows proclivity towards verbal heads and a greater variety in the classes of words of the dependents, with red being additionally notable for its emphasis on clausal-clausal linkage. For an analysis on clustering behavior when calculated with rather than , see Appendix C.2.
6 Entropy analysis
In §4, we considered the amount of variability in the words that can play the roles of head and dependent as an explanation of the UASL of each
For an in-depth explanation of the dependency roles, see de Marneffe and Manning (2008).
relation type; here we make that argument quantitative. One way to measure this variability is through the entropy of the distribution of words in the head and dependent position for each relation . For the head, this would be , where is the relative frequency estimate of the probability of word occurring as the head of dependency relation . While potentially informative (Diego-Simón et al., 2025), this measure does not account for a crucial aspect of the distribution: lexical similarity. Because the structural probes are trained over word embeddings, which reflect similarity via proximity, we would expect a relation that has many similar words as a head, say, will behave differently from a relation whose heads are more distinct from one another. We therefore use the similarity-aware entropy motivated in §2. For a given relation , similarity entropy of the head is defined as
Here is a similarity score between words and , which we compute as where denotes a word embedding. For word embeddings, we use a 50-dimensional vector derived via PCA from the fast-text 300-dimensional wikinews word embeddings (Bojanowski et al., 2017).
To measure the impact of similarity-aware entropy, we perform a weighted least squares regression to predict UASL scores for each of the 42 dependency relations. Because UASL is a proportion, the sampling noise of each relation's score depends on how many edges it was computed from; we therefore weight each relation by that count, which also makes the abundance of a relation part of the estimator rather than a separate predictor.
In addition to similarity-aware entropy, we also take as predictors the distribution of distances between the head and dependent for each relation. Here we represent distance via the mean and standard deviation of the distribution of for each relation (as found in the dependency version of the Penn Treebank). The standard deviation was introduced as a way of factoring in the spread of the linear distance; our previous discussion gives us to consider this spread. Indeed, if denotes the accuracy a probe attains on an edge of type r whose log length is x, and X is the log length of a randomly drawn edge with label r, then the relation's UASL is . Were f exactly linear—as it would be under the log-linear decay model of §5.1—we would have . Since we find that the fit of this model varies considerably across relations, a measure of the spread is likely informative.
| Predictor | Coef | SE | p |
|---|---|---|---|
| const | 1.045 | 0.038 | <.001 |
| head sim-entropy | -0.082 | 0.014 | <.001 |
| mean log linear dist. | -0.252 | 0.030 | <.001 |
| sd log dep length | +0.163 | 0.066 | .019 |
Table 1: WLS regression predicting UASL from properties of dependency relations, all computed on our dev set (from the PTB). Each relation is weighted by the number of dev set edges its UASL was computed from. Predictors are on their natural scales ( , adjusted , , , n = 42).
The results of the regression are shown in Table 1. The large negative coefficient for mean log dependency length confirms what we found earlier: performance on UASL for a specific dependency relation decreases as its mean log length increases. The standard deviation of carries a positive coefficient: this tells us that, holding the mean fixed, relations whose linear distances are more spread out are recovered better: in fact, the medians are generally smaller than the means, so the spread translates into shorter edges that are easier to recover. Most relevantly to the current discussion, we find a strong negative effect of the similarity-corrected entropy of the head of the relation (see Figure 1). All three relationships are shown visually, for every model, in Figure D.1 in Appendix D.
We did not find a similarly significant effect of similarity-corrected entropy of the dependent when it was added as a predictor variable in the regression. Curiously, only dependent entropy has been explored as a factor in human sentence processing, with mixed results depending on how dependent distributions are characterized (Linzen et al., 2013), though the characterizations that were explored
We choose standard deviation rather than variance as a measure of spread on an empirical basis: the variance fits worse in all five models tested and leaves the term short of significance in each of them (Appendix D.1). We use moments of log length rather than the log of the mean length because UASL decays in log distance rather than in distance; empirically mean( ) outperforms by about 0.09 in for every model we tested (Appendix D.1).
do not make use of the similarity correction (but see Meister et al., 2024). Our results suggest that human experimental work could explore similarity-aware head entropy.
One possible objection to measuring lexical diversity through fastText embeddings is that these representations are not the ones that the probe actually operates on. We therefore repeated the analysis with computed using the model's own contextualised representations at the probed residual stream checkpoint. Specifically, each word type is represented by the mean of its contextual vectors over its corpus occurrences. Strikingly, the results of the WLS regression are essentially unchanged: head similarity-corrected entropy , ; mean log length , ; sd log length , ; . We report the fastText-based figures in Table 1 because that predictor is independent of the probed model, which makes the relationship an out-of-sample one rather than a statement about a geometry the probe and the predictor share.
The regression in Table 1 supports our earlier observations: greater lexical diversity impedes performance of the structural probe. This suggests that the model's ability to identify syntactic relations depends not on abstract syntactic properties but rather on the specifics of the lexical items it is trained on. In this regard, the language itself and its associated processing difficulties may serve to predict a probe's performance in linguistically predictable ways. For example, the negative correlation between the dependency length and the UASL has parallels in cognitive science, where processing difficulty is positively associated with the increasing length between heads and dependents (Gibson, 1998; Lewis et al., 2006; Jaeger and Tily, 2011).
7 Conclusions
We have demonstrated several ways in which the complexity and variability of the dependency relations themselves can affect probe performance.
Long linear distances lower probe performance, an effect also observed in humans. We also find that dependency relations with greater similarity entropy of the head are likewise negatively correlated with probe performance. Additionally, results reveal the word order itself is impactful for some of the top-performing relations that rely on word order as these relations suffer when the probe is trained on shuffled transformers, suggesting that the more templatic relations may be learned by some sort of n-gram detection, making them easier to acquire than other more complex relations.
This work furthermore demonstrates the evolution within the probe. Supporting the conclusions of Someya et al. (2025), who use derivational probes to establish that BERT builds syntactic trees in a bottom-up fashion, we analyze UASL decay to find that deeper layers of the transformer have a greater likelihood of reconstructing dependencies with longer linear distances (see Fig. C.1). However, not all UASL curves decay polynomially in linear distance.
UASL is in fact better explained by three indicators: the mean of the logarithm of the linear distance associated to a syntactic dependency, the dispersion of that log length distribution (measured as standard deviation), and the similarity-aware entropy of the head of the relation. The abundance of a relation contributes in the form of precision with which the associated UASL is estimated. Hierarchical clustering by probe performance as a function of linear distance additionally reveals linguistic clustering behavior.
We close with some remarks on abstraction. Syntax of human languages is in essence an algebraic structure, amenable to a theoretical description in terms of precise relations. This has advantages in terms of studying its representation in both human and artificial systems, since one has a unifying abstract algebraic level to compare with. A key to abstraction, in the modeling of any kind of system, is that it can group together under a single rule a very broad variety of empirical phenomena. In fact, abstraction is all the more successful the more it is robust against a background of high individual variability. We find the notion of similarity-aware entropy especially suitable for capturing the kind of variability underlying abstraction. The fact that structural probe performance is negatively affected by higher values of the similarity-aware entropy of a syntactic relation's heads provides a precise quantitative measurement of the limitations (or at least difficulties) of abstraction in LLMs. The effect, as we show, is robust across different models.
Our research helps to shine light into the black-box problem of LLMs and helps to better understand what elements are revealed by a probe. We find that a probe is not affected by structural, statistical, or linguistic elements alone; instead, these factors appear to interact and modulate each other.
Limitations
Our main limitation is that we could not quantify the distinction between internal variation among syntactic relations and external. Additionally, we trained only one probe per model checkpoint, which meant that we did not evaluate probe stability under different corpus splits and training runs.
However, we believe these initial findings warrant future research to test similar structures in other languages in order to discover whether and how probe's performance and behaviors may further vary across model architecture and language(s). Particularly of interest would be languages with more permutational symmetry where distance may be less relevant; English shows strict adherence to word order in its syntactic construction, and languages with greater word-order variation may demonstrate interesting trade-offs between the factors our study identified as affecting probe performance.
Additionally, we have not yet linked the structural probe performance analysis with the computational mechanisms of the transformer. It is not yet proven that the model indeed exploits the syntactic encoding detected by the structural probes for its own linguistic competence. However, we speculate that the internal variation among syntactic relations that we have detected is a valuable input for future work directed at uncovering different attentional mechanisms that might be at play in building different clusters of relations.
Acknowledgments
M.M. is supported by NSF grants DMS-2104330 and DMS-2506176. Claude Code (mainly Opus) was used throughout the project for coding assistance and for the generation of the figures; all code has been reviewed by the authors. Claude was also used for some literature search, and for proofreading the final draft.
References
Gautam Aishwarya, Dongbin Li, Mokshay Madiman, and Mark Meckes. 2026. Metric complexity is a Bryant–Tupper diversity. Proc. Amer. Math. Soc., 154(10):4439–4451.
Guillaume Alain and Yoshua Bengio. 2017. Understanding intermediate layers using linear classifier probes. In The 5th International Conference on Learning Representations (Workshop Track).
David Arps, Younes Samih, Laura Kallmeyer, and Hassan Sajjad. 2022. Probing for constituency structure in neural language models. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 6738–6757, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. 2017. Enriching word vectors with subword information. Transactions of the Association for Computational Linguistics, 5:135–146.
Julius Cheng and Andreas Vlachos. 2024. Measuring Uncertainty in Neural Machine Translation with Similarity-Sensitive Entropy. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2115–2128, St. Julian's, Malta. Association for Computational Linguistics.
Ethan A. Chi, John Hewitt, and Christopher D. Manning. 2020. Finding universal grammatical relations in multilingual BERT. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5564–5577, Online. Association for Computational Linguistics.
Kevin Clark, Urvashi Khandelwal, Omer Levy, and Christopher D. Manning. 2019. What does BERT look at? an analysis of BERT's attention. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 276–286, Florence, Italy. Association for Computational Linguistics.
Michael Collins. 1997. Three generative, lexicalised models for statistical parsing. In 35th Annual Meeting of the Association for Computational Linguistics and 8th Conference of the European Chapter of the Association for Computational Linguistics, pages 16–23, Madrid, Spain. Association for Computational Linguistics.
Alexis Conneau, German Kruszewski, Guillaume Lample, Loïc Barrault, and Marco Baroni. 2018. What you can cram into a single $&!#* vector: Probing sentence embeddings for linguistic properties. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2126–2136, Melbourne, Australia. Association for Computational Linguistics.
Christopher Davis, Christopher Bryant, Andrew Caines, Marek Rei, and Paula Buttery. 2022. Probing for targeted syntactic knowledge through grammatical error detection. In Proceedings of the 26th Conference on Computational Natural Language Learning (CoNLL), pages 360–373, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics.
Marie-Catherine de Marneffe, Bill MacCartney, and Christopher D. Manning. 2006. Generating typed dependency parses from phrase structure parses. In Proceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06), Genoa, Italy. European Language Resources Association (ELRA).
Marie-Catherine de Marneffe and Christopher D. Manning. 2008. Stanford typed dependencies manual.
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the Association for Computational Linguistics: Human Language Technologies, volume 1 (long and short papers), pages 4171–4186.
Pablo Diego-Simón, Stéphane D'Ascoli, Emmanuel Chemla, Yair Lakretz, and Jean-Rémi King. 2024. A polar coordinate system represents syntax in large language models. In Advances in Neural Information Processing Systems, volume 37.
Pablo J. Diego-Simón, Emmanuel Chemla, Jean-Remi King, and Yair Lakretz. 2025. Probing Syntax in Large Language Models: Successes and Remaining Challenges. In Second Conference on Language Modeling.
Tiwalayo Eisape, Vineet Gangireddy, Roger Levy, and Yoon Kim. 2022. Probing for incremental parse states in autoregressive language models. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 2801–2813, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
Nelson Elhage, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova DasSarma, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, and 6 others. 2021. A mathematical framework for transformer circuits. Transformer Circuits Thread.
Javier Ferrando, Gabriele Sarti, Arianna Bisazza, and Marta R. Costa-jussà. 2024. A primer on the inner workings of transformer-based language models. arXiv preprint arXiv:2405.00208. Preprint, arXiv:2405.00208.
Aina Garí Soler and Marianna Apidianaki. 2021. Let's play mono-poly: BERT can reveal words' polysemy level and partitionability into senses. Transactions of the Association for Computational Linguistics, 9:825–844.
Edward Gibson. 1998. Linguistic complexity: locality of syntactic dependencies. Cognition, 68:1–76.
Jumbly Grindrod. 2025. Transformers, contextualism, and polysemy. Ergo: An Open Access Journal of Philosophy.
Vikram Gupta, Haoyue Shi, Kevin Gimpel, and Mrinmaya Sachan. 2022. Deep clustering of text representations for supervision-free probing of syntax. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 10720–10728.
Ken Hale and Samuel Jay Keyser. 2002. The Basic Elements of Argument Structure. Number 39 in Linguistic Inquiry Monographs. MIT Press, Cambridge, MA.
Heidi Harley. 2017. The “bundling” hypothesis and the disparate functions of little v. In Roberta D’Alessandro, Irene Franco, and Ángel J. Gallego, editors, The Verbal Domain, Oxford Studies in Theoretical Linguistics, pages 3–28. Oxford University Press, Oxford.
Pengcheng He, Jianfeng Gao, and Weizhu Chen. 2023. DeBERTaV3: Improving DeBERTa using ELECTRA-style pre-training with gradient-disentangled embedding sharing. In The Eleventh International Conference on Learning Representations.
John Hewitt, Kawin Ethayarajh, Percy Liang, and Christopher Manning. 2021. Conditional probing: Measuring usable information beyond a baseline. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 1626–1639, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
John Hewitt and Christopher D Manning. 2019. A structural probe for finding syntax in word representations. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4129–4138.
Norbert Hornstein and Paul Pietroski. 2009. Basic operations: Minimal syntax-semantics. Catalan Journal of Linguistics, 8(1):113–139.
Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. 2024. Position: The platonic representation hypothesis. In Forty-First International Conference on Machine Learning.
T. Florian Jaeger and Harry Tily. 2011. On language ‘utility’: processing complexity and communicative efficiency. WIREs Cognitive Science, 2(3):323–335.
Rishi Jha, Collin Zhang, Vitaly Shmatikov, and John Morris. 2025. Harnessing the universal geometry of embeddings. Advances in Neural Information Processing Systems, 38:45963–45987.
Angelika Kratzer. 1996. Severing the external argument from its verb. In Johan Rooryck and Laurie Zaring, editors, Phrase Structure and the Lexicon, pages 109–137. Springer, Dordrecht.
Tom Leinster. 2021. Entropy and Diversity: The Axiomatic Approach. Cambridge University Press.
Tom Leinster and Christina A. Cobbold. 2012. Measuring diversity: The importance of species similarity. Ecology, 93(3):477–489.
Richard L. Lewis, Shravan Vasisth, and Julie A. Van Dyke. 2006. Computational principles of working memory in sentence comprehension. Trends in Cognitive Sciences, 10(10):447–454.
Tal Linzen, Alec Marantz, and Liina Pylkkänen. 2013. Syntactic context effects in visual word recognition: An MEG study. The Mental Lexicon, 8(2):117–139.
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A robustly optimized BERT pretraining approach. Preprint, arXiv:1907.11692.
Christopher D. Manning, Kevin Clark, John Hewitt, Urvashi Khandelwal, and Omer Levy. 2020. Emergent linguistic structure in artificial neural networks trained by self-supervision. Proceedings of the National Academy of Sciences, 117(48):30046–30054.
Mitchell P. Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. 1993. Building a large annotated corpus of English: The Penn Treebank. Computational Linguistics, 19(2):313–330.
Clara Meister, Mario Giulianelli, and Tiago Pimentel. 2024. Towards a similarity-adjusted surprisal theory. In Proceedings of the 2024 conference on Empirical Methods in Natural Language Processing, pages 16485–16498.
Steven T. Piantadosi, Dyana C.Y. Muller, Joshua S. Rule, Karthikeya Kaushik, Mark Gorenstein, Elena R. Leib, and Emily Sanford. 2024. Why concepts are (probably) vectors. Trends in Cognitive Sciences, 28(9):844–856.
Jose Gallego Posada, Ankit Vani, Max Schwarzer, and Simon Lacoste-Julien. 2020. GAIT: A geometric approach to information theory. In Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pages 2601–2611. PMLR.
Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. Technical report, OpenAI.
Emily Reif, Ann Yuan, Martin Wattenberg, Fernanda B Viegas, Andy Coenen, Adam Pearce, and Been Kim. 2019. Visualizing and measuring the geometry of BERT. Advances in neural information processing systems, 32.
Anna Rogers, Olga Kovaleva, and Anna Rumshisky. 2020. A Primer in BERTology: What We Know About How BERT Works. Transactions of the Association for Computational Linguistics, 8:842–866.
Roger N. Shepard. 2024. Form, Formation, and Transformation of Internal Representations, 1 edition, pages 87–122. Routledge, London.
Koustuv Sinha, Robin Jia, Dieuwke Hupkes, Joelle Pineau, Adina Williams, and Douwe Kiela. 2021. Masked Language Modeling and the Distributional Hypothesis: Order Word Matters Pre-training for Little. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 2888–2913, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
Taiga Someya, Ryo Yoshida, Hitomi Yanaka, and Yohei Oseki. 2025. Derivational probing: Unveiling the layer-wise derivation of syntactic structures in neural language models. In Proceedings of the 29th Conference on Computational Natural Language Learning, pages 93–104, Vienna, Austria. Association for Computational Linguistics.
Sean Trott and Benjamin Bergen. 2023. Word meaning is both categorical and continuous. Psychological Review, 130(5):1239–1261.
Mycal Tucker, Tiwalayo Eisape, Peng Qian, Roger Levy, and Julie Shah. 2022. When does syntax mediate neural language model performance? evidence from dropout probes. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5393–5408, Seattle, United States. Association for Computational Linguistics.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30.
Ben Wang and Aran Komatsuzaki. 2021. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax.
Benjamin Warner, Antoine Chaffin, Benjamin Clavié, Orion Weller, Oskar Hallström, Said Taghadouini, Alexis Gallagher, Raja Biswas, Faisal Ladhak, Tom Aarsen, Griffin Thomas Adams, Jeremy Howard, and Iacopo Poli. 2025. Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2526–2547, Vienna, Austria. Association for Computational Linguistics.
A Embeddings, alignment and probes in detail
This appendix states precisely the choices summarized in §3.1 and §3.2.
A.1 Residual stream checkpoints
We study transformer-based language models that follow different architectural choices, summarized in Table A.1. Crucially, these include pre-layer or post-layer normalization, and sequential or parallel placement of attention and MLP modules. The exact formulas that describe the residual stream checkpoints depend on these choices.
In all cases, the model first tokenizes the text and then embeds each token in a space of dimension , which yields a sequence of vectors . An encoding of the position is added to these raw embeddings, which yields for a post-layer-normalization model and otherwise.
The embedding is modified by subsequent “attention blocks” made of an attention module and an MLP module. For each block, indexed by , we denote by its multi-head attention module, by its MLP module (a feed-forward network with one hidden layer) and by its layer normalizations. We remark that while attention acts on the whole sequence, MLP acts separately on each token.
For encoder-only sequential models with post-layer normalization (BERT, RoBERTa, DeBERTa), the application of an attention block induces new embeddings:
Similarly, in the case of encoder-only sequential models with pre-layer normalization (ModernBERT):
The decoder-only version (GPT-2) has instead of .
Finally, a decoder-only parallel model with pre-layer normalization (GPT-J) is such that a single normalization feeds both the attention and MLP module, which are applied in parallel, yielding
where is the single normalized copy both branches read.
We refer to the indices of these generated representations as residual stream checkpoints. In general, sequential models have checkpoints, indexed by . GPT-J's rotary embeddings are applied inside attention and never enter the stream, and its embedding layer applies no normalization, which yields checkpoints. ModernBERT-base is rotary as well (no is added to the residual stream) but its embedding layer still applies a layer normalization, which yields .
Language models generate probabilistic predictions over the vocabulary by applying an affine transformation followed by a softmax to the embeddings associated with the last residual stream checkpoint. For probing, we retrieve at the checkpoints specified in Table A.1 and its caption.
A.2 The probe and its training
Let be the number of edges on the path between and in the gold tree . The probe
| Model | Type | Layer norm. | Attn./MLP | Position encoding | ckpts | best | ||
|---|---|---|---|---|---|---|---|---|
| BERT-base | encoder | post-LN | sequential | learned absolute, in the stream | 12 | 768 | 26 | 16 |
| DeBERTa-v3-base | encoder | post-LN | sequential | disentangled relative, in attention | 12 | 768 | 13 | 9 |
| ModernBERT-base | encoder | pre-LN | sequential | rotary, in attention | 22 | 768 | 46 | 30 |
| GPT-2-base | decoder | pre-LN | sequential | learned absolute, in the stream | 12 | 768 | 26 | 16 |
| GPT-J-6B | decoder | pre-LN | parallel | rotary, in attention | 28 | 4096 | 29 | 8 |
| RoBERTa-Shuffle-n1 | encoder | post-LN | sequential | learned absolute, in the stream | 12 | 768 | 13 | 9 |
Table A.1: The six models probed in this work. Type specifies the attention pattern and pre-training objective, Attn./MLP whether a block applies attention and MLP in sequence or in parallel, and Position encoding where positional information enters the computation; is the number of blocks, the model dimension, ckpts the number of residual stream checkpoints we introduced and best the one at which development UUAS peaks. In general, ckpts follows from the architecture, with the exception of DeBERTa-v3-base and RoBERTa-Shuffle-n1 for which we only extracted uncontextualized embeddings with positional information and post-transformer-block checkpoints.
| Relation | Train | Dev | Test | Relation | Train | Dev | Test |
|---|---|---|---|---|---|---|---|
| acomp | 1,163 | 48 | 99 | neg | 5,370 | 199 | 371 |
| advcl | 6,210 | 293 | 372 | nn | 74,082 | 3,228 | 4,364 |
| advmod | 29,282 | 1,276 | 1,839 | npadvmod | 3,451 | 189 | 231 |
| amod | 60,276 | 2,506 | 3,481 | nsubj | 66,179 | 2,780 | 3,991 |
| appos | 6,926 | 276 | 466 | nsubjpass | 6,625 | 253 | 386 |
| aux | 33,875 | 1,240 | 2,148 | num | 22,606 | 1,148 | 1,238 |
| auxpass | 7,448 | 286 | 435 | number | 8,798 | 448 | 454 |
| cc | 24,003 | 1,003 | 1,383 | parataxis | 1,643 | 56 | 95 |
| ccomp | 15,297 | 553 | 1,003 | pcomp | 5,123 | 208 | 240 |
| conj | 24,378 | 1,009 | 1,350 | pobj | 89,665 | 3,745 | 5,282 |
| cop | 9,161 | 330 | 578 | poss | 16,805 | 709 | 1,056 |
| csubj | 379 | 15 | 20 | possessive | 8,719 | 425 | 547 |
| csubjpass | 10 | 1 | 0 | preconj | 345 | 11 | 18 |
| dep | 10,903 | 564 | 657 | predet | 362 | 14 | 18 |
| det | 77,699 | 3,327 | 4,548 | prep | 91,893 | 3,783 | 5,376 |
| discourse | 106 | 7 | 11 | prt | 2,628 | 116 | 159 |
| dobj | 40,199 | 1,637 | 2,172 | quantmod | 3,442 | 192 | 202 |
| expl | 855 | 32 | 57 | rcmod | 7,686 | 290 | 455 |
| iobj | 554 | 18 | 23 | tmod | 4,281 | 244 | 274 |
| mark | 10,326 | 421 | 655 | vmod | 9,319 | 357 | 524 |
| mwe | 1,393 | 51 | 88 | xcomp | 11,001 | 398 | 666 |
| All | 800,466 | 33,686 | 47,332 |
Table A.2: Gold edge counts per dependency relation, for each Penn Treebank WSJ split. A relation's count is the number of edges the probe evaluation scores under it: edges of the gold dependency tree whose two endpoints are both non-punctuation tokens. Root arcs are excluded, having only one endpoint among the tokens, as are the edges the evaluation inserts to bridge removed punctuation, which carry no single relation. The dev counts are the weights of the weighted regression of §6, and the test counts the denominators of the held-out UASL reported there. csubjpass occurs once in dev and not at all in test, so it drops out of every test-set analysis.
is a matrix minimizing
the inner sum running over all pairs of words of the sentence and the normalization by preventing long sentences from dominating. We optimize with Adam at a learning rate of , reduced by a factor of ten when the development loss stops improving, in batches of 20 sentences and for at most 40 epochs, retaining the probe with the best development loss. Rank k = 64 is the value used by Hewitt and Manning (2019). Nothing here varies across models or residual stream checkpoints except the model dimension d.
A.3 UUAS and UASL
The tree associated with a sentence has vertices (its words) and edges labelled by a function , where is the set of dependency labels; for each we write . The probe's reconstruction is , the minimum spanning tree of the projected points under the Euclidean distance of . Edges are compared as unordered pairs, the reconstruction being undirected, and the two scores are
Both are pooled over the data set rather than averaged sentence by sentence, so that every edge counts once and a relation's score is not dominated by short sentences in which it happens to occur. It follows that UUAS is the average of UASL( ) over relations weighted by their edge counts, which is why those counts appear as the regression weights in §6.
A.4 Another look at layer normalization
We remark that in the case of models with post-layer normalization, the residual stream is bounded in norm, whereas the models with pre-layer normalization have unbounded residual streams.
It is conceivable to train structural probes on layer-normalized versions of the pre-LN models' checkpoints; these are precisely the representations that are manipulated by the attention or MLP block located just after the checkpoint. In this section, we will refer the extraction of residual stream vectors as described in the previous subsection as “convention A”, and to the layer-normalized versions of them as “convention B”.
A priori, probes are not indifferent to the convention. Remember that layer normalization is given by
where and are the mean and standard deviation over the coordinates of , and are learned. Of the four operations composing , three can be absorbed by the probe matrix : the shift cancels in the difference on which the probe is evaluated, the gain is diagonal, and the centering is the fixed projection . What remains is the rescaling by , which depends on the token and so is representable by no fixed linear map. The A-versus-B contrast isolates exactly this.
That said, the performance of structural probes trained on GPT-2-base representations barely distinguishes the two conventions. The probes attain a peak development UUAS of 0.7755 at checkpoint 16 under A and 0.7741 at checkpoint 15 under B; across checkpoints the mean difference B – A is -0.0050, exceeding 0.015 in magnitude only at the deepest checkpoints, where residual-stream norms grow sharply under A.

DeBERTa-v3-base residual stream checkpoint
GPT-2-base residual stream checkpoint

ModernBERT-base residual stream checkpoint
GPT-J-6B residual stream checkpoint
Figure B.1: UASL by relation at residual stream checkpoints in different models. Clockwise from the top left: DeBERTa-v3-base, ModernBERT-base, GPT-J-6B, GPT-2-base. Compare Figure 2.
B UASL by relation across residual stream checkpoints
The analyses discussed in the main body of the text largely focus on the canonical BERT-base model. However, in order to verify that our results are not specific to this one older, smaller model, we repeat our analyses on DeBERTa-v3-base, ModernBERT-base, GPT-2-base (Radford et al., 2019), and GPT-J-6B (Wang and Komatsuzaki, 2021); see Table A.1. We reran all analyses using the same alignments, training/dev/test splits, hyperparameters, and residual stream checkpoints.
Figure B.1 is the analogue of Figure 2; it charts UASL evolution over checkpoints for verbs' external and internal arguments. Remarkably, we can see that the general order is preserved: pcomp is the most reliably parsed dependency relation, and csubj is the least. Nsubj, dobj, and xcomp track closely together, just as they had in Figure 2.
C Linear distance: decay of UASL and clustering of relations
C.1 Models' UASL as a function of linear distance
Figures C.1 and C.2 illustrate the mean UASL curves as a function of linear distance, for each model at every post-block residual stream checkpoint. All models report similar performance decay as linear distance increases, further confirming the findings of Diego-Simón et al. (2025).
In turn, Figures C.3, C.5 and C.6 extend the heat maps of the log-linear decay model (see Figure 5) across all relations and all models. We find that the median across (relation, residual stream checkpoint) pairs is 0.777 for BERT-base, 0.752 for GPT-2-base, 0.692 for ModernBERT-base, 0.648 for GPT-J-6B, and 0.588 for DeBERTa-v3-base. This confirms §5.1's assessment of the log-linear model as a reasonable but imperfect metric that does not describe all dependency relations well for any of the models.
BERT-base: post-block residual stream checkpoints (3, 5, ..., 25)

Best post-block residual stream checkpoint (15)
Residual stream checkpoint
3 7 11 15 19 23
5 9 13 17 21 25
Figure C.1: Average UASL and standard deviation of per-relation averages, as a function of linear distance between endpoints of a dependency edge, at all odd residual stream checkpoints (after each attention block) and at residual stream checkpoint 16 with optimal UUAS.
C.2 The range of a relation and the composite distance
§5.2 clusters relations using only , which compares the dependency relations' UASL against their linear distance curves. Here, we define an additional range component that quantifies the linear distances of dependency relations in the corpus, and a composite distance formula. We then report dendrograms calculated with these components.
To distinguish between local, short-range, and non-local, long-range dependencies, we computed first, for each relation, the linear distance distribution over the corpus and extracted its count-weighted 90th-percentile linear distance . These are computed using the full gold-arc counts. Evaluating the 90th percentile is preferable over the maximum, to avoid excessive dependence on a single long arc outlier. We find a significant range, with a maximum at advcl, ccomp, and parataxis with and a minimum at mwe, possessive, prt with .
Then we measured differences in the range via
Table C.1: For each dependency relation, the table displays the value of : the 90th percentile of its linear distances over the corpus, the linear distance being the number of words separating the head and the dependent (so that 1 denotes adjacent words).
| Relation | Value | Relation | Value |
|---|---|---|---|
| advcl | 17 | expl | 4 |
| ccomp | 17 | npadvmod | 4 |
| parataxis | 17 | pcomp | 4 |
| conj | 13 | pobj | 4 |
| nsubjpass | 12 | poss | 4 |
| cc | 11 | predet | 4 |
| csubj | 11 | det | 3 |
| dep | 11 | iobj | 3 |
| vmod | 10 | preconj | 3 |
| discourse | 9 | amod | 2 |
| mark | 9 | aux | 2 |
| rcmod | 9 | auxpass | 2 |
| tmod | 8 | neg | 2 |
| appos | 7 | nn | 2 |
| nsubj | 7 | num | 2 |
| prep | 7 | number | 2 |
| advmod | 5 | quantmod | 2 |
| xcomp | 5 | mwe | 1 |
| acomp | 4 | possessive | 1 |
| cop | 4 | prt | 1 |
| dobj | 4 |
DeBERTa-v3-base: post-block residual stream checkpoints (1-12)

ModernBERT-base: post-block residual stream checkpoints (3, 5, ..., 45)

Residual stream checkpoint
3 11 19 27 35 41
5 13 21 29 37 43
7 15 23 31 39 45
9 17 25 33
GPT-2-base: post-block residual stream checkpoints (3, 5, ..., 25)

Best post-block residual stream checkpoint (15)
δ (linear distance, in words)
Residual stream checkpoint
3 7 11 15 19 23
5 9 13 17 21 25
GPT-J-6B: post-block residual stream checkpoints (1-28)

Optimal residual stream checkpoint (8)
δ (linear distance, in words)
Residual stream checkpoint
1 6 11 16 21 25
2 7 12 17 22 26
3 8 13 18 23 27
4 9 14 19 24 28
5 10 15 20
Figure C.2: Mean UASL shown as a function of the linear distance for different models. Shaded bands represent one standard deviation across relations. Clockwise from the top left: DeBERTa-v3-base, ModernBERT-base, GPT-J-6B, GPT-2-base. In each case the upper part of the figure shows every checkpoint, while the lower part focused on the best one.
the formula
where the are the 90th percentile linear distances shown in Table C.1, and then introduced the composite quantity
where we have divided each by its standard deviation to account for their different scales.
In Figure C.7, we report four dendrograms, each computed with different values of . Each dendrogram is reported along a symmetric-log scale horizontal axis (below 0.3, the average composite distance is linear; above this, the distance is logarithmic), and 25% of the tallest merge height is marked with a dashed vertical line, after which leaf
: mean UASL

Figure C.3: Fitness of a log-linear decay model across dependency relations for BERT-base, with residual stream evaluated after each full transformer block, and at residual stream checkpoint 16. The colour scale runs from red ( ) through yellow to green ( ). Omitted are relations for which a linear regression could not be fit.
labels are colored to indicate their cluster affiliation.
The top left dendrogram ( ) is calculated using only the corpus's linear distances, which ends up clustering the three longest-range relations (advcl/ccomp/parataxis where ) from the rest of the dependency relations. Because this dendrogram uses only linear distances, intermediate-range dependency relations (mark/discourse/rcmod/tmod/nsubj/appos/prep) cluster together as their linear distances can be seen to range from 7–9 in Table C.1.
In the bottom right dendrogram ( ), dependency relations are clustered using , which is the measure developed and utilized throughout this paper as it contextualizes the probe's UASL curves as a function of linear distance.
C.3 Wasserstein-1 distance
An unsatisfactory aspect of the range component we discussed above is that relations with differently distributed linear distance can have distance zero, due to the use of the 90th-percentile linear distance (i.e. is not a metric). To avoid this problem one can instead directly compare linear distance distributions. Let denote the relative frequency of linear distance among the gold arcs of relation , and let be the resulting distribution function. We consider the Wasserstein-1 ( ) distance
Unlike the percentile version previously discussed, this is a metric on the space of distributions. For example, cc and csubj both have but have 3.07 words separation in the Wasserstein-1 metric, while advcl and ccomp both have but differ by 2.22 words in Wasserstein-1 (see the panel of Figure C.8). Despite being more mathematically justified in this sense, the quantities and correlate at across the 820 pairs of dependency relations. Moreover, the use of the distance does not make the resulting clustering significantly more interpretable: for intermediate values of the clustering obtained using the metric appears more fragmented, with for example nine and eight singletons, respectively, for and 0.66, against just five and six, and one sees a single very large cluster at 20 and 18 relations, instead of the argument-versus-function-
BERT-base, residual stream checkpoint 16

Figure C.4: Individual dependency relation data by log linear distance, underlying Figure 5. Datapoints are UASL values for one linear distance with at least five gold edges in the test set. Probing is done at residual stream checkpoint 16, where BERT-base attains its peak UUAS and which was used to fit the regression of §6. The line is the least-squares fit of Equation 1. A low need not indicate noise: ccomp spans the widest range of linear distances and is close to flat, so its near-zero reflects the absence of decay rather than scatter about one. auxpass, at the head of the ordering, is fitted on three points.
word split that we observed. Figure C.8 shows four panels for comparison.
C.4 Clustering of relations by UASL-vs-linear-distance profile
The UPGMA clustering depicted in Figure 6 is repeated in Figure C.9 for each model. We again observe a broad clustering of function-word dependents (similar to the yellow-green cluster in BERT-base), though there is a bit more mixing of closed and open class.
: mean UASL
| aux | 0.98 | 0.97 | 0.90 | 0.92 | 0.98 | 0.94 | 0.91 | 0.99 | 0.97 | 0.98 | 0.97 | 0.98 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| quantmod | 0.72 | 0.97 | 0.99 | 0.73 | 0.99 | 0.97 | 0.76 | 0.64 | 0.89 | 0.90 | 0.90 | 0.89 |
| neg | 0.91 | 0.89 | 0.98 | 0.89 | 0.58 | 0.75 | 0.90 | 0.90 | 0.94 | 0.87 | 0.80 | 0.95 |
| cop | 0.98 | 0.95 | 0.97 | 0.93 | 0.88 | 0.88 | 0.88 | 0.89 | 0.86 | 0.89 | 0.91 | 0.32 |
| number | 0.79 | 0.88 | 0.80 | 0.83 | 0.83 | 0.91 | 0.87 | 0.90 | 0.89 | 0.92 | 0.89 | 0.84 |
| nn | 0.86 | 0.94 | 0.87 | 0.90 | 0.96 | 0.93 | 0.82 | 0.92 | 0.94 | 0.55 | 0.59 | 0.73 |
| pobj | 0.91 | 0.92 | 0.79 | 0.78 | 0.88 | 0.79 | 0.78 | 0.69 | 0.79 | 0.68 | 0.75 | 0.69 |
| amod | 0.82 | 0.92 | 0.93 | 0.87 | 0.95 | 0.91 | 0.31 | 0.44 | 0.75 | 0.38 | 0.79 | 0.92 |
| num | 0.70 | 0.71 | 0.63 | 0.68 | 0.70 | 0.81 | 0.60 | 0.79 | 0.77 | 0.85 | 0.80 | 0.83 |
| xcomp | 0.73 | 0.87 | 0.70 | 0.58 | 0.56 | 0.75 | 0.60 | 0.83 | 0.54 | 0.59 | 0.71 | 0.76 |
| auxpass | 0.75 | 0.68 | 0.03 | 0.95 | 0.52 | 0.98 | 0.98 | 0.37 | 0.76 | 0.16 | 0.80 | 0.99 |
| poss | 0.29 | 0.46 | 0.80 | 0.89 | 0.69 | 0.74 | 0.79 | 0.45 | 0.53 | 0.84 | 0.71 | 0.73 |
| npadvmod | 0.55 | 0.74 | 0.55 | 0.69 | 0.75 | 0.48 | 0.57 | 0.61 | 0.62 | 0.51 | 0.74 | 0.89 |
| conj | 0.10 | 0.34 | 0.61 | 0.74 | 0.43 | 0.74 | 0.75 | 0.67 | 0.68 | 0.81 | 0.76 | 0.73 |
| pcomp | 0.40 | 0.46 | 0.02 | 0.95 | 0.75 | 0.60 | 0.86 | 0.78 | 0.27 | 0.56 | 0.89 | 0.75 |
| dep | 0.09 | 0.38 | 0.69 | 0.45 | 0.68 | 0.63 | 0.81 | 0.67 | 0.56 | 0.79 | 0.57 | 0.76 |
| parataxis | 0.26 | 0.66 | 0.62 | 0.42 | 0.59 | 0.30 | 0.86 | 0.84 | 0.77 | 0.82 | 0.44 | 0.30 |
| appos | 0.50 | 0.24 | 0.69 | 0.56 | 0.24 | 0.68 | 0.73 | 0.39 | 0.09 | 0.59 | 0.55 | 0.83 |
| tmod | 0.93 | 0.83 | 0.42 | 0.43 | 0.49 | 0.42 | 0.37 | 0.24 | 0.38 | 0.49 | 0.42 | 0.25 |
| dobj | 0.74 | 0.53 | 0.88 | 0.76 | 0.57 | 0.45 | 0.50 | 0.31 | 0.28 | 0.22 | 0.22 | 0.23 |
| nsubj | 0.58 | 0.80 | 0.55 | 0.72 | 0.53 | 0.43 | 0.47 | 0.34 | 0.15 | 0.33 | 0.17 | 0.50 |
| det | 0.83 | 0.77 | 0.80 | 0.72 | 0.36 | 0.22 | 0.29 | 0.40 | 0.15 | 0.43 | 0.20 | 0.24 |
| advcl | 0.06 | 0.12 | 0.21 | 0.61 | 0.42 | 0.58 | 0.54 | 0.50 | 0.57 | 0.64 | 0.56 | 0.25 |
| mark | 0.68 | 0.59 | 0.41 | 0.56 | 0.29 | 0.28 | 0.35 | 0.22 | 0.44 | 0.25 | 0.40 | 0.37 |
| rcmod | 0.04 | 0.11 | 0.26 | 0.29 | 0.21 | 0.18 | 0.25 | 0.50 | 0.76 | 0.53 | 0.55 | 0.46 |
| advmod | 0.72 | 0.18 | 0.67 | 0.23 | 0.14 | 0.10 | 0.04 | 0.46 | 0.41 | 0.08 | 0.39 | 0.11 |
| prep | 0.06 | 0.32 | 0.43 | 0.13 | 0.24 | 0.30 | 0.22 | 0.29 | 0.39 | 0.37 | 0.23 | 0.14 |
| vmod | 0.00 | 0.10 | 0.00 | 0.05 | 0.05 | 0.28 | 0.53 | 0.21 | 0.12 | 0.40 | 0.29 | 0.24 |
| nsubjpass | 0.14 | 0.58 | 0.38 | 0.30 | 0.00 | 0.06 | 0.00 | 0.06 | 0.16 | 0.13 | 0.00 | 0.36 |
| cc | 0.00 | 0.03 | 0.06 | 0.00 | 0.15 | 0.15 | 0.28 | 0.35 | 0.25 | 0.40 | 0.21 | 0.11 |
| ccomp | 0.12 | 0.07 | 0.14 | 0.29 | 0.06 | 0.06 | 0.02 | 0.01 | 0.02 | 0.11 | 0.24 | 0.16 |
Residual stream checkpoint
: mean UASL
| cop | 0.94 | 0.99 | 0.98 | 0.99 | 0.88 | 0.88 | 0.94 | 0.97 | 0.94 | 0.97 | 0.95 | 0.99 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| neg | 0.95 | 0.94 | 0.89 | 0.87 | 0.88 | 0.94 | 0.90 | 0.92 | 0.96 | 0.89 | 0.87 | 0.99 |
| aux | 0.84 | 0.90 | 0.85 | 0.85 | 0.86 | 0.87 | 0.94 | 0.92 | 0.99 | 1.00 | 0.93 | 0.99 |
| pobj | 0.89 | 0.93 | 0.95 | 0.96 | 0.90 | 0.85 | 0.82 | 0.91 | 0.89 | 0.91 | 0.58 | 0.88 |
| amod | 0.64 | 0.96 | 0.91 | 0.95 | 0.91 | 0.97 | 0.97 | 0.88 | 0.63 | 0.77 | 0.65 | 0.95 |
| det | 0.96 | 0.85 | 0.95 | 0.94 | 0.88 | 0.98 | 0.94 | 0.87 | 0.82 | 0.66 | 0.63 | 0.63 |
| nn | 0.95 | 0.92 | 0.87 | 0.84 | 0.73 | 0.79 | 0.93 | 0.80 | 0.75 | 0.76 | 0.76 | 0.89 |
| number | 0.87 | 0.87 | 0.75 | 0.77 | 0.80 | 0.77 | 0.80 | 0.85 | 0.81 | 0.85 | 0.87 | 0.85 |
| conj | 0.94 | 0.96 | 0.76 | 0.75 | 0.70 | 0.72 | 0.83 | 0.87 | 0.78 | 0.88 | 0.91 | 0.76 |
| poss | 0.91 | 0.95 | 0.88 | 0.97 | 0.78 | 0.71 | 0.54 | 0.69 | 0.90 | 0.76 | 0.79 | 0.95 |
| rcmod | 0.96 | 0.86 | 0.86 | 0.79 | 0.76 | 0.81 | 0.84 | 0.64 | 0.62 | 0.84 | 0.82 | 0.67 |
| dep | 0.84 | 0.84 | 0.68 | 0.61 | 0.73 | 0.65 | 0.75 | 0.81 | 0.84 | 0.82 | 0.83 | 0.69 |
| xcomp | 0.87 | 0.91 | 0.88 | 0.72 | 0.57 | 0.89 | 0.55 | 0.71 | 0.62 | 0.89 | 0.63 | 0.82 |
| dobj | 0.89 | 0.84 | 0.85 | 0.87 | 0.78 | 0.73 | 0.65 | 0.48 | 0.72 | 0.67 | 0.74 | 0.82 |
| tmod | 0.89 | 0.77 | 0.78 | 0.90 | 0.57 | 0.76 | 0.74 | 0.69 | 0.76 | 0.58 | 0.61 | 0.71 |
| quantmod | 0.96 | 0.62 | 0.88 | 0.79 | 0.94 | 0.76 | 0.56 | 0.52 | 0.46 | 0.80 | 0.47 | 0.97 |
| auxpass | 0.75 | 0.75 | 0.93 | 0.00 | 0.69 | 0.24 | 0.93 | 0.49 | 1.00 | 0.94 | 0.99 | 0.82 |
| appos | 0.93 | 0.95 | 0.77 | 0.48 | 0.74 | 0.70 | 0.72 | 0.68 | 0.64 | 0.64 | 0.62 | 0.19 |
| npadvmod | 0.83 | 0.52 | 0.61 | 0.60 | 0.65 | 0.58 | 0.55 | 0.64 | 0.57 | 0.74 | 0.68 | 0.95 |
| nsubj | 0.91 | 0.86 | 0.86 | 0.74 | 0.75 | 0.54 | 0.51 | 0.59 | 0.55 | 0.56 | 0.48 | 0.49 |
| advcl | 0.83 | 0.89 | 0.66 | 0.71 | 0.45 | 0.69 | 0.66 | 0.66 | 0.42 | 0.62 | 0.88 | 0.24 |
| num | 0.67 | 0.46 | 0.70 | 0.68 | 0.77 | 0.69 | 0.54 | 0.66 | 0.57 | 0.82 | 0.69 | 0.42 |
| parataxis | 0.77 | 0.88 | 0.90 | 0.80 | 0.67 | 0.24 | 0.34 | 0.68 | 0.76 | 0.56 | 0.44 | 0.53 |
| mark | 0.76 | 0.95 | 0.83 | 0.75 | 0.78 | 0.25 | 0.34 | 0.24 | 0.46 | 0.27 | 0.38 | 0.50 |
| pcomp | 0.50 | 0.60 | 0.69 | 0.59 | 0.89 | 0.15 | 0.83 | 0.47 | 0.57 | 0.31 | 0.42 | 0.02 |
| nsubjpass | 0.88 | 0.85 | 0.82 | 0.86 | 0.45 | 0.18 | 0.02 | 0.08 | 0.21 | 0.25 | 0.43 | 0.16 |
| vmod | 0.81 | 0.47 | 0.27 | 0.56 | 0.30 | 0.31 | 0.46 | 0.35 | 0.31 | 0.31 | 0.47 | 0.19 |
| prep | 0.78 | 0.49 | 0.59 | 0.40 | 0.33 | 0.09 | 0.03 | 0.19 | 0.19 | 0.29 | 0.48 | 0.52 |
| advmod | 0.75 | 0.68 | 0.57 | 0.39 | 0.02 | 0.09 | 0.44 | 0.06 | 0.23 | 0.18 | 0.16 | 0.19 |
| ccomp | 0.90 | 0.74 | 0.53 | 0.34 | 0.24 | 0.03 | 0.05 | 0.12 | 0.12 | 0.22 | 0.24 | 0.12 |
| cc | 0.57 | 0.39 | 0.09 | 0.11 | 0.27 | 0.15 | 0.26 | 0.13 | 0.25 | 0.40 | 0.29 | 0.53 |
Residual stream checkpoint
Figure C.5: Goodness of fit of the log-linear decay model, for DeBERTa-v3-base (Left) and GPT-2-base (Right), both models involving twelve transformer blocks. In both cases a column is the residual stream after an entire transformer block; the two differ in checkpoint indices only because GPT-2 is stored with a post-attention checkpoint interleaved between consecutive post-MLP ones. Rows are the relations, ordered by mean across residual stream checkpoints.
: mean UASL

: mean UASL

Figure C.6: Goodness of fit for the log-linear decay model in the case of ModernBERT-base (top) and GPT-J-6B (bottom), respectively with columns with residual stream checkpoints 3, 5, ..., 45, after each of the 22 blocks, and residual stream checkpoints 1–28, after each of 28 blocks. Rows are as in Figure C.5.
(range only)

Avg composite distance (symlog)
(UAS 66% / range 34%)
(UAS 33% / range 67%)
Avg composite distance (symlog)
(UAS only)

Avg composite distance (symlog)
Avg composite distance (symlog)
Figure C.7: The four average-linkage dendrograms of the 41 dependency relations. measures the differences between the relations’ count-weighted 90th-percentile linear distance while measures the probe’s UASL curves as a function of linear distance. Dendrograms are computed with a variation of no arc-function UASL ( , top left, range-only) to only UASL performance as a function of linear distance ( , bottom right, UASL only). The horizontal axis uses a symmetric-log scale (linear below 0.3, logarithmic above), and the dashed gray vertical line marks 25% of the tallest merge, after which leaf labels are colored to indicate their cluster affiliation.

(UAS 66% / range 34%)
(UAS only)
Avg composite distance (symlog)
Avg composite distance (symlog)
Figure C.8: Like Figure C.7, the above dendrograms of the 41 dependency relations measure the differences between the relations’ count-weighted 90th-percentile linear distance. However, unlike Figure C.7, the range component has been replaced with the Wasserstein-1 distance described in Equation 14. All other components are the same as in Figure C.7: (bottom right) is a dendrogram computed only with respect to UASL, while (top left) is computed only with the new Wasserstein-1 range component, and the horizontal axis and gray vertical line correspond to that in Figure C.7.

Avg composite distance (symlog)

Avg composite distance (symlog)

Avg composite distance (symlog)

Avg composite distance (symlog)
Figure C.9: Model comparison: DeBERTa-v3-base, ModernBERT-base, GPT-J-6B, GPT-2-base (clockwise from top-left). The average-linkage dendrograms of the 41 dependency relations, clustered by UASL, as a function of linear distance ( in the composite distance of Figure C.7), measured over all residual stream checkpoints of the test set. The horizontal axis is a symmetric-log scale, linear below 0.3 and logarithmic above; the dashed grey vertical line marks 25% of the tallest merge, past which leaf labels are coloured by cluster. The four panels share these settings, so they are stated here once rather than repeated as a title above each.
D Regression results across models
We report the results in Table D.1 where we find BERT-base to be the best model for syntactic tree reconstruction, beating out the far-larger GPT-J model by 3 UUAS points. More importantly, however, we observe that all models' regression coefficients display the same sign, and that all models have roughly the same magnitude and significance, indicating that our UASL analysis is not unique to BERT alone.
Figure D.1 shows the UASL with each of the three predictors of §6, one row per model. The predictors are computed once on the Penn Treebank, hence they remain the same for every model, so the rows only differ in the UASL values, and the locations of the same 42 relations just move vertically from row to row.
Note that the panels in this figure are added-variable plots: both UASL and the predictor shown are residualised on the other two predictors, so the weighted slope through each cloud is that predictor's coefficient in the full regression and the annotated values reproduce Table D.1. The partial view is necessary in the middle column, where correlates with mean : the raw scatter of UASL against dispersion slopes downward ( between and ) although the partial effect is positive in every model.
Across the different models, the three effects are remarkably stable: the slope on the mean distance is consistently negative, that on the dispersion positive everywhere, and that on head similarity-corrected entropy is negative everywhere. Neither sign nor approximate magnitude depends on the architecture.
D.1 Encoding linear distance in the regression
In §6 we made three choices in analyzing the linear distance of a syntactic relation in terms of the mean and the standard deviation of the logarithm: we used the mean of the log rather than the log of the mean, the standard deviation instead of the variance, and we stopped at the second moment of the log-length distribution. We discuss these choices in more detail in this appendix, by testing them on the five different models, using the same data and weights.
Mean of the log. If the UASL behaves like , then the mean of UASL is mean , so this choice matches the model. We see empirically that replacing mean with costs in in all the models we are considering (BERT-base , DeBERTa-v3-base , ModernBERT-base , GPT-2-base , and GPT-J-6B ), with AIC between and . While in general (Jensen inequality), they correlate at over the 42 syntactic relations, with losing on the high-frequency relations.
Standard deviation. If we replace with the variance we see a lowering of in all five models (BERT-base ; DeBERTa-v3-base ; ModernBERT-base ; GPT-2-base ; GPT-J-6B ), which results in worsening the AIC to 2.6, with a drop in the statistical significance of the dispersion term ( between .056 and .179, compared to .017 to .095 in the case of the standard deviation). This is the reason why we choose the standard deviation, with its sign interpreted as in §6.
Second moment. By considering the mean of log and the standard deviation, we have included the first and second moment of the log-length distribution. We checked that the third moment does not add any further useful information. Table D.2
| Model | Peak UUAS | ckpt | head sim-entropy | mean log length | sd log length | |
|---|---|---|---|---|---|---|
| BERT-base | 0.815 | 16 | 0.736 | -0.082*** | -0.252*** | +0.163* |
| DeBERTa-v3-base | 0.788 | 9 | 0.609 | -0.067*** | -0.226*** | +0.186* |
| ModernBERT-base | 0.762 | 30 | 0.700 | -0.056*** | -0.216*** | +0.103 |
| GPT-2-base | 0.776 | 16 | 0.744 | -0.076*** | -0.218*** | +0.143* |
| GPT-J-6B | 0.783 | 8 | 0.746 | -0.069*** | -0.193*** | +0.125* |
Table D.1: Peak UUAS and WLS regression of §6, evaluated for each model at its own optimal residual stream checkpoint. The symbol *** denotes , while * denotes . The dispersion term is marginal for ModernBERT-base () and significant in all the other cases. All three effects discussed in the main text occur in each model with the same sign and with comparable magnitude.

Figure D.1: Added-variable plots of UASL against each regression predictor, one row per model. Point area is proportional to the relation’s weight in the regression.
shows the result of considering the three moments
One sees that the dispersion term is statistically significant in four out of five models and improves the adjusted value of in all models. On the other hand, the skewness term is in every model not statistically significant, with the adjusted dropping in the case of ModernBERT-base and GPT-J-6B, and the AIC worsening in three of the models. Adding the third moment also spoils the effect of the dispersion term, since sd and skew correlate at -0.57.
| Model | |||
| BERT-base | |||
| DeBERTa-v3-base | |||
| ModernBERT-base | |||
| GPT-2-base | |||
| GPT-J-6B | |||
| added term, p-value | |||
|---|---|---|---|
| BERT-base | — | ||
| DeBERTa-v3-base | — | ||
| ModernBERT-base | — | ||
| GPT-2-base | — | ||
| GPT-J-6B | — | ||
Table D.2: Adjusted for the three moments, and -value of the term added at each step (nested -test): adding helps while adding does not.
E A transformer pre-trained on permuted sentences
E.1 Structural probes applied to a transformer pre-trained on permuted sentences
High-performing dependency relations often seem to connect two words in very close proximity to each other that, moreover, occur in a specified order (e.g. “as well as”). This becomes more evident if we consider structural probes trained on latent representations of a transformer that has been pre-trained with permuted sentences: RoBERTa-Shuffle-n1, the RoBERTa architecture (Liu et al., 2019) pre-trained by Sinha et al. (2021) on sentences whose word order has been randomised, and which is therefore sensitive only to sentence-wise distributional information. For this permuted model, both distance and order are affected.
In the permuted case, as one would expect, there is a considerable drop in performance across all dependencies. However, we also find an inverted order in the resulting level of performance across different dependencies. For instance, the previously highest scoring mwe (e.g. “up to 40 cookies”) is among the lowest scoring, perhaps unsurprisingly given that it is generally a set phrase with a fixed ordered combination of adjacent words.
The high performer auxpass is among the lowest in the permuted case, showing that ordering and proximity between auxiliary and past participle ending is crucial. After permutation, aux and auxpass become comparable. An inversion of performance also occurs for cc (between the coordinated head and the conjunction) and conj (between the coordinated head and the coordinated dependent). Notably, though conj performs worse than cc

RoBERTa-Shuffle-n1 residual stream checkpoint
Figure E.1: Dev set UASL curves of rank-64 structural probes trained on RoBERTa-Shuffle-n1's latent representations. Relations are those of Figure 3. Residual stream checkpoints numbered as in Hewitt and Manning (2019).
RoBERTa-Shuffle-n1: post-block residual stream checkpoints (1-12)

Figure E.2: Mean UASL as a function of linear distance for RoBERTa-Shuffle-n1, over all 12 post-block residual stream checkpoints (upper panel) and at the best one alone (lower panel). The shaded bands represent one standard deviation across relations. The curve is nearly flat: linear distance carries almost no information.
on BERT-base, it ranks above cc on the permuted model. Whereas cc relies on the coordinated head occurring directly before the dependent conjunction, conj shows an additional symmetry which might be preserved through some permutations.
E.2 Linear distance and lexical diversity for a model pre-trained on permuted sentences
We have shown in §5.1 and §6, using BERT-base, that the UASLs of syntactic relations decay approximately log-linearly in linear distance, and that the UASL performance can be predicted in terms of linear distance and lexical similarity-aware entropy of the head of the syntactic relation. We considered RoBERTa-Shuffle-n1 (Sinha et al., 2021), the model discussed in §E.1, pre-trained on permuted sentences (maintaining the same probes, alignments, corpus splits, and predictors). The two properties mentioned are no longer detectable in this permuted case, indicating that they are neither artefacts of the UASL computation method nor properties intrinsic to the treebank data.
Overall performance. Dev-set UUAS peaks at 0.093 at checkpoint 9 of the residual stream, against 0.815 for BERT-base, with very little vari-
: mean UASL

Figure E.3: Goodness of fit for the log-linear decay model for RoBERTa-Shuffle-n1. Columns are residual stream checkpoints 1–12, after each transformer block and rows are syntactic relations ordered by mean . The median is 0.102, against 0.777 for BERT-base in Figure C.3.
ation (from 0.084 to 0.093) across the 13 checkpoints. Thus, the permuted model does not, at any depth, recover dependency trees, confirming what we see in the per-relation curves of Figure E.1.
Log-linear decay. Figure E.3 recomputes the goodness-of-fit heat map of §5.1. The median over (relation, checkpoint) pairs is now 0.102, compared with 0.777 for BERT-base, and with 0.588 for the weakest of the five models of Appendix B. Figure E.2 directly shows that the mean UASL-against-distance curves are close to flat in the permuted case.
The regression. Table E.1 evaluates the same regression of §6 in the case of RoBERTa-Shuffle-n1. The three predictors account for of the between-relation variance, against 0.736 for BERT-base. The coefficient of the mean log linear distance falls from -0.252 to -0.002, and those of similarity-aware entropy and dispersion change sign (from -0.082 to +0.014 and from +0.163 to -0.060). The syntactic interpretation identified in §6 is not detectable in a model pre-trained without
| Predictor | Coef | SE | p | BERT |
|---|---|---|---|---|
| const | 0.100 | 0.018 | <.001 | 1.045 |
| head sim-entropy | +0.014 | 0.006 | .031 | -0.082 |
| mean log dep length | -0.002 | 0.014 | .870 | -0.252 |
| sd log dep length | -0.060 | 0.031 | .058 | +0.163 |
Table E.1: The regression of Table 1 on RoBERTa-Shuffle-n1, evaluated at its best residual stream checkpoint ( , adjusted , , p = .039, n = 42). The final column repeats the BERT-base coefficient for comparison. The diversity and the dispersion coefficients change sign, and the linear distance coefficient is reduced to less than 1% of its magnitude.
word order (and without structural ordering, since all permutations are used, not just those reflecting different planarizations of a same abstract syntactic tree).