---
title: "Replicating and Extending “Because Their Treebanks Leak”:"
description: "A replication tests whether shared dependency tree shapes predict parsing accuracy once training size and sentence length are taken into account."
canonical: "https://research.elamur.ai/free/en/papers/anderson-2021-replicating-extending-because-their-treebanks/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/anderson-2021-replicating-extending-because-their-treebanks/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Replicating and Extending “Because Their Treebanks Leak”: Graph Isomorphism, Covariants, and Parser Performance

# Replicating and Extending “Because Their Treebanks Leak”: Graph Isomorphism, Covariants, and Parser Performance

Paper · 2021 · Mark Anderson, Anders Søgaard and Carlos Gómez-Rodríguez

**Authors:** [Mark Anderson](https://md.research.elamur.ai/free/en/authors/mark-anderson/), [Anders Søgaard](https://md.research.elamur.ai/free/en/authors/anders-sogaard/) and [Carlos Gómez-Rodríguez](https://md.research.elamur.ai/free/en/authors/carlos-gomez-rodriguez/) · **Year:** 2021 · **Venue:** Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Cited by **4** papers in our library of more than 163,000 papers whose bibliographies we read · Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.acl-short.138/)
- [PDF](https://aclanthology.org/2021.acl-short.138.pdf)
- [DOI 10.18653/v1/2021.acl-short.138](https://doi.org/10.18653/v1/2021.acl-short.138)

## Summary

When a parser scores higher on one collection of sentences than on another, the difference can reflect what the parser had a chance to learn. The collections may differ in how much training material they offer, how long their test sentences are, or how often the test sentences have structures already seen during training. Anderson and colleagues revisit an earlier study that singled out the last of these possibilities. In [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/), a system assigns each word a grammatical head and a label for its relation to that head. The authors ask how much of the variation in parsing accuracy can be explained by a simple measure of familiarity with the shapes of those relations.

The measure, called DUG, is the share of test sentences whose reference dependency tree has a shape found in the training data. The comparison keeps the direction of each dependency and ignores its label and the identity of the words. A training sentence and a test sentence can therefore contribute to the same structural class even when their vocabulary differs. Short sentences have relatively few possible shapes, so matching a training example is often nearly automatic. Longer sentences have many more possible shapes. The amount of training material matters too, since a larger collection offers more chances to encounter a shape that will appear at test time.

The authors reproduce the earlier regression analysis and extend it to larger sets of [treebanks](https://md.research.elamur.ai/free/en/topics/treebanks/), collections of sentences with reference syntax. The apparent advantage of DUG in the original analysis depends heavily on how treebanks are divided for statistical evaluation. The expanded comparisons give little evidence that overlap helps explain accuracy once training size and average test sentence length are taken into account. Looking at individual sentence lengths explains part of the difficulty. In the UDPipe 2.0 data, overlap is usually close to complete for short sentences and close to absent for long ones. DUG varies appreciably across treebanks chiefly for sentences of length 9 to 14.

A controlled comparison asks a narrower question. The authors train UDPipe 1.2 on 1000 sentences per treebank and evaluate it on sets of 200 sentences, with every sentence in training and testing having 12 tokens. Within that setup, higher overlap goes with higher labeled attachment score, with a Spearman rank correlation of 0.82 and p \< 0.001. The contrast matters for interpreting a parsing benchmark. DUG gives little help in explaining differences among ordinary treebank splits after adjustment, while its association with accuracy is strong in a comparison that holds sentence length and training size fixed.

## Deep dive: Replicating and Extending “Because Their Treebanks Leak”: Graph Isomorphism, Covariants, and Parser Performance

A replication tests whether shared dependency tree shapes predict parsing accuracy once training size and sentence length are taken into account. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What makes one treebank easier to parse?

A parser learns from sentences whose grammatical structure someone has already recorded. It is evaluated on other sentences by comparing its output with the reference structure. A score tells us how closely the parser agrees with those references. Comparisons across treebanks raise a further question about the conditions under which that agreement was achieved. A high score might reflect an ample supply of examples, a favorable mix of test sentences, or properties of the dependencies themselves. Explaining the score requires examining the material on both sides of the train–test divide.

The treebanks in the study use [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/). Their reference annotation follows a dependency representation and enforces well-formed trees. An annotated sentence records connections between heads and dependents. Each connection has a direction and a grammatical label. The dependency tree is distinct from the sentence as a sequence of words. A sequence determines which words appear and in what order, while the tree records which words depend on which others. The same branching arrangement can recur in sentences that look quite different when read as text.

That distinction opens up a way to measure the resemblance between a treebank's training and test sets. Familiarity can refer to having seen a word, a relation label, or a whole pattern of edges. The earlier study by Søgaard concentrated on the last of these. It proposed measuring how frequently test trees belong to structural classes represented in training, and asked whether treebanks with more such overlap tend to yield better parsing scores. The comparison was across treebanks, so its basic observation joined an overlap measurement for an entire split to an accuracy measurement for that split.

The word *leak* in the earlier study's title refers to this recurrence. The operational test concerns the whole shape of an annotated tree at a chosen level of abstraction. A match can arise through completely different sentences, simply because they instantiate the same arrangement of dependencies. The question is whether such structural familiarity helps explain variation in parsing performance. Establishing that test items had been copied or that a test annotation had been exposed during training would require different evidence.

#### Why other explanations matter

The paper describes training size as a familiar factor in parsing performance. Additional annotated sentences give a parser more material from which to learn. They also affect the overlap statistic directly. When a training split contains more sentences, it has more opportunities to contain different tree shapes. A test tree has a greater chance of finding a counterpart if the list of observed shapes is more extensive. A relationship between overlap and accuracy could therefore reflect, in part, the amount of training material available to the parser.

Sentence length creates a separate dependence. Two trees can have the same shape only if they have the same number of vertices. A test sentence can find a structural match only among training sentences of its own length. Within that group, the number of possible shapes changes sharply as length increases. A collection dominated by short test sentences can yield high overlap simply because there are relatively few ways to arrange their dependencies. A collection containing many longer sentences faces a larger space of possible structures. This matters even before a parser makes any predictions.

Length is relevant to accuracy for another reason. The earlier work the paper discusses relates sentence length to the distribution of distances between heads and dependents. A dependency can connect nearby words or span a substantial stretch of the sentence. Earlier studies cited by the authors associate longer distances with greater difficulty for parsers, with one study examining how transition-based algorithms behave at different displacements. An earlier comparison of dependency parsers also identified sentence length as relevant to performance. [Analyzing and Integrating Dependency Parsers](https://md.research.elamur.ai/free/en/papers/mcdonald-2011-analyzing-integrating-dependency-parsers/) · [Inherent Dependency Displacement Bias of Transition-Based Algorithms](https://md.research.elamur.ai/free/en/papers/anderson-2020-inherent-dependency-displacement-bias-transition/)

The authors also situate the study among attempts to explain accuracy through linguistic characteristics. The paper mentions [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/), which concerns how words are formed and inflected, and freedom of word order, which concerns how flexibly elements can be arranged. It also mentions perplexity over pairs of successive [part-of-speech tags](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), a measure of how predictable those category sequences are. These proposals concern different properties of the input. Training size describes the amount of evidence available. Word order and morphology describe properties of the language as reflected in the data. DUG describes a relationship between the training and test splits.

A covariant in this study is a measured property that varies alongside the quantity under investigation and is relevant to interpreting its relation to accuracy. Training size and mean test sentence length each have a plausible connection to both sides of the comparison. Their roles also differ. Training size concerns how much of the space of structures the training examples can cover. Test length concerns which parts of that space the test set asks the parser to handle. A comparison that treats either as a competing explanation in isolation can miss the difficulty of interpreting all of them together.

#### What the replication revisits

Søgaard considered overlap under directed and undirected graph isomorphism. Graph isomorphism means that the vertices of one graph can be put into correspondence with the vertices of another while preserving the connections relevant to the comparison. In the directed version, a connection must retain its orientation under that correspondence. The undirected version ignores orientation. Both comparisons discard dependency labels. The replication concentrates on the directed version, which the earlier study identified as having the stronger relationship with parser performance.

The original analysis used treebanks from the [CoNLL 2018 shared task](https://md.research.elamur.ai/free/en/papers/zeman-2018-conll-2018-shared-task-multilingual/). It took each treebank's accuracy from the system that performed best on it and used cross-validated linear regression to compare explanations for variation in those scores. Cross-validation here means repeatedly fitting the statistical relationship on part of the treebank sample and evaluating it on held-out treebanks. This procedure concerns a second layer of evaluation, over already available parsing scores. The parsing systems had their own training and test sets within each treebank.

The original regressions generally considered training size together with one other candidate variable at a time. That setup can compare ways of supplementing training size, such as adding overlap or adding sentence length. It leaves the relation between the two supplements unresolved. The replication asks whether the earlier inference survives changes to the statistical partitions, a larger collection of treebanks, and analyses that account for the main covariants together. It also asks whether a deliberately restricted experiment can show an association that an ordinary comparison across treebanks obscures.

The paper notes that linear regression and correlation had been used for a range of investigations in language processing, from factors affecting agreement in annotation to determinants of performance in statistical translation and span identification. It also describes replication as less established in the field, while pointing to prior examples in parsing and automatic essay scoring. This case gives those methodological concerns a concrete form. The quantities of interest can all be measured, yet a plausible statistical comparison can still place too much weight on a small set of treebanks or combine sources of variation that work in different ways.

### The method, step by step

#### From labeled dependencies to recurring shapes

The procedure begins with two sets of annotated sentences from a treebank. The training set supplies the shapes that count as familiar. The test set supplies the sentences for which familiarity is measured. These are the reference trees. A parsing error can lower the accuracy score, but it cannot by itself change whether the test sentence's reference tree matches a training shape. The overlap measurement and the accuracy measurement can then be compared without defining one in terms of the other.

Imagine tracing only the arrows in a dependency tree. The spellings of the words and the grammatical names on the edges are removed from the comparison. What remains is the pattern of connections and the direction in which each connection runs. A tree with several dependents attached directly to its head has a different shape from a tree in which those dependents form a chain. Changing the vocabulary while retaining the same pattern of arrows keeps the tree in the same class. Rearranging the arrows from a branch into a chain changes the class.

The word *unlabeled* applies to the structural comparison. A vertex still represents a token, and a direction still distinguishes a head from a dependent along an edge. What is ignored is the identity of the vertex and the grammatical label of the edge. Vertex names may be reassigned to establish a match. Consequently, the procedure also abstracts away from the linear positions of the tokens when determining whether the directed graphs are isomorphic. It measures shared tree structure at this specific level, rather than requiring that corresponding dependencies span the same positions in the sentence.

To calculate DUG, the authors collect the distinct shape classes represented by the training trees. They then check each test tree for membership in those classes. Repetition has different effects on the two sides. A shape that occurs repeatedly in training contributes the same class to the inventory. A shape that occurs repeatedly in testing contributes a match for each test sentence with that shape, provided the training inventory contains it. DUG therefore counts covered test instances, rather than giving every distinct test shape equal weight.

```
DUG = M / N
```

DUG is the fraction of test instances whose directed unlabeled tree shape appears in training. M is the count of test instances that meet that condition, and N is the total number of test instances in the comparison. The slash denotes division. An overlap of 0 means that none of the test trees matches a training shape. An overlap of 1 means that every test tree has a match. A test tree could still resemble another test tree in the first case, since the comparison is specifically with training.

The performance quantity is labeled attachment score, abbreviated LAS. It checks whether a scored word has been assigned the reference head and the reference dependency label. Both decisions matter. A correct head with an incorrect label fails the labeled attachment check. This makes LAS more demanding than the shape comparison in a specific way. DUG establishes that a matching configuration exists somewhere in training, while LAS evaluates the parser's concrete head and label predictions for the actual test sentence.

Training size is counted in sentences. The other principal covariant is the mean length of the test sentences, measured in tokens. The paper denotes that mean with angle brackets around the test-length quantity.

```
⟨L_test⟩ = T / N
```

The brackets around L_test indicate the average sentence length in the test set. T denotes the total token count across the test sentences, and N denotes the number of those sentences. The subscript test identifies the split being averaged. This mean gives each sentence one length observation. DUG likewise gives each sentence one membership decision, while LAS evaluates individual attachments. The resulting quantities summarize the same evaluation material at different levels.

How the replication measures and tests structural overlap The steps in order.

#### Reproducing the statistical comparison

The first analysis uses the earlier CoNLL data and the earlier assignment of treebanks to cross-validation folds. The prediction target is the treebank's LAS. Candidate explanatory variables include training size, DUG, and mean test length. The authors examine training size by itself, add DUG or mean test length individually, and also consider all the variables together. This distinguishes the performance of a simple baseline from the performance of fits that have access to additional information.

In the three-fold evaluation, the statistical fit is estimated from some treebanks and assessed on the others. The process moves the held-out role across the folds. A seed determines how treebanks are shuffled before partitioning. Using the original seed allows the authors to reproduce the original comparison. Repeating the process with different seeds lets them see how much the reported result depends on that particular partition. All of this takes place after the parsing scores have been obtained. Moving a treebank between regression folds does not change the treebank's sentences or the parser's output.

The reported statistic for these comparisons is explained variance, which the paper denotes by η². It concerns how well the regression predicts variation in LAS across the held-out treebanks. It is a different quantity from the attachment scores being predicted. The paper treats a negative evaluation value as evidence that the fit failed on the held-out data. With a small treebank sample, different fold assignments can change which combinations of training size, sentence length, and overlap the fit sees and which combinations it must predict.

The authors also inspect the measurements directly and compute Spearman's ρ. The symbol ρ here denotes rank correlation. It measures whether treebanks that rank high on one quantity tend to rank high or low on another, without requiring that the raw measurements fall along a straight line. A positive coefficient means that the rankings tend to move together, and a negative one means that they tend to move in opposite directions. The accompanying p-value assesses the evidence for an association under the statistical test used in the paper. It serves a different purpose from the explained variance of a held-out regression.

The comparison between LAS and training size motivates another version of the regressions. The authors replace raw training size with its logarithm. This changes the scale on which training size enters the fit, allowing a given addition to the number of sentences to have a different role at the small and large ends of the dataset. They carry the same families of predictor choices into this analysis and repeat cross-validation with different shuffles, so the transformation can be evaluated alongside the contributions of DUG and test length.

#### Comparing sentences of the same length

An overall DUG value compresses the behavior of many sentence lengths into one fraction. For the length-binned analysis, the authors instead take the training sentences of a given length and the test sentences of that same length within each treebank. They calculate the overlap from these subsets and pair it with the LAS on the corresponding test sentences. Repeating the procedure for different lengths produces comparisons in which a short sentence and a long sentence never contribute to the same measurement.

For DUG, discarding training trees of other lengths clarifies the pool of possible matches. Those trees could never be isomorphic to a test tree of the chosen length, since they contain a different number of tokens. The accuracy side changes as well, because the score is now evaluated on a specific set of test sentences. A point in a length-specific plot therefore represents the overlap and accuracy of one treebank at that length. It no longer describes the treebank's test set as a whole.

The authors then construct focused DUG. It uses the same definition of coverage but restricts the training and test material to sentences of length 9 to 14. This creates one focused overlap value for each treebank, distinct from each of the individual length-bin values. The individual bins help identify the lengths at which overlap varies across treebanks. The focused measure takes those informative lengths together and asks how the resulting treebank-level statistic behaves in the broader comparison with LAS. Total training size can still differ across treebanks, and so can the number of training examples available within the focus range.

#### Adjusting the observed scores

The paper uses two procedures to examine the contribution of DUG after taking the covariants into account. One removes fitted background patterns from LAS by successive division. In the illustrated analysis, the authors first fit LAS against the logarithm of training size. They divide each score by the value predicted from size. The resulting quantity expresses observed accuracy relative to the level fitted for that treebank's training size.

```
A_size = A / B_size
```

A is the observed LAS for a treebank. B_size is the background value of LAS predicted by the training-size fit. A_size is the resulting size-adjusted score. The subscript size identifies the quantity used for the adjustment. The operation compares an observed value to its fitted baseline by dividing the former by the latter.

Next, the authors fit the size-adjusted score against mean test sentence length. They divide the size-adjusted observations by the values from this second fit and examine the association between the resulting quantity and DUG.

```
A_both = A_size / B_length
```

A_both is the score after both adjustments. A_size is the observed LAS already divided by the fitted size background. B_length is the value predicted for A_size by the fit using mean test length. The subscript length identifies the second background, and both identifies the result of applying the adjustments in sequence. Although the paper describes this analysis as removing background signals, the reported operation uses ratios.

The second procedure reports partial Spearman correlations. These estimate the rank association between DUG and LAS when allowing for training size, mean test length, or both. The separate adjustments are informative because the covariants have different relationships with overlap. An association can change after allowing for training size and then change again after accounting for test length. The partial correlations address this issue through a different statistical calculation from the successive division of scores.

#### Building a comparison with size and length fixed

The final analysis changes how the parsing datasets are formed. The authors select treebanks with over 1200 sentences of length 12 and pool the eligible sentences within each selected treebank. For each treebank they randomly sample a single training set of 1000 sentences. They form test sets of 200 sentences from the available material, making as many sets as the data for that treebank allow. Every example used in this analysis is of length 12.

They train UDPipe 1.2 for the new training subsets using its standard settings. The surrounding comparisons could use existing trained parsers, but the resampling experiment needs new training runs because it deliberately changes the sentences available for learning. The authors explain that UDPipe 2.0 was available to them through existing trained versions and they use UDPipe 1.2 for this experiment. [UDPipe](https://md.research.elamur.ai/free/en/papers/straka-2016-udpipe-trainable-pipeline-processing-conll/)

The new partitions leave room for DUG to vary even though their sizes and sentence lengths are fixed. Different treebanks can offer different sets and frequencies of shapes, and the particular sentences sampled determine which shapes appear on each side of the split. Each test set yields a structural overlap value against its treebank's sampled training set and an LAS from the parser trained on that set. The rank correlation evaluates whether the resulting comparisons show higher scores when more test trees have shapes represented in training. The experiment fixes the quantity and length of the examples while letting overlap arise from the sampled data.

### Experiments and results

#### The parsing data and the statistical baselines

The reproduction begins with 33 Universal Dependencies treebanks from the CoNLL 2018 shared task. For each treebank, the LAS comes from the highest-scoring system for that treebank. The particular winner can vary, although the paper describes the systems as variations of the same biaffine graph-based parsing approach. This means the original observations combine treebank-level evaluation results chosen under a shared-task ranking. The replication compares them with observations obtained using specified parsing systems. [Deep Biaffine Attention for Neural Dependency Parsing](https://md.research.elamur.ai/free/en/papers/dozat-2016-deep-biaffine-attention-neural-dependency/)

The expanded analysis uses 94 treebanks with UDPipe 1.2 and 90 with UDPipe 2.0. The UDPipe 1.2 comparison uses trained releases 2.4 and UD v2.5 data. The UDPipe 2.0 comparison uses trained releases 2.6 and UD v2.7 data. UDPipe 1.2 is transition-based and UDPipe 2.0 is graph-based. The authors attribute the smaller UDPipe 2.0 collection to difficulties processing larger files through its web-based service. Both expanded comparisons ask the same question about variation in LAS, but the parser and the data release differ between them.

The central baselines operate at the level of the statistical analysis. Training size alone is the simplest predictor of treebank LAS. Adding DUG tests whether structural overlap helps beyond that baseline. Adding mean test length instead tests whether the composition of the test sets, described through their average length, helps. Including both additions tests whether the fit benefits from having both kinds of information available. The paper also compares raw and logarithmic training size, ordinary and focused overlap, and several ways of accounting for the covariants.

These comparisons report three kinds of outcomes. LAS is the parsing score that the authors are trying to explain. Explained variance assesses regressions evaluated on held-out treebanks. Spearman's ρ quantifies a relationship between ranks, whether for the whole treebank comparisons, adjusted comparisons, or the resampled experiment. The main empirical results concern differences in these statistical relationships. The parser is being used to study conditions of evaluation, instead of being redesigned to produce higher attachment scores.

#### How much depends on the fold assignment?

On the original CoNLL data and the original fold assignment, the explained variance is 0.014 for training size alone and 0.228 for training size with DUG. The fit using training size and mean test length reaches 0.195. The corresponding fit using all the variables gives -0.078. The authors recover the earlier values for the settings that can be reproduced directly. They flag the mean-length result as an exception, since the original work appears to have normalized that measure.

On the expanded data, the same original-setting comparison does not reproduce the advantage of adding DUG. For UDPipe 1.2, the explained variance is 0.100 for training size alone, 0.061 with DUG added, and 0.169 with mean test length added. For UDPipe 2.0, the corresponding results are 0.060, 0.097, and 0.146. The comparison with mean test length exceeds the comparison with DUG for both UDPipe collections in this initial specification.

Repartitioning the treebanks brings out a different weakness in the original comparison. Over 10 seeds, the CoNLL fits with raw training size give negative mean explained variance. For instance, the fit pairing size with DUG returns -0.004, and the fit including all variables returns -0.413. For UDPipe 1.2, the size-and-DUG regression gives -0.553 under this averaging procedure. UDPipe 2.0 has some positive results, including 0.091 with size and DUG and 0.140 with size and mean test length. Across the collections, the failures are frequent enough that the result from the original CoNLL partition carries little weight by itself.

The comparison across seeds is a test of the regression evidence. The LAS observations and the DUG measurements are unchanged as the treebanks move between folds. An apparent advantage that depends on the fold assignment thus speaks to the stability of the statistical fit. The authors connect this instability to the small original sample. A favorable partition can make an explanatory variable look useful even when other partitions give very different evidence about it.

#### What the measurements show before regression

Measured directly across treebanks, DUG has Spearman correlations with LAS of -0.13 for CoNLL, -0.13 for UDPipe 1.2, and -0.18 for UDPipe 2.0. The respective p-values are 0.458, 0.213, and 0.083. These are weak negative estimates in a study motivated by the possibility that structural familiarity would accompany higher accuracy. The p-values give little support for a raw association of DUG with LAS in these collections.

Training size shows clearer positive rank associations with LAS. The coefficients are 0.46 for CoNLL with p = 0.007, 0.54 for UDPipe 1.2 with p \< 0.001, and 0.37 for UDPipe 2.0 with p \< 0.001. Mean test length has positive raw coefficients as well, including 0.35 for UDPipe 1.2 and 0.33 for UDPipe 2.0, both with p = 0.001. Those are comparisons of aggregate quantities across treebanks. A treebank with longer test sentences on average can have a higher overall score for several reasons, so these positive coefficients do not establish that lengthening an individual sentence makes its dependencies easier to predict.

The strongest raw relationships involving DUG concern the covariants themselves. DUG's correlation with mean test sentence length is -0.96 for CoNLL, -0.91 for UDPipe 1.2, and -0.92 for UDPipe 2.0, each with p \< 0.001. The negative sign is important. Treebanks with longer test sentences on average tend to have lower structural overlap. With training size, the DUG coefficients are positive at 0.44, 0.42, and 0.46 for those respective collections. Greater exposure to training sentences and shorter test material both accompany greater overlap in the observed comparisons.

These correlations also help explain why the original regression setup struggles. Rank correlation can register a consistent relationship between training size and LAS even if the raw values are poorly suited to a straight-line fit. The paper's plots suggest that a logarithmic scale better represents the relationship. This gives a way to improve the size baseline without adding a new candidate explanation for parsing accuracy.

#### Comparing predictors on a logarithmic size scale

Using log training size and averaging across 10 cross-validation shuffles produces better fits than the raw-size setup generally did. For UDPipe 1.2, log size alone reaches an explained variance of 0.319, increasing to 0.410 with DUG or 0.452 with mean test length. Giving the fit both additions yields 0.412. For UDPipe 2.0 the same comparison favors adding mean test length, as shown below.

Explained variance for predicting UDPipe 2.0 LAS on UD v2.7 treebanks Mean test length gives the strongest fit when added to log training size.

**The numbers**

| System or setting | Explained variance |
| --- | --- |
| Log training size | 0.126 |
| Log training size and DUG | 0.277 |
| Log training size and mean test length (this paper) | 0.294 |
| Log training size, DUG, and mean test length | 0.229 |

The smaller CoNLL collection gives a different ordering. Log size alone yields 0.055. Its explained variance is 0.132 with DUG added and 0.106 with mean test length added. The fit including all variables returns -0.184. This preserves a setting in which DUG is the stronger of the individual additions, even after the size transformation. It also shows that taking all the measured variables together does not yield a stable improvement in that collection.

There is an important distinction between comparing DUG with a size-only baseline and assessing its contribution once mean test length is also available. In the log-size regressions, DUG can help compared with log size alone. Yet adding it to a fit already using both log size and mean test length lowers held-out explained variance in these comparisons. As a result, the regression evidence for DUG depends on which covariants the baseline already supplies. A positive comparison with a restricted baseline is compatible with little additional explanatory value once length is included.

#### Where overlap has room to vary

The length-binned plots use the UDPipe 2.0 results on 90 treebanks from UD v2.7. The paper illustrates the pattern at sentence lengths of 5, 12, and 21 tokens, and the appendix gives bins from length 3 to 30. For sentences with 5 tokens, DUG is nearly always near 1.0. The paper gives 9 as the count of possible unlabeled tree shapes at that length. For sentences with 21 tokens, overlap is generally near 0.0, and the paper gives 35,221,832 as the number of possible shapes.

The two extremes make the statistic hard to interpret as a general explanation for accuracy. If nearly every test tree in a bin has a match, the overlap fraction scarcely varies across treebanks, leaving it little scope to track accuracy differences there. If almost none has a match, quite different treebanks can again have similar overlap values. The lack of exact matches at long lengths leaves open how much of each test tree resembles pieces of trees in training. DUG records a match only when the whole directed shape qualifies.

In the bins from length 9 to 14, overlap has an appreciable spread. The authors describe the relationship with LAS in this range as broadly linear. When they pool the range into focused DUG, its raw rank correlation with treebank LAS is 0.47 for UDPipe 1.2 with p \< 0.001 and 0.31 for UDPipe 2.0 with p = 0.003. These positive correlations give a sharper view of where overlap can be informative than the negative raw correlations obtained from complete test sets. At the same time, the focused statistic correlates with training size at 0.91 for both parser collections, with p \< 0.001 in each.

The focused regressions compare how much predictive information survives that change of measurement. For UDPipe 1.2, adding full DUG to log size gives 0.410 in explained variance, while adding focused DUG to log size gives 0.331. For UDPipe 2.0, the corresponding values are 0.277 and 0.147. Each focused variant improves on the respective log-size-only baseline. Neither focused variant reaches the fit using mean test length with log size. When training size and test length are both included, adding focused DUG gives 0.406 for UDPipe 1.2 and 0.265 for UDPipe 2.0. These values remain below the size-and-length baselines of 0.452 and 0.294.

The effect of focusing thus depends on the quantity under examination. It strengthens the raw association of overlap with LAS and exposes variation hidden at extreme lengths. In regression, replacing ordinary DUG with focused DUG weakens the fits that supplement size alone. For the fit using all variables, the focused measure gives a lower result for UDPipe 1.2 and a higher result for UDPipe 2.0 than the corresponding fit using ordinary DUG. Across those variants, mean test length remains the more useful addition to log size for the UDPipe collections.

#### What remains after adjustment

The successive adjustment illustrated for UDPipe 2.0 begins at a raw DUG–LAS rank correlation of -0.18 with p = 0.083. Once LAS is divided by the fitted training-size background, the DUG coefficient is -0.40 with p \< 0.001. At the same stage, the size-adjusted scores correlate with mean test length at 0.465 with p \< 0.001. After the authors account for the length background as well, the association between DUG and the adjusted scores is 0.01 with p = 0.926. The fitted line in the final comparison is essentially flat.

The partial rank correlations offer a parallel comparison. After accounting for both training size and mean test length, the DUG–LAS coefficient is -0.27 for CoNLL with p = 0.126, 0.01 for UDPipe 1.2 with p = 0.915, and -0.12 for UDPipe 2.0 with p = 0.245. The CoNLL estimate is more pronounced and points in the opposite direction from the proposed familiarity benefit. Neither UDPipe estimate offers much evidence for a positive independent relationship. These are adjustments to ordinary treebank observations, so the authors then examine an experiment where the two covariants are held fixed by construction.

#### What changes in the fixed-length experiment

The resampling experiment has enough material from 9 treebanks. Each supplies a training sample of 1000 sentences of length 12, and each test set contains 200 sentences of that same length. The test sets yield DUG values in the range 0.6 - 0.9. Overlap therefore varies meaningfully even among comparisons that use the same number of training and test sentences and the same number of tokens per sentence.

For the newly trained UDPipe 1.2 parsers, the Spearman correlation between DUG and LAS is 0.82 with p \< 0.001. The coefficient describes the ordering of the sampled test sets. Those with greater coverage of their directed tree shapes in training tend to obtain higher accuracy. It is a rank relationship, so it does not give an expected change in LAS for a specified change in DUG. Compared with the aggregate analyses, the experiment provides evidence for the association under a particular combination of parser, sentence length, training size, and selection of treebanks.

### What the ablations show

The paper tests the explanation of parser performance through changes to the predictor set, the statistical scale, the sentences measured, and the construction of training and test splits. The parsing architecture is not broken into components for removal. The controlled comparisons instead ask what happens to the evidence for overlap when other sources of variation are exposed, adjusted for, or fixed.

#### A stronger baseline changes the comparison

The original regression treats raw training size as the baseline and adds one candidate predictor at a time. In that setup, a variable can look useful in part because the size term describes the relation between data availability and accuracy poorly. Comparing raw and logarithmic size while keeping the other predictor choices recognizable tests this possibility. The improved behavior of the fit after the transformation makes the form of the size relationship part of the empirical explanation for why the earlier analysis was fragile.

Adding DUG and adding mean test length ask different questions of that baseline. DUG describes a joint property of the two splits. Mean test length describes just the test split, but it tracks a strong determinant of how likely exact tree-shape matches are. When both variables are available, the fit receives two summaries that are closely associated. The relevant comparison for incremental predictive ability is therefore between the size-and-length fit and the fit with DUG added to those same predictors. Even when DUG beats the size-only baseline, the results of the larger comparison give little support for that increment.

The randomization of the regression folds tests a different component of the evidence. It asks whether a particular ordering of settings can be reproduced under other assignments of the same treebanks to training and evaluation. The repeated partitioning is especially revealing for the original size-and-DUG result, since no change to structural matching is needed to weaken it. The effect belongs to how the relationship is estimated and evaluated. The extended datasets then test whether that original advantage is visible in collections that use a fixed parser version within each analysis.

#### Focusing overlap trades one dependency for another

Length binning shows where the aggregate statistic comes from. Short and long sentences often contribute nearly fixed outcomes in opposite directions. When most of the short test trees match and most of the long ones do not, moving from one treebank's length mix to another can alter total DUG even if the intermediate-length behavior is similar. Focusing on the range where overlap varies reduces the influence of this saturation. It also concentrates the comparison on sentences for which having more training examples may have a substantial effect on whether a shape is covered.

The focused measure has weaker correlations with mean test length than full DUG. Those correlations are 0.32 for UDPipe 1.2 with p = 0.002 and -0.34 for UDPipe 2.0 with p = 0.001. At the same time, the measure is closely aligned with training size. Its positive raw relation to LAS therefore cannot by itself identify a contribution of structural overlap beyond the supply of training sentences. The appendix probes this through separate and joint adjustments.

With training size accounted for, the partial correlation of focused DUG with LAS is -0.15 for UDPipe 1.2 with p = 0.153 and -0.10 for UDPipe 2.0 with p = 0.335. When mean test length is the only covariant accounted for, the coefficients are 0.64 and 0.48, both with p \< 0.001. Accounting for both covariants gives 0.17 for UDPipe 1.2 with p = 0.110 and 0.04 for UDPipe 2.0 with p = 0.683. In these results, the positive relationship visible when length alone is accounted for is much weaker once training size is also included.

Explained variance for focused overlap predictors on UDPipe 1.2 treebanks Mean test length gives the strongest fit, with or without the option of adding focused overlap.

**The numbers**

| System or setting | Explained variance |
| --- | --- |
| Log training size | 0.319 |
| Log training size and focused DUG | 0.331 |
| Log training size and mean test length (this paper) | 0.452 |
| Log training size, mean test length, and focused DUG | 0.406 |

The partial correlations and the regressions answer related questions. The first assess whether a rank association remains after allowing for the covariants. The second assess whether the statistic helps predict held-out LAS together with other variables. In the focused comparison, narrowing the definition of overlap improves its usefulness for seeing the pattern in the data. Its value as an added predictor remains limited. The result separates the ability to measure variation in overlap from the ability to explain a separate quantity once the relevant background information is available.

#### The association depends on which covariant is accounted for

The full-DUG partial coefficients show why accounting for a single covariant can give an incomplete picture. With training size accounted for, the DUG–LAS association is -0.44 in CoNLL with p = 0.010, -0.50 in UDPipe 1.2 with p \< 0.001, and -0.46 in UDPipe 2.0 with p \< 0.001. When the only covariant accounted for is mean test length, the coefficients are 0.18, -0.13, and 0.21 for those same collections. The UDPipe 2.0 value in the latter comparison has p = 0.049. The result changes with the choice of adjustment, including a reversal of sign for UDPipe 2.0.

This pattern is consistent with the covariants carrying different information. Training size has positive associations with DUG and with LAS. Adjusting for it can expose a stronger negative component in their relationship. Mean test length has a strongly negative association with DUG and contributes a different pattern to the observed scores. In the successive adjustment, the negative association after the size correction accompanies a positive association with test length. Allowing for the length pattern then leaves very little association with DUG in the UDPipe 2.0 comparison. The paper's two adjustment procedures make this dependence on the joint treatment of the covariants visible in different ways.

#### Fixed splits address a different comparison

The resampled experiment uses a design in which size and length cannot vary across the comparisons. The length-binned analysis had already aligned test sentences by length, but each treebank could still supply very different amounts of training material. In the controlled experiment, the parsers receive the same number of sentences, all of the same length. Variation in DUG is then possible through the distribution of shapes and the particular composition of the sampled splits. The positive association is observed in that restricted comparison.

The fixed-split result and the adjusted aggregate result operate at different resolutions. The aggregate result asks whether DUG helps explain scores across existing treebanks with their ordinary distributions. The resampling result asks whether overlap and accuracy move together across test sets constructed within tightly matched conditions. A strong relationship in the latter can coexist with a weak relationship in the former. The design gives empirical support to a claim about structural familiarity in a defined setting, while the broader comparisons establish how readily that relationship can disappear in treebank-level summaries.

### Limitations

#### Limits the authors identify

The paper identifies the original sample and the sensitivity to cross-validation partitions as central limitations of the earlier result. The reproduction uses the same 33 treebanks before expanding to the UDPipe collections. The apparent advantage of DUG can be recovered under the original partition, yet the results across different shuffles show that this particular estimate is unstable. The authors also distinguish a strong rank association involving training size from the poor behavior of some linear fits. How a variable enters a regression affects the comparison drawn from it.

The authors give a practical limit on the expanded data. The web-based UDPipe 2.0 setup had problems with larger files, producing a smaller comparison set than that for UDPipe 1.2. The two collections also use different UD releases and parser versions. Their results can show whether an empirical pattern appears in more than one parsing setup. A difference between them cannot be attributed uniquely to the choice of parsing algorithm, because other parts of the comparison differ as well.

The controlled experiment has a narrower coverage limit. Finding enough examples at one fixed length leaves 9 usable treebanks, and the trainable parser used for the new splits is UDPipe 1.2. The result applies to sentences of length 12 with the reported sample sizes. The authors choose a length within the part of the distribution where the earlier binning analysis shows meaningful variation in overlap. The extreme short and long bins offer much less room for the same test of association because DUG is usually near its upper or lower bound there.

#### What follows from the setup

The controlled experiment fixes important covariants while varying DUG indirectly. Each treebank can still have its own mix of words, dependency labels, and grammatical patterns. A test set with higher overlap may differ from a lower-overlap set in other ways that matter for parsing. Even within a treebank, randomly formed test sets can differ in their composition. The experiment shows what accompanies greater overlap under fixed size and length. It does not isolate the effect of changing only overlap while holding every other property of the training and test data constant.

The unit of observation matters for interpreting the controlled correlation. Each point pairs a test-set overlap fraction with a test-set LAS. A treebank supplies one sampled training set and can supply multiple test sets. Comparisons from the same treebank can therefore share a trained parser and its exposure to the same training structures. The reported correlation describes the resulting collection of test-set measurements. It does not on its own establish whether the association is equally strong within each treebank or how much of it comes from differences between treebanks.

There is a similar distinction between test-set correlation and performance on individual sentences. One way two test sets could differ is in the fraction of sentences with familiar shapes. Their LAS values also depend on how the predicted attachments are distributed across all scored words. Comparing these aggregates leaves open whether most of the score difference comes directly from sentences with matching full shapes, from other properties of the test sets, or from some combination. The paper evaluates structural coverage as a diagnostic at the dataset level and within length bins. The correlation coefficients do not provide a separate accuracy estimate for each of those mechanisms.

DUG's definition also limits the kind of familiarity it measures. It records exact matches at the level of the whole directed, unlabeled shape. A long test tree can contain many local arrangements encountered in training while still counting as unmatched. A short test tree can match a training shape even if its words, edge labels, or linear arrangement present unfamiliar choices. The near absence of full matches for longer sentences thus says something specific about the statistic. It gives no estimate of how often their smaller structures recur. Likewise, frequent full matches at short lengths do not guarantee correct labels or attachments.

Calculating DUG for a test set requires its reference trees. The paper uses it to explain results where those trees are available. Applying the same diagnostic to unannotated text would require some other way of obtaining the structures, and the paper does not test such an application. Its cross-validated predictions concern treebank-level LAS with predictors already measured. They do not establish how accurately a system could predict its own success on a new collection before the reference syntax is known.

Finally, partial correlations and fitted background adjustments are tied to the covariants and the forms of adjustment used. The agreement between the analyses supports the conclusion that ordinary treebank comparisons offer little evidence for an independent positive DUG–LAS relationship after accounting for training size and test length. That conclusion concerns the observed data and measurements. It leaves room for other aspects of structural similarity, for different training regimes, and for comparisons in which the relevant sources of variation can be held fixed more closely.

### What came after

A documented line of follow-up work on this replication has yet to be established. The paper itself ends by distinguishing the findings that survived replication from questions that remain open. The earlier treebank-level result was sensitive to the statistical setup. The new analyses locate the sentence lengths where overlap can vary enough to study and show that a strong association can emerge when training size and sentence length are fixed.

That distinction defines the scope of the finding available for subsequent research. One open question is how far the controlled association extends beyond the treebanks, parser, and sentence length used in the experiment. Another is whether the recurrence of smaller dependency structures can account for accuracy where exact tree matches are rare. The paper's evidence establishes the behavior of whole-tree overlap in the comparisons it performs and leaves those broader questions unresolved.

## Cite

Cite as Mark Anderson, Anders Søgaard and Carlos Gómez-Rodríguez. 2021. Replicating and Extending “Because Their Treebanks Leak”: Graph Isomorphism, Covariants, and Parser Performance. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2021.acl-short.138](https://doi.org/10.18653/v1/2021.acl-short.138)

```bibtex
@inproceedings{anderson2021replicating,
  title = {{Replicating and Extending “Because Their Treebanks Leak”: Graph Isomorphism, Covariants, and Parser Performance}},
  author = {Mark Anderson, Anders Søgaard and Carlos Gómez-Rodríguez},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)},
  year = {2021},
  doi = {10.18653/v1/2021.acl-short.138},
  url = {https://doi.org/10.18653/v1/2021.acl-short.138}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
