Steps to Excellence: Simple Inference with Refined Scoring of Dependency Trees
Paper · 2014 · Yuan Zhang, Tao Lei, Regina Barzilay et al.
Summary
In dependency parsing, a program has to decide which word governs each word in a sentence. A good decision can depend on the rest of the tree. The attachment of a preposition, for example, can involve the word that governs the phrase, the preposition itself, and the coordinated words inside the phrase. Giving the parser evidence about all those relationships makes it harder to find the tree with the highest score. Zhang and colleagues address this problem by training the scoring function and designing the search together. They want a parser that can use evidence about an entire tree while still making progress through inexpensive revisions.
The parser starts with a valid tree and proposes changes to it. One sampler considers changing the head of a single word. The other can redraw several attachments together by running a random walk based on scores for individual dependencies. The parser judges those proposals with its richer tree score and remembers the highest-scoring tree it encounters. During training, the reference tree supplies feedback on both the overall score of a candidate and the direction of individual moves. When a proposed tree makes fewer head mistakes than its neighbor, the training procedure encourages the score to reflect that improvement. The authors also extend the single-word move to part-of-speech tagging. This lets the parser reconsider a word’s predicted grammatical category and its attachment together.
On the test sets for 14 CoNLL languages, the parser reaches an average unlabeled attachment score of 88.87% with Turbo parser features and 89.23% with its full feature set. Unlabeled attachment score measures whether each evaluated word has the correct head. Turbo scores 88.72%, and a reranker using the rich features on a fixed list of MST parses scores 87.92%. The full system exceeds the best previously reported result for four languages. The training comparison favors using feedback from neighboring trees alongside comparisons with the reference. The decoding comparison finds that the random-walk sampler reaches higher tree scores when search time is limited, while both samplers can reach the same score given sufficient time in the languages studied.
On the Columbia Arabic Treebank test set, correcting tags during parsing raises unlabeled attachment score from 86.95% with fixed predicted tags to 88.38%. Parsing with gold tags reaches 88.46% in the main results table. The corrected system also scores above the best published shared-task ensemble in the paper’s comparison. Together, the experiments show where the approach helps. Richer scores can distinguish trees using information that spans several attachments, and training on the changes that the parser actually considers helps turn that information into useful search decisions.
Deep dive: Steps to Excellence: Simple Inference with Refined Scoring of Dependency Trees
Zhang and colleagues explain how sampling and search-aware training make it practical to score whole dependency trees and revise part-of-speech tags. · about 39 minutes to read
The problem and its context
An attachment is part of a tree
A dependency tree represents the grammatical organization of a sentence through directed links. Each word has a head, the word or special root node that governs it. A directed head-to-dependent link is called an arc. Choosing a head for each word also has to produce a connected, rooted structure without cycles. A collection of plausible head choices can fail that requirement. If two words choose each other as heads, for example, neither reaches the root through that chain. The parser’s task is therefore to select a compatible set of attachments for the sentence.
The most direct way to score a candidate is to assign a value to each possible arc and add the values of the arcs in the tree. In that setting, an arc contributes the same amount wherever it occurs. First-order scoring has this property. The root and acyclicity requirements still constrain which combinations are valid, but the contributions to the score separate cleanly. The paper points to maximum spanning tree parsing as a way to find the best non-projective tree under such a score. A projective tree requires the words spanned by each dependency to fall within the relevant head’s subtree. Non-projective parsing allows dependencies that violate that condition. Non-Projective Dependency Parsing using Spanning Tree Algorithms
A scoring function can also ask whether neighboring dependents make sense together, how a head relates to the head above it, or how the words under a node are distributed across a sentence. Each of those questions involves an arrangement of arcs. Consider coordination. If two expressions are analyzed as conjuncts, their categories and the lengths of their spans give the parser evidence about that analysis. The evidence belongs to a configuration that the parser builds from several decisions. Assigning a value to a potential attachment in isolation cannot directly express how well that configuration fits together.
The paper calls features that can inspect a broader configuration global features. A feature is a quantity extracted from a sentence and a candidate analysis that contributes to the candidate’s score. Features can describe particular properties of the root-to-edge path, the dependents of a word, or the boundaries of a subtree. Once these quantities depend on the arrangement of the tree, changing an attachment can also change the values assigned to other parts of the analysis. Search becomes harder because an attachment’s contribution can depend on what the parser does elsewhere. The paper cites the computational hardness of finding the highest-scoring non-projective tree beyond first-order arc preferences. Online Learning of Approximate Dependency Parsing Algorithms
How earlier parsers made the search manageable
The paper traces an early route to rich scoring through reranking in constituency parsing. A constituency analysis organizes words into nested groups. A first parser generates a list of complete analyses, and a second scorer chooses among them. Because the second stage can inspect complete candidates, it can use features of arbitrary scope. The first stage, however, determines the alternatives that the richer scorer ever sees. If the reference analysis is absent from the list, no second-stage score can select it. This matters even when the scoring function has exactly the information needed to recognize the reference analysis. Discriminative Reranking for Natural Language Parsing and Coarse-to-Fine n-Best Parsing and MaxEnt Discriminative Reranking
Another route keeps the search over trees broad and designs the score so that it can be broken into tractable subproblems. The paper discusses dual decomposition, which divides a difficult maximization problem into parts that can be solved more readily. Those parts can make overlapping decisions. The method uses adjustable penalties, called Lagrange multipliers, to encourage them to agree. The approach gives the parser a way to handle some interactions while exploiting efficient routines for the individual parts. Its applicability depends on which kinds of features the parts can accommodate. The paper relates this approach to linear programming relaxations and also discusses other optimization-based treatments of structured prediction. Dual Decomposition for Parsing with Non-Projective Head Automata and Turning on the Turbo
The authors also place their work alongside search procedures that assemble an analysis incrementally and procedures that move among complete structures. In a transition-based system using beam search, several promising partial analyses can be kept as the parser advances through its decisions. A search over complete trees has a different starting point. Each candidate already assigns the sentence a structure, so its score can take account of features defined on the finished analysis. The procedure can then make a revision and examine the resulting tree. The cost of this flexibility is that the search still needs a way to find productive revisions among a large number of possibilities. Search-based Structured Prediction
SampleRank supplies the learning idea that connects these pieces. As the paper describes it, SampleRank learns preferences between the structures encountered during search, using a reference to tell which member of a pair is better. Earlier applications cited by the authors include sequence labeling and phrase-based machine translation. For dependency parsing, the relevant insight is that a scoring function can order the reference above the incorrect trees seen in training and still order two incorrect neighbors poorly. A parser that traverses those neighbors needs the score to make useful distinctions long before it reaches a reference-quality tree. Training on the encounters that arise during search gives the authors a direct way to teach those distinctions.
The method, step by step
What the parser scores
The parser starts from a complete, valid tree. At each step, it considers a revision, scores the proposed tree, and makes a separate decision about whether to continue the search from it. The distinction between scoring and continuing matters. An occasional move to a lower-scoring tree can lead to useful proposals later. At the same time, the parser can keep the best tree it has already found, so exploring elsewhere does not discard that result.
Sampling a dependency tree during decoding
The steps in order.
The formal setup begins with a sentence and the set of allowable trees for that sentence. The allowed set can contain non-projective trees or be restricted to projective trees. During training, each sentence comes with a reference analysis, which the paper calls the gold tree. The reference supplies the correct heads and makes it possible to measure how far a sampled tree is from the target.
D = {(x⁽ⁱ⁾, y⁽ⁱ⁾)) : i = 1, …, N}
Here D is the training set, i indexes its examples, and N is the number of examples. The pair consists of the sentence x⁽ⁱ⁾ and its gold tree y⁽ⁱ⁾. Braces enclose the collection of example pairs, and the ellipsis indicates the remaining indices up to N. For an individual sentence x, the authors write Y(x) for the set of valid trees and y for a member of that set. They use xⱼ for the word at position j and hⱼ for its head.
s(x, y) = θ · f(x, y)
Here s is the score of tree y for sentence x. The vector f(x, y) contains the feature values for that analysis. The vector θ contains the learned weights, with a weight for each feature. The dot denotes the sum obtained by multiplying each feature value by its corresponding weight and adding the products. The score is linear in those weights. The feature values themselves can depend on configurations anywhere in the tree.
A first-order feature might describe the word forms or grammatical categories involved in an arc. A broader feature can look at the chain of heads above a word or the set of dependents below it. The learning procedure can assign weight to both types. The distinction matters at decoding time because an efficient routine for sampling trees from arc scores can still be useful as a source of proposals, even when the final score uses all the features.
Turning scores into a guided search
Decoding means choosing an analysis for a sentence using the learned weights. The goal is a valid tree with a high value of s. To guide the search, the authors give each valid tree a sampling weight based on its score and a temperature. The relationship is expressed as a probability distribution up to a common normalization factor.
p(y | x, T, θ) ∝ exp(s(x, y) / T)
Here p is the target distribution, and the vertical bar indicates that the probability assigned to tree y is conditional on sentence x, temperature T, and weights θ. The proportionality sign means the exponential values must be normalized over the valid trees to make probabilities. The function exp is the exponential, and the slash divides the tree score s(x, y) by T. At a higher temperature, differences in tree score have a milder effect on the relative weights. Cooling makes the distribution favor high scores more sharply.
Drawing directly from this distribution would require handling all the feature interactions that made tree maximization difficult in the first place. The authors use a proposal distribution, q, to generate a nearby candidate and an acceptance probability to decide whether that candidate becomes the current tree. The proposal can use the full score over a small range of changes, or a simplified score over a broader change. The acceptance decision accounts for the probability of proposing the move in each direction. This is the role of the Metropolis–Hastings rule used in the paper. An Introduction to MCMC for Machine Learning
α = min(1, [p(y′) q(yᵗ | y′)] / [p(yᵗ) q(y′ | yᵗ)])
Here α is the acceptance probability, yᵗ is the current tree at step t, and y′ is the proposed tree. The terms p(y′) and p(yᵗ) are their target weights for the same sentence, temperature, and parameter vector, with this shared conditioning omitted. The term q(y′ | yᵗ) is the probability of proposing the new tree from the current one. The term q(yᵗ | y′) is the probability of proposing the reverse move. Juxtaposed terms are multiplied, brackets group the numerator and denominator, and min chooses the smaller of the ratio and 1. The common normalization of p cancels in the ratio.
P(Z = 1) = α
Here Z is a Bernoulli random variable used to decide whether the move is taken. P denotes probability, and Z = 1 is the outcome that accepts the proposal. In that case, the next current tree is y′. Otherwise, the next current tree remains yᵗ. The decoding procedure also compares the proposal’s score with the best score it has seen. It records an improvement before performing the acceptance test, so the returned tree is the best one evaluated along the way.
T ← c · T
Here T is the current temperature, the left arrow means to replace it with the value on the right, and c is the temperature update rate. The centered dot denotes multiplication. The paper’s decoding procedure starts at an initial temperature T⁰ and repeats the update as the search proceeds. The authors control the speed of decoding by varying c. For the main experiments, they use conservative cooling and continue sampling until the score stops changing. Search can also be interrupted with a usable tree already available from the record of proposals.
Changing one head with Gibbs sampling
The first proposal mechanism chooses a word at random and asks what its head should be with all other heads held fixed. Every possible answer yields a candidate tree if the new arc preserves the structural requirements. A replacement that creates a cycle is excluded. In a setting that requires projectivity, a replacement must also preserve that property. Because the search considers the alternatives for just one word, it can evaluate the full tree score when assigning their probabilities.
This is a Gibbs move. Gibbs sampling redraws a variable from its distribution conditional on the values of the other variables. Here the variable is the selected word’s head, and the conditioning information includes both the current attachments elsewhere in the tree and the sentence. Choosing among heads according to the target distribution gives a proposal for which the Metropolis–Hastings acceptance probability is 1. The chosen value becomes the new head, and retaining the existing head is possible when it is drawn again.
The size of the move gives Gibbs sampling both its convenience and its difficulty. For a fixed word, the parser can inspect the feasible heads and apply features of the complete tree to each option. If a desirable change requires moving several attachments together, the sampler has to reach it through intervening trees. Some intervening trees may score poorly, and others may violate the structural requirements if reached by a particular order of edits. At a cooler temperature the sampler is less inclined to pass through low-scoring trees. The paper describes slow mixing as a consequence of this kind of restriction. In this context, mixing concerns how readily the sampler moves away from its starting region to explore other trees.
Changing several heads with a loop-erased random walk
The second mechanism is based on Wilson’s random-walk sampler. The simple case it can solve exactly is a distribution whose weight for a tree is a product of the weights for the arcs it contains. The exponential of an arc score supplies a positive arc weight. Because a sum of first-order scores becomes a product after exponentiation, the distribution can be sampled using the individual arc weights and the requirements for a valid rooted tree.
p(y) ∝ ∏ᵢ→ⱼ ∈ ʸ wᵢⱼ
Here p(y) is the first-order probability of a tree y with a specified root. The proportionality sign leaves out the normalization shared across trees. The product sign ∏ means to multiply wᵢⱼ over the arcs i → j in y. The symbol i is a head node, j is its dependent, and the arrow gives the dependency direction from head to dependent. The membership symbol ∈ indicates that the arc is present in y. The weight wᵢⱼ is the exponential of the corresponding first-order score. The paper uses this form for trees that may have multiple children of the root and are free to be non-projective.
The walk itself travels in the opposite direction from the dependency arrows. Starting from a node that still needs to connect to the rooted tree, it draws a prospective head and continues from that head. If the walk revisits a node along its path, it erases the loop and resumes from the revisited node. If the walk reaches the tree already built, the remaining path can be attached. It then contributes a chain where each new node has a head and can reach the root. Repeating this process brings the remaining nodes into the tree.
The paper’s illustration traces a walk in which not visits Monday and then returns to not. Keeping both of those provisional choices would make the words point to each other. Erasing that part of the walk removes the cycle. The walk can continue from not until its surviving path meets the developing tree. The example shows how the sampler can draw head choices without enumerating all the complete combinations and can resolve a circular choice while it builds a valid path.
With a first-order distribution, the property the authors use is exact sampling. Applying the procedure directly to their full score would lose that property because a head choice can affect features shared by several arcs. They use the walk to generate a proposal instead. In each step they uniformly choose a subset of nodes, freeze the heads of the other nodes, and redraw the heads of the selected nodes using the first-order weights. The rest of the tree constrains which new head paths are valid. The selected subset has size K, and the authors use K = 4 in their experiments with this sampler.
A full Gibbs update over those heads would draw from the rich conditional distribution and would have to consider combinations of their assignments. The paper notes that the work grows exponentially with K for that approach. The loop-erased walk avoids enumerating the combinations by using the factorized distribution for the proposal. Once a candidate exists, the full score enters through the target distribution in the acceptance calculation. That division of work lets the system make coordinated changes while continuing to evaluate trees with features that are absent from the proposal score. The exactness of Wilson’s sampler concerns the first-order drawing procedure. The richer decoding search remains approximate.
Teaching the scores to distinguish good moves
Training uses the number of wrong heads as its measure of tree error. An arc contributes an error when the candidate assigns its dependent a different head from the reference. A tree with the right head for each word has no head errors under this criterion. Two trees can differ in which words they attach correctly and still have the same total error. The training comparisons use the count to determine a preference and the size of its margin.
Err(y) = Δ(y⁽ⁱ⁾, y)
Here Err(y) is the error of candidate y on the current example, i is that example’s index, and y⁽ⁱ⁾ is the gold tree. The function Δ counts the head assignments on which the gold and candidate trees differ. The notation Err leaves the example index implicit because the training loop already specifies the sentence and reference for the comparison.
The first training requirement compares a sampled tree with the gold tree. It asks for a score advantage for the reference that grows with the number of head mistakes. A candidate that is far from the reference should thus be separated by a larger score margin. The margin is a requested difference between scores, measured on the scale of the training loss.
s(x⁽ⁱ⁾, y⁽ⁱ⁾) − s(x⁽ⁱ⁾, y) ≥ Δ(y⁽ⁱ⁾, y) ∀ y ∈ Y(x⁽ⁱ⁾)
Here x⁽ⁱ⁾ is the sentence of example i, y⁽ⁱ⁾ is its gold tree, and y is a valid candidate. The function s assigns a score to each tree for that sentence. The minus sign subtracts the candidate score from the gold score, and ≥ requires that the resulting margin be at least the head-error count supplied by Δ. The expression ∀ y ∈ Y(x⁽ⁱ⁾) reads “for every tree y in the valid set for this sentence.” In practice, the authors enforce the constraint on trees reached during sampling. Enumerating all of Y(x⁽ⁱ⁾) would generate exponentially many constraints.
Gold comparisons can leave the direction of a local move unresolved. Suppose the parser encounters a tree that differs from the reference in one arc and another that differs in ten. Both could fall below the reference by their required margins even if the worse tree still scores higher. A search that visits these trees needs the score to prefer the one with fewer errors. The paper adds a margin requirement for pairs of neighboring trees considered along the search path.
s(x⁽ⁱ⁾, y) − s(x⁽ⁱ⁾, y′) ≥ Err(y′) − Err(y)
Here y and y′ are the trees being compared for the same sentence x⁽ⁱ⁾. In the preferred ordering, y is the one with fewer head errors and y′ has more. The left side subtracts the score of y′ from that of y. The right side subtracts the error of y from that of y′, giving the required margin for the preference. The ≥ sign requires at least that margin. When both trees have the same error count, their relative ordering gives no update of this kind in the training algorithm.
The updates use MIRA, the margin-based online learning procedure cited by the authors. Training is online in the sense that it can modify the weights after an individual comparison. Each update seeks parameters close to those it already has while attempting to satisfy the comparison’s margin. A slack variable allows the constraint to be relaxed at a cost. That is useful because fitting the current comparison perfectly could require an unnecessarily large parameter change or conflict with preferences encountered elsewhere. Ultraconservative Online Algorithms for Multiclass Problems
min over θ, ξ: ‖θ − θᵗ‖² + Cξ
subject to θ · (f(x, y) − f(x, y′)) ≥ Err(y′) − Err(y) − ξ, ξ ≥ 0
Here θ is the proposed parameter vector and θᵗ is the vector before the update at parameter step t. The double bars with a squared exponent give the squared Euclidean distance between those vectors. The variable ξ is non-negative slack, and C weights its cost in the objective through the product Cξ. The function f gives the feature vector for a tree and sentence, and subtracting the vector for y′ from the vector for y expresses the difference the update is trying to score. The dot takes the inner product with θ. The right side of the constraint is the required difference in head errors after allowing for the slack. The comparison with a gold tree uses the same update mechanism with the gold feature vector and the candidate’s head-error count. The paper states that the updates can be computed in closed form.
The training loop begins with weights set to zero and makes repeated passes through the annotated sentences. A pass through the training data is an epoch. For a sentence, the current weights guide a proposal from its current sampled tree. The reference determines which member of that pair makes fewer mistakes. The acceptance rule determines which tree becomes the current one. When the score fails to give the better member of the pair its margin, MIRA adjusts the weights. The sampled tree retained by the chain also supplies a comparison with the gold tree. In practice the authors draw several samples for a sentence during an epoch, and the algorithm returns an average of the parameter vectors visited during training.
This coupling changes the training examples the learner sees. As the weights change, later proposals depend on a different set of preferences, and the sampled trees need not resemble those considered early in training. The gold comparison supplies the destination throughout this process. The neighboring comparison supplies feedback at the scale of the revisions that the sampler is considering. The decoder later uses the learned weights without gold references.
Giving the score information beyond individual arcs
The feature set starts with established configurations from graph-based, transition-based, and dual-decomposition parsing. An arc connects a head and dependent. A sibling feature can compare dependents with a common head, and a grandparent feature looks at a chain through a head to the next node above it. Other configurations cover consecutive or arbitrary siblings, head bigrams, grand-siblings, and tri-siblings. The authors also use longer chains involving a grand-grandparent and configurations joining a sibling with a grandchild. For the sibling–grandchild configuration they distinguish a sibling located between the head and modifier from other positions. This makes word order relevant to the structural description.
Several global templates describe the extent or shape of the analysis. A right-branching feature follows the path from the root to the rightmost word other than punctuation. It counts the words on that path and divides by sentence length, so the contribution can distinguish a long path relative to the sentence from a short one. Span-length features group lengths into bins and include flags for whether a span reaches the sentence end or is followed by punctuation. A neighboring-span feature combines the grammatical categories immediately to the left and right with the span’s length bin and the category of its root. Those templates give the scorer access to the position of a phrase and the words around its boundaries.
The valency features describe the dependents that a word takes. One template groups together heads with similar counts of non-punctuation modifiers. Another uses the sequence of those modifiers’ grammatical categories. The count supplies evidence about how many dependents the head typically has. The sequence supplies evidence about what kinds of dependent occur together. A non-projectivity feature checks whether an arc spans a word outside its head’s descendants. The parser can use that flag by itself or combine it with the word forms or grammatical categories of the head and dependent.
Coordination is an example of a configuration that can affect more than one score component. The authors use features for agreement between conjuncts in grammatical category and span length. Their example cats and dogs illustrates why the spans are informative. Each conjunct has a similar extent, and their categories fit the same coordination. The analysis of a prepositional phrase can also depend on how coordination is represented. The paper’s illustration involving knife and fork associates the attachment evidence with those conjuncts themselves. The prepositional attachment features include lexical information about the governing word, the preposition, and the argument. They can draw the argument words from inside the coordinated structure even when the conjunction occupies a relevant position in the tree.
The score can combine these templates each time it evaluates a proposed tree. If a changed head moves a subtree, the change can affect the span of a higher node, the sequence of a head’s modifiers, and the status of an arc as projective. Thus a small proposed revision has consequences beyond its edited arc. The sampler limits the changes it proposes at once. The feature function can register the broader effects of any candidate that results.
Finding a manageable set of candidates
The practical system first learns a first-order pruner using the same training algorithm. For each word it estimates a probability for incoming dependencies. The authors remove a head candidate if its probability falls below 0.005 times that of the most likely head, and they cap the number of candidate heads at 30. The threshold is relative to the strongest candidate for the current word. On the CATiB development set, pruning achieved 99% recall, according to the paper. In this measurement, recall concerns whether pruning retains the reference attachments.
This stage narrows the search before the rich score is applied. The remaining candidates support many different trees, since the decoder can combine them into complete analyses and revise those analyses during search. They also define a boundary on the available revisions. When pruning removes a gold head, the subsequent sampler cannot recover that attachment. This is a different restriction from reranking, which chooses among a list of complete analyses constructed beforehand.
The authors tune the regularization weight C on development data, using candidates of 0.1, 0.01, and 0.001. They select the number of training epochs from 50, 100, and 150 for each language. The CoNLL data lack a standard development set in this setup, so the authors randomly reserve 200 sentences from the training set for tuning. Once they choose the settings, they train on the full training set. They use the random-walk sampler for standard dependency parsing on CoNLL and allow non-projective trees there. The paper makes the parser’s source code available.
Revising a tag and a head together
An initial tagger can assign a grammatical category that later makes the sentence difficult to parse. The Arabic experiment starts with predicted tags and allows the parser to revise them in light of a complete tree. At training time the authors have both the reference tags and the predicted tags. At test time the predicted tags supply the starting information and the basis for suggesting alternatives. The reference tags are available as a separate evaluation condition.
The authors construct the alternatives using the training vocabulary and a table of tagging confusions. A confusion table records how often a reference category was paired with a particular predicted category. For a word seen in training, the vocabulary provides a first filter on the tags it can receive. Unseen words skip that filter. A second filter uses counts for the predicted tag and removes alternatives whose pairing with that prediction is too rare.
c(t, tₚ) < α · c(tₚ, tₚ)
Here t is a candidate tag, tₚ is the tag originally predicted for the word, and c(t, tₚ) counts examples whose gold tag was t and whose predicted tag was tₚ. The quantity c(tₚ, tₚ) counts correct predictions of tₚ in training. The symbol α denotes the threshold multiplier in the tag filter, separately from its use for the acceptance probability. The centered dot multiplies the count by that multiplier. The less-than sign gives the condition for discarding the candidate. The authors choose α = 0.003. On the CATiB development set this gives an oracle tag accuracy of 98.9%, meaning that a selector given the correct answers could attain that accuracy with the available candidates.
H × T
Here H is the set of candidate heads for the selected word, T is its set of candidate tags, and × is the Cartesian product. In this expression T denotes a tag set, while T in the temperature formulas denotes the temperature. Each member of the product is a combination of a head choice and a tag choice. A Gibbs step samples from these combinations subject to the tree constraints, so a change can revise either value or both. The surrounding tree can now favor a tag through features that depend on the word’s syntactic connections.
The authors add features specifically for tagging, drawing on the earlier feature-rich tagging work they cite. Some templates combine a tag with an adjacent word form. Others inspect configurations of several tags around the current word. The paper uses templates up to 5-gram order and includes both contiguous and skipped positions in its tag combinations. This provides evidence about how grammatical categories occur in their word context, alongside the evidence from the dependency features. Feature-Rich Part-of-Speech Tagging with a Cyclic Dependency Network
For this joint experiment, the authors use Gibbs sampling and require projective trees. Once tags become variables, features that would be first-order over arcs with fixed tags can depend on tag decisions shared across arcs. The first-order distribution used to generate the normal random-walk proposal no longer has the same definition in that setting. The joint Gibbs move gives the authors a way to work with the combined score directly over the alternatives for a single word. The experiment implements this approach for tag correction. The paper also identifies relation labels and morphological information as variables that the general sampling scheme could in principle revise.
Experiments and results
Data, splits, and what the score counts
The main experiments use the CoNLL 2006 and CoNLL 2008 multilingual benchmarks, with dependency treebanks for 14 languages. A treebank pairs sentences with annotated syntactic structures. Most of the CoNLL datasets in the study include non-projective analyses. The system uses all of the sentences in the respective training and test sets, with the temporary development holdouts used to select training settings. The parser allows non-projective predictions for these experiments. CoNLL-X Shared Task on Multilingual Dependency Parsing and CoNLL 2008 Shared Task
The separate Arabic experiment uses the Columbia Arabic Treebank, abbreviated CATiB. The data supply gold and predicted versions of the categories and morphological information. The authors use 12 core part-of-speech tags, lemmas, determiner features, rationality features, and functional gender and number. A lemma represents a word’s base form. The other properties furnish grammatical information additional to the broad word category. CATiB contains mostly projective trees, and the parser samples only projective candidates in this setting.
Some CATiB sentences exceed 200 tokens. To keep training and development efficient, the authors limit those splits to sentences of at most 70 tokens. The test set has no such length cap. For long sentences at test time they use a split-and-merge procedure. Ending punctuation provides the points where a sentence can be broken into segments, each segment is parsed, and the segment roots are grouped under a single node. The development and test results therefore concern different length conditions. The test result includes the effect of this long-sentence handling.
The paper measures head accuracy with unlabeled attachment score, abbreviated UAS. A word gets credit when the parser chooses its annotated head. The dependency relation label plays no part in this metric. The CoNLL scores exclude punctuation. The CATiB scores include punctuation to match the Arabic shared-task results used for comparison. The same score name thus refers to slightly different sets of evaluated tokens across the two experiments. Comparisons among systems within each setting use the same reported convention.
Multilingual parsing
The authors compare their system with a published version of Turbo, with a second-order non-projective MST parser they train, and with a discriminative reranker. The first comparison uses the features of Turbo to see how the authors’ training and inference work with that feature set. Then they evaluate the sampler and learner with their full feature set. The reranker uses the rich features along with the MST score, giving it evidence from the first stage alongside the features computed on complete trees.
Average test UAS across the CoNLL languages
The full sampling parser leads the individual systems shown.
The numbers
| System or setting | UAS % |
|---|---|
| Second-order MST | 86.86 |
| Top-50 reranker | 87.92 |
| Turbo parser | 88.72 |
| Sampling parser with Turbo features | 88.87 |
| Sampling parser with full features (this paper) | 89.23 |
The parser scores 88.87% with Turbo features, compared with Turbo’s 88.72% average test UAS. The authors interpret this result as evidence that their learning and inference can be competitive with Turbo’s dual-decomposition approach on a common feature set. With the full feature set, their average rises to 89.23%. The paper reports the advantage over Turbo as 0.5%. It also compares that score with 88.80%, the average previously reported for the highest-performing single parser the authors identified. The second-order MST system in the paper scores 86.86% on the average across the same test sets.
The average gives a view across languages, while the individual results show where the relative ordering changes. On Chinese, the full sampler scores 92.63 test UAS, against 89.98 for Turbo and 91.89 in the best previously published column. On Czech, the corresponding full-system and Turbo results are 91.04 and 90.32, with 90.32 also listed as the best published value. Dutch scores are 86.47 for the full parser and 86.19 for both Turbo and the earlier best result. Spanish is the other language for which the full system exceeds the earlier best. The full parser scores 88.21 there, against the previously published 87.96.
There are also languages on which the strongest published comparison is higher than the paper’s result. Turbo reaches 93.22 on English, where the full sampling parser reaches 92.94. On Japanese, the full system scores 93.42, Turbo reaches 93.52, and the best published result in the comparison is 93.72. On Arabic in the CoNLL evaluation, the full system scores 80.21 against Turbo’s 79.64, while the earlier best published value is 81.12. This Arabic result comes from the multilingual experiment, which has a different evaluation setup from the CATiB corrective-tagging experiment.
The best-published column in the multilingual comparison averages 89.33. That column selects a published result for each language from among several parsers. The comparison with the previously reported 88.80% average has a different meaning because it concerns the performance of one system across the languages. Read together, these figures show what the authors achieve at each level. The full sampler exceeds the previous single-system average they identify and leads the per-language historical comparisons in four cases. Different earlier systems supply the per-language results in the best-published column.
A richer score on a fixed list of trees
To train the reranker, the authors generate the top 50 MST trees for each sentence, using 10-fold cross-validation to construct the training lists. Cross-validation here allows a training sentence’s candidates to be generated by a parser trained on other folds of the data. The reranker is then trained for 10 epochs with cost-augmented MIRA. The authors generate the lists with a projective MST parser because the procedure for obtaining a list from the second-order non-projective parser is intractable in their setup. This list generator is therefore a different configuration from the non-projective MST baseline reported in the chart.
The average CoNLL test UAS is 87.92% for the top-50 reranker and 89.23% for the full sampling system. The paper reports a gap of 1.3%. Its reranker includes the first-stage MST score as a feature. The authors also try including MST scores in their sampling parser and report average test UAS of 89.28% in that configuration. These comparisons show how the rich feature set performs in two ways of obtaining candidate trees, one that ranks a list from another parser and one that constructs revisions during inference.
A larger candidate list could let the reranker inspect better analyses. The authors try a top-500 reranker on 5 languages with small datasets, chosen because of the scalability cost of producing and training on larger lists. They report that the larger lists leave the sampler ahead in the comparisons they conduct. This is evidence against the explanation that the top-50 cutoff alone caused the observed advantage. It also shows why the choice of candidate generator matters alongside list length. A larger list offers more trees that the generating parser ranks highly under its own score.
Correcting tags during Arabic parsing
The CATiB results compare three conditions within the authors’ parser. The first uses gold information, the second keeps the predicted tags fixed, and the third permits corrective tagging during parsing. The paper also compares the parser with published Arabic shared-task systems that use predicted information. Using the same punctuation convention makes these UAS comparisons meaningful within the CATiB setting. Overview of the SPMRL 2013 Shared Task
CATiB test UAS with tag correction and shared-task baselines
Corrective tagging brings attachment accuracy close to the gold-information condition and above the published ensemble in the comparison.
The numbers
| System or setting | UAS % |
|---|---|
| CADIM | 85.78 |
| Parser with fixed predicted tags | 86.95 |
| IMS-Single | 86.96 |
| IMS-Ensemble | 88.32 |
| Parser with joint POS correction (this paper) | 88.38 |
| Parser with gold information | 88.46 |
With fixed predicted tags, the parser obtains 86.95% test UAS and the incoming tags have an accuracy of 96.82%. Joint correction raises test tag accuracy to 97.49% and test UAS to 88.38%. The main results table gives 88.46% test UAS with gold information. The introduction instead gives 88.45% for the gold comparison. The chart and detailed comparison follow the value in the results table. Both passages place the corrective-tagging result close to the gold condition.
The development scores show the same ordering across the three conditions. On the CATiB development set capped at 70 tokens, the fixed predicted tags have 96.87% accuracy and yield 88.81 UAS. Corrective tagging raises tag accuracy to 97.72% and UAS to 90.08. The gold condition reaches 90.27 UAS on that development set. The higher development values describe the specific filtered split, while the unrestricted test result includes longer sentences and the split-and-merge procedure.
Among the published shared-task systems, the test scores are 85.78 for CADIM, 86.96 for IMS-Single, and 88.32 for IMS-Ensemble. CADIM is relevant in part because the authors use its predicted information. IMS-Single is the best single shared-task system identified in the paper. The authors report that their corrective system exceeds it by 1.4%. The ensemble combines Mate, Easy-First, and Turbo. Its result shows how much the strongest published combination could obtain in the comparison, and the authors’ joint parser scores above it with predicted information and tag correction.
What the ablations show
Which training comparisons matter
The authors test what happens when training uses only gold comparisons, only neighboring-sample comparisons, or both. The gold-only setting learns margins between the reference tree and sampled alternatives. The neighbor-only setting updates the score using the difference between candidates the sampler encounters in succession. Both obtain their notion of correctness from the reference. What changes is the pair of trees whose feature difference drives the update.
The figure reports UAS for four languages. In that comparison, combining the two types of constraints consistently outperformed applying each type by itself. The authors also find that the neighboring-sample constraint contributes more than the gold comparison when each is considered by itself. That ordering matters for the method’s central claim. The training process repeatedly asks which of two nearby trees should take precedence, and this supervision helps the score make the kinds of distinctions underlying decoding. A reference-centered margin on its own can preserve a strong preference for the gold tree while leaving those local choices poorly ordered.
Gold supervision still adds something when the neighboring constraint is present. A gold comparison can relate a candidate to a structure that the search has yet to visit. A comparison between nearby proposals supplies closer feedback about the direction of a move, but it gives no separate constraint about the score the reference should have. The joint training result is consistent with the complementary roles of the two objectives. It supports the choice to train on both comparisons in the evaluated setup. It gives no direct measurement of how often the learned preferences escape specific local optima.
What changes when the sampler can move several arcs
The authors compare Gibbs and random-walk decoding by changing the cooling schedule and measuring the total score of the retrieved test trees at different decoding speeds. Speed is measured in tokens per second. Varying the temperature update rate provides settings that spend more or less time exploring for high-scoring trees. The plot therefore shows the tradeoff between scoring quality and speed under the paper’s decoding procedure.
They use the Arabic and Chinese CoNLL datasets because the average sentence lengths are at opposite ends of the multilingual evaluation. Arabic has the longest sentences on average and Chinese the shortest. In both cases the score improves as the sampler has more time to search. With enough time, both proposal mechanisms reach the same score in the comparison. At higher speeds, the random-walk mechanism reaches higher scores. The result supports the practical value of proposing several related attachment changes in a step.
The score used in this comparison is the learned tree score. This is appropriate for asking how effectively the samplers solve the decoding problem defined by the scorer. UAS is a separate measurement using annotated heads. Greater progress on the learned objective can help the parser select better trees, but the speed curves themselves establish a result about test-tree scores at different throughputs. The underlying explanation offered by the authors is that one random-walk iteration can alter several edges, while a Gibbs step is limited to the attachment of its selected word.
The experiments also give elapsed times for the conservative decoding regime used for the main results. The authors report 3min to decode all Chinese test sentences and 15min for all Arabic test sentences. Those figures concern complete test sets in the stated implementation. The speed comparison relies on tokens per second because the elapsed times also depend on the amount of test material and the sentence lengths. The decoder’s ability to return its best tree so far is what makes the amount of time spent searching adjustable in practice.
What the feature and candidate comparisons isolate
The Turbo-feature condition holds the stated feature set in common with the external Turbo comparison, yielding 88.87% average test UAS for the sampling parser and 88.72% for Turbo. This shows that the authors’ combination of training and decoding stays competitive before the full feature inventory is added. Both training and inference change across systems, so the comparison concerns their combined effect. The paper’s direct comparison of Gibbs and random walk addresses the proposal mechanism more narrowly, while the neighboring-versus-gold experiment addresses the training feedback.
Within the sampling parser, moving from Turbo features to the full inventory raises average UAS to 89.23%. The contribution is measured for the set of added features together. Individual languages need not follow the average. Spanish, for instance, scores 88.24 with Turbo features in the sampling parser and 88.21 with the full set. The multilingual comparison provides evidence for the feature package overall, with variation in how it interacts with the data for a particular language. It does not assign an individual share of the improvement to coordination, span features, valency, or any other template.
The reranking comparison addresses another potential explanation. If the top-50 reranker mainly needed a deeper list of candidates, its relative performance might have changed when the list was made much larger. The top-500 experiments on the selected languages preserve the relative ordering. The result is consistent with a benefit from revising trees during inference, since such revisions can reach combinations absent from a fixed list. The use of a projective list generator and a restricted subset of languages defines the scope of that comparison.
What changes when the tags can move
The Arabic comparison gives a direct view of the effect of permitting tags to change. With the predicted tags held fixed, the parser has to choose attachments that work with whatever categories the upstream system supplied. The corrective condition can redraw a tag and a head jointly, using syntactic and tag features to evaluate the pair. Both tagging accuracy and attachment accuracy improve on the CATiB test set when the authors enable this extension. The gold condition shows how much attachment accuracy the same parsing approach reaches when the experiment supplies reference information.
The measured change belongs to the implemented correction procedure as a whole. It includes the restricted tag candidate lists, the additional tag features, and the use of Gibbs moves over head–tag pairs. The paper does not separately vary these components or break out results by the kind of tag correction made. The experiment establishes that the complete corrective procedure improves the reported parsing condition. It leaves open which individual corrections matter most and how their benefits propagate through a tree.
Limitations
Limits identified by the authors
The authors formulate decoding as approximate optimization. With rich features, the highest-scoring non-projective tree is generally hard to find. A first-order walk can draw from an exactly defined special-case distribution, but the full decoding procedure combines those proposals with score-based acceptance and a changing temperature. It stops after the score settles under the chosen schedule. The best tree found at that point is the procedure’s output. The paper supplies no guarantee that this output maximizes the rich score. Its experiments instead measure the solutions reached and the usefulness of the resulting predictions.
The authors also identify a limit in transferring the random-walk proposal to joint parsing and tag correction. When part-of-speech tags can change, an arc feature can depend on a category shared with other arcs. The first-order factorization used for the proposal in ordinary parsing is then unavailable in the same form. On CATiB the authors use only the Gibbs version to handle the joint decision. Their mention of dependency relations and morphology describes the possible scope of the general move mechanism. They evaluate the extension on corrective tagging.
There are also explicit practical limits in the experimental setup. Generating large reranking lists is expensive enough that the top-500 study is run only on a subset of the smaller datasets. On CATiB the authors cap sentence length for training and development and use segmented treatment of long sentences during testing. The decoding time depends on how long the search is allowed to continue. The authors describe their Java implementation as open to further speed optimization and provide empirical timings under their chosen schedule.
Limits visible in the evaluation
The results measure head accuracy. They do not measure whether the system assigns the correct dependency relation to an attachment, and the experiments give no scores for joint revision of those relations. The word “unlabeled” is consequential for the claim. A system can select the right head while leaving the relationship between the words unspecified. Similarly, the inclusion of punctuation for CATiB and its exclusion for CoNLL mean that an Arabic score from one setting and an Arabic score from the other do not describe the same evaluation.
The search also inherits limits from the candidate sets. The first-order pruner throws away some possible heads before the full score can consider them. Its reported 99% recall applies to the CATiB development set and concerns retention of reference attachments, instead of the attachment accuracy of a complete parse. A corresponding ceiling applies to corrective tagging. The reported oracle tag accuracy of 98.9% measures how much of the development reference is available in the candidate lists if the correct member can always be chosen. The learned parser’s measured accuracy is a separate result, and the candidate availability figure does not establish the ceiling on the unrestricted CATiB test set.
The projective restriction in CATiB means the search can only construct analyses that satisfy that condition. The split-and-merge procedure also determines, in advance, the way analyses of long test segments can be assembled. Its effect on long sentences is included in the aggregate test score. The paper does not provide a separate result for those sentences or compare segmentation with unrestricted parsing of the same sentences. A reader can therefore evaluate the combined procedure on the test data, while the cost of the simplification remains unmeasured.
The baseline comparisons answer different questions. Matching the stated Turbo feature set tests the overall pairing of the authors’ learner and decoder against the published Turbo system. It cannot attribute the difference separately to MIRA training or the sampler. Adding the full feature set measures its collective contribution within the proposed parser. The reranker receives rich features and a useful first-stage score, but its projective generator restricts the trees that can appear in its lists. Its lower average thus describes the two evaluated systems, including their different means of obtaining candidates. The experiment with larger lists covers only the selected languages.
Finally, the sampling curves compare two languages and use the score assigned by the parser as their measure of search progress. They establish the observed speed and score tradeoff under the tested settings. They do not establish the same ordering for other corpora, for joint tag correction, or for attachment accuracy at every speed. The main multilingual results report point scores for the tested systems. The study also shows clear language-level variation, which limits a claim of uniform advantage even within the benchmarks it uses.
What came after
Two directions for dependency parsing
Low-Rank Tensors for Scoring Dependency Structures cites the paper and addresses the scoring side of the parsing problem. Its title identifies low-rank tensors as the means of scoring dependency structures. That places it alongside the earlier paper’s question of how to give trees informative scores, with a different emphasis. Zhang and colleagues emphasize the freedom to define features and how to search with their combined score. The later title points to the representation of the score itself. The citation gives no basis for attributing the earlier paper’s sampler or training constraints to the tensor-based work.
Greed is Good if Randomized takes up inference for dependency parsing through randomized greedy search. Both papers make randomness part of the search for a tree, and both concern methods that use the score to make successive decisions. The earlier paper describes score-based proposals, probabilistic acceptance, and cooling. The later work’s title identifies a randomized greedy inference strategy. Its place in the citing work is therefore closest to the inference side of the earlier contribution. The citation alone does not establish whether the later procedure carries over either proposal distribution or the earlier method for training margins between neighboring trees.
Joint prediction and a different level of structure
Randomized Greedy Inference for Joint Segmentation, POS Tagging and Dependency Parsing explicitly treats segmentation, tagging, and parsing as joint decisions. The earlier paper starts with fixed words and lets the parser reconsider their predicted tags as it revises their heads. The later title adds the segmentation decisions that determine the units to be tagged and attached. The connection is the use of joint inference when an early decision can affect the sequence of syntactic choices available afterward. Randomized greedy inference is the named search approach. The citation does not specify whether it uses the earlier confusion-based candidate filter, the joint Gibbs move, or the learning objective.
CODRA cites the paper in work on discriminative rhetorical analysis, a task in discourse analysis. The subject is the rhetorical organization of text, while the earlier experiments predict grammatical dependencies among words. The citation places a paper about rich scoring and structured search in contact with work on another kind of structure. CODRA’s title identifies its own contribution as a discriminative framework for rhetorical analysis. The citation gives no specific evidence that CODRA adopts either of the tree samplers or the neighboring-sample training constraints.
Cite
Cite as Yuan Zhang, Tao Lei, Regina Barzilay, Tommi Jaakkola and Amir Globerson. 2014. Steps to Excellence: Simple Inference with Refined Scoring of Dependency Trees. Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{zhang2014steps,
title = {{Steps to Excellence: Simple Inference with Refined Scoring of Dependency Trees}},
author = {Yuan Zhang, Tao Lei, Regina Barzilay, Tommi Jaakkola and Amir Globerson},
booktitle = {Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2014},
doi = {10.3115/v1/p14-1019},
url = {https://doi.org/10.3115/v1/p14-1019}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/zhang-2014-steps-excellence-simple-inference-refined/