Elamur Research

How (not) to train a dependency parser: The curious case of jackknifing part-of-speech taggers

Paper · 2017 · Željko Agić and Natalie Schluter

Summary

A parser can learn from sentences whose grammatical categories were assigned by hand, then spend its working life reading categories supplied by a fallible tagger. A wrong category can change which word the parser treats as the head of another word. Agić and Schluter ask whether exposing the parser to automatic tags during training helps it recover the intended structure at test time. That question connects dependency parsing to the quality of its upstream input, part-of-speech tagging.

A common way to produce automatic tags for training is to have taggers take turns predicting different portions of an annotated collection. Each tagger learns outside the portion it predicts. The parser then trains on the assembled predictions alongside the original dependency annotations. This procedure is called jackknifing. In the authors’ survey of 70 parsing papers that used it, ∼80% chose ten folds. The paper replaces the fold count with direct control over the share of sentences used to teach each tagger. This variant, linear jackknifing, can generate substantially weaker training tags while still preparing the complete collection for the parser.

The authors test parsing across 26 languages. For monolingual parsers evaluated with fully supervised taggers, the best settings of either jackknifing procedure average 80.8 in unlabeled attachment score, which checks whether a token is attached to the right head. With less accurate runtime tags from cross-language annotation projection, ordinary jackknifing averages 64.7 at its best settings and linear jackknifing reaches 68.6. Manual training tags yield 60.6 in that condition. The strongest result, 75.4, comes from using projection-based taggers to supply POS on both sides of the monolingual experiment.

Training on one language and parsing another without word forms changes the outcome. Under this kind of transfer, projected tags on the source training data offer no clear overall advantage. With the primary parser, manual source tags give slightly stronger averages, and the preferred preparation varies by target language. A check with a different parser favors manual source tags more clearly. The results make the choice of preparation depend on the tags expected at runtime, how much data is available to train a tagging system, and whether the parser is learning within a language or transferring across languages.

Deep dive: How (not) to train a dependency parser: The curious case of jackknifing part-of-speech taggers

Agić and Schluter test when predicted part-of-speech tags help train dependency parsers and how linear jackknifing changes the results. · about 33 minutes to read

The problem and its context

Where the mismatch enters

A dependency parser assigns heads to words. In a simple clause, for instance, a noun might attach to the main verb, while a word that describes the noun might attach to the noun itself. The parser has to decide which of the possible connections fits the sentence. A part-of-speech tag is a compact piece of evidence for that decision. It says how a word is being used in its current context. A familiar word with several grammatical uses can therefore carry different tags in different sentences.

Grammatical category and dependency head answer separate questions. A category can help narrow down a plausible head, while the head identifies the particular word to which the token connects. This distinction is what makes the paper’s experiment possible. The authors can change the category supplied as evidence and still ask the parser to learn the very same attachment. A sentence with a mistaken automatic tag can continue to provide a correct example of its syntax. Both layers are forms of linguistic annotation.

In an annotated collection for parser training, the category and the head typically come from manual work. During use, a tagger assigns the categories to new text, and the parser receives its output. A parser trained on the original annotations can therefore learn associations under cleaner conditions than the ones in which it must apply them. The paper points to domain changes as one reason tagging degrades. A tagger trained on one kind of material may do worse on another, and the authors describe parsing quality as falling along with tagging accuracy.

Imagine that a training collection consistently marks a word as a verb in contexts where it governs other words. A parser can learn to treat that tag as evidence for a connection. If the tagger assigns a different category to a similar word at runtime, the connection has lost a piece of its usual support. Providing examples of such mismatches during parser training could change how the parser balances that cue against the other information available. How much that helps is a question for parsing scores. The example explains why altering a training feature can matter even when the target syntax stays fixed.

The manually annotated collections used for this purpose are called treebanks. They make it possible to study the problem with the same sentences at each stage. The category annotations can teach a tagger or serve as a reference for judging its predictions. The dependency annotations provide the parser’s training targets. Keeping track of those roles matters because the word training applies to both components. A sentence can be withheld from a particular tagger and still supply an example to the parser later.

Why folds were attractive

Jackknifing already had meanings outside parser preparation. The paper traces the term to a leave-one-out approach to reducing bias in estimation. It also notes its use for cross-validation, where predictions made on held-out examples support an estimate of predictive performance. In the parsing literature discussed here, the held-out predictions have an additional job. They become inputs to a downstream learner. Once they have been collected across the training treebank, they supply the POS layer from which the parser learns.

This arrangement uses the existing annotations efficiently. Each portion can contribute to teaching a tagger on some passes and receive predictions on another. The separation that matters is local to the pass that produced the tags. A tagger predicts a portion from which its own training examples were excluded. The finished parser then has a full set of training sentences with automatically assigned categories and their annotated heads.

The conventional choice of ten folds has a possible explanation in the paper’s discussion of WSJ data. The authors point out that the choice gives roughly similar tagging accuracy in training and testing for that material, and suggest that this may be where the convention began. A correspondence on that corpus supplies a reason for that particular use. Other collections bring their own amount of annotated material and their own expected quality of runtime tagging. A fixed fold count ties the preparation to a fraction of the local corpus, even when the tagging conditions of interest vary widely.

The authors’ concern is about what happens when a convenient way of partitioning sentences comes to stand in for an adaptation decision. The choice of folds determines how much information is available to each tagger. It leaves the anticipated runtime accuracy implicit. A researcher could follow the same precise preparation in two studies and create parser inputs of quite different quality. Conversely, moving among several large fold counts within one study could make very little difference to the tagging conditions the parser sees.

What earlier comparisons had found

The earlier studies discussed by Agić and Schluter give several reasons to expect the effect to depend on the experiment. Che and colleagues compared automatic and manual training tags in Chinese constituent and dependency parsing, and found that the change benefited one parser and hurt another. Seeker and Kuhn discussed how jackknifing could bring training and testing closer together and tried 5 and 10 folds. These were comparisons within particular investigations. The paper treats them as evidence that the question merits attention in its own right.

Honnibal and Johnson briefly considered jackknifing alongside joint learning and preferred the latter for its simplicity. Joint learning represents a different way of handling related decisions, by learning them together. The distinction matters to the paper because the preprocessing procedure under study adds tagging jobs before parser training. A plausible account of why it could help leaves open whether that extra work yields better attachments. Honnibal and Johnson’s transition-system paper

The authors also describe a line of work using ten folds for Chinese and English. Kong and colleagues followed Zhu and colleagues’ preparation and cited gains of 2.0% and 0.4% in that context. Yet the paper reports a harmful effect when parsers trained with jackknifing were used for tree conversion. That observation broadens the reason for caution. The effect of changing parser training can depend on what the resulting parser is asked to support. Zhu and colleagues’ work on shift-reduce constituent parsing

These accounts set up two comparisons. The first concerns the strength of the tags used for training a parser within a language. Fully supervised tagging and projection-based tagging give the authors different conditions against which to judge preparation. The second concerns transfer between languages when the parser works without word forms. In that setting, the source treebank and the target sentences already differ by language, and bringing their tag sources closer together is only one possible change to that relationship.

The method, step by step

Give the parser new inputs and retain its targets

Start with a collection of sentences whose categories and dependency heads are annotated. To prepare it by jackknifing, the authors use the category annotations to teach taggers on selected sentences. Each tagger predicts categories for other sentences. Once every sentence has been tagged, the predicted categories go into parser training alongside the original head annotations. A prediction can disagree with a manual category while the correct attachment remains available as the example the parser is supposed to learn.

This preparation covers the collection. The smaller training sets discussed in the paper belong to the taggers. The parser still gets the sentences whose tags those smaller training sets helped produce. This distinction matters most at the low end of the linear sweep. A small value there means the tagging component has comparatively little supervision on each pass. The parser can still consult syntactic examples from throughout its training treebank.

Ordinary jackknifing begins by dividing the sentences into equal, disjoint folds. One fold at a time becomes the group to predict. The other folds teach the corresponding tagger. This is repeated until each group has its predicted tag sequence. A fold is a block of sentences, so the division keeps a sentence together as an example for training or prediction.

The share available to each ordinary jackknife tagger follows directly from the division.

f(n) = (n − 1) / n

Here, (n) is the number of folds and (f) is the function giving the fraction of the treebank used to train each tagger. The symbol 1 counts the single fold held out on a pass. Subtracting it from n leaves the number of training folds. Division by n expresses that count as a fraction of the whole, and = states the relationship between the function and the fraction.

At the smallest usable count, n = 2, there is a half for teaching the tagger and a half for predicting. As more folds are used, each withheld group gets smaller, and a larger share of the corpus becomes available for teaching. This progression approaches the full training collection quickly. Adding folds when the count is already large changes the available share much less than adding folds near the low end. Experiments that vary only this count spend much of their range on taggers trained with most of the sentences.

The other side of the calculation is the share predicted by each tagger under ordinary folding.

1 / n

The 1 refers to the one group being tagged and n to all the equally sized groups. The slash gives that group’s share of the treebank. In ordinary folding, the size of this prediction group fixes the amount of material remaining for training. Linear jackknifing retains the exclusion between the two groups and gives the researcher a separate decision about the size of the training sample.

Choose the amount of tagging supervision directly

The paper calls the extension linear because the experiment specifies the fraction of available sentences directly. This makes it possible to move through the training shares in equal increments. The name describes the parameterization. The relationship between the share and tagging accuracy is measured empirically.

p ∈ (0, 1)

The symbol p is the fraction of the parser-training collection used to train a tagger for one withheld group. The membership sign ∈ places it inside the open interval (0, 1). The lower endpoint 0 represents no training sentences, and the upper endpoint 1 represents the entire collection. The parentheses indicate that the endpoints are excluded. The experimental settings express the same fraction as a percentage.

Call the full shuffled training set D. Once the authors have chosen p, the remaining share sets the approximate limit on the size of a group that can be predicted on a pass. A withheld group needs to leave some other sentences available, and the desired size of the training sample determines how much room it needs to leave. The paper gives the maximum size in ceiling form.

⌈∣D∣ ⋅ (1 − p)⌉

D stands for the full collection and the vertical bars in ∣D∣ give its size in sentences. The 1 represents the whole share, and 1 − p is the fraction left after reserving the intended training share p. The centered dot multiplies this fraction by the collection size. The ceiling brackets, ⌈ and ⌉, round the result upward to a whole number of sentences. The authors describe the allocation of group sizes and training samples approximately because sentences have to be assigned in whole units.

The minimum number of taggers in the stated procedure follows from the size of the share each can cover.

⌈1 / (1 − p)⌉

Inside the ceiling, the numerator 1 represents the whole collection as a share. The denominator 1 − p is the share left after allowing for a training fraction p, and the slash divides the whole by that share. The brackets again round up. The resulting count tells the authors how many withheld groups they need to cover the data with the corresponding taggers. A group of predictions can be large when the tagger needs only a small training share. Reserving more of the collection for tagging supervision leaves each pass a smaller group to predict.

After shuffling D, the authors partition it into withheld groups of approximately the size implied by the chosen share and group count. They then return to the rest of D for each group and randomly draw the tagger’s training sample. The target sample size is expressed as follows.

⌈p ⋅ ∣D∣⌉

Here, p is the chosen training fraction and ∣D∣ is the number of sentences in the original parser-training collection. The dot multiplies the two, with the ceiling brackets expressing an approximate target in whole sentences. The draw comes from outside the particular withheld group. Sentences outside that group can remain unused on the pass when the available pool is larger than the requested sample.

This difference between the sampling pool and the actual sample is the source of the extra control. Ordinary jackknifing has a straightforward instruction for each fold: use the rest. Linear jackknifing permits a smaller draw from the rest. The tagger can face a substantial prediction group after receiving comparatively little annotated training material, and the resulting predictions can still be combined with the other groups to supply category inputs for every parser-training sentence. The authors randomize the draw to avoid building preparation around an arbitrary choice of which sentences teach each tagger.

How linear jackknifing prepares a parser-training treebank

The steps in order.

How linear jackknifing prepares a parser-training treebankStep 1: Shuffle the annotated training sentences1. Shuffle the annotated training sentencesStep 2: Set the tagger's training share2. Set the tagger's training shareStep 3: Partition sentences into prediction groups3. Partition sentences into prediction groupsStep 4: Sample training sentences outside each group4. Sample training sentences outside each groupStep 5: Train each tagger and predict its group5. Train each tagger and predict its groupStep 6: Combine the predicted POS sequences6. Combine the predicted POS sequencesStep 7: Train the parser with the original heads7. Train the parser with the original heads

The output of this procedure is one prepared corpus for the chosen share. Its tags reflect what the taggers can do with roughly that amount of evidence. Training on less data makes weaker tagging possible, and the mistakes come from the taggers’ actual decisions on held-out sentences. The parameter governs the quantity of supervision. It gives no direct instruction to confuse a particular pair of grammatical categories or place mistakes at particular positions in a sentence.

Check what the procedure does to tagging

Before interpreting parser scores, the authors compare the assembled POS predictions with the manually assigned tags. This check asks whether changing p actually produces a useful spread in the quality of the inputs. They increase the share at 5% increments, score the predictions against the reference tags in each language, and average the tagging accuracy across the 26 languages. The paper shows the resulting learning curve with 95% confidence intervals.

There are two distinct predictions at this point in the experiment. The tagger predicts a grammatical category, and the parser predicts a head. A successful sweep needs to vary the first quantity enough for the second comparison to be informative. Checking tagging performance directly also clarifies what a low share means in practice. Its value describes how much training text the tagger receives, while the resulting accuracy reveals how well it can use that information.

The authors study the downstream response separately with stronger and weaker sources of runtime tags. This gives them a way to tell whether the same movement along the tagging curve has a similar effect in both conditions. A parser’s best preparation is determined by its attachments on the corresponding test set. Training-tag accuracy provides context for that outcome.

Specify the tags available at runtime

The authors use the statistical tagger TnT. They call the predictions of the fully supervised monolingual taggers PRED. These supply the stronger runtime condition. The other source, PROJ, comes from low-resource taggers based on annotation projection. Projection lets annotation from other languages contribute supervision for the language of interest. The paper uses taggers from earlier work and the WTC data on which they were trained. Multilingual Projection for Parsing Truly Low-Resource Languages

For parser training, GOLD means the original manually assigned categories. The two jackknife procedures supply categories predicted within the parser’s training treebank. A further condition uses PROJ for parser training. This allows the authors to compare a training set prepared by deliberately limiting a supervised tagger’s evidence with one tagged by the kind of system used for the low-resource runtime condition.

In the monolingual experiment, the parser learns on an annotated treebank for the language it will parse. Its test sentences carry either PRED or PROJ categories. A GOLD entry on the training side therefore tells the reader something about the evidence the parser learned from. The tag source shown on the test side tells the reader what evidence it actually sees when it has to predict attachments.

The setup also permits a useful cross-check on the direction of adaptation. Projection-derived predictions can appear on the training side against either runtime source. That creates a comparison between training and testing with the same kind of tagging and training and testing with different kinds. The parser is scored against annotated heads in both cases. Automatic tags change what the parser sees on its way to an answer.

Change the feature set for transfer

MATE is the primary parser, a second-order graph-based system. The authors repeat their experiments with YARA, a transition-based parser that uses dynamic oracles. The primary system predicts a dependency structure using a graph-based approach. The second provides a check with a parser that builds its analysis through transitions. The paper points to the publicly available MATE and YARA code and uses default settings for both systems. Bohnet’s work on fast dependency parsing

The input representation uses fields from CoNLL 2009. ID identifies the token, FORM records the written word, POS gives its grammatical category, and HEAD supplies the head annotation for supervision. FORM is included in monolingual parsing. Cross-language transfer omits it. The resulting parser is called delexicalized because it learns and applies structural patterns without the words themselves as features. POS can still carry grammatical information across languages in this setup.

The transfer experiment compares source trees carrying their manual POS with source trees tagged using projection. Target test sentences have projected POS throughout. The dependency training targets still come from the source annotations, while the evaluation references come from the target treebank. The intervention is on the category layer of the sources. It is assessed after a parser trained there has to interpret sentences in a different language.

MULTI is the setting with multiple source languages. SINGLE reports the best individual source for the target, with the source identified alongside its score. The two settings answer different questions. Pooling sources exposes a parser to a collection of structural examples drawn across languages. The single-source result shows how well the strongest individual source found in the comparison fares. Each setting separately compares manual and projected training tags against projected tags on the target side.

Search for the best observed settings

The ordinary sweep covers the following fold counts.

n ∈ {2, 3, .., 20}

The n denotes the fold count, ∈ means that the chosen count belongs to the set, and the braces enclose the allowed choices. The two dots stand for the intervening integer values up through 20. The smallest listed count, 2, already requires training on half the treebank at a time.

The linear sweep uses this set of percentage settings.

p ∈ {5, 10, ..., 95}

In this display p is written on the percentage scale used to report the experiment. The braces group the settings, and ∈ denotes membership. The ellipsis continues the steps from 5 and 10 through 95. The method’s earlier expressions take the underlying share of the full treebank.

The authors average parsing performance over 5 runs for each setting to reduce sensitivity to random shuffling. They then report the best-scoring setting for each language and test tag source. The labels nₘₐₓ and pₘₐₓ refer to the selected fold count and training share. When multiple values give the same maximum score, the authors report the highest value. A preferred setting in the tables thus means the maximum under the tested choices and this tie convention. The table can give the same score for different preparations while reporting a particular parameter for each.

Experiments and results

The data and the meaning of the scores

The authors use treebanks from version 1.2 of Universal Dependencies. They keep languages present in both Universal Dependencies and the WTC data supporting the projection taggers. The intersection gives the 26 languages used in the study. This choice makes it possible to test supervised and projection-based tagging on the same set of languages, while the selection of languages depends on the overlap between the resources. The Universal Dependencies multilingual treebank collection

The tagging scores show the size of the difference between the runtime conditions. On the test data, the paper gives PRED accuracy as 94.1±1.1% and PROJ accuracy as 71.7±5.7%. Tagging accuracy concerns whether the assigned grammatical category agrees with its reference. These summaries describe the upstream inputs to the parse experiments. They are different measures from the downstream scores shown in the charts.

The downstream measure is unlabeled attachment score, or UAS. It asks whether the parser assigned a token its reference head. The word unlabeled means the score gives credit for choosing the correct head regardless of the name of the relation. A parser can benefit on this measure whenever it chooses the correct attachment more often, including cases in which a test sentence contains a mistaken category. The main comparisons therefore evaluate attachment under automatic tagging.

The monolingual results pair a test tag source with each of the four training preparations. The manual-tag condition supplies a baseline for what happens when the parser learns directly from the annotated category layer. The two jackknife conditions show what can be achieved by finding a favorable setting within each sweep. The projection-based preparation tests replacing the training categories with output from the projection taggers. Every row in a given chart faces the same test tag source.

Monolingual parsing with fully supervised test tags

With PRED at runtime, MATE averages 79.7 UAS when trained on GOLD POS. The best settings for ordinary and linear jackknifing both average 80.8. The authors report a gain of +1.1 UAS for these adapted preparations over the manual-tag baseline. Projection-based training is weaker in this condition, averaging 76.2 UAS.

Mean monolingual MATE UAS on 26 UD languages with PRED test tags

The strongest settings of both jackknife procedures share the highest mean.

Mean monolingual MATE UAS on 26 UD languages with PRED test tagsManual training POS: 79.7Manual training POS79.7Best ordinary jackknifing (this paper): 80.8Best ordinary jackknifing (this paper)80.8Best linear jackknifing: 80.8Best linear jackknifing80.8Projection-based training POS: 76.2Projection-based training POS76.2
The numbers
System or settingUAS
Manual training POS79.7
Best ordinary jackknifing (this paper)80.8
Best linear jackknifing80.8
Projection-based training POS76.2

The equal averages summarize separate searches. Each language can contribute its own winning share or fold count to the respective mean. Linear jackknifing is among the best training choices for 18 languages under PRED, and ordinary jackknifing is among the best for 21. The paper reports overlap on 13 languages. A method can appear among the winners for a language when it shares the highest reported score. This is why the language counts can overlap even though the methods have been trained in separate runs.

The table makes the variation in the linear choices visible. In German, the reported best p on the percentage scale is 20, giving 80.2 UAS on PRED test tags. In Danish, the selected setting is 95, giving 78.2 UAS on that language’s PRED test tags. These numbers come from different attachment tasks on different treebanks. Their value as a comparison is that very different shares can rise to the top even with the same broad type of test tagging.

Looking within individual languages also explains why the mean is a limited description of the relative success of the two sweeps. For French with PRED test tags, the best linear setting yields 81.7 UAS and the best ordinary setting yields 81.8. For Spanish in the same test condition, the corresponding scores are 82.1 and 81.8. The sign of the preference can change while both procedures remain close overall. The score for a single conventional fold count is a further question, addressed separately from the comparison of the best settings.

The poor performance of projected training in this test condition is informative alongside the jackknife gains. All these preparations offer automatic categories during parser training. Their results show that this common property is too broad to predict success. The supervised runtime condition responds well to tags made by the supervised tagger sweeps, and the substantially different projection-based preparation gives weaker attachment results than training on the manually labeled treebank.

Monolingual parsing with projected test tags

The ordering changes when the same monolingual question is asked with PROJ at runtime. Manual POS in parser training gives 60.6 mean UAS. The best ordinary settings bring the mean to 64.7, and the best linear settings reach 68.6. Using projected training tags yields the highest mean, 75.4.

Mean monolingual MATE UAS on 26 UD languages with PROJ test tags

Linear preparation leads among the jackknife settings, and projection-based training gives the highest mean.

Mean monolingual MATE UAS on 26 UD languages with PROJ test tagsManual training POS: 60.6Manual training POS60.6Best ordinary jackknifing: 64.7Best ordinary jackknifing64.7Best linear jackknifing: 68.6Best linear jackknifing68.6Projection-based training POS (this paper): 75.4Projection-based training POS (thispaper)75.4
The numbers
System or settingUAS
Manual training POS60.6
Best ordinary jackknifing64.7
Best linear jackknifing68.6
Projection-based training POS (this paper)75.4

Linear jackknifing has an advantage here even after the paper lets ordinary jackknifing use the strongest fold count observed for each language. That is important to the comparison. A difference against a single inherited setting could be explained by a poor choice from an otherwise adequate range. The best-versus-best result shows that the ordinary sweep, under the tested conditions, leaves out training shares that can produce better attachments with projected runtime tags.

The linear optima are concentrated at p = 5%. The mean selected value on the percentage scale is 5.2, and the median is 5%. Swedish has a best setting at 10 on that scale, while the other languages shown favor the bottom setting. This recurring choice gives a concrete account of why the gain appears with linear preparation. The authors have introduced candidates on a part of the tagging supervision range that ordinary folds leave inaccessible.

The projected training condition is stronger still. The authors report that it leads the best linear preparation by +6.8 UAS, the best ordinary preparation by +10.7, and manual POS by +14.8, all on the PROJ monolingual test condition. It gives the highest attachment score for each of the 26 languages. This makes the outcome about more than how weak a tagging component can become under a supervised sweep. Access to the projection-based tagger for the training treebank gives the parser a further advantage when evaluated under that kind of tagging.

Persian offers a clear illustration of the ordering. With projected test tags, the manually tagged training condition gives 25.8 UAS, the best ordinary preparation gives 35.1, and its linear counterpart reaches 46.3. Projection-based training yields 71.9. The table shows a different pattern of magnitudes in Italian. There, projected test tags yield 76.2 UAS after manual-tag training, 80.6 after the best ordinary preparation, 82.9 after the best linear preparation, and 85.5 after projection-based training. These cases share an ordering while differing considerably in how far apart the alternatives lie.

The contrast across the two runtime sources is also visible within the projection-trained condition itself. Matching that source to the projected input helps throughout the monolingual comparison. Facing supervised runtime tags instead, the same kind of training preparation is uncompetitive on the average. That pairing of outcomes points to compatibility between training input and runtime input. The experiment leaves room for several properties of the tagging errors to contribute to the compatibility.

Parsing across languages without word forms

In the transfer experiments, every target test set carries PROJ tags. The question is whether the source trees should also receive projection-based tags or retain their manual categories. MATE gives a slightly higher mean UAS with manual source tags in both transfer settings. With multiple sources, the mean is 49.4 for manual tags and 48.3 for projected tags. With the best individual source, it is 52.3 and 52.2, respectively.

Mean delexicalized MATE UAS on 26 UD target languages with PROJ test tags

Manual source tags give the higher mean within each transfer setting.

Mean delexicalized MATE UAS on 26 UD target languages with PROJ test tagsMultiple sources with projected POS: 48.3Multiple sources with projected POS48.3Multiple sources with manual POS: 49.4Multiple sources with manual POS49.4Best individual source with projected POS: 52.2Best individual source with projectedPOS52.2Best individual source with manual POS (this paper): 52.3Best individual source with manual POS(this paper)52.3
The numbers
System or settingUAS
Multiple sources with projected POS48.3
Multiple sources with manual POS49.4
Best individual source with projected POS52.2
Best individual source with manual POS (this paper)52.3

The within-setting comparison isolates the paper’s preparation question more closely than comparing the overall height of the single-source and multiple-source results. The authors report the manual-source advantage as +1.1 UAS in MULTI and +0.1 in SINGLE. In the multiple-source setting, manual preparation gives the higher result for 14 target languages and projection-based preparation for 12. The corresponding counts in the best single-source setting are 12 and 14. In that setting, the projected source condition can lead in more target languages while yielding a slightly lower mean.

The per-language scores explain why the recommendation is qualified. For Hindi as the target, the strongest individual source with manual categories yields 38.1 UAS. Using projected categories on the source side yields 31.0. Tamil is the selected source in both conditions. For French as the target, Italy’s language is the source under both preparations, and the preferred preparation reverses: the score goes from 54.4 with manual source categories to 58.9 with projected source categories. Here the source selection stays fixed within each example, so the opposite preferences can be seen without relying on a change of selected source.

Other targets illustrate the role of source selection itself. For English, the strongest individual source with manual tags is Norwegian, at 56.7 UAS. With projected training tags the best source is Swedish, at 58.2. The comparison uses whichever source did best under each preparation. It describes the results achieved by those best sources and gives a reader the identities needed to see where a score involves changing the source language as well as changing the tags.

These results establish a different empirical pattern from the monolingual PROJ experiment. In both experiments, the parser ultimately reads projection-based categories. In monolingual parsing, projection-based training dominates across the language set. In delexicalized transfer, changing the source tags in that direction gives a mixed set of language-level outcomes and a small average disadvantage with MATE. Given the extra preparation involved, the authors favor keeping the annotated source tags in this transfer setup.

What the ablations show

The tagging curve shows which conditions are reachable

The study uses controlled comparisons of training inputs in place of a conventional ablation that removes components from a new parser. One of the most direct is the comparison of tagging ranges before the parser is trained. Across the language set, ordinary folding gives approximate mean tagging accuracies between 92% and 95%. The linear procedure reaches roughly 86%. Those figures describe the jackknifed POS predictions on the training material against the reference annotations and show how the expanded range of supervision changes the inputs the parser will learn from.

The learning curve connects the fractions to the intended effect. If ordinary and linear preparation had given much the same tags over their full sweeps, the numerical difference in training shares would have had little experimental consequence. The lower accuracy made possible by linear sampling shows that the intervention actually generates weaker inputs. The confidence intervals reported around the tagging means are relatively consistent over the sweep, which the authors interpret as support for the lower-data preparations under their random sampling scheme.

The mean of approximately 86% for the lower end of that tagging curve and the reported 71.7±5.7% for the PROJ test taggers describe different assessments. The former reflects categories generated out of sample within the parser-training collections. The latter describes projection-based tagging of the test data. Seen with those roles in mind, the figures make clear why the paper can report successful adaptation through weaker jackknife tags without first demonstrating equality between the two accuracies.

The runtime source changes which direction helps

The authors plot mean attachment performance as a function of the linear training share, separately for the two kinds of test tags. Under PRED, increasing the share generally helps, but moving from 5% to 95% changes mean UAS by only the reported +0.7. This compares the ends of a common sweep across languages. The average of per-language maxima reported elsewhere answers a different question and can incorporate intermediate settings where individual languages do better.

The curve for PROJ favors moving down the sweep. The authors describe a gain of +5 UAS from reducing the share to 5% in this low-resource test condition. The endpoint lies beyond what ordinary jackknifing can reach. The contrasting directions are central to the paper’s explanation. When the runtime categories are highly accurate, a preparation created by stronger taggers is generally suitable. When the runtime categories are substantially weaker, forcing the tagger to learn from fewer examples can produce a more helpful preparation.

The manual-training condition is part of the same reasoning. It never supplies the best observed monolingual setting under either automatic test source. Since the head annotations still supervise the parser, the comparison shows a benefit to changing the category evidence during learning, given an effective choice of preparation. The extra advantage of projection-based training in the PROJ condition then shows how much room remains even after the supervised tagger’s data share is tuned. The study changes the provenance of the tags as well as their quality in that comparison, leaving the contribution of individual error types open.

Ten folds as a fixed choice

The comparison with ten folds uses the same point across languages and makes the cost of the conventional choice visible. For parsing on PRED test tags, the paper reports that ten folds match the best linear results in only 9 of 26 languages. The mean difference from those best linear results is −0.2 UAS. The aggregate penalty is modest under supervised tagging, even though a fixed count fails to reproduce many individual maxima.

The selected parameters also show how the two sweeps occupy different ranges. With PRED test tags, the median pₘₐₓ is 75%, which the authors relate approximately to the use of 4 folds. The median nₘₐₓ is 11. These are summaries of separate searches, so the median setting from one search need not identify the same preparation as the median from the other. Two different preparations can also give closely similar scores. A distribution of selected settings is more informative here than assuming that a single value represents the language set.

For parsing on PROJ, the reported mean difference for ten folds against the best linear settings is −4.6 UAS. The median selected fold count is 2, at the low end of the ordinary sweep, while the median selected linear share is 5%. The authors also examine the use of the smallest ordinary fold count directly and judge it inadequate for this low-resource condition. The limitation follows from the geometry of the procedure: the smallest ordinary count still allocates half the treebank to each tagger. Choosing more carefully within that range leaves the smaller shares untested.

A second parser and a diagnostic with manual test tags

YARA gives a check on whether the pattern depends on MATE. In monolingual parsing the authors report the same broad outcome, with average UAS reductions ranging from 0.58–1.65 relative to the primary parser. Agreement between the two systems on the preparation question matters given that the systems construct dependency analyses differently. The absolute scores and the effect of a training change are separate aspects of the replication.

In delexicalized transfer, the second parser favors manual source tags more clearly. The paper reports the manual-to-projected condition as the best choice for 17/26 languages with YARA. Against projection on both sides, it reports mean gains of +2.1 UAS for MULTI and +0.7 for SINGLE. This comparison uses automatic target tags just as the primary transfer experiment does. The strong monolingual case for projected training therefore has a distinct scope even when the parser implementation changes.

The authors also run a separate diagnostic with GOLD test tags. It asks how closely a parser trained with automatic categories can approach the reference condition in which the parser gets manually supplied categories for both learning and testing. They report a maximum of 83.8 UAS in this diagnostic, with a median best fold count of 12 and a median best linear share of 80%. The most frequent selected settings are n = 20 and p = 95%. Those statistics summarize the choices across languages under idealized input.

The diagnostic score is reported as −0.7 UAS relative to the manual-training, manual-test reference. Strong tagging preparations come closest to that reference because the runtime test in this case supplies correct categories. The diagnostic reinforces the interpretation of the two automatic-tagging curves: changing what the parser will see at evaluation changes which training preparation looks most suitable. It presents a comparison within an idealized setup, while the main results keep the tagging errors that motivate the paper.

What predicts a useful training share

The authors examine whether the best observed linear share follows information a practitioner could obtain about the job. They report Spearman’s ρ = 0.76 between the selected share and test tagging accuracy. Spearman’s coefficient describes association in the ordering of observations. Here, better runtime tagging tends to occur with larger selected shares. That agrees with the difference in direction observed between the supervised and projected test conditions.

Treebank size gives another association. The reported value is ρ = −0.42 for collections with ∣D∣ ≤ 10k sentences. In this range, larger collections tend to go with smaller selected shares. The paper relates this to the absolute number of sentences a fraction provides. A small fraction of a large corpus can supply substantial examples for learning the tagger. Accordingly, the authors describe the following typical relationship when trying to reach the same target tagging accuracy.

∣D₁∣ < ∣D₂∣

D₁ and D₂ denote two treebanks. Vertical bars count their sentences, and < says the first count is smaller than the second. The subscripts identify the two collections that enter the comparison.

p₁ > p₂

Here, p₁ is the training fraction for a tagger prepared from the smaller treebank and p₂ the fraction for the larger one. The greater-than sign expresses the authors’ expectation that the smaller collection will typically require a larger fraction to reach the same tagging accuracy. It describes the direction of a practical adjustment suggested by the findings. The reported associations leave the size of that adjustment to be determined for a new case.

Limitations

Limits identified by the authors

The authors characterize ordinary jackknifing as a coarse form of adaptation. The procedure allocates the training sentences by fold count and assumes the tagging errors it creates will be suitable for teaching the parser. Its ordinary range makes that assumption especially limiting when the parser will encounter much less accurate tags. Linear jackknifing remedies the restriction on available training shares. The connection between a share and the errors that will matter for parsing remains an empirical question.

The discussion of choosing a share also identifies a practical prerequisite. The researcher needs an estimate of the accuracy of the tags expected at runtime. The paper’s analysis relates that expectation to the amount of tagging supervision, then adds the size of the source treebank as a consideration. A useful estimate becomes harder to obtain precisely where the low-resource case is most demanding, because evaluating predicted categories against references requires some trusted tags. The paper’s correlations explain what information would guide selection, with the task of obtaining that information in a new setting left open.

The authors put practical emphasis on automatic runtime tagging. Their supplementary use of manually assigned test tags is intended to probe the approach under an idealized condition. Its score describes what happens when the usual source of runtime POS error is removed. The primary estimates of parser performance in use come from the automatic-tag conditions, which carry the upstream differences the paper set out to investigate.

The authors also say that their aim is to study preparation, so they run the tagging and parsing systems at their default settings. This bounds the performance claims. The comparisons concern preparing input for those systems under the evaluation described. The use of YARA broadens the check to another parser family, with the differences in transfer results showing that even within this check the choice of parser can affect the size of the observed preference.

Limits that follow from the design

The strongest values for the two jackknife methods are selected using observed attachment performance within the experiment. This tells a reader what the tested sweep can achieve. It leaves open how close an independently selected setting would come to those results on future input. A selection rule would have to choose its share using information available before the answers for that evaluation are known. The associations with test tagging accuracy and treebank size motivate that work. The paper does not report the attachment performance of a rule selected and assessed that way.

The fixed grid also affects what can be inferred about optima. In the low-resource test condition, the best reported linear results concentrate at the lowest explored share. This establishes the behavior through the boundary of the tested range. The location of a maximum beyond that boundary remains unknown. The tie convention creates a separate qualification. A high selected value can record the upper end of a set of tied choices, so summaries of selected parameters describe the search and reporting procedure as well as the underlying response to tagging quality.

An accuracy score counts correct categories across tokens. It leaves the locations and types of mistakes unspecified. For attachment, a mistake on a potential head can have different consequences from a mistake elsewhere in the sentence. Two tagging preparations could therefore produce similar accuracy and different parser inputs in ways that matter to head assignment. The comparison between restricted-supervision and projected tags varies how the predictions were generated, rather than systematically pairing individual error types at matched accuracies. The results show which preparation yielded better attachments, while the account of the responsible errors remains unresolved.

A related constraint concerns the comparison across parsing regimes. Within the transfer experiment, changing source tags tests a concrete choice while keeping the target tags projected. Comparing that experiment with the monolingual one also changes which languages supply dependency supervision and whether the parser receives word forms. In consequence, the observed change in the effects of projected training cannot be assigned uniquely to any one of those differences. The conclusion applies to the delexicalized transfer design as a whole.

The SINGLE results are conditioned on finding a favorable individual source. The table illustrates that the source can change with the preparation. A practitioner with a source already chosen faces a narrower question, about whether to retag that source, while one who can choose among source languages faces a selection problem as well. The reported maxima describe the experimental comparison of best sources. Choosing one for an unfamiliar target with limited evaluation data remains outside that comparison.

The data scope also matters. The language set comes from overlap between the specified Universal Dependencies release and the data for projection taggers. That creates a common basis for comparisons and a constraint on which language and corpus conditions contribute evidence. The low-resource taggers simulate an important feature of actual low-resource operation, namely weaker automatic input. At the same time, evaluating the procedures depends on having reference dependencies for the languages studied, and the monolingual parser-training experiment uses their annotated treebanks. The low-resource tagging result therefore answers the question of parsing over those tags when treebank supervision is available for the parser.

Finally, the repeated runs and the tagging confidence intervals address different sources of variation. Averaging repeated preparations mitigates shuffling effects in the parser scores. The plotted intervals accompany the tagging learning curve. The main parsing comparisons are reported as scores and averages, so especially small gaps in transfer give limited grounds for claims about a reliable advantage on an individual target. UAS itself narrows the conclusion to selecting heads. The experiment leaves gains on relation labeling, complete structures, and applications that consume the parse to separate evaluation.

What came after

Zhong and colleagues’ 2020 paper A Frustratingly Easy Approach for Entity and Relation Extraction cites Agić and Schluter. It brings the connection into work on entities and the relations between them, a different task within information extraction. The citation establishes a link between the two works. The later paper’s specific use of jackknifing, choice of training inputs, and experimental findings cannot be established from that connection alone. Entity and Relation Extraction

The methodological connection can be stated as a question about the input available for learning a downstream decision. In the parsing study, the intermediate decisions are grammatical categories, and the final decisions are attachments. In an extraction task where relation decisions depend on earlier entity decisions, the analogous question would concern the quality and source of the entity information available during training and use. That analogy explains the relevance of the parsing paper to a different task while leaving the later work’s procedure and results open.

Cite

Cite as Željko Agić and Natalie Schluter. 2017. How (not) to train a dependency parser: The curious case of jackknifing part-of-speech taggers. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/p17-2107

@inproceedings{agic2017how,
  title = {{How (not) to train a dependency parser: The curious case of jackknifing part-of-speech taggers}},
  author = {Željko Agić and Natalie Schluter},
  booktitle = {Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
  year = {2017},
  doi = {10.18653/v1/p17-2107},
  url = {https://doi.org/10.18653/v1/p17-2107}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/agic-2017-how-not-train-dependency-parser/