Greed is Good if Randomized: New Inference for Dependency Parsing
Paper · 2014 · Yuan Zhang, Tao Lei, Regina Barzilay et al.
Summary
A parser can assign a score to any proposed sentence structure and still have trouble finding the structure it scores highest. This is the problem the authors tackle in dependency parsing, where the output is a tree that assigns each word a grammatical head. A score based on individual attachments can be optimized exactly. Once the score also depends on how attachments fit together, the search becomes harder. The paper asks how much of that difficulty a parser encounters on actual sentences, and whether a simple search can make effective use of the richer scores.
The authors start with a randomly drawn tree and try replacing the head of each word, working from the bottom of the tree upward. Each replacement must leave a valid tree, and the search stops when a pass through the words yields no improvement. At that point, the tree can still be worse than another tree that requires several coordinated changes. The parser starts over from a fresh draw to give itself another chance, then keeps the highest-scoring tree it has found. The authors use this search both to learn the scoring parameters and to parse new sentences.
The paper checks search quality separately from the accuracy of the resulting attachments. With scores that add up contributions from individual arcs, the authors can count the local optima and use an exact decoder to check the best score. Across the languages in that analysis, greedy search with 300 uniform restarts found the exact optimum for every test sentence of length up to 15. In a comparison using scores that also account for siblings and grandparents, hill-climbing matched the score found by dual decomposition on 97.8% of test sentences overall. Where dual decomposition certified optimality, hill-climbing attained that optimum in over 99% of cases.
On standard CoNLL test splits across 14 languages, the full parser reached an average unlabeled attachment score of 89.44%, compared with 88.72% for TurboParser and 89.23% for the authors’ earlier sampling-based parser. Different variants of the new parser reached the best published result in the paper’s comparison for seven languages. An initialization experiment also found that uniform starts and starts drawn from a learned distribution finished with similar attachment accuracy, despite a large gap in the quality of their starting trees. The results show how much a parser can gain from exploring several starting points while keeping the search within each run simple.
Deep dive: Greed is Good if Randomized: New Inference for Dependency Parsing
Random restarts and greedy tree edits make rich dependency parsing practical, with tests of when the search finds the highest-scoring tree. · about 34 minutes to read
The problem and its context
What a parser has to choose
In a dependency tree, a directed connection links a head to a word that depends on it. The dependent word is called a modifier in the paper’s notation. Every word receives a head, with an artificial root providing a place to attach the structure as a whole. Head assignments are interdependent even at the level of validity. A choice that looks reasonable for a word in isolation can participate in a cycle once other choices are in place. The parser has to produce a connected structure in which following heads ultimately leads to the root.
The scoring function gives the parser a way of ranking these structures. An arc score expresses how well a particular head goes with a particular modifier in the sentence. The authors give the English example of an adjective or a determiner attaching to the noun that follows it. Evidence of that kind can support an attachment without requiring a detailed analysis of the rest of the tree. If the complete score adds up such contributions, the scoring function is called first-order or arc-factored. The arcs can have strong individual preferences even though the decoder must still choose a legal combination of them. English
Other evidence belongs to combinations of attachments. A parser may want to evaluate a pair of modifiers together because they share a head, or assess an attachment in light of the head’s own parent. Those are sibling and grandparent configurations. With such features, the value of changing a head can depend on decisions elsewhere in the tree. Higher-order features represent interactions among multiple arcs, and global features can describe properties that extend farther across the structure. The article’s central question emerges from that arrangement. Given a scoring function with useful structural distinctions, how much work does the decoder have to do to act on them?
The study concerns non-projective parsing. A non-projective tree can contain attachments that cross when the arcs are drawn over the words in sentence order. According to the earlier complexity result the authors cite, finding the highest-scoring non-projective tree is already NP-hard with second-order features. The first-order case has an exact directed spanning-tree solution. The change in computational difficulty helps explain why parser design often involved a decision about which structural evidence could be used alongside which search procedure. Online Learning of Approximate Dependency Parsing Algorithms
How earlier parsers dealt with the search
The paper situates its proposal among several approaches to approximate inference. Easy-first parsing organizes decisions around choices that can be made with greater confidence. Other work uses inexact search or partial dynamic programming to restrict the computation involved in considering alternatives. The related-work discussion places graph-based and transition-based research within that broader effort. Across these approaches, the practical issue is how to preserve enough promising structural choices to make good predictions when evaluating everything is infeasible. A Tale of Two Parsers
Dual decomposition provides one way to handle a rich objective. It breaks a difficult optimization into simpler problems and tries to reconcile their solutions. Under the conditions that give a certificate, the method can establish that a returned tree achieves the global maximum of the scoring function. Earlier parsing work cited in the paper frequently obtained such certificates across languages. That observation motivates the authors’ question about typical difficulty. A worst-case complexity result applies to the hardest instances covered by a formulation. What happens on sentences scored by parameters learned from treebank data is an empirical question. Dual Decomposition for Parsing with Non-Projective Head Automata
Sampling offers another way to explore trees. The authors’ earlier parser used a Markov chain Monte Carlo approach that learned to take guided stochastic steps towards high-scoring structures. In that design, the mechanism for moving through tree space is itself an important part of the search. The new proposal concentrates the random choices at the start of each run. Once a tree has been drawn, the search proceeds by inspecting head changes and choosing an improvement. The authors can therefore ask whether repeated access to different parts of the search space is enough when each individual search follows a straightforward rule.
The paper also identifies a predecessor that used hill-climbing in non-projective parsing. That approach began with the highest-scoring projective tree and revised it to obtain a non-projective approximation. The present study gives hill-climbing a broader role. It uses it as the decoder during parameter learning and testing, and it treats the starting tree as a variable worth investigating. A good starting parse and a collection of diverse starting parses express different ideas about where the search should begin. The experiments can test those ideas because the same basic head-replacement rule is used after initialization.
Global features bring another line of earlier work into the design. The authors draw on features used in reranking, where structurally informative scores help choose among candidate parses. Their decoder can apply such evidence to changes made directly to a current tree. That makes it possible to evaluate a proposed attachment in the context of the other attachments already present, including features whose scope is wider than that of the candidate arc. Discriminative Reranking for Natural Language Parsing Coarse-to-Fine Parsing and Reranking
Why start from the simplest possible edit?
The authors’ working hypothesis is that many attachments are mostly settled by evidence about individual arcs. Higher-order information can then refine the smaller set of choices for which context matters. Their basis for this hypothesis is the comparatively strong performance of first-order parsing and the tendency of even independent attachment decisions to recover much of the reference structure. An attachment may need context when considered as part of a particular sentence, while much of the rest of that sentence can already be determined by simpler evidence.
This hypothesis matters to greedy search because the smallest permissible edit changes the head of a single word. If many head preferences are stable, a run can settle them without exploring every configuration of the tree. The difficult cases arise when several choices constrain each other and a high-scoring solution can be reached only through edits that temporarily offer no improvement. A random restart gives the search another way to approach those choices. The paper investigates this account at several levels, from a first-order counting argument to comparisons of decoders and attachment accuracy on annotated treebanks.
The method, step by step
Start with a complete tree
The decoder works with a complete dependency tree throughout a run. It draws an initial tree, determines a bottom-up order from that tree, and looks for a better head for each word in turn. When a word’s turn comes, the decoder compares the possible changes against the current tree, including changes already accepted during that pass. A candidate head has to preserve the tree constraint. For instance, reattaching a word to one of its own descendants would close a cycle, so that edit is unavailable.
The comparison is between the scores of whole trees. When an ordinary arc feature is involved, the edit changes the contribution of the attachment being replaced. With sibling or grandparent features, the same edit can also change which related arcs contribute together. Moving a modifier can alter the group of dependents around both its old and its new head. It can also change the grandparent context for words that depend on the modifier. The search step is local in the number of heads it changes, while the score it consults can register effects elsewhere.
At the start of the next pass, the decoder obtains an ordering from the revised tree. It continues until it gets through a pass without an improvement. The current tree is then locally optimal for the specific edits the decoder allows. Another tree may have a higher score, but a single valid head change offers no way to advance towards it. A new run starts from a fresh tree and may reach a different endpoint. The parser compares those endpoints by score.
Dependency decoding with randomized hill-climbing
The steps in order.
The tree sampler comes from Wilson’s spanning-tree algorithm. The paper uses it to draw uniformly from the set of trees and describes its extension to independent draws from a first-order distribution. In the latter case, the current learned arc scores influence the draw. The procedure also admits a deterministic start from the best first-order tree. That option gives the experiments a way to compare starting from a strong prediction with starting repeatedly from sampled trees.
Runs for the same sentence can be executed independently. The authors use 8 threads in their experiments. In the default adaptive strategy, the decoder keeps running until the best tree has gone unchanged for 300 consecutive restarts. An improvement renews the opportunity to search, because the stopping rule concerns the number of restarts since the best tree last changed. The default starting trees come from the learned first-order distribution. Uniform starts are also investigated, including in the separate first-order experiment that uses a fixed allocation of 300 restarts.
Representing and scoring a parse
The notation makes the distinction between a sentence, a candidate tree and an edit explicit. The sentence is denoted by x. The set T(x) contains the possible dependency trees for x, and y denotes one of them. For a word indexed by m, the notation y(m) gives the head assigned to that word. The neighborhood T(y, m) consists of trees obtained by changing only that head. Keeping the present attachment remains an option whenever there is no improving move.
S(x, y) = θ · φ(x, y)
Here S(x, y) is the score for tree y on sentence x. The vector θ contains the learned weights, and φ(x, y) is the sparse vector of features for that sentence and tree. The dot denotes a sum of products between corresponding weights and feature values. A sparse representation has many inactive entries for a particular tree. The same functional form can accommodate a feature that fires on an individual attachment or one that responds to a property of the tree more broadly.
S(x, y) = ∑ₘ S_arc(y(m), m)
This is the first-order case. S_arc denotes the score of the arc from the head y(m) to modifier m for the sentence being parsed. The summation runs over the modifiers. The total depends on individual attachment scores, which lets the paper study first-order instances using an exact spanning-tree decoder as well as hill-climbing. The constraint on the complete set of arcs remains in force even when the score decomposes this way.
The richer configurations extend from first-order through third-order features. The second-order search comparison specifically uses siblings and grandparents. For the third-order benchmark variant, the authors use TurboParser’s feature set. Their full variant draws on the feature templates of their earlier sampling parser and adds tensor features from their prior work on first-order scoring. Among the global features the paper identifies are span length and neighbors, as well as coordination, right-branching, valency, non-projective arcs, and the attachment of prepositional phrases. These features let the score respond to such properties as the lengths of spans and the dependents associated with a head. Turning on the Turbo
ỹ = arg max[y ∈ T(x)] S(x, y)
This is the decoding objective at test time. The expression arg max selects a tree y from T(x) that maximizes the score, and ỹ denotes the selected tree. The formula specifies the ideal target of decoding. In the randomized procedure, the output is the highest-scoring tree encountered during the allotted search.
y⁽ᵗ⁺¹⁾ = arg max[y ∈ T(y⁽ᵗ⁾, m)] S(x, y)
This is the paper’s update for a modifier. The index t identifies the current point in the sequence of updates, y⁽ᵗ⁾ is the current tree, and y⁽ᵗ⁺¹⁾ is the tree after considering modifier m. The expression T(y⁽ᵗ⁾, m) limits the maximization to the neighborhood for that modifier. S uses the score for the whole candidate tree in sentence x. In operation, the decoder retains the present tree if the best available change gives no gain. The full pass tests this improvement condition at every word.
Why the order is bottom-up
The paper gives a reachability argument for the edits. Take an initial tree y and a valid target tree y′ over the same sentence. List the modifiers from the bottom of y upward. In that order, give each word the head it has in y′. At an intermediate point, processed words carry target attachments and unprocessed words carry original attachments. The old attachments of unprocessed words lead through parts of the original tree that have yet to be modified, or to the root. A cycle entirely among processed words would have to use attachments from the valid target tree. This is how the ordering lets the conversion proceed through valid intermediate trees.
k = |{m : y(m) ≠ y′(m)}|
The number k is the number of head replacements needed by this construction. The braces describe the set of modifiers m whose heads differ between initial tree y and target tree y′. The bars give the size of that set, and ≠ denotes inequality. A modifier whose head already agrees with the target passes through the construction without a change.
Reachability gives the authors a reason to try the bottom-up order. It shows that head changes are sufficient to connect any starting tree to a desired tree. The construction assumes knowledge of the desired tree and places no condition on the scores of intermediate trees. Greedy decoding has a different task. It uses the current score to choose each move and supplies no target to guide the order of changes. The gap between those tasks explains why reachability and the possibility of local optima can coexist.
Finding a competitor during training
The training examples pair sentences with reference trees, which the paper calls gold trees. The data consist of pairs (x̂ᵢ, ŷᵢ), with x̂ᵢ the sentence and ŷᵢ its annotation. The index i ranges over the N examples. The training objective asks for a margin between the gold tree and alternatives. A tree whose heads differ more from the reference should face a larger gap in score. This gives the decoder a role in learning, because choosing an informative update requires looking for a competitor that remains strong after that margin is taken into account. Linguistic annotation
S(x̂ᵢ, ŷᵢ) ≥ S(x̂ᵢ, y) + ‖ŷᵢ − y‖₁ − ξᵢ
The inequality is required for each training example i and every candidate y in T(x̂ᵢ). The left side is the gold tree’s score. The first term on the right is the competitor’s score, and ‖ŷᵢ − y‖₁ is the Hamming distance in the paper’s tree notation. It counts the head assignments on which the trees differ. The slack ξᵢ is a non-negative quantity that allows a shortfall in the desired margin, and the learning procedure penalizes such shortfalls. The sign ≥ expresses that the gold score should be at least as large as the adjusted right-hand side.
ỹ = arg max[y ∈ T(x̂ᵢ)] {θ · φ(x̂ᵢ, y) + ‖y − ŷᵢ‖₁}
Here ỹ is the competitor sought for the current training sentence. The arg max ranges over its possible trees. The weight vector θ and candidate feature vector φ(x̂ᵢ, y) yield the tree score, and the distance term adds the cost of head disagreements with ŷᵢ. Because the gold score is fixed for a training example, maximizing this sum looks for the candidate that puts the greatest pressure on the margin. The paper describes this as finding the strongest violation. The added term is available during training, when the annotated parse is known.
The hill-climbing loop can search this augmented objective in the same way it searches the ordinary score at test time. It still tries tree-preserving changes to individual heads. When the search supplies a competitor, the online learner adjusts the parameters before moving to the next training sentence. A competitor found by approximate search can expose a violated margin even when some other tree would expose a larger one. This is the point at which search quality can affect the parameters eventually used to parse test sentences.
The implementation uses the passive-aggressive online learning procedure MIRA and parameter averaging. It follows the authors’ earlier tensor-scoring work in updating the components of the first-order tensor successively, together with parameters for ordinary spanning-tree parser features and higher-order features where applicable. The tensor is part of how the first-order scores are parameterized. Its inclusion is a separate choice from whether the decoder can use interactions among arcs. Online Large-Margin Training of Dependency Parsers
The authors train the first-order and third-order variants for 10 epochs and the full variant for 20 epochs across the languages in the benchmark. An epoch is a pass through the training data. They report average performance across three independent runs. The first-order distribution used for initialization reflects the current learned parameters, so it can guide later starts with the arc preferences available at that point. The released implementation is called RBGParser.
Counting local optima in the first-order case
The authors use a separate algorithm to examine the search space. It counts local optima for an arc-factored score, taking as input a directed graph of possible attachments for a sentence. Each word and the artificial root are vertices, and the directed arcs have scores. The procedure first gives each word its individually highest-scoring head. If this assignment already forms a tree, the paper’s algorithm returns a count of one. With the strict preferences used in the proof argument, any differing tree can be improved by moving toward this tree using the bottom-up construction.
When the independent choices make a cycle, any valid tree must interrupt it. The appendix argues that a locally optimal tree keeps all but one of the preferred arcs on a selected cycle. To see the idea, consider a tree that breaks the cycle in several places. The proof constructs a valid tree that restores the preferred arc at all but one of those breaks, retaining the other attachments. The changed arcs each improve on the corresponding choices in the starting tree. Reachability then gives a valid first move toward that constructed tree, which contradicts the claim that the starting tree was locally optimal.
The counting algorithm branches over which cycle member gets a head from outside. For a fixed choice of that member, the remaining cycle arcs form a chain that can be represented by a single contracted vertex. An outside word attaching to the contracted vertex takes the best outgoing arc score from any cycle member to that word. An outside head attaching into the contracted vertex uses the score of attaching to the designated member. The algorithm counts recursively in each smaller graph and adds the branch counts. The paper relates the contraction to Chu–Liu–Edmonds, the exact directed spanning-tree algorithm. Here the branches keep track of different ways a cycle can be broken in locally optimal trees.
F(Gₘ) ≤ max[C ⊆ V(Gₘ)] ∑ᵢ F(G⁽ⁱ⁾ₘ₋꜀₊₁)
In this recurrence, Gₘ is a graph of size m, and F gives the number of local optima for a graph. The set V(Gₘ) contains its vertices. The maximization ranges over eligible cycles C in the contraction argument, each of size c. The sum ranges over the possible breaks i of that cycle. The graph G⁽ⁱ⁾ₘ₋꜀₊₁ is the smaller graph obtained after selecting break i and contracting the cycle. Its size reflects the replacement of the cycle’s vertices with a single vertex. Here m measures graph size, whereas in the head-assignment notation it indexes a modifier.
F̂(m) ≤ max[2 ≤ c < m] c × F̂(m − c + 1)
The quantity F̂(m) is an upper bound across graphs of size m. The expression ranges over cycle sizes c of at least 2 and less than m. Each cycle has c possible breaks, and each branch is bounded by F̂ evaluated on the contracted graph size. The multiplication combines the branch count with the bound for a branch. The appendix uses this recurrence to bound the total number of endpoints the greedy search can encounter.
F̂(m) ≤ 2ᵐ⁻²
The right-hand side is a power of 2 with exponent m minus 2. The artificial root contributes a vertex beyond the n words in a sentence, so m is n plus 1. In terms of sentence length, the first-order bound is therefore the following.
2ⁿ⁻¹
The exponent is n minus 1, where n is the number of words. The paper states that the bound is tight. Its construction for showing tightness sets arc scores between indexed vertices as follows.
eᵢⱼ = eⱼᵢ = i for 0 ≤ i < j ≤ n
The quantities eᵢⱼ and eⱼᵢ are the scores of the arcs in opposite directions between vertices indexed by i and j. The score in either direction is the smaller index i. The indices run from the root at 0 through the words up to n, with i smaller than j in the displayed assignment. The appendix uses the cycle between the highest-indexed words to sketch an induction in which contraction produces two branches at each step. The existence of such a construction matters to the experiments. Actual counts on learned parsing scores have to be measured, since first-order factorization by itself permits a large number of local optima.
Experiments and results
What is measured
The main benchmark uses CoNLL dependency treebanks for 14 languages, with their standard training and test partitions. The parser receives the part-of-speech tags and morphological information supplied by the corpora. Part-of-speech tags identify grammatical word categories. The morphological information gives properties of the word forms that can inform attachment decisions. The experiments consequently assess how the parser uses these inputs to recover dependency structures under the benchmark setup. CoNLL-X Shared Task on Multilingual Dependency Parsing CoNLL 2008 Shared Task on Syntactic and Semantic Dependencies Part-of-speech tagging Morphology
The metric is unlabeled attachment score, abbreviated UAS. For each evaluated word, it checks whether the predicted head agrees with the annotated head. Relation names play no part in that check, and punctuation is excluded. This is a measure of agreement with linguistic annotation. The decoder’s objective score serves a different purpose. It tells the parser which candidate its learned weights prefer. A comparison can therefore establish that a decoder does a better job of optimizing the same scoring function, or that an entire parser gives better head predictions on a test set. The paper uses both types of comparison.
The headline baselines are TurboParser and the authors’ earlier sampling-based parser. Their numbers come from published results on the CoNLL data. TurboParser uses third-order features and dual-decomposition methods. The sampling baseline supplies a comparison with the authors’ earlier approach to exploring trees under rich scores. The paper provides versions of the new parser that make each comparison closer in feature scope. It also reports a per-language best-published column drawn from a larger collection of parsers. Each row of that column can come from a different system.
Attachment accuracy across languages
Parsing systems and feature variants on the CoNLL test sets
The full randomized greedy parser has the highest average among the individual systems shown.
The numbers
| System or setting | Average UAS % |
|---|---|
| Greedy first-order | 87.75 |
| Exact first-order | 87.79 |
| TurboParser | 88.72 |
| Greedy third-order | 89.10 |
| Sampling parser | 89.23 |
| Greedy full without tensor | 89.24 |
| Greedy full with tensor (this paper) | 89.44 |
The two main baseline comparisons answer different questions. Restricting the greedy parser to TurboParser’s third-order feature set gives an average test UAS of 89.10%, while TurboParser’s published result is 88.72%. For the comparison with the earlier sampling parser, the authors remove the tensor component from the full greedy configuration. That version reaches 89.24%, alongside 89.23% for the sampling parser. The latter comparison shows close benchmark accuracy with a simpler procedure for moving through tree space. The full configuration’s 89.44% incorporates both the greedy decoder and the tensor contribution to scoring.
The per-language results show how the averages arise. On the Chinese test set, the full variant scores 93.04% UAS and the third-order variant scores 93.00%. The best earlier result recorded there is 92.68%. On Dutch, the full variant reaches 87.39% alongside the best earlier score of 86.47%. On the English and German test sets, the full variant reaches 93.25% and 92.67%, respectively, with earlier best results of 93.22% and 92.41%. The benchmark thus includes both close comparisons and languages where the published scores separate more clearly.
On Spanish, the full variant scores 88.75% UAS and the best previous figure is 88.24%. The strongest Japanese and Slovene results within the paper come from different variants. On Japanese, the third-order variant reaches 93.80%, with 93.74% in the earlier-best column. On Slovene, the full variant without the tensor reaches 87.06%, alongside 86.95% in that column. These rows account for the paper’s statement about best published results on seven languages across its variants. They also show the importance of specifying which variant produced a language’s score.
Earlier parsers retain the lead in other rows. For example, the full variant scores 80.24% on Arabic, where the best earlier result shown is 81.12%, and 76.68% on Turkish, where the earlier-best figure is 77.55%. On Czech, the full result is 90.77% and the earlier-best figure is 91.04%. The average of the per-language best-published column is 89.58%. It represents the results of selecting the strongest earlier score separately for each language. The named baseline averages and that combined column give different ways to place the result of a single parser configuration.
Second-order search under the same score
The second-order comparison asks which decoder finds the stronger candidate under fixed scoring parameters. The authors reimplement dual decomposition and compare it with hill-climbing on Turkish, Slovene, English and Arabic. In one condition the scoring parameters are trained using hill-climbing, and in the other they are trained using dual decomposition. After training, the two decoders are compared on the same objective within each condition. This design separates differences in the trees found at test time from differences in the parameters learned during training.
Across the reported comparisons, hill-climbing and dual decomposition attain the same score for 97.8% of test sentences. Hill-climbing gives a higher score for 1.3%, and dual decomposition gives a higher score for 0.9%. These are proportions of sentences classified by objective score. Dual decomposition certifies optimality at an average rate of 92%, and hill-climbing matches the certified optimum in over 99% of those cases. A matching score is sufficient for this check because the certificate establishes that no candidate tree can score higher.
The balance between the methods varies across languages and training conditions. With parameters trained by dual decomposition, both methods reach the same score on 100.0% of the Turkish test sentences. On Arabic in the same training condition, they agree on 88.4%. Hill-climbing scores higher on 6.9% of those Arabic sentences, and dual decomposition scores higher on 4.7%. The certificate rate for that Arabic condition is 75.3%. These figures show why the aggregate tie rate and the conditional agreement on certified cases are worth reporting separately. The former includes every comparison in the evaluation. The latter uses only the subset where a global optimum is established.
First-order accuracy with exact and approximate decoding
The first-order benchmark gives the paper a comparison between parsers trained with exact inference and parsers trained with randomized greedy inference. Their average UAS is close, at 87.79% for the exact version and 87.75% for the approximate version. The test results for English are 91.94% and 91.85%, respectively. For Japanese, the exact version reaches 93.74% and the approximate version 93.78%. The direction can vary because the two learning processes can produce different parameters, and UAS evaluates the learned parser against annotated heads.
The first-order optimum check complements those accuracy figures. There the authors use an exact decoder to determine the highest score for a given learned scoring function and compare hill-climbing with that target. In the benchmark comparison, the question is whether training with approximate search yields similar test attachment accuracy. In the optimum check, the question is whether a randomized search can find the best tree under a fixed score. Together these tests give a way to assess the search during learning and also to verify its behavior on individual prediction problems.
What the ablations show
How much can individual attachments explain?
The authors first test their motivation for using local edits. They train an independent head predictor and a first-order tree predictor with the same feature set. Each is trained with its own decoding procedure. The independent predictor chooses a head for each word separately. The tree predictor chooses a valid tree by evaluating the arc scores together under a structural constraint. A collection of independent decisions can receive a high attachment score even when it contains a cycle, because the comparison measures agreement at individual head positions.
Across Slovene, Arabic, Japanese and English, the independent predictor averages 86.9 in head attachment accuracy, compared with 87.3 for the tree predictor. On Slovene the corresponding scores are 83.7 and 84.2, and on Arabic they are 79.0 and 79.2. The scores on Japanese are 93.4 and 93.7, and those on English are 91.6 and 91.9. In each case the tree predictor does better, while the independent predictions already recover much of the annotated structure. This is evidence that the local features provide substantial information about which heads to try. The comparison concerns separately trained predictors, so its scope includes adaptation of the weights to the decoding procedure.
For hill-climbing, the result helps explain why a fine-grained move can do useful work. If there is strong evidence for many attachments individually, a search can secure them while leaving other head assignments in place. It can then apply wider structural evidence to the remaining ambiguities. The experiment tests the availability of local evidence through head accuracy. The first-order counting experiment asks the distinct question of how that evidence shapes the set of trees where greedy search can stop.
How many endpoints compete with the optimum?
The authors count local optima for learned first-order scores on Turkish, Slovene, English and Arabic. For each language, they sort test sentences by the number of locally optimal trees and report percentiles of that distribution. The counts concern trees for a single sentence at a time. A sentence with many possible trees can still have few endpoints where every valid head replacement fails to improve the score.
At the 50% percentile the local optimum count is 1 on Turkish, 2 on Slovene, 21 on English and 2 on Arabic. The upper part of the distribution is more varied. At the 90% percentile the corresponding counts are 2, 3647, 2443 and >10,000. English has a count of 121 at the 70% percentile and an average sentence length of 24.0 in this analysis. These results put substance behind the distinction between ordinary instances and the worst-case bound. Many sentences offer few competing endpoints, while some learned scoring instances still have thousands of local optima.
The authors then check optimization success against the exact first-order solution using 300 uniform restarts per sentence. For test sentences with length up to 15, the table reports 100% success in each language. For longer sentences the rates are 100% in Turkish, 98.1% in Slovene, 99.3% in English and 99.1% in Arabic. The result makes the existence of many local optima compatible with a high rate of successful decoding. A count gives each endpoint equal weight. Random restarts encounter endpoints according to how frequently initial trees and subsequent greedy paths lead to them. The success rates measure that latter influence indirectly.
The first-order test is stronger than an observation that the score eventually stops improving. The exact decoder supplies a target independent of the randomized search, so a sentence counts as a success only when the returned score reaches that target. The combination of the count and the exact check is informative even where the count varies widely. It shows that a large number of endpoints can coexist with a good chance of reaching the best-scoring one under the restart procedure used in the experiment.
What the richer features add
The variant comparisons show that the greedy decoder can make use of structural evidence beyond individual attachments. Average test UAS rises from 87.75% with first-order features to 89.10% in the third-order variant. The full configuration without its tensor reaches 89.24%, and the configuration with the tensor reaches 89.44%. This sequence describes the paper’s reported parser configurations. The third-order and full setups also differ in feature templates and training duration, so the successive results measure complete configurations rather than independent estimates for every feature family.
The comparison with and without the tensor gives a closer look at the scoring contribution within the full setup. Its average direction is favorable, but the individual results vary. On Portuguese the full parser without the tensor scores 92.60% UAS and the version with the tensor scores 92.36%. On Swedish those versions score 91.35% and 91.08%, respectively. On Arabic, the corresponding results are 79.38% and 80.24%. The per-language variation qualifies what can be inferred from the overall gain. It is possible for a change in how arcs are scored to help the full system on average and still shift some languages in the other direction.
The paper also divides test sentences by length and compares the full parser with the first-order variant. Its figure reports the absolute improvement in UAS for the length groups. For most languages, the higher-order setup shows a larger gain on longer sentences. Such sentences offer more opportunities for attachments to interact, which fits the authors’ account of why structural features can help. The experiment measures the performance of the richer setup across lengths. It leaves the source of each individual correction open, including which configuration or global feature supplied the decisive evidence.
Starting accuracy and the value of another start
The initialization comparison uses Slovene, Arabic, English, Chinese and Dutch. The deterministic condition begins at the maximum a posteriori, or MAP, tree under the first-order score and runs hill-climbing once. This is the tree the first-order scorer ranks highest. The other conditions run hill-climbing with restarts. One draws its initial trees uniformly, and the other draws them from the trained first-order distribution. The experiment reports accuracy for the starting tree and the final UAS after hill-climbing.
Initialization strategies on the CoNLL test sets in the initialization study
Both restart strategies finish ahead of the single run from the highest-scoring first-order tree.
The numbers
| System or setting | Average final UAS % |
|---|---|
| Single run from first-order MAP tree | 85.4 |
| Restarts from uniform trees | 88.0 |
| Restarts from learned first-order distribution (this paper) | 88.1 |
Starting accuracy gives the reverse ordering between the deterministic condition and the two randomized ones. The first-order MAP tree averages 78.4% initial attachment accuracy. The uniform draws average 25.9% and draws from the learned distribution average 44.5%. The final averages for the two restart strategies are close. The authors infer that a sophisticated starting distribution contributes little to final accuracy here, provided the decoder gets a collection of starts to search from. The English test result illustrates the pattern directly. Uniform starts average 39.6% initial accuracy and starts from the learned distribution average 55.6%, while both finish at 93.3% UAS.
The two randomized conditions give the direct comparison of distribution choice. The MAP condition changes both the starting strategy and the amount of repeated search, which is relevant to how its result should be read. It shows what happens when the decoder commits to refining a strong initial tree once. Random restarts offer opportunities to reach other endpoints and choose among them. The experiment supports the practical value of that combination, while leaving open how other ways of generating multiple strong, diverse starts would fare.
How much of the search happens early?
For English and Slovene, the authors examine the full parser’s best score as restarts accumulate. For each test sentence, they use the highest score found over 3,000 restarts as the normalization reference. This allows the score trajectories of different sentences to be compared relative to a common experimental procedure. The reference is an observed best score for that sentence. In this analysis, reaching it early means that later search in the same experiment fails to improve on the early result.
Within the first 300 restarts, all sentences of length up to 15 in both languages reach the score found after the full run. The reported proportion for this group is 100% in each language. For sentences longer than 15, the proportions are 98.11% in Slovene and 99.12% in English. The plotted score curves extend to 1,000 restarts and level off after around 500. The sentence counts and the score curves describe complementary aspects of convergence. One records how often an early output already attains the eventual reference. The other shows how the scores evolve as the decoder sees more starting trees.
The speed analysis varies the number of restarts and plots UAS against decoding time in seconds per token on both datasets. More opportunities to search can improve accuracy, while stopping earlier saves processing time. This makes the restart budget a way to control the cost of inference with the same scoring function. The convergence results explain why a modest budget can frequently preserve the performance of a much longer run. The comparison remains specific to the observed search trajectories and the implementation used for the benchmark.
Limitations
Qualifications in the paper
The authors’ count of local optima applies to first-order scores. They choose that case because the search can be checked against exact inference and because arc factorization makes the counting argument possible. The formal bound can still be large for a long sentence, and the authors give a construction that attains it. Their claim about the practical behavior of greedy search is based on learned scoring functions and test sentences. For higher-order scores, the paper offers a hypothesis about the role of arc preferences, a decoder comparison and benchmark results.
The evidence for optimality becomes more conditional as the features get richer. In the second-order experiment, dual decomposition can establish the global optimum when it produces a certificate. The high agreement rate on those sentences demonstrates that hill-climbing typically reaches a known optimum on that subset. For other sentences, a higher objective value establishes which of the two returned trees the scoring function prefers. In the full-parser convergence experiment, the reference is the strongest tree found in 3,000 restarts. That comparison can measure gains from additional search within the experiment. A stronger candidate elsewhere in the search space would require a different form of evidence.
The authors also flag a concern about training. Max-margin learning calls for the strongest competitor, and approximate inference may supply a weaker one. They cite earlier work showing that weaker violations can suffice for separable training sets, meaning sets for which suitable parameters can separate the targets from alternatives. That result gives a reason approximate search can work in training. The paper’s own benchmark comparison provides the practical evidence here, whereas the cited result concerns a condition on the data and learning problem.
For speed, the authors characterize parsing time as roughly comparable to existing graph-based and sampling systems. They explicitly point to implementation language and computational platform as complications for direct comparisons. Their 8-thread setup helps specify what the reported experiment measures. The variation of speed with restart count in the same implementation gives a more direct view of the cost of additional search than a timing comparison across separately engineered parsers.
Qualifications that follow from the setup
The proof sketch relies on strict improvements when restoring preferred cycle arcs. Equal arc scores make the treatment of preferences significant. The paper defines a local optimum through the absence of a strictly improving single-head change. Under that definition, if every tree has the same score, every tree meets the local-optimum condition. The stated bound read literally for arbitrary tied scores needs a qualification, such as a fixed tie-breaking rule that gives strict preferences for the analysis. The distinction matters when interpreting what the counting algorithm returns for degenerate scores. The exact-decoder checks on the learned first-order scores are empirical comparisons under the procedures used in the experiments.
The bottom-up argument is about the existence of a valid path of head changes. It says little by itself about the likelihood that hill-climbing will follow that path. Even with strict scores, the distribution of final endpoints depends on the starts and on which moves are chosen along the way. Likewise, the number of local optima gives limited information about how the starting trees are distributed across their paths of attraction. The empirical restart analysis addresses that behavior directly for the tested sentences. A guarantee on the number of runs needed for other scoring functions would require further information about the search landscape.
Several results concern objective scores, which can assign equal values to different trees. The tie percentages for second-order decoding therefore establish equality of achieved scores. They give limited information about exact agreement on the words’ heads. Certification likewise validates an objective value. UAS answers the linguistic question of whether heads agree with the annotation, and the benchmark results use that separate measure. This distinction is particularly important when comparing search methods under identical parameters, since a gain in objective score and a gain in attachment accuracy are separate outcomes.
The benchmark evaluates head prediction with corpus-supplied tags and morphology, standard treebank splits and punctuation excluded from scoring. Its conclusions apply directly to those conditions. Accuracy under automatically predicted linguistic inputs, accuracy on relation labels and behavior under changes in domain would each require measurements designed for that question. The paper’s group averages also coexist with sizable differences across languages, so the per-language rows give a better account of where a particular variant helps.
The comparisons with published parsers measure performance of complete systems, including differences in parameter learning and scoring. The restricted third-order comparison and the full configuration without the tensor bring the feature setups closer. The shared-score second-order test offers a more targeted comparison of the two search procedures. Taken together, the results support a specific inference claim for the second-order experiment and a broader benchmark claim for the finished parser. Attribution of every benchmark difference to random restarts alone would require more tightly matched comparisons.
What came after
Taking randomized greedy inference into a joint task
The clearest continuation is Randomized Greedy Inference for Joint Segmentation, POS Tagging and Dependency Parsing. Its title explicitly carries the inference method into a task involving word segmentation, grammatical categories and dependency structure together. Segmentation determines the units to be tagged and parsed. The dependency parser in the earlier paper begins with those units and receives the corpus’s tags as input. In the later work, the choice of output has a wider scope because all of these decisions belong to the joint task. Randomized Greedy Inference for Joint Segmentation, POS Tagging and Dependency Parsing Tokenization and segmentation
That change in task gives the citation a concrete methodological connection. The earlier paper defines a legal edit in terms of head changes over an existing set of words. In a joint task, a different segmentation can also change the units to which tags and attachments refer. The title establishes that randomized greedy inference was taken into this broader problem. It leaves the exact move set, the restart policy and the results unspecified, so the relationship is clearest at the level of the inference strategy and the scope of the prediction.
Citations across related structured prediction tasks
Transition-Based Dependency Parsing with Stack Long Short-Term Memory cites the paper from within syntactic dependency parsing. Its title places the later work in the transition-based line, which frames parsing through decisions that build a structure. The randomized greedy parser works with a complete tree and revisits its head assignments. Both approaches address how to organize decisions about a dependency structure, with different units of search apparent from their stated approaches. The citation establishes a connection between the works. The title identifies the later paper’s transition-based design, while its use of any specific restart or tree-repair technique remains unspecified. Transition-Based Dependency Parsing with Stack Long Short-Term Memory
Deep Multitask Learning for Semantic Dependency Parsing cites the paper in work on semantic dependencies. The earlier experiments evaluate syntactic head choices. The later title identifies a different prediction target and puts the emphasis on learning across tasks. That is a meaningful point of contact because the original study separates the parameters learned for scoring a structure from the procedure that searches for a structure under those parameters. The title and citation establish the change in task and the later work’s learning emphasis. They leave the role of randomized hill-climbing in its method undetermined. Deep Multitask Learning for Semantic Dependency Parsing Semantic parsing
Mise en Place: Unsupervised Interpretation of Instructional Recipes cites the parsing study from a task centered on procedural language. The later title identifies interpretation of recipe instructions and an unsupervised approach. The contrast in supervision is relevant to the scope of the citation. The dependency parser’s updates require annotated reference trees, and its attachment scores are evaluated against treebanks. The later work’s title places it in an interpretation problem with a different supervision setup. The citation links the studies, while the particular role of greedy inference in the recipe work remains unspecified. Mise en Place: Unsupervised Interpretation of Instructional Recipes
Among these citing works, the joint segmentation study explicitly names the original inference idea and applies it to a more inclusive prediction task. The other titles locate citations in transition-based syntax, semantic dependency learning and recipe interpretation. Those connections show where the paper entered later discussions of structured language analysis, with the direct methodological extension clearest where randomized greedy inference is itself the stated subject.
Cite
Cite as Yuan Zhang, Tao Lei, Regina Barzilay and Tommi Jaakkola. 2014. Greed is Good if Randomized: New Inference for Dependency Parsing. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP).
@inproceedings{zhang2014greed,
title = {{Greed is Good if Randomized: New Inference for Dependency Parsing}},
author = {Yuan Zhang, Tao Lei, Regina Barzilay and Tommi Jaakkola},
booktitle = {Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
year = {2014},
doi = {10.3115/v1/d14-1109},
url = {https://doi.org/10.3115/v1/d14-1109}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/zhang-2014-greed-is-good-if-randomized/