Efficient EUD Parsing
Paper · 2020 · Mathieu Dehouck, Mark Anderson and Carlos Gómez-Rodríguez
Summary
A sentence can give the same noun a role in several clauses, even when the noun appears only once. A dependency parse represents grammatical relationships by connecting words to their heads, or governors. A basic Universal Dependencies tree gives each word a single head, so some relationships are visible only indirectly. Enhanced Universal Dependencies, or EUD, lets several heads share a dependent. It can show that a noun belongs to more than one coordinated predicate, that an otherwise unexpressed subject comes from a higher clause, or that a relative expression refers back to a noun. For the IWPT 2020 shared task, the FASTPARSE team set out to produce these richer graphs while keeping both training and sentence processing economical.
The system first predicts the basic tree and then uses linguistic rules to enhance it. It caps the amount of parser training data at 13,121 sentences per language, drawing smaller samples that preserve the original sentence-length distributions and, where applicable, the proportions contributed by different treebanks, or collections of annotated sentences. A full-size Biaffine parser teaches a smaller parser whose main recurrent and scoring layers have 50% of their original width. UDPipe v2.5 supplies the other predicted annotations. The rules use the tree and those annotations to revise labels and recover additional relationships, with settings learned from each language’s training data.
The official submission scored 74.04 on enhanced labeled attachment score, or ELAS, and placed fourth among 9 full submissions. Training the distilled parsers further raised test ELAS to 76.14. With gold-standard basic trees on development data, the rule system reached an average ELAS of 98.20. On predicted trees, enhanced scores generally tracked basic attachment quality. The gold-input experiment helps explain why the pipeline was competitive and why its upstream analyses mattered so much.
The smaller parsers used less energy at inference, but producing them through distillation cost more than three times as much to train as the full-size baselines. On the measured GPU setup, the authors estimated that the inference savings would offset the extra training energy after 390M sentences. Directly trained parsers of the same small size typically scored better than their distilled counterparts. Tamil, which had the smallest training treebank, was a prominent exception. The study therefore gives separate answers to questions that can easily be conflated. A compact parser can serve the enhancement rules well, and the value of distilling it depends on how much training data it has and how often the resulting system will run.
Deep dive: Efficient EUD Parsing
Efficient EUD Parsing turns dependency trees into enhanced graphs and measures how smaller parsers trade training cost for faster inference. · about 36 minutes to read
The problem and its context
What a tree leaves implicit
A dependency tree is a compact account of a sentence. An edge says that a word depends on another word and gives that dependency a grammatical label, such as subject or object. Each word has a place in a structure organized around a root. The single-head restriction is useful when the goal is to select a basic analysis, but the selected attachment can leave other grammatical roles to be inferred from a longer chain of edges.
Consider a sentence in which several people jointly carry out an action. A basic tree can attach a single participant directly to the verb and connect the other participants through coordination. A reader can follow the path through the coordinated phrase and understand that every participant takes part in the action. An enhanced graph can state that relationship directly for each participant. A similar issue arises when several actions share one subject. The same person can be the subject of multiple verbs even though the tree attaches the word naming that person directly to a single verb.
Relative clauses introduce a different kind of indirection. A relative pronoun can fill a grammatical role inside its clause and refer to a noun outside it. The noun to which it refers is its antecedent. Finding that noun is a local form of coreference resolution in the paper’s setting. An enhanced representation can record both the reference link and the antecedent’s grammatical role in the clause. That gives a reader or downstream procedure direct access to an analysis that otherwise requires consulting the relative expression and the tree around it.
Control adds a grammatical role without an overt expression in the embedded clause. In the paper’s example, someone wants another person to go. The person who goes is expressed as an object of the higher verb. The embedded verb has a subject in the interpretation, and the graph can make that dependency explicit. Other governing predicates and argument configurations can supply a different controller. The underlying question is which participant already named in the sentence fills the missing role.
These cases motivate a graph representation in which the same word can participate directly in several head–dependent relationships. They also make prediction harder. A parser has to decide whether there is an additional edge, which words it connects, and what the relationship should be called. Some labels carry information from the words or morphological features around the original attachment. Graph prediction therefore includes decisions about both structure and the detail encoded on individual edges.
Why the authors treat cost as part of the task
The paper situates its work in a discussion about the environmental and practical costs of neural methods in natural language processing. It cites energy use in research alongside deployment concerns such as limited hardware and applications that process text at web scale. Those concerns suggest different priorities. Where training is repeated frequently, the up-front expense matters. Where a parser runs over a large stream of text, the cost of processing each batch matters. A method can help with either of those costs while increasing the other. Energy and Policy Considerations for Deep Learning in NLP
One route to a smaller network is pruning, which removes parameters. The paper describes earlier work showing that a network can lose parameters with little loss of accuracy and may generalize better after pruning. The authors are interested in regular reductions in layer size, because irregular sparsity complicates the connection between parameter removal and efficient execution. Their alternative is teacher–student distillation. A trained teacher supplies distributions over possible outputs, giving a student additional information about the prediction task. The authors trace this idea to work on transferring the behavior of ensembles and note its use in several language-processing tasks. Distilling the Knowledge in a Neural Network
The closest predecessor used distillation for basic UD parsing. In that work, a small parser trained with a teacher could run more efficiently with a modest loss relative to its full-size counterpart, while beating a parser of the same small architecture trained in the ordinary way. FASTPARSE carries that question into enhanced parsing. It also examines training data size because the teacher adds an expense before any sentence can benefit from the student’s faster inference, and the preceding work suggested that the outcome of distillation depended on treebank size. Distilling Neural Networks for Greener and Faster Dependency Parsing
The paper’s other decision is to keep basic parsing and enhancement separate. The basic parser can use an established architecture whose job is to find heads and label their edges. The rule stage can exploit patterns for the graph structures that the tree represents indirectly. This division makes it possible to ask a question that a single final graph score would leave open. How much of the enhancement task can the rules solve when the basic analysis they receive is already correct? Deep Biaffine Attention for Neural Dependency Parsing
The method, step by step
From annotated sentences to enhanced graphs
The pipeline has a preparation stage and a prediction stage. During preparation, the authors choose the training sentences and train the Biaffine dependency parser. They then train a narrower version with guidance from the full-size parser. Separately, they inspect enhanced training annotations to establish when language-specific settings should activate the otherwise general rules. During prediction, the small parser produces the basic tree. The enhancer reads that tree alongside information such as lemmas and morphological features, then constructs the enhanced edges.
Preparing the parser and producing enhanced dependencies
The steps in order.
The rules add information in stages because the information needed for a new edge can itself come from an earlier enhancement. For example, a subject shared by two coordinated verbs may reach the second verb only when coordination is resolved. If that second verb governs a complement with an implicit subject, the newly supplied subject can then become the controller. An explanation of the prediction pipeline therefore needs to account for both what gets added and when the addition becomes available.
Choosing the training sentences
The authors limit the amount of data fed to the basic parser. To choose a cap, they experiment with Arabic, Dutch, Finnish, and Russian. Those languages cover 3 families in the shared task’s training data. Arabic supplies the Afro-Asiatic case, and Finnish represents Uralic before the larger Estonian treebank becomes available for the study. Dutch and Russian represent different branches of Indo-European. Dutch also provides a test of combining treebanks, while Russian has a large treebank and uses Cyrillic. Tamil represents the remaining family in the task, Dravidian, but has too little training data for this size experiment.
The preliminary sizes are 1,000, 3,000, 6,075, 12,217, and 18,051 trees. The less round values have a practical explanation. The Arabic treebank has 6,075 trees, Finnish has 12,217, and the Dutch treebanks together have 18,051. Where the available data permit, the authors create 2 sampled splits. A size that uses all the data for a language gives no comparable repeat sample at that size. The proposed cap can thus be examined across several languages, with limited replication for those settings in which a fresh selection is possible.
Sampling preserves the frequency profile of sentence lengths. A tree corresponds to a sentence, so preserving the distribution means retaining roughly the same balance of short and long examples. When a language has more than one contributing treebank, there are two levels to the procedure. Each original treebank contributes a sample with its own length profile, and the size of that contribution follows its share of the full language data. Sampling from a pooled set solely by length would leave the proportions of the contributing treebanks uncontrolled.
The authors inspect how closely the samples resemble the full training data. The appendix describes a two-sample Kolmogorov–Smirnov comparison for the sentence-length distributions, along with mean length, mean dependency distance, and the share of non-projective arcs. Dependency distance describes how far apart the connected words are in sentence order. Non-projectivity records a structural property of arcs in relation to that order. These checks cover aspects of the data beyond its sentence count, while the actual sampling procedure explicitly targets sentence lengths and treebank proportions.
The main task uses a cap of 13,121, the size of the Italian treebank. It is close to the next-to-largest size examined in the preliminary experiment and allows the Italian data to stay intact. The authors sample and combine the contributing treebanks for Czech, Dutch, Estonian, and Polish, and sample the single Russian treebank used in this procedure. The reduction concerns parser training. Selection still uses performance on the complete development data for the language, with gold sentence boundaries and tokenization. In this context, tokenization identifies the units over which the parser predicts attachments.
Training the basic parser and its smaller student
The Biaffine parser predicts a head position and an arc label for each token that it analyzes. A head decision identifies the governing word. A label decision specifies the kind of dependency. The architecture provides distinct output distributions for these decisions, and the authors transfer information from the teacher at both outputs. They identify the PyTorch Biaffine parser implementation they use in the distillation appendix.
Word and character representations are the network inputs. Both sets of embeddings, the vectors representing those inputs, start from random values. The parser is trained with the hyper-parameter choices described for the original architecture. Smaller variants retain the same architecture while narrowing the bidirectional LSTM layers, which process context in both directions, and the multilayer perceptron layers used in scoring. The preliminary experiment tries widths of 70% and 50% of the original in those layers. The shared-task system uses the 50% setting. These percentages describe how many units the affected layers retain. They give no exact percentage for the total parameter count.
The student learns from both the teacher’s predictions and the gold tree. Gold supervision says which head and label the annotation assigns to a token. The teacher’s output gives a distribution over candidates, so it can express degrees of confidence across the available choices. Two sentences may both be annotated with the same type of dependency, yet the teacher may be more uncertain about one of them. A hard training label alone conveys no such difference. The distillation part of training is intended to give the smaller parser access to that information.
The appendix gives the following expression for the teacher–student term.
ℒₖₗ = −∑ₜ∈ᵦ ∑ᵢ P(xᵢ) log(P(xᵢ) / Q(xᵢ))
Here ℒₖₗ names the term described as the Kullback–Leibler loss. In the outer sum, (t) is a tree and (b) is the batch containing the trees. The inner sum indexes the tokens by (i). The vector (xᵢ) is the input to the softmax for the token (wᵢ), or the word at that position. The softmax turns scores into probabilities. (P) denotes the teacher’s distribution and (Q) denotes the student’s distribution. The slash forms the teacher-to-student probability ratio, log takes its logarithm, and the leading minus sign is how the appendix prints the expression. The notation leaves the candidate index implicit inside the distribution comparison. Its sign is opposite to the usual non-negative Kullback–Leibler divergence, so the displayed expression and its name leave the exact sign convention of the implemented loss unclear.
The gold-head training term is categorical cross-entropy. Where the teacher distribution can favor several different choices to varying degrees, the annotation supplies a specific head. The paper gives the head term as the example.
ℒ꜀ₑ = −∑ₜ∈ᵦ ∑ᵢ log p(hᵢ | xᵢ)
Here ℒ꜀ₑ denotes categorical cross-entropy. Again (t) indexes the trees in batch (b), and (i) indexes the tokens in each tree. The vector (xᵢ) is the softmax input for token (wᵢ). The symbol (hᵢ) denotes the annotated head position of that token. The expression p(hᵢ | xᵢ) gives the student’s probability of that head given the input vector. The vertical bar means “given,” and the sum collects the negative log probabilities over the batch. The student also receives a cross-entropy term for the gold arc labels.
The objective puts the two kinds of supervision together for both outputs.
ℒ = ℒₖₗ(Tₕ, Sₕ) + ℒₖₗ(Tₗₐᵦ, Sₗₐᵦ) + ℒ꜀ₑ(h) + ℒ꜀ₑ(lab)
The symbol ℒ is the total loss. (Tₕ) and (Sₕ) are the teacher and student distributions for head predictions. (Tₗₐᵦ) and (Sₗₐᵦ) are their distributions for dependency labels. The ℒₖₗ terms compare teacher and student distributions for the indicated output. The ℒ꜀ₑ terms use the gold annotations, with (h) marking the head term and lab the relation-label term. The plus signs specify that all the terms contribute to the objective. For the directly trained small parser used later as a comparison, the same small architecture learns without the teacher guidance.
The training procedure uses early stopping to avoid prolonged runs with no improvement on development data. The stopping window is 10 epochs without improvement, where an epoch is a pass through the training data. At inference, UDPipe v2.5 predicts the annotations outside the basic syntactic parse. These include the tags and the information from lemmatization, which supplies a word’s base form. When prediction combines several treebanks, the UDPipe configuration comes from the largest contributing treebank. This division of responsibilities matters because the enhancement stage may be sensitive to an upstream feature even if the primary head attachment is correct.
Carrying basic edges into the enhanced graph
Most tree edges have a counterpart in the enhanced representation. In the simplest case, the enhanced field records the governor index together with the relation type.
h:t
Here (h) is the index of the word’s governor and (t) is the relation type. The colon separates the index from the label. The expression describes how to write an enhanced attachment. In the sampling and distillation discussion, the same letter (t) in the loss formulas instead indexes a tree.
Even when the endpoints are unchanged, the enhanced label can carry different information. The Estonian examples show that an existing subtype may be shortened to its base relation. Other treebanks extend a label to express an additional role. French Sequoia, for instance, can mark a passive subject in a way that also signals its interpretation as the object of the predicate. Producing the right enhanced graph thus includes matching conventions about labels on ordinary attachments.
Other label changes draw on lexical and morphological evidence. A conjunct can take the lemma of its coordinating conjunction as part of the relation label. A clausal modifier of a noun or an adverbial clause modifier can take the lemma of its marker. A nominal modifier or oblique nominal can take the lemma of the adposition that introduces it, information from its own morphological case, or a combination permitted by the annotation. The introducing adposition is commonly attached with the case marking relation.
A marker can consist of several words. Where a coordinating expression contains words joined by the fixed expression relation, the enhancer assembles their lemmas into one extension. The paper’s example yields conj:as_well_as. The label retains the base relation and records the whole lexical expression. This part of the enhancer therefore needs access to a small neighborhood around an edge, including the phrase that introduces it.
The first pass finds antecedents and possible controllers
The first traversal visits every word. It builds the ordinary enhanced attachments with the applicable label changes, records arguments that may provide controllers, and identifies dependencies that require further processing. Subjects, objects, and obliques matter here because each can be relevant to the argument structure of a governing predicate. The traversal also records conjuncts for the later coordination pass, when information from the whole sentence will be available.
Relative-clause handling starts when a word is identified as a relative pronoun or adverb. The system follows the path upward from that word until it meets an attachment marked acl:relcl, the relative-clause subtype of the clausal modifier relation. That attachment leads to the antecedent. The enhancer creates a ref edge to record the reference and gives the antecedent the role that the relative word occupied with respect to its original governor. In the enhanced field, the reference edge takes the place of the relative expression’s original attachment. The basic tree remains the input from which the construction was recognized.
In the paper’s illustrated case, the pronoun points back to the jesters and serves as the subject of ruined. The reference edge explicitly connects the relative expression with the jesters. The added subject edge connects the jesters with ruined. The same operation can transfer an object relationship when the relative word is analyzed as an object. The critical information is the relative word’s original role and the antecedent found through the tree. The two edges answer different questions, about the reference of the relative word and about the argument structure of the clause.
Control begins with an open clausal complement, labeled xcomp. The dependent predicate in this construction needs a subject supplied by the surrounding clause. The enhancer checks the controlling predicate’s stored arguments and uses the control behavior learned for the construction. With a verb such as want, an expressed object can supply the subject of the complement. In a construction without that object, the subject of want can supply it. The paper illustrates the object case with you as the person who goes even though the basic attachment places you under want.
When the relevant controller can be found, the enhancer adds the subject dependency to the embedded predicate. A nominal argument receives the nominal subject label, with the control subtype used where the language’s annotation calls for it. A clausal argument can instead receive the clausal subject label. If the necessary argument is unavailable at the point when the complement is processed, the predicate is set aside. Later passes can try again after coordination has furnished additional subjects and other arguments.
The second pass resolves coordination
Coordination operates on both sides of an edge. On the dependent side, a group of nouns can occupy a shared role with respect to a verb. If the first noun is the head of the coordination and is marked as an object, the rule can transfer the object relation to the other conjuncts. The illustrated example takes the object role of the dwarves under angered and gives the elves the same role. The inherited relation may need a different lexical or case extension if the coordinated dependents have different adpositions or morphological forms.
On the governor side, the head of a coordinated group can share some of its dependents with another member of the group. When a person performs two coordinated actions, the subject attached to the first predicate can also belong to the second. The system tests the receiving conjunct for relationships already filling the candidate role and checks whether the morphological properties of the governors support propagation. This direction of propagation is more selective because a dependent of the first predicate can be specific to that predicate.
The paper’s examples with buying, eating, and speaking show why position and attachment matter. When the coordinated actions both concern strawberries and the object comes after the two verbs, it can attach to the coordination head and propagate to the other verb. If the second verb introduces its own object, the system is not designed to send that object upward just because the first verb could also take one. If the strawberries occur with the first verb before the second conjunct, the object can be understood as belonging to the first action alone. The enhancement is meant to follow the dependencies expressed in the sentence, with different relations and languages permitting different patterns.
Waiting until the second pass helps because the first visit to a conjunct may occur before the shared dependent has appeared. An object after both verbs is the clearest example. Processing the conjunction immediately would leave the enhancer with an incomplete inventory of the head’s dependents. Collecting that inventory first and applying the propagation rules afterward allows the decision to use information across the sentence.
Subjects receive special treatment. A subject slot might contain a nominal subject, a clausal subject, or an expletive such as the grammatical subject of a weather expression. A rule that looked only for a duplicate relation label could miss the fact that the conjunct already has something serving the relevant syntactic function. A propagated subject may also need a voice subtype appropriate to its new governor. In languages where a subject can be left unspoken, the absence of an overt subject offers weaker evidence that the first conjunct’s subject should be shared. Agreement features can help make that decision.
Later passes finish control
After coordination has been processed, the enhancer revisits unresolved open complements. The paper’s control figure shows a coordinated predicate, wanted, inheriting a subject associated with quailed. That subject was unavailable for resolving weep in the first traversal. Once coordination has supplied it to wanted, the control rule can make the same noun the subject of weep. The resulting nsubj:xsubj edge depends on an intermediate enhancement higher in the structure.
A further control pass can make newly supplied arguments available again. Coordination and control can be nested, and the authors point out that there is no grammatical limit in their setup to how often those patterns can be combined. They report that a single revisit resolves the large majority of outstanding subjects in practice. The iterative design accommodates cases requiring more than one propagation step without asking the first traversal to anticipate which dependencies will appear later.
How the system adapts the rules to the data
The general rule for adding a lemma or a case marker needs to know which relations take those additions in a particular language’s annotations. The enhancer uses the training data to count how often case is appended for each relation and which dependent relation commonly supplies the lemma. This distinction lets it learn why an oblique may draw lexical material from a case-marking dependent while a clause modifier draws it from a clause marker. When several dependents have the relevant relation, it also checks which one contributes the lexical material. For coordination, the narrower question is whether lexical enrichment is used, since the connection to the coordinating conjunction is already established.
The training checks also determine whether the data use :xsubj and :relsubj on subjects associated with control and relative clauses. For subject omission, the system compares root verbs with an overt subject to root verbs without one. It treats the language as allowing subject omission under its pro-drop heuristic when at least a third of root verbs lack an overt subject. That decision feeds into rules that rely on morphology for deciding whether a subject should propagate.
Relative pronouns and adverbs are identified from morphological features. The system compares how frequently each feature appears on words receiving a ref edge and how frequently it appears elsewhere. The paper names PronType=Rel and PronType=Int,Rel as common indicators. This is a case where features outside the tree edges supply the cue that triggers an enhancement. The authors note that other clues, such as the word’s lemma, could in principle have been used for that purpose.
The rules learn when dependencies spread from a governor to its conjuncts and whether a conjunct inherits the attachment held by the head of its own coordination. This second check accounts for conventions such as whether the root relation is carried to other members of a coordinated main predicate. For the first direction, the enhancer learns two kinds of restrictions. One concerns the other dependencies already under the prospective governor. The other concerns agreement between coordinated governors.
To learn which relations block propagation, the system tracks co-occurrence under the original governor in the basic tree, co-occurrence under a coordinated governor in the enhanced graph, and cases where the presence of another relation accompanies a failure to propagate. A relation already observed together with the candidate under the original governor is ruled out as a blocker. Among the remaining relations, a blocker is one associated more often with receiving conjuncts where the candidate fails to appear. The paper illustrates the effect with a subject that is withheld from a coordinated predicate already carrying an expletive.
For agreement, the system compares the values of morphological categories for governors that share the same universal part-of-speech tag. It tallies matches and mismatches in situations where a relation spreads and where it stays with the original governor. If mismatches in a category predominate among the cases of failed propagation, the rule can require agreement in that category for the relation at issue. The comparison is specific to the candidate relation. A feature that helps decide whether to share a subject need not govern whether to share a modifier.
Finally, the authors learn a control profile for predicates from their observed argument configurations. A case where a subject is the only available argument tells the system little about how the construction chooses between subject and object. The training procedure therefore treats those subject-only cases as defaults when gathering preferences. The learned profile is consulted when competing argument roles are available. For a construction absent from the learned inventory, the implemented fallback chooses the subject, a choice the authors revisit in their discussion.
Experiments and results
Datasets, scores, and comparison systems
The study uses development data for its sampling experiments, pipeline comparisons, and speed measurements. The shared-task submission site supplies the evaluation of the test runs. The paper distinguishes the original submission from the rerun with further-trained students, and it distinguishes gold development input to the enhancer from development input predicted by each parser. These settings answer different questions. Gold input tests the tree-to-graph conversion under accurate upstream annotation. Predicted input measures the resulting errors together with those already present before enhancement.
For basic trees, the paper uses unlabeled attachment score, or UAS, and labeled attachment score, or LAS. UAS judges whether the parser selects the correct head. LAS requires both the correct head and the correct relation label. ELAS is the labeled attachment measure for the enhanced graph, where a word can have multiple head relations. An error in the label of an enhanced edge matters even when its endpoints are right. This includes errors in the extra information attached to labels, such as a case or a lemma.
The full-size Biaffine parser is the teacher and the main accuracy and runtime baseline. Its distilled counterpart has narrower layers. An ordinarily trained parser of that same smaller architecture tests the effect of getting guidance from a teacher. UDPipe v2.5 is also evaluated as the basic parser, in addition to its role providing the upstream annotations for the other pipelines. The enhancer can then be applied to trees from each source. Sharing the enhancer makes it possible to see what happens to enhanced attachment when the basic parser is changed.
Official and updated test results
The submitted FASTPARSE system averaged 74.04 ELAS on the official shared-task test evaluation. That put it fourth among 9 complete submissions. The authors later discovered that the students used for the submission had yet to converge. They retrained the students and evaluated the resulting system on the official submission site, obtaining an average ELAS of 76.14. The ranking belongs to the submitted run. The later score describes what the updated pipeline achieved under the test evaluation.
FASTPARSE training runs on the shared-task test data by average ELAS
The run with further training achieved the higher enhanced attachment score.
The numbers
| System or setting | ELAS |
|---|---|
| Official submission | 74.04 |
| Further-trained distilled parsers (this paper) | 76.14 |
Matching the architecture and general pipeline across those runs gives the authors a practical explanation for the stronger updated result. The revised training produced better basic dependencies for the enhancer to work with. Most of the paper’s detailed quality and cost comparisons concern the further-trained students. The official result remains the one that describes the competition entry at submission time.
What changes when the input tree changes
The rule system achieves an average ELAS of 98.20 when it works from gold development trees. The lowest gold-development ELAS mentioned is 94.9. Those are conversion results under favorable input conditions. They tell the reader how closely the learned settings and general rules can reproduce the target enhanced graphs when basic annotations are already supplied. The paper connects the system’s competitiveness to this high agreement between the rule output and the gold enhancements.
In the comparisons with predicted development trees, the distilled parser scores above the UDPipe parser on basic attachment. The authors report that the distilled parser comes within a point of the full-size parser on both UAS and LAS. Enhanced attachment generally follows the basic attachment comparisons. With the full-size pipeline as the reference on the development data, the UDPipe-based pipeline averages 4.9 points less ELAS, while the distilled pipeline averages 0.7 points less. These figures are the authors’ stated comparisons from the shared enhancement setup.
One reason to report both tree and graph scores is that they can diverge in individual cases. A wrong basic relation may survive unchanged into the graph. It can also induce a second mistake if the rules use it as evidence for control or coordination. Conversely, a correct basic attachment can receive an enhanced label that disagrees with the reference because of lexicalization. The development comparisons show an overall association between basic and enhanced attachment, while the analysis of particular errors explains several pathways by which the output can differ.
Training cost and inference cost
The experiments use an Intel Core i7-7700 CPU and an Nvidia GeForce GTX 1080 GPU. The later inference speed comparisons run on the full development data for each language with one CPU core and 5 runs, with a batch size of 256 for the plotted comparisons. The paper gives speed measurements for the dependency parser and separately for the complete pipeline. That distinction matters because a faster tree predictor only accelerates one part of a pipeline that also supplies annotations and enhances the tree.
For the dependency parser, the reported average speed increase from distillation is 2.44x on CPU and 1.17x on GPU, in tokens processed per second. The different gains show that shrinking the same architecture can have different consequences on different hardware. UDPipe is the fastest of the compared systems. The development ELAS results put that speed advantage alongside its effect on downstream graph quality when UDPipe supplies the tree as well as the other annotations.
The paper’s training comparison counts the teacher as part of the expense of distillation. Across the treebanks, it reports training costs for the distilled route of more than three times the baseline. This comparison asks what it costs to produce the small student starting from the training data. The resulting parser can be economical to run even when the process used to obtain it is expensive.
For inference on the development treebanks, covering 37K trees in all, the paper reports GPU energy of 2.10 (0.09) kJ with the full-size parser and 1.49 (0.03) kJ with the distilled parser. These are averages based on 5 runs for each treebank. The chart uses the reported main energy values. They are totals for the evaluated development workload rather than amounts spent on an individual sentence.
Full-size and distilled parsers on the development treebanks by GPU inference energy
The distilled parser used less GPU energy to process the development workload.
The numbers
| System or setting | kJ |
|---|---|
| Full-size Biaffine parsers | 2.10 |
| Distilled Biaffine parsers (this paper) | 1.49 |
Using their measurements, the authors estimate that processing 390M sentences on the GPU would offset the additional training energy attributable to distillation. This is a comparison over the life of a trained parser under the measured setup. An inference-only measurement would make the student look less costly immediately. Including teacher and student training changes the answer for workloads below the estimated break-even point. The estimate concerns energy, while the separate token-throughput measurements describe how much faster a parse can be produced under the tested conditions.
What the ablations show
Smaller data and narrower layers
The preliminary sampling experiment varies training-set size and compares the full parser against distilled parsers with different layer widths. Its clearest data-size trends come from Dutch and Russian, where the experiments cover larger samples. The authors observe that attachment improvements begin to level off as sample sizes rise, and that the full-size parser pulls further ahead of the students in that range. The Arabic and Finnish results appear to follow a similar pattern, with fewer settings available at the large end. That gives some support to the choice of a cap while leaving its effect for each language and treebank uncertain.
Training energy increases as distillation uses more data. Among the two distilled variants, the one with narrower layers requires less training energy, while their attachment scores differ little in this experiment. Both improve GPU inference speed over the full baseline in the larger-sample comparison, with only a small speed difference between the two students. The speed figure uses the 12,217-tree training setting where possible, and the full Arabic treebank where it is smaller. It measures speed on the development treebanks over 5 runs with batch size 256. Together, the training and inference comparisons explain the choice to use the 50% width in the main experiment. The observed energy advantage of that setting came with little accuracy separation from the other distilled variant.
The data-size analysis addresses the usefulness of extra training examples for the basic parser. The sampling checks address a related but distinct issue, whether the downsampled corpora still resemble the corpora from which they were drawn. A favorable sentence-length comparison makes the sample a better basis for studying tree count as the variable of interest. It still leaves the frequency of particular constructions open. That is relevant to the enhancer because infrequent patterns can require particular lexical or morphological cues even when corpus-wide length and dependency statistics are similar.
Teacher guidance at a fixed size
The comparison with ordinarily trained small parsers is the most direct test of the teacher’s contribution. Holding the small architecture fixed lets the paper ask whether the improvement comes from how the parser was trained. For most languages, the small parser trained ordinarily scores higher than the distilled version. The paper also reports that on development LAS the small, ordinarily trained parsers average 0.4 points below the large parser. A substantial part of the tested efficiency opportunity is therefore available through using narrower layers in the first place.
The authors offer several reasons the comparison may differ from their earlier work. This system omits pretrained word representations and part-of-speech tags as inputs to the parser. UDPipe still supplies tags elsewhere in the pipeline, so this is specifically a difference in the information available to the basic parser during its own training and prediction. The paper also uses dropout during distillation, unlike the preceding experiment. Dropout is a training regularizer, and the authors raise the possibility that its setting made it harder for their students to learn effectively. There is no separate experiment isolating each of these changes, so each remains an explanation to be tested.
Tamil has the strongest result in the other direction. Its distilled parser noticeably improves on both the full baseline and the small parser trained directly. The authors also describe smaller improvements favoring distillation for French, Lithuanian, and Swedish, among the smallest training treebanks in the task. This pattern motivates their suggestion that the teacher’s information may be especially helpful where a parser has fewer examples and can fit idiosyncrasies of the training data. The evidence is a set of language comparisons. A direct test of that explanation would need to distinguish training-set size from the other properties that vary among those treebanks.
Gold input, predicted input, and particular mistakes
The gold-input comparison bypasses basic parsing errors. With gold development annotations the enhancer is very close to the reference, while swapping among predicted trees moves the enhanced score broadly in step with basic attachment. This establishes that reliable basic analysis is valuable to the pipeline. It also leaves room for errors that originate in the rules or in the annotations the rules are trying to reproduce.
The paper provides a concrete diagnostic in Dutch Alpino. Its analysis identifies 515 missed ref relations, along with at least as many enhanced relations in which the antecedent should have taken the role of the relative expression. The authors describe these reference-related misses as two thirds of the missing dependencies in their analysis of that treebank. The example makes the cost of missing a trigger clear. An unrecognized relative expression can prevent both the reference edge and the extra connection that would make the clause’s argument structure explicit.
The retraining that followed the official submission supplies a second check on the role of the basic parser. Better-trained students in the same kind of pipeline obtain the stronger test score. The fixed-size comparison still matters for interpreting that improvement. Continued training shows that the original students could do better. The comparison with students’ directly trained counterparts asks whether distillation is the best way to obtain a parser of that size. The paper reports different outcomes for those two questions.
Limitations
Limits identified by the authors
The enhancer leaves ellipsis untreated because its pipeline does not predict empty nodes. An empty node can represent an element missing from the surface sentence whose relations still matter to the enhanced analysis. The system concentrates on enhancements among the words and structures already available to it. Its strong aggregate agreement with gold development graphs therefore coexists with a deliberate gap in coverage.
The authors also find a blind spot in the relative-clause rule. The implemented trigger requires a relative expression that is recognized as such and can receive a ref edge. Some clauses leave the relativizer unexpressed, even though the antecedent still fills a role inside the clause. English can form clauses of this kind. Recognizing the clause and inferring the antecedent’s role would require a procedure that starts from the clause attachment and then determines which role is available. The authors identify that direction of analysis as potentially more general. Tamil gives limited evidence about the issue in their evaluation because the treebank does not yet annotate relative clauses.
Where relative words do occur, the feature annotation can still make them difficult to detect. The Alpino errors arise largely from relative or interrogative forms with empty feature fields. Other treebanks may omit reference edges for certain relativizers in the enhanced layer. The resulting score can mix failures of the recognition rule with differences between the annotation a rule expects and the annotation a treebank supplies. Adding a local exception can help a particular treebank while increasing the amount of language-specific handling the authors tried to avoid.
Errors in the basic tree can also send a rule down the wrong path even with correct logic. The English EWT example concerns a relative clause about steps someone would like to see. In the basic annotation, the relative expression is analyzed as the object of like. Given that analysis, the control rule selects the steps as the understood subject of see. In the intended reading, the person addressed is the one who would see the steps. This case is useful because the error can be followed through successive decisions. The tree provides the wrong argument configuration, the learned control behavior applies to that configuration, and the graph records the resulting subject.
Disagreement between annotation layers creates a different problem. In the Russian example, the word’s morphological field can say Case=Gen while the enhanced nominal modifier label ends in :acc. A rule driven by the morphological field predicts the genitive label and disagrees with the enhanced reference. In Latvian, the authors see nominal modifiers lexicalized with the adposition lemma in some cases and enriched with the word’s case in others. They find no consistent basis for choosing between them from the available information. Regular conversion can help flag mismatches like these for annotation review, provided the underlying fields themselves are dependable.
Practices across treebanks can differ even when each treebank has a recognizable local convention. French Sequoia uses an additional enh marking to distinguish some enhanced attachments from tree edges, with its formatting depending on the structure of the label. Swedish can use conj:sym for symbolic coordinators in situations where several of the other treebanks retain the plain conjunction label. Such choices affect ELAS because matching the enhanced label is part of the evaluation. The system needs either evidence of the convention from training data or a local rule capable of reproducing it.
The hardest coordination decisions are sometimes about interpretation rather than convention. A verb can already have an adverbial while still sharing a different adverbial with its conjunct. A test based merely on the presence of another modifier gives too little information about whether the modifiers conflict or operate at different scopes. The paper points to the absence of an explicit hierarchy among a word’s dependents that would mark which modifiers belong just to the coordination head and which belong to the full group. This leaves the rules to infer semantic scope from attachment patterns and morphology that may be insufficient.
The authors raise a related limitation for languages with unexpressed subjects. In the pro-drop languages they came across, at least the finite verbs agreed in person and number, giving the enhancer a clue about compatibility when it might inherit an overt subject. They contrast that with languages such as Japanese, where their discussion identifies neither personal agreement on verbs nor relative expressions of the kinds they use as triggers. They also question their fixed pro-drop threshold because subject omission varies across genres and languages, and can be associated with particular constructions or tenses. The fallback treatment of unfamiliar control constructions is another heuristic they would revisit. The implemented subject default can pass over an available object that would be more plausible, and the authors suggest learning that choice separately for each language.
What the evaluation leaves open
The gold-development ELAS is evidence about conversion on treebanks whose annotations the rule settings are designed to track. It gives a benchmark for what the enhancer achieves with gold upstream information on those data. It does not measure how well the same tuned behavior transfers to a new treebank with different conventions, or how well a language can be handled without enhanced training annotations for tuning. Likewise, the authors’ suggestion that the rules can generate enhanced data concerns existing UD treebanks. Producing useful annotations from raw text would bring the upstream prediction errors back into the process.
The scores for the full pipelines also combine several sources of error. Some differences come from basic attachment, some from tags and features, and some from rule decisions or annotation conventions. Gold input removes several of those problems together. The paper’s qualitative cases help trace individual failures, but the aggregate results give no separate causal estimate for improvements to tokenization, lemmatization, morphological tagging, heads, and basic relation labels. There is also no pass-by-pass removal experiment that assigns an ELAS contribution to relative clauses, control, or either direction of coordination.
The compression comparisons are bounded by the tested architecture, training inputs, hardware, and batch setup. In particular, the GPU estimate of 390M sentences uses the authors’ training and inference energy measurements. It is an estimate for that way of producing and serving the parsers. The much larger throughput increase reported for CPU illustrates how quickly the comparison can change when execution conditions change, although the paper’s break-even calculation is for GPU energy. Training an equally small parser directly would also change the initial investment, and the fixed-size accuracy comparison makes that a materially different baseline from the full teacher.
Finally, the results concern attachment and the resources used to produce it. The rationale for enhanced graphs is that they make meaningful relationships easier to use. The experiments measure how often the system recovers annotated relationships, along with cost and speed. They do not measure whether applications using these graphs make better predictions or decisions. A high gold-input ELAS establishes that the rules reproduce much of the target representation. The value of that representation to a particular downstream task remains a separate empirical question.
What came after
The subsequent citing work approaches the relation between basic trees and enhanced graphs from several directions. Some titles identify a parsing representation or a shared-task system. Others identify evaluation questions about efficiency or the structure of treebank data. The connections below concern those stated contributions. A citation establishes that the later work engaged with the paper, while the titles give varying amounts of detail about the nature of that engagement.
TGIF introduces an integrated format for trees and graphs and describes a training sequence that moves from generic to individual-language fine-tuning. FASTPARSE uses a completed basic tree as the handoff to a separate enhancement stage. TGIF’s stated contribution concerns how the two structural views can be combined in the parsing format and how training can be adapted to a language. The two papers thus place language-sensitive choices at different points in their designs. FASTPARSE describes learning settings for its graph rules from language data, while TGIF’s title places language specialization within the fine-tuning sequence. TGIF: Tree-Graph Integrated-Format Parser for Enhanced UD with Two-Stage Generic- to Individual-Language Finetuning
Splitting EUD Graphs into Trees takes the relationship between the structures in the other direction. Its contribution, as named, is a decomposition of the enhanced graph into trees. FASTPARSE starts with a single basic tree and proposes additional links by examining it and the annotations around it. Splitting begins with the richer graph and asks how to express its structure through tree-shaped components. Both formulations make the choice of representation central to enhanced parsing. The contrast is where the conversion starts and how the graph is related to the structures a tree parser can handle. Splitting EUD Graphs into Trees: A Quick and Clatty Approach
The DCU-EPFL paper describes an enhanced dependency parser for the next IWPT shared task. It continues the shared-task line in which FASTPARSE reported both its official entry and its updated result. The relevance is the common target, an enhanced dependency graph evaluated as the output of a parser. FASTPARSE provides one design for reaching that target through basic parsing and rules. The later system paper contributes another shared-task entry, placing its own approach in the continuing evaluation of enhanced parsing systems. The DCU-EPFL Enhanced Dependency Parser at the IWPT 2021 Shared Task
The Pareto analysis pursues the evaluation question raised by the efficiency results. A Pareto comparison treats performance as having several objectives and asks which choices can improve one objective without requiring a loss on another. FASTPARSE’s comparisons show why that perspective matters. The fastest basic parser in the study gives up enhanced attachment, the student is cheaper to run than its teacher, and producing the student adds training cost. The later paper’s stated focus is the use of Pareto analysis for dependency parsers, putting tradeoffs of that general kind at the center of the evaluation. A Modest Pareto Optimisation Analysis of Dependency Parsers in 2021
The replication and extension of Because Their Treebanks Leak approaches parser performance through properties of the graphs in treebanks. Its title identifies graph isomorphism, which concerns structures that match under a relabeling of their vertices, alongside covariants and parser performance. FASTPARSE examines treebank composition chiefly because it wants a controlled reduction in the quantity of training material. The later study asks about the relationship between structural properties of the data and the performance used to evaluate a parser. Both make the dataset part of the explanation for a score, with one focusing on sampling and training cost and the other on structural comparison and replication. Replicating and Extending “Because Their Treebanks Leak”: Graph Isomorphism, Covariants, and Parser Performance
Cite
Cite as Mathieu Dehouck, Mark Anderson and Carlos Gómez-Rodríguez. 2020. Efficient EUD Parsing. Proceedings of the 16th International Conference on Parsing Technologies and the IWPT 2020 Shared Task on Parsing into Enhanced Universal Dependencies.
@inproceedings{dehouck2020efficient,
title = {{Efficient EUD Parsing}},
author = {Mathieu Dehouck, Mark Anderson and Carlos Gómez-Rodríguez},
booktitle = {Proceedings of the 16th International Conference on Parsing Technologies and the IWPT 2020 Shared Task on Parsing into Enhanced Universal Dependencies},
year = {2020},
doi = {10.18653/v1/2020.iwpt-1.20},
eprint = {2006.00838},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/2020.iwpt-1.20}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dehouck-2020-efficient-eud-parsing/
References
- Mark Anderson and Carlos Gómez-Rodríguez. 2020. Distilling neural networks for greener and faster dependency parsing. In Proceedings of the 16th International Conference on Parsing Technologies (IWPT 2020) (In press). our card
- Jimmy Ba and Rich Caruana. 2014. Do deep nets really need to be deep? In Advances in Neural Information Processing Systems, pages 2654–2662. our card
- Gosse Bouma, Djamé Seddah, and Daniel Zeman. 2020. Overview of the IWPT 2020 Shared Task on Parsing into Enhanced Universal Dependencies. In Proceedings of the 16th International Conference on Parsing Technologies and the IWPT 2020 Shared Task on Parsing into Enhanced Universal Dependencies, Seattle, US. Association for Computational Linguistics. our card
- Cristian Bucilă, Rich Caruana, and Alexandru Niculescu-Mizil. 2006. Model compression. In Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 535–541. ACM. OpenAlex ↗ · Scholar ↗
- Yu Cheng, Duo Wang, Pan Zhou, and Tao Zhang. 2018. Model compression and acceleration for deep neural networks: The principles, progress, and challenges. IEEE Signal Processing Magazine, 35(1):126–136. OpenAlex ↗ · Scholar ↗
- Kevin Clark, Minh-Thang Luong, Urvashi Khandelwal, Christopher D Manning, and Quoc Le. 2019. BAM! Born-again multi-task networks for natural language understanding. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5931–5937. our card
- Timothy Dozat and Christopher D Manning. 2017. Deep biaffine attention for neural dependency parsing. Proceedings of the 5th International Conference on Learning Representations. our card
- Masafumi Hagiwara. 1994. A simple and effective method for removal of hidden units and weights. Neurocomputing, 6(2):207–218. OpenAlex ↗ · Scholar ↗
- Song Han, Jeff Pool, John Tran, and William Dally. 2015. Learning both weights and connections for efficient neural network. In Advances in Neural Information Processing Systems, pages 1135–1143. OpenAlex ↗ · Scholar ↗
- Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531. our card
- Marcin Junczys-Dowmunt, Roman Grundkiewicz, Tomasz Dwojak, Hieu Hoang, Kenneth Heafield, Tom Neckermann, Frank Seide, Ulrich Germann, Alham Fikri Aji, Nikolay Bogoychev, et al. 2018. Marian: Fast neural machine translation in C++. In Proceedings of ACL 2018, System Demonstrations, pages 116–121. our card
- Yoon Kim and Alexander M Rush. 2016. Sequence-level knowledge distillation. In Proceedings of EMNLP, pages 1317–1327. our card
- Adhiguna Kuncoro, Miguel Ballesteros, Lingpeng Kong, Chris Dyer, and Noah A. Smith. 2016. Distilling an ensemble of greedy dependency parsers into one MST parser (https://doi.org/10.18653/v1/D16-1180). In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 1744–1753, Austin, Texas. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Yann LeCun, John S Denker, and Sara A Solla. 1990. Optimal brain damage. In Advances in neural information processing systems, pages 598–605. OpenAlex ↗ · Scholar ↗
- Yijia Liu, Wanxiang Che, Huaipeng Zhao, Bing Qin, and Ting Liu. 2018. Distilling knowledge for search-based structured prediction (https://doi.org/10.18653/v1/P18-1129). In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1393–1402, Melbourne, Australia. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Liang Lu, Michelle Guo, and Steve Renals. 2017. Knowledge distillation for small-footprint highway networks. In 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 4820–4824. IEEE. OpenAlex ↗ · Scholar ↗
- Roy Schwartz, Jesse Dodge, Noah A Smith, and Oren Etzioni. 2019. Green AI. arXiv preprint arXiv:1907.10597. OpenAlex ↗ · Scholar ↗
- Abigail See, Minh-Thang Luong, and Christopher D Manning. 2016. Compression of neural machine translation models via pruning. In Proceedings of The 20th SIGNLL Conference on Computational Natural Language Learning, pages 291–301. OpenAlex ↗ · Scholar ↗
- Milan Straka and Jana Straková. 2019. Universal dependencies 2.5 models for UDPipe (2019-12-06) (http://hdl.handle.net/11234/1-3131). LINDAT/CLARIAH-CZ digital library at the Institute of Formal and Applied Linguistics (ÚFAL), Faculty of Mathematics and Physics, Charles University. OpenAlex ↗ · Scholar ↗
- Emma Strubell, Ananya Ganesh, and Andrew McCallum. 2019. Energy and policy considerations for deep learning in NLP. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics. our card
- Michalina Strzyz, David Vilares, and Carlos Gómez-Rodríguez. 2019. Viable dependency parsing as sequence labeling. In Proceedings of NAACL-HLT, pages 717–723. our card
- David Vilares, Mostafa Abdou, and Anders Søgaard. 2019. Better, faster, stronger sequence tagging constituent parsers. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 3372–3383. OpenAlex ↗ · Scholar ↗
- Weishui Wan, Shingo Mabu, Kaoru Shimada, Kotaro Hirasawa, and Jinglu Hu. 2009. Enhancing the generalization ability of neural networks through controlling the hidden layers. Applied Soft Computing, 9(1):404–414. OpenAlex ↗ · Scholar ↗
- Seunghak Yu, Nilesh Kulkarni, Haejun Lee, and Jihie Kim. 2018. On-device neural language model based word prediction. In Proceedings of the 27th International Conference on Computational Linguistics: System Demonstrations, pages 128–131. OpenAlex ↗ · Scholar ↗