Incremental Parsing with Minimal Features Using Bi-Directional LSTM
Paper · 2016 · James Cross and Liang Huang
Summary
A parser that builds a syntax tree one action at a time has to make decisions before the tree is complete. It might join two pieces already under construction or bring in another word because the latest piece could still have a child. Earlier neural parsers learned how to combine their inputs, but people still picked many of the individual clues the parser could see. James Cross and Liang Huang ask how much of that work can be done by a recurrent network that reads the sentence in both directions. Each word position gets a representation informed by the words on either side. The parser then looks up a few of these representations as it builds the tree. Parsing
For dependency parsing, where the tree links words to their syntactic heads, the parser consults three positions at each step. These are the heads of the two partial trees at the top of its stack and the next incoming word. A classifier chooses the next structural action, and a separate classifier supplies a relation label when that action creates a link. On the English Penn Treebank test set, the deeper version scores 93.42 for unlabeled attachment and 91.36 for labeled attachment. Both scores exceed those of the greedy dependency baselines shown there. The beam-search result in the same comparison is higher on both measures. On the Penn Chinese Treebank dependency test set, the deeper version scores 86.35 and 85.71 using gold part-of-speech tags.
The authors also adapt the approach to constituency parsing, where a tree groups words into phrases and assigns categories to those groups. Their shift-promote-adjoin system brings words into play, creates labeled phrase nodes and attaches further children to existing nodes. This allows a phrase to acquire several children directly and lets successive promotions form chains of single-child phrases. The parser uses additional positions and phrase labels to keep track of these structures. On the constituency test sets, the deeper version reaches F-scores of 89.95 in English and 80.13 in Chinese, the highest greedy results in the paper’s comparisons. The English and Chinese beam-search scores reported beside them are higher.
The development experiments help explain why so few lookup positions can suffice. On the English dependency task, removing either direction of the recurrent network or omitting the tag embeddings lowers both attachment scores. The English dependency arc analysis also shows a clearer advantage over the earlier neural baseline on longer links than on short ones. Here, incremental describes how the parser constructs the tree. The backward pass can already use words from the end of the sentence when the parser takes its first action. The paper’s result concerns how sentence-wide information can guide a local, greedy decision procedure.
Deep dive: Incremental Parsing with Minimal Features Using Bi-Directional LSTM
See how bidirectional LSTMs give a greedy parser sentence-wide context with a few features and how the method fares on English and Chinese trees. · about 33 minutes to read
The problem and its context
Choosing what the parser can see
A transition-based parser treats a tree as the outcome of a sequence of actions. It starts with a queue of words and uses a stack to hold words and partial trees it is working on. A shift moves the next word onto the stack. A reduction in dependency parsing joins material already on the stack by creating a link between the heads of two partial trees. A greedy parser chooses a single continuation at each step. The next decision is made from the state that this choice produces. A useful feature representation therefore has to support a choice made with a particular, possibly imperfect, partial tree in front of it.
The distinction between the parsing state and its features is central to the paper. The state records where the procedure has got to and what structure it has built. Features are the pieces of information passed from that state to the action classifier. A stack can hold several partial analyses, for example, while a classifier may see only selected attributes of the top entries. The feature template decides which attributes reach the classifier and how it can refer to them. Choosing the template is consequential because the classifier can learn a relationship between available features only when the information it needs is represented among its inputs.
The paper describes earlier transition-based systems in which a substantial share of this design was done by hand. People chose atomic features, such as a word or tag at a designated location, and specified combinations of such features. A combination might make an individual cue useful only when another cue appears with it. Neural classifiers reduced the burden of writing those combinations. They could represent individual inputs as vectors and learn interactions in a hidden layer. The engineering question that remained was which individual items should be presented in the first place. MaltParser
Cross and Huang use Chen and Manning’s parser to illustrate how much design work could remain after the move to a neural classifier. In their account, that parser and subsequent work by Weiss and colleagues use 48 atomic features drawn from work by Zhang and Nivre. The features include selected higher-order dependency relationships, so they reach into pieces of the tree constructed by earlier decisions. This gives the classifier access to useful structural clues. It also ties some of its inputs to the parser’s previous choices. A wrong attachment can change which relationship a later feature lookup finds, even when the words themselves are unchanged. A Fast and Accurate Dependency Parser Using Neural Networks
A template with many structural slots still provides a selective view of the sentence. It can name particular relatives in a partial tree and particular positions near the current word. Sentence material outside those slots has no direct route through the template. Adding more positions requires another decision about what to include. The authors’ proposal moves much of that choice into the process that forms the vector for each word. A template can then identify a word by its role in the current state, and the lookup retrieves a contextual representation that has already had access to the sentence.
The paper relates this motivation to Dyer and colleagues’ stack LSTM dependency parser. The shared concern is how to obtain informative representations for transition decisions without prescribing a long inventory of individual cues. Cross and Huang emphasize the simplicity of encoding the sentence before using its positions as features. Their stack still determines which partial structures are under consideration, but it does not have to serve as the route by which broader sentence context is collected into those positional features. Transition-Based Dependency Parsing with Stack Long Short-Term Memory
Why phrase structure needs additional decisions
A dependency tree connects words. Each partial dependency tree has a head word, and that head can stand for the partial tree when the parser considers a new link. A constituency tree also has nodes for phrases. A noun phrase can contain a word or a group of words, and a clause can contain a subject phrase and a verb phrase. The label of a phrase node is part of the output. Two partial phrases with the same head word can therefore have reached different stages in their construction. A feature that points to the head alone leaves those stages indistinguishable.
The branching structure adds another difficulty. A constituent may have a single child or several children. The authors describe earlier shift-reduce approaches that simplify branching before parsing through binarization, which rewrites branching structures so that reductions can combine pairs. Auxiliary nodes can enter the resulting derivation. They also describe work that compresses chains of unary nodes, where a parent has just one child and that child can itself be another phrase node. These choices change the form of the trees on which the parser’s actions are defined. Fast and Accurate Shift-Reduce Constituent Parsing
The paper discusses an earlier alternative by Henderson that separates the creation of a phrase from the attachment of its other children. Henderson’s projection creates a parent over its first child, so later children attach on the right. Cross and Huang want the corresponding phrase-building operation to begin with the head child. In a clause whose subject precedes the verb phrase, the verb phrase can be structurally central even though it arrives later. Once a parent is created over that head child, the parser needs a way to attach a sibling on its left as well as a sibling on its right.
This is why the paper asks two related questions. One concerns the information used to score an action. Can a contextual sentence representation keep the number of explicitly selected positions small? The other concerns the actions available to a constituency parser. Can phrase creation and child attachment be kept separate while preserving the original branching structure? The dependency parser addresses the representation question using an existing transition system. The constituency parser uses the same representation strategy while changing the transition system too.
The method, step by step
Reading the sentence before choosing an action
The procedure first builds a vector for each position in the sentence. Its starting point is a word form and a part-of-speech tag at that position. A part-of-speech tag identifies the word’s grammatical category. The network looks up the word and the tag in separate embedding inventories. An embedding is a vector of learned numerical values associated with a discrete item, so the recurrent network receives vectors where the input initially contains word forms and tag names. The authors initialize the embeddings randomly and learn them during parser training. Word embeddings Part-of-speech tagging
The word and tag vectors are placed side by side to form the input at that position. The representation still belongs to that word at that point. Context comes from a pair of long short-term memory networks, or LSTMs. An LSTM is a recurrent network that passes a learned state from one step in a sequence to the next. The forward network reads in sentence order. By the time it emits a vector at a position, it has processed the word there and the preceding words. The backward network reads in reverse order. Its output at that same position reflects processing of the word there and the words that follow it.
The two outputs are aligned by sentence position and concatenated, which means placing the coordinates of one vector after the coordinates of the other. The result gives a single slot in the parser’s feature template a wider field of view. If the slot points to the head of a stack item, the classifier sees the head’s representation in the original sentence, including information carried by the recurrent passes. The recurrent computation has a route to information from either side. Which details actually survive in the learned vectors depends on training.
From a tagged sentence to a parse tree
The steps in order.
In a shallow version, the forward and backward outputs at each position form the positional feature directly. In the deeper version, the combined outputs of the lower layer become the input sequence for a second bidirectional layer. Each upper-layer recurrence thus operates over vectors whose construction already involved both directions. The parser keeps the outputs of the lower layer as well as those of the upper layer when it forms the positional feature. The upper layer can transform contextual information, while the feature vector still gives the action classifier access to what the lower layer produced.
The lower-layer construction can be written as follows.
hᵢ = fᵢ ⊕ bᵢ
Here i is the position of a word in the original sentence. fᵢ and bᵢ are the forward and backward outputs at that position, and hᵢ is their combined vector. The operator ⊕ denotes concatenation, and = gives the vector on the left the value of the expression on the right.
The deeper construction adds the outputs of the upper recurrence.
vᵢ = hᵢ ⊕ fᵢᵘ ⊕ bᵢᵘ
Here i again indexes a word position, hᵢ is the lower-layer vector, and the superscript u marks the upper layer. fᵢᵘ and bᵢᵘ represent its forward and backward outputs. vᵢ is the positional feature used by the deeper parser. The ⊕ operator appends the vectors in order, and = defines vᵢ.
These lookups keep the sentence and the partial parse connected without collapsing them into a single state. After a shift, the top stack entries and the next queue word change. After a reduction, the newly combined tree has a head that can be used to index the sentence on a subsequent step. The recurrent vector associated with that head comes from the same sentence encoding throughout. An earlier attachment error can change which index the stack presents. It leaves the vector associated with that index available as a representation of the original sentence context.
Building dependencies with the top of the stack
The arc-standard procedure used in the paper stores heads on the stack. At any point, a head stands for the dependency tree assembled under it so far. The queue tracks the words still waiting to be shifted. The two stack entries of immediate interest are s₀, at the top, and s₁, just below it. The next queue word is q₀. The paper also uses S for the stack and j for the index where the remaining queue begins. Stack indices in the template express roles in the current state. Sentence indices returned by those roles tell the network which vectors to retrieve.
Shift brings the next queue word onto the stack. The left and right reductions create a dependency between the heads of the top two stack entries. The direction determines which head is the parent and which becomes its dependent. The combined tree can continue to participate in the parse through the head that survives on the stack. In this way, the transitions accumulate dependencies without requiring a classifier to choose directly among complete trees.
Written as a feature lookup, the dependency input is as follows.
z = v(s₁) ⊕ v(s₀) ⊕ v(q₀)
z is the combined feature vector for the current parser state. s₁ and s₀ are the sentence indices of the heads in the second and top stack entries, and q₀ is the sentence index of the first word on the queue. v(·) means retrieving the positional vector for the index in parentheses, using the encoding appropriate to the shallow or deep network. The operator ⊕ concatenates the retrieved vectors. The equals sign makes their concatenation the input z.
Each position has a concrete role. The stack heads are the candidates for the next dependency if the action is a reduction. The next word provides a clue about whether to reduce now. If the top tree still needs a child from material on the queue, reducing it as a dependent too early can eliminate the opportunity to attach that child through the intended head. A shift keeps the necessary material available. The feature at the queue position helps the classifier learn when waiting is appropriate. Because that feature is itself contextual, consulting it offers more evidence than consulting an isolated embedding for the next word.
The positional vectors already give the stack heads access to surrounding words. Explicitly including the next queue position adds a different kind of information. It identifies which word is next given the current state. A recurrent pass over the sentence has knowledge of order, while the queue tells the classifier where the parser currently is in that order. The design combines these two facts. The sentence network supplies contextual evidence and the transition state identifies its immediate point of application.
Relations receive labels in the output, but previous arc labels are absent from this dependency feature template. The state can still change in response to prior reductions through the identity of the stack heads. This is a smaller use of partial-tree information than a template that asks for the labels of relations already constructed or for the properties of several selected descendants. It makes the three pointers the explicit interface between the dependency state and the sentence encoder.
Choosing an action and assigning its label
The action classifier takes the selected features into a fully connected hidden layer. It uses a rectified linear unit, or ReLU, which keeps positive activations and sets negative activations to zero. A linear output layer then gives each candidate action a score. A softmax turns a set of scores into probabilities by exponentiating each score and normalizing by their total. The training objective penalizes low probability on the target decision.
ℓ = −log softmax(a)ᵧ
ℓ is the loss for the decision being trained, a is the vector of scores, and y identifies the target output. softmax(a)ᵧ is the target output’s probability after applying softmax to the score vector, with the subscript y selecting that component. log takes its logarithm, the minus sign makes lower target probability yield higher loss, and = defines the resulting objective for that decision.
For labeled dependency parsing, the authors separate the decision about tree structure from the decision about the relation name. A structural classifier chooses among shift and the two reduction directions. If the transition creates a dependency, a label classifier assigns a relation label. Each classifier has its own hidden and output layers. Both draw on the recurrent sentence representation. The paper calls this organization Hierarchical Actions in its comparison with an action classifier that handles the choices together.
The difference matters at the point where a reduction is considered. A joint classifier has scores for actions in which direction and label are packaged together. In the factored version, the first decision concerns whether to act on the two heads and in which direction. The second concerns what kind of relation to place on the created arc. Sharing the encoder lets the underlying sentence vectors serve both choices. Giving the choices separate output layers allows each to have its own scoring function. Greedy decoding still advances from the current state along one sequence of decisions.
Building constituents by promoting the head
The constituency transition inventory begins with shift. When the parser needs a new phrase node, it uses promote with a nonterminal label. A nonterminal is a tree category such as a noun phrase or verb phrase. Promotion puts a new labeled parent above the current head child. Since that parent can itself be promoted later, successive promote actions can form a chain of unary nodes directly. The resulting tree keeps the distinction between the phrase levels in the annotated tree.
Adjoin places a neighboring partial tree under an existing node as another child. The paper connects this action to sister adjunction, where the attached subtree becomes a sibling of children already under the parent. There are left and right variants because the promotion starts from the head child. The parent can acquire further children through repeated adjunction. Promote creates the phrase node and sets its label. Adjoin changes the membership of the phrase under construction. Statistical Parsing with an Automatically Extracted Tree Adjoining Grammar
The sentence “I like sports” in the paper illustrates what head-driven promotion changes. In the paper’s comparison, Henderson can project the clause label from the initial subject noun phrase because the first child is his starting point. The shift-promote-adjoin parser can use the verb phrase as the head child of the clause. Within the verb phrase, “sports” can be attached on the right. At the clause level, the subject “I” is to the left of the head phrase, so attaching the subject requires the other direction. The example shows why the choice of which child to promote is also a choice about which attachment operations the parser needs.
A direct consequence concerns the action inventory. The authors give the size of their inventory with the following expression.
3 + X
X is the number of nonterminal labels. The 3 covers shift and the two directions of adjunction. Each of the X labels supplies a distinct promotion action. The plus sign combines the structural operations with the labeled promotions.
The paper summarizes the size of the earlier style of inventory with the following expression as a lower comparison point.
3X + 1
X again counts nonterminal labels. Juxtaposition in 3X means multiplication and represents the contribution of the label-bearing unary and directional reduce operations. The 1 counts shift, and the plus sign adds it to the label-dependent portion. The paper says earlier inventories can be this size or larger. Its argument is that keeping labels on promotion alone reduces the number of decisions that have to be scored as distinct actions. The action count describes the inventory. It leaves open how frequently any individual action occurs and how hard it is to predict.
Head rules supply the head child when the training tree has already been annotated. The parser uses those rules to determine the appropriate order of reference actions, often called gold actions. A phrase must first be projected from the designated head child in this system. Its other children can then be added with the directional attachments that place them in the original branching structure. Head choices also let the procedure identify word-to-word attachments while forming phrases. The authors observe that their parser can produce both kinds of tree. The reported constituency comparisons evaluate phrase structure.
Representing the phrase as well as its head
The constituency parser starts with the same three positions as the dependency parser and adds the leftmost word of each of the top two partial trees. A tree’s span is the stretch of the sentence it covers, and its left edge can differ from its head location. Pointing to the left edge gives the classifier contextual information about the beginning of a phrase while retaining a pointer to the word that heads it. The resulting template uses five sentence positions.
The additional positions have a purpose distinct from phrase labels. An edge position answers a question about the phrase’s extent. Labels tell the classifier what structure has been built there. A series of promotions can change the current root category without moving either the head or the left edge. If the classifier received only sentence pointers, those different moments in the derivation could present the same set of positions. Representing the current node and its construction history gives it evidence about when another promotion is appropriate and when the existing node is ready to receive an attachment.
The feature template uses 8 labels across the two top trees. For each, the parser takes the current label, the immediately preceding label in the promotion structure, and the labels of the leftmost and rightmost adjoined children. The current category identifies the node under construction. Its predecessor gives a clue about the levels already built. The outer children give a compact record of attachments the node has received. Nonterminal embeddings turn these categorical inputs into vectors that the classifier can use alongside the positional representations.
The constituency extension therefore retains deliberately selected structural information. The recurrent network learns the sentence representations used at the selected positions. The action system and label template tell it which aspects of the partial tree deserve an explicit slot. The paper’s use of minimal features refers to a compact interface between these parts. In the constituency case, that interface has to communicate more of the state because phrase nodes can change in category and branching while sharing the same head.
Training from annotated sentences
The authors use the standard training, development and test partitions of the English Penn Treebank and Penn Chinese Treebank. A treebank provides sentences paired with annotated syntactic trees. The reference structures determine the actions the parser is trained to predict. For constituency parsing, the head rules enter here because the reference tree specifies the children and their order, while the head-driven action system needs to know which child provides the starting point for the parent.
The tagging condition varies with the task. The authors use automatically predicted tags with 10-way jackknifing for both constituency experiments and the English dependency experiment. Jackknifing gives the parser predicted tags for training items by holding out portions when generating those tags. This lets the learner see tagger outputs during training, including the kinds of errors that can occur when tags are predicted. The Chinese dependency experiment uses gold tags for training and testing, following the comparison convention described by the authors. Gold tags are the grammatical categories recorded in the reference annotation.
The dependency setup uses word embeddings of 50 dimensions and tag embeddings of 20 dimensions. For constituency parsing, word, tag and nonterminal embeddings each have 100 dimensions. Neither setup uses pretrained embeddings. Each directional LSTM has 200 units. The dependency setup uses a ReLU hidden layer of 200 units per decision, and the constituency setup uses 1000 hidden units. The settings make the distinction between a small feature template and a small network concrete. A few selected positions still feed substantial learned vectors into the classifier.
Training runs for 10 epochs with minibatches of 10 sentences in both tasks. An epoch is a pass through the training data, and a minibatch is the group of sentences used together for an update. The authors propagate gradients through the decision layers and through the recurrent computations across positions. Back-propagation through time is the part of that procedure that traces the effect of recurrent states back through the steps that produced them. It allows a loss at an action decision to change the recurrent representations and embeddings contributing to that decision.
The optimizer uses ADADELTA to adapt the updates. The settings reported for both tasks are as follows.
ρ = 0.99
ρ is ADADELTA’s decay parameter for its running statistics. The equals sign assigns the reported value.
ε = 1 × 10⁻⁷
ε is the small numerical stabilizer in ADADELTA. The equals sign assigns its value, × denotes multiplication, and 10⁻⁷ is ten raised to the negative seventh power.
The authors also apply dropout to LSTM outputs. During training, dropout randomly removes parts of the output used by a receiving computation. For the deeper network the paper applies it separately for each connection, which matters because outputs can feed another recurrent layer as well as the classifier. Improving Neural Networks by Preventing Co-adaptation
p = 0.5
p is the dropout probability reported for LSTM outputs. The equals sign assigns the probability used by the authors.
The constituency settings include an L2 penalty on all weights, which penalizes squared weight magnitudes. Its coefficient is reported as 1 × 10⁻⁸. The dependency settings list no L2 penalty. The paper describes its hyper-parameter tuning as limited. The settings specify the experimental recipe behind the comparisons and leave open what larger searches over architectures and training choices might yield.
Experiments and results
Reading the dependency scores
The dependency evaluation counts whether each scored word has the correct head and, for the labeled measure, whether the corresponding relation has the correct label. Unlabeled attachment score, abbreviated UAS, gives credit for the correct head. Labeled attachment score, abbreviated LAS, requires both the correct head and the correct relation label. A parser can improve its head choices while gaining less on LAS if some of those attachments still receive the wrong label. Both measures are needed to see the effect of a method trained to predict structure and labels separately.
The English dependency experiments use Stanford dependencies on the Penn Treebank. The development comparison includes Chen and Manning at 92.0 UAS and 89.7 LAS and Dyer and colleagues at 93.2 UAS and 90.9 LAS. On the same development split, the single-layer Bi-LSTM reaches 93.31 UAS and 91.01 LAS. The deeper Bi-LSTM reaches 93.67 UAS and 91.48 LAS. The development table gives the authors a common setting for comparing the depth choices and the two reported earlier baselines.
The test comparison includes the greedy Weiss and colleagues parser as well. Chen and Manning score 91.8 UAS and 89.6 LAS, and Dyer and colleagues score 93.1 UAS and 90.9 LAS. The greedy Weiss and colleagues result is 93.19 UAS and 91.18 LAS. The single-layer parser in this paper scores 93.21 UAS and 91.16 LAS. Its score is higher on unlabeled attachment than the listed greedy baseline with the highest LAS, while the ranking on labeled attachment goes the other way.
English Penn Treebank dependency test labeled attachment
The deeper Bi-LSTM leads the greedy entries, and the beam-search entry has the highest score overall.
The numbers
| System or setting | LAS |
|---|---|
| Chen and Manning | 89.6 |
| Dyer and colleagues | 90.9 |
| Weiss and colleagues, greedy | 91.18 |
| Weiss and colleagues, perceptron and beam | 92.05 |
| Bi-LSTM | 91.16 |
| Deeper Bi-LSTM (this paper) | 91.36 |
The deeper parser’s English dependency test result is 93.42 UAS and 91.36 LAS. The Weiss and colleagues configuration with perceptron training and beam search reaches 93.99 UAS and 92.05 LAS. A beam keeps multiple candidate analyses active, which gives a procedure more than one live history when making later decisions. This row provides a separate point of comparison from the greedy rows. Because its training and search changes appear together in the table, its advantage measures the configuration as a whole.
The dependency experiment establishes that the compact positional template can support results comparable to those of the strongest greedy entries the authors report. That is a statement about what the contextual vectors and classifier can achieve together. The final score does not isolate a contribution from every choice in the feature template. The development ablations address selected components under a common setup.
Chinese dependencies with annotated tags
The Chinese dependency experiments use CTB-5 and provide the parser with gold part-of-speech tags. Chen and Manning’s Chinese development scores are 84.0 UAS and 82.4 LAS. Dyer and colleagues obtain 87.2 UAS and 85.9 LAS. The single-layer parser in this paper reaches 85.84 UAS and 85.24 LAS, and the deeper version reaches 86.13 UAS and 85.51 LAS. The deeper version improves both measures within the authors’ comparison. Dyer and colleagues lead the reported development results on both measures.
On the Chinese dependency test set, Chen and Manning report 83.9 UAS and 82.4 LAS. Dyer and colleagues obtain 87.2 UAS and 85.7 LAS. The single-layer contextual parser scores 85.53 UAS and 84.89 LAS. The deeper configuration scores 86.35 UAS and 85.71 LAS. Dyer and colleagues lead on unlabeled attachment, while the deeper parser’s labeled score is the highest printed in the test comparison. The two leading labeled figures are reported to different decimal precision. The printed ordering describes how the results appear in the table, and the paper supplies no uncertainty estimates for the comparison.
English and Chinese dependency scores describe performance under different tag conditions. The English parser has to use predicted categories, while the Chinese parser receives annotated categories. Each table compares systems within its own benchmark setting. The two tables show where the same feature design is competitive under those conditions. They do not form a controlled comparison of how easy the languages are to parse or how resilient the approach is to noisy tags in each language.
Evaluating phrase trees
A constituency F-score combines precision and recall for labeled constituents. Precision concerns the share of proposed constituents that are correct, and recall concerns the share of reference constituents recovered. A match depends on the span and label of the phrase. A word’s dependency head can be correct even when a phrase boundary or label is wrong, so this score evaluates a different output from a dependency attachment score.
The English constituency test comparison places the new greedy results against greedy settings of Zhu and colleagues and Mi and Huang, as well as beam settings. The authors explain that they obtained the greedy Zhu and colleagues result by repeating experiments with code from that work. Haitao Mi supplied the greedy result for the Mi and Huang parser. The table also includes the English result from Vinyals and colleagues. The paper describes that approach as generating a bracketed structure, with generating a right bracket serving a role akin to completing a reduction. Grammar as a Foreign Language
English Penn Treebank constituency test F-score
The deeper parser leads the greedy entries, with the reported beam entries ahead.
The numbers
| System or setting | F-score |
|---|---|
| Mi and Huang, greedy | 84.95 |
| Zhu and colleagues, greedy | 86.08 |
| Bi-LSTM, greedy | 89.75 |
| Deeper Bi-LSTM, greedy (this paper) | 89.95 |
| Zhu and colleagues, beam | 90.4 |
| Vinyals and colleagues, beam | 90.5 |
| Mi and Huang, beam | 90.8 |
On the English constituency test set, the single-layer parser reaches 89.75 and the deeper one reaches 89.95. Both are higher than the greedy comparison scores of 86.08 for Zhu and colleagues and 84.95 for Mi and Huang. The beam scores place the greedy improvement in context. The highest English constituency F-score in the table is 90.8, for the beam setting of Mi and Huang.
In Chinese constituency parsing, the single-layer parser reaches a test F-score of 79.44 and the deeper version reaches 80.13. Both exceed the reported greedy comparison scores, 75.99 for Zhu and colleagues and 75.61 for Mi and Huang. The best reported Chinese beam score is 85.6, from Zhu and colleagues. The experiment uses predicted tags, which distinguishes it from the paper’s Chinese dependency evaluation.
CTB-5 constituency test F-score
The contextual parsers lead the greedy comparisons, with both reported beam scores higher.
The numbers
| System or setting | F-score |
|---|---|
| Mi and Huang, greedy | 75.61 |
| Zhu and colleagues, greedy | 75.99 |
| Bi-LSTM, greedy | 79.44 |
| Deeper Bi-LSTM, greedy (this paper) | 80.13 |
| Mi and Huang, beam | 83.9 |
| Zhu and colleagues, beam | 85.6 |
Across the constituency benchmarks, the method’s empirical result is the performance of a complete greedy parser that combines contextual word vectors, a head-driven transition inventory and additional features for partial phrases. The experiment demonstrates that these choices work together on the evaluated treebanks. The comparisons with the earlier greedy systems are comparisons of full parsers. They bring together differences in what actions build the tree, what features are supplied and how the action classifier is trained.
What the ablations show
How much each direction contributes
The paper’s ablation table uses the English dependency development set, WSJ 22. Its reference configuration is the single-layer Bi-LSTM with hierarchical actions. It scores 93.31 UAS and 91.01 LAS. Each modification in the table is compared with that reference configuration. This makes the table useful for examining dependencies within the design. Its results describe this development setup and this version of the parser.
Removing the backward LSTM leaves a representation driven by the forward pass. In that condition the parser scores 91.12 UAS and 88.72 LAS on the development set. The classifier still selects stack and queue positions. It can still receive evidence from a word that sits to the right of a stack head if that word is the next one on the queue. What changes is the recurrent information gathered into the vector at each selected position. A forward vector at a stack head can carry preceding context, while the bidirectional version gives that same head vector a channel for its following context. The score change shows the value of that additional channel within the tested design.
Removing the forward LSTM leaves the backward pass and yields 91.85 UAS and 88.39 LAS on the same split. Unlabeled attachment is higher in this comparison than after removing the backward pass. Labeled attachment is lower. The ranking between the single-direction versions therefore depends on which measure is used. Both fall below the bidirectional reference on both measures. The experiment supports using both directions for the task as configured. The two metrics also show why the result should be read at the level of structural and labeled decisions separately.
The ablations remove entire directional computations. Their effect includes the change in available context and the change in the representation available to the classifier when one set of recurrent outputs is absent. The results directly test whether each direction helps in this design. A more specific claim about which word or grammatical construction explains the effect would require inspecting predictions or controlling the information available to individual positions.
Tags and the action classifier
The no-tag-embedding variant reaches 92.46 UAS and 89.81 LAS on WSJ 22. It still uses word forms and retains access to sentence context through the bidirectional recurrent network. The comparison shows that the tag embeddings contribute to the trained parser’s attachment scores even when the sentences can be read in both directions. The grammatical categories are especially relevant to what the paper calls minimal features. The authors reduce the number of state positions they enumerate, while supplying a learned representation of a tag at every position in the sentence. Reducing the state template and dropping grammatical input are different changes.
The authors also replace hierarchical actions with a single action classifier. That variant gives 92.94 UAS and 90.96 LAS on the same development split. The factored classifier leads the joint one on both scores. The comparison isolates the organization of the action decision more closely than a comparison with another parser whose features, search and training all differ. It provides evidence for using separate structural and label decisions in the reported dependency system. It also puts the size of this design choice in context. The scores are closer to the reference than those obtained by removing either recurrent direction or omitting the tags.
The measures add a useful distinction here too. LAS requires both parts of the output to be right, so a change in LAS alone would not reveal whether the classifier was getting more heads or more labels correct. Reading UAS beside it shows that the factored configuration also performs better on the head decision. The table does not give a separate measure of label accuracy conditioned on a correct head. It therefore supports the reported end-to-end comparison without identifying how much of the labeled result comes from each part of the prediction.
Depth and long-distance links
The depth comparisons extend beyond the focused dependency ablation table. The deeper recurrent network reports higher scores than the shallow one on the English and Chinese dependency development and test sets, for both attachment measures. It also reports higher constituency F-scores on both test sets. The deeper setting changes the input to the classifier in two related ways. It adds a recurrent transformation over contextual vectors, and it keeps the outputs of both layers in the positional representation. The comparisons evaluate that package of changes. They leave the individual contribution of the upper recurrence and the value of retaining the lower output open.
The authors also plot dependency arc recall by length on the English development set. Arc recall describes the share of reference arcs recovered among arcs of a given length. The length groups organize arcs by the separation between the words they connect. This allows an examination of where the earlier and newer parsers differ even when their overall attachment scores combine short and long links into a single number.
On the short arcs, the paper describes the Bi-LSTM and Chen and Manning’s parser as performing similarly. The Bi-LSTM recovers more of the longer arcs, and its recall declines little after length 6 in the authors’ account. The plot is consistent with the reason for encoding the sentence before parsing. A small state template can still carry information over a wider span when the representation of each selected position has been built from a sentence-wide pass. Longer arcs are a place where that additional context can plausibly matter because the relevant words are further apart.
The plot compares complete parsers, so it answers a different question from the one-direction ablations. The directional ablations show that removing a particular information route lowers aggregate attachment scores within the proposed parser. The length analysis shows where the proposed parser gains on an earlier design. Together they support the authors’ interpretation of the value of context. A causal estimate of how much bidirectionality contributes at each arc length would require a length breakdown for the direction-removal settings themselves.
The paper presents no corresponding numerical ablation for the constituency transition inventory or for each of the constituency feature groups. The authors explain that label information is useful for tracking promotion and report that adding the left-edge positions helped. The main constituency table shows how the resulting system performs. It does not show the separate test-score effect of the left edges, the label slots, or preserving unbinarized branching. For those parts of the design, the article’s evidence consists of the construction and rationale of the parser together with results for the complete system.
Limitations
Limits described by the authors
The authors state that their greedy constituency parser falls behind the beam-search systems in the reported comparisons. The distinction matters because a beam can preserve competing partial trees past a point where a greedy parser has committed to a single one. The new constituency results establish the advantage over the greedy rows in the paper. The beam rows set a higher accuracy reference on both test sets. On English dependency parsing, the comparison likewise includes a perceptron and beam configuration with higher test attachment scores.
The authors describe their Chinese dependency result as competitive. The results warrant that phrasing. The deeper parser has a strong labeled test score, and the Dyer and colleagues parser has the higher unlabeled score on both Chinese splits. The split between these measures makes a blanket ranking less informative than reporting them individually. The paper follows the existing convention of providing gold tags for that experiment, so its result is conditional on the tag information being available.
The authors report limited hyper-parameter tuning and train their embeddings from random initialization. The resulting scores demonstrate what the described training setup achieves. They leave the effects of substantially different tuning and pretrained representations unanswered. Similarly, the authors motivate head-driven promotion by the compact action inventory and the ability to preserve the input tree’s branching. Their accuracy experiment measures the parser using that design. It leaves the proposed learning advantage from inventory size as a rationale for the design.
Limits visible in the setup
Incremental tree construction and incremental access to input are distinct properties. The parser under study takes a sequence of local actions, but it uses the backward LSTM’s reading of the whole sentence in constructing the vectors that inform those actions. A word still waiting on the queue may already have influenced a vector used by the current classifier. For settings where words become available over time, the paper leaves open how well the design would work if action decisions had to be made before the rest of the sentence arrived.
Minimal features refers to the number and nature of the explicitly chosen state cues. The full procedure still uses tagged words, recurrent layers and trained hidden layers. The constituency setup also uses phrase labels and head rules. The scores show that a small set of pointers can be an effective interface to a contextual encoder. The experiments do not quantify the computational savings of the feature design or compare runtime and memory across systems. A compact action inventory and a short feature template are properties of the representation. Their operational costs depend on the rest of the procedure.
The authors argue that vectors derived from the unchanged sentence should be less vulnerable to earlier parser mistakes than features derived from a larger set of partial-tree relations. The architecture provides a concrete basis for that expectation. A mistaken relation leaves the sentence encoding intact, while a stack configuration created by that mistake can still select the wrong heads. The reported evaluations measure the eventual trees. There is no controlled experiment in which the same early error is imposed on different parsers and its downstream effects are measured. The amount of resilience to error propagation remains open.
The distinction also applies to the constituency results. Earlier comparison systems encode phrase construction differently, and the paper’s parser changes both its sentence representation and its available actions. A controlled comparison with the same encoder and training setup under different constituency transition inventories would help establish the accuracy effect of preserving the original branching. The reported cross-system tests establish the performance of the combined design. They leave open how much accuracy each architectural choice contributes.
Finally, the empirical coverage is English and Chinese under the specified treebank conditions. English and Chinese dependency parsing use different tag regimes, and the detailed direction, tag and classifier ablations belong to one English dependency development split. The paper establishes that the approach can be used across the two kinds of parse tree and the two evaluated languages. It leaves accuracy on other treebanks, languages and tagging conditions unmeasured, as well as variation across training runs.
What came after
A concurrent approach and a new transition system
Kiperwasser and Goldberg are the closest point of comparison because Cross and Huang describe the connection themselves. The authors say that they learned of the work after submitting their paper and characterize it as a concurrent development of a closely similar approach to dependency parsing. Kiperwasser and Goldberg also apply the contextual feature idea to graph-based dependency parsing. That extension puts learned bidirectional features to work in a different decision framework, one organized around scoring dependency structure as a graph. Cross and Huang use their corresponding extension to pursue phrase structure. The two directions give the shared representation idea different tests. Kiperwasser and Goldberg’s Simple and Accurate Dependency Parsing
Cross and Huang’s subsequent span-based constituency paper addresses the other major component of the earlier work, the choice of actions used to build a phrase tree. Its title identifies a structure-label system and provably optimal dynamic oracles. A dynamic oracle addresses what training action to take from a parser state after the parser has followed some sequence of choices. The first paper determines reference action order through a head-driven traversal of the tree. The later paper’s stated focus is span-based construction, the role of structure and label decisions in that system, and the guarantee associated with the oracle. The relationship lies in the continuing effort to design the decisions of a constituency parser, including what happens when training encounters alternative states. Span-Based Constituency Parsing
Other questions about learned syntax and phrase structure
Colorless Green Recurrent Networks Dream Hierarchically brings recurrent representations into a study framed around hierarchical behavior. In Cross and Huang’s experiments, hierarchy is an annotated target, and attachment accuracy or constituent F-score measures how well the parser recovers it. The later work’s title places the inquiry at the level of what recurrent networks themselves represent or exhibit. The papers thus meet at the question of what learned sequence representations can capture about hierarchy. The citation establishes that connection. A specific claim about reuse of the parser’s features, transition system or training procedure would require more detail about the later study. Colorless Green Recurrent Networks Dream Hierarchically
Marcheggiani and colleagues take up semantic role labeling, which assigns roles to participants and other elements in relation to a predicate. Their work is described as syntax-agnostic and uses a dependency-based formulation of that semantic task. The earlier parsing paper asks whether whole-sentence representations provide the information needed to construct a syntactic dependency tree through local decisions. The semantic role work poses a related question for a different output, where the dependencies being labeled express roles instead of the syntactic arcs evaluated by UAS and LAS. The citing work’s title establishes that change in task and its syntax-agnostic framing. The details of any architectural transfer remain unspecified. Marcheggiani and colleagues’ Dependency-Based Semantic Role Labeling
Coavoux’s work turns to syntactic discontinuities in French constituent treebanks. A discontinuous constituent has material separated in the sentence by words that belong outside the constituent. That problem gives a distinct meaning to decisions about how to represent a phrase and which attachments a parser can perform. The earlier paper discusses preserving unary chains and multiple children in a naturally branching tree, and its feature template adds the left edge of a partial phrase to the head position. Coavoux’s stated subject concerns the representation and analysis of phrases whose yields can contain gaps. The citation places the earlier work in that broader discussion of constituency representation and parsing. It leaves the details of how Coavoux uses a particular transition or feature unspecified. Representation and Parsing of Syntactic Discontinuities in French Constituent Treebanks
Cite
Cite as James Cross and Liang Huang. 2016. Incremental Parsing with Minimal Features Using Bi-Directional LSTM. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).
@inproceedings{cross2016incremental,
title = {{Incremental Parsing with Minimal Features Using Bi-Directional LSTM}},
author = {James Cross and Liang Huang},
booktitle = {Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
year = {2016},
doi = {10.18653/v1/p16-2006},
url = {https://doi.org/10.18653/v1/p16-2006}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cross-2016-incremental-parsing-minimal-features-bi/