Simple and Accurate Dependency Parsing Using Bidirectional LSTM Feature Representations
Eliyahu Kiperwasser, Yoav Goldberg
Introduction
The focus of this paper is on feature representation for dependency parsing, using recent techniques from the neural-networks (“deep learning”) literature. Modern approaches to dependency parsing can be broadly categorized into graph-based and transition-based parsers [Kübler et al. (2009]. Graph-based parsers [McDonald (2006] treat parsing as a search-based structured prediction problem in which the goal is learning a scoring function over dependency trees such that the correct tree is scored above all other trees. Transition-based parsers [Nivre (2004, Nivre (2008] treat parsing as a sequence of actions that produce a parse tree, and a classifier is trained to score the possible actions at each stage of the process and guide the parsing process. Perhaps the simplest graph-based parsers are arc-factored (first order) models [McDonald (2006], in which the scoring function for a tree decomposes over the individual arcs of the tree. More elaborate models look at larger (overlapping) parts, requiring more sophisticated inference and training algorithms [Martins et al. (2009, Koo and Collins (2010]. The basic transition-based parsers work in a greedy manner, performing a series of locally-optimal decisions, and boast very fast parsing speeds. More advanced transition-based parsers introduce some search into the process using a beam [Zhang and Clark (2008] or dynamic programming [Huang and Sagae (2010].
Regardless of the details of the parsing framework being used, a crucial step in parser design is choosing the right feature function for the underlying statistical model. Recent work (see Section 2.2 for an overview) attempt to alleviate parts of the feature function design problem by moving from linear to non-linear models, enabling the modeler to focus on a small set of “core” features and leaving it up to the machine-learning machinery to come up with good feature combinations [Chen and Manning (2014, Pei et al. (2015, Lei et al. (2014, Taub-Tabib et al. (2015]. However, the need to carefully define a set of core features remains. For example, the work of ?) uses 18 different elements in its feature function, while the work of ?) uses 21 different elements. Other works, notably ?) and ?), propose more sophisticated feature representations, in which the feature engineering is replaced with architecture engineering.
In this work, we suggest an approach which is much simpler in terms of both feature engineering and architecture engineering. Our proposal (Section 3) is centered around BiRNNs [Irsoy and Cardie (2014, Schuster and Paliwal (1997], and more specifically BiLSTMs [Graves (2008], which are strong and trainable sequence models (see Section 2.3). The BiLSTM excels at representing elements in a sequence (i.e., words) together with their contexts, capturing the element and an “infinite” window around it. We represent each word by its BiLSTM encoding, and use a concatenation of a minimal set of such BiLSTM encodings as our feature function, which is then passed to a non-linear scoring function (multi-layer perceptron). Crucially, the BiLSTM is trained with the rest of the parser in order to learn a good feature representation for the parsing problem. If we set aside the inherent complexity of the BiLSTM itself and treat it as a black box, our proposal results in a pleasingly simple feature extractor.
We demonstrate the effectiveness of the approach by using the BiLSTM feature extractor in two parsing architectures, transition-based (Section 4) as well as a graph-based (Section 2). In the graph-based parser, we jointly train a structured-prediction model on top of a BiLSTM, propagating errors from the structured objective all the way back to the BiLSTM feature-encoder. To the best of our knowledge, we are the first to perform such end-to-end training of a structured prediction model and a recurrent feature extractor for non-sequential outputs.Structured training of sequence tagging models over RNN-based representations was explored by ?) and ?).
Aside from the novelty of the BiLSTM feature extractor and the end-to-end structured training, we rely on existing models and techniques from the parsing and structured prediction literature. We stick to the simplest parsers in each category – greedy inference for the transition-based architecture, and a first-order, arc-factored model for the graph-based architecture. Despite the simplicity of the parsing architectures and the feature functions, we achieve near state-of-the-art parsing accuracies in both English (93.1 UAS) and Chinese (86.6 UAS), using a first-order parser with two features and while training solely on Treebank data, without relying on semi-supervised signals such as pre-trained word embeddings [Chen and Manning (2014], word-clusters [Koo et al. (2008], or techniques such as tri-training [Weiss et al. (2015]. When also including pre-trained word embeddings, we obtain further improvements, with accuracies of 93.9 UAS (English) and 87.6 UAS (Chinese) for a greedy transition-based parser with 11 features, and 93.6 UAS (En) / 87.4 (Ch) for a greedy transition-based parser with 4 features.
Background and Notation
We use to denote a sequence of vectors . is a function parameterized with parameters . We write as shorthand for – an instantiation of with a specific set of parameters . We use to denote a vector concatenation operation, and to denote an indexing operation taking the th element of a vector .
1 Feature Functions in Dependency Parsing
Traditionally, state-of-the-art parsers rely on linear models over hand-crafted feature functions. The feature functions look at core components (e.g. “word on top of stack”, “leftmost child of the second-to-top word on the stack”, “distance between the head and the modifier words”), and are comprised of several templates, where each template instantiates a binary indicator function over a conjunction of core elements (resulting in features of the form “word on top of stack is X and leftmost child is Y and …”). The design of the feature function – which components to consider and which combinations of components to include – is a major challenge in parser design. Once a good feature function is proposed in a paper it is usually adopted in later works, and sometimes tweaked to improve performance. Examples of good feature functions are the feature-set proposed by ?) for transition-based parsing (including roughly 20 core components and 72 feature templates), and the feature-set proposed by ?) for graph-based parsing, with the paper listing 18 templates for a first-order parser, while the first order feature-extractor in the actual implementation’s code (MSTParserhttp://www.seas.upenn.edu/~strctlrn/MSTParser/MSTParser.html) includes roughly a hundred feature templates.
The core features in a transition-based parser usually look at information such as the word-identity and part-of-speech (POS) tags of a fixed number of words on top of the stack, a fixed number of words on the top of the buffer, the modifiers (usually left-most and right-most) of items on the stack and on the buffer, the number of modifiers of these elements, parents of words on the stack, and the length of the spans spanned by the words on the stack. The core features of a first-order graph-based parser usually take into account the word and POS of the head and modifier items, as well as POS-tags of the items around the head and modifier, POS tags of items between the head and modifier, and the distance and direction between the head and modifier.
2 Related Research Efforts
Coming up with a good feature-set for a parser is a hard and time consuming task, and many researchers attempt to reduce the required manual effort. The work of ?) suggests a low-rank tensor representation to automatically find good feature combinations. ?) suggest a kernel-based approach to implicitly consider all possible feature combinations over sets of core-features. The recent popularity of neural networks prompted a move from templates of sparse, binary indicator features to dense core feature encodings fed into non-linear classifiers. ?) encode each core feature of a greedy transition-based parser as a dense low-dimensional vector, and the vectors are then concatenated and fed into a non-linear classifier (multi-layer perceptron) which can potentially capture arbitrary feature combinations. ?) showed further gains using the same approach coupled with a somewhat improved set of core features, a more involved network architecture with skip-layers, beam search-decoding, and careful hyper-parameter tuning. ?) apply a similar methodology to graph-based parsing. While the move to neural-network classifiers alleviates the need for hand-crafting feature-combinations, the need to carefully define a set of core features remain. For example, the feature representation in ?) is a concatenation of 18 word vectors, 18 POS vectors and 12 dependency-label vectors.In all of these neural-network based approaches, the vector representations of words were initialized using pre-trained word-embeddings derived from a large corpus external to the training data. This puts the approaches in the semi-supervised category, making it hard to tease apart the contribution of the automatic feature-combination component from that of the semi-supervised component.
The above works tackle the effort in hand-crafting effective feature combinations. A different line of work attacks the feature-engineering problem by suggesting novel neural-network architectures for encoding the parser state, including intermediately-built subtrees, as vectors which are then fed to non-linear classifiers. Titov and Henderson encode the parser state using incremental sigmoid-belief networks [Titov and Henderson (2007]. In the work of ?), the entire stack and buffer of a transition-based parser are encoded as a stack-LSTMs, where each stack element is itself based on a compositional representation of parse trees. ?) encode each tree node as two compositional representations capturing the inside and outside structures around the node, and feed the representations into a reranker. A similar reranking approach, this time based on convolutional neural networks, is taken by ?). Finally, in ?) we present an Easy-First parser based on a novel hierarchical-LSTM tree encoding.
In contrast to these, the approach we present in this work results in much simpler feature functions, without resorting to elaborate network architectures or compositional tree representations.
Work by ?) employs a sequence-to-sequence with attention architecture for constituency parsing. Each token in the input sentence is encoded in a deep-BiLSTM representation, and then the tokens are fed as input to a deep-LSTM that predicts a sequence of bracketing actions based on the already predicted bracketing as well as the encoded BiLSTM vectors. A trainable attention mechanism is used to guide the parser to relevant BiLSTM vectors at each stage. This architecture shares with ours the use of BiLSTM encoding and end-to-end training. The sequence of bracketing actions can be interpreted as a sequence of Shift and Reduce operations of a transition-based parser. However, while the parser of Vinyals et al. relies on a trainable attention mechanism for focusing on specific BiLSTM vectors, parsers in the transition-based family we use in Section 4 use a human designed stack and buffer mechanism to manually direct the parser’s attention. While the effectiveness of the trainable attention approach is impressive, the stack-and-buffer guidance of transition-based parsers results in more robust learning. Indeed, work by ?), published while working on the camera-ready version of this paper, show that the same methodology as ours is highly effective also for greedy, transition-based constituency parsing, surpassing the beam-based architecture of Vinyals et al. (88.3F vs. 89.8F points) when trained on the Penn Treebank dataset and without using orthogonal methods such as ensembling and up-training.
3 Bidirectional Recurrent Neural Networks
Recurrent neural networks (RNNs) are statistical learners for modeling sequential data. An RNN allows one to model the th element in the sequence based on the past – the elements up to and including it. The RNN model provides a framework for conditioning on the entire history without resorting to the Markov assumption which is traditionally used for modeling sequences. RNNs were shown to be capable of learning to count, as well as to model line lengths and complex phenomena such as bracketing and code indentation [Karpathy et al. (2015]. Our proposed feature extractors are based on a bidirectional recurrent neural network (BiRNN), an extension of RNNs that take into account both the past and the future . We use a specific flavor of RNN called a long short-term memory network (LSTM). For brevity, we treat RNN as an abstraction, without getting into the mathematical details of the implementation of the RNNs and LSTMs. For further details on RNNs and LSTMs, the reader is referred to ?) and ?).
A bidirectional RNN is composed of two RNNs, and , one reading the sequence in its regular order, and the other reading it in reverse. Concretely, given a sequence of vectors and a desired index , the function is defined as:
The vector is then a representation of the th item in , taking into account both the entire history and the entire future by concatenating the matching Rnns. We can view the BiRNN encoding of an item as representing the item together with a context of an infinite window around it.
Computing the BiRNN vectors encoding of the th element of a sequence requires time for computing the two RNNs and concatenating their outputs. A naive approach of computing the bidirectional representation of all elements result in computation. However, it is trivial to compute the BiRNN encoding of all sequence items in linear time by pre-computing and , keeping the intermediate representations, and concatenating the required elements as needed.
BiRNN Training
Initially, the BiRNN encodings do not capture any particular information. During training, the encoded vectors are fed into further network layers, until at some point a prediction is made, and a loss is incurred. The back-propagation algorithm is used to compute the gradients of all the parameters in the network (including the BiRNN parameters) with respect to the loss, and an optimizer is used to update the parameters according to the gradients. The training procedure causes the BiRNN function to extract from the input sequence the relevant information for the task task at hand.
Going deeper
Historical Notes
RNNs were introduced by ?), and extended to BiRNNs by ?). The LSTM variant of RNNs is due to ?). BiLSTMs were recently popularized by ?), and deep BiRNNs were introduced to NLP by ?), who used them for sequence tagging. In the context of parsing, ?) and ?) use a BiLSTM sequence tagging model to assign a CCG supertag for each token in the sentence. ?) feeds the resulting supertags sequence into an A* CCG parser. ?) adds an additional layer of LSTM which receives the BiLSTM representation together with the k-best supertags for each word and outputs the most likely supertag given previous tags, and then feeds the predicted supertags to a discriminitively trained parser. In both works, the BiLSTM is trained to produce accurate CCG supertags, and is not aware of the global parsing objective.
Our Approach
We propose to replace the hand-crafted feature functions in favor of minimally-defined feature functions which make use of automatically learned Bidirectional LSTM representations.
Given -words input sentence with words together with the corresponding POS tags , In this work the tag sequence is assumed to be given, and in practice is predicted by an external model. Future work will address relaxing this assumption. we associate each word and POS with embedding vectors and , and create a sequence of input vectors in which each is a concatenation of the corresponding word and POS vectors:
The embeddings are trained together with the model. This encodes each word in isolation, disregarding its context. We introduce context by representing each input element as its (deep) BiLSTM vector, :
Our feature function is then a concatenation of a small number of BiLSTM vectors. The exact feature function is parser dependent and will be discussed when discussing the corresponding parsers. The resulting feature vectors are then scored using a non-linear function, namely a multi-layer perceptron with one hidden layer (MLP):
where are the model parameters.
Beside using the BiLSTM-based feature functions, we make use of standard parsing techniques. Crucially, the BiLSTM is trained jointly with the rest of the parsing objective. This allows it to learn representations which are suitable for the parsing task.
Consider a concatenation of two BiLSTM vectors () scored using an MLP. The scoring function has access to the words and POS-tags of and , as well as the words and POS-tags of the words in an infinite window surrounding them. As LSTMs are known to capture length and sequence position information, it is very plausible that the scoring function can be sensitive also to the distance between and , their ordering, and the sequential material between them.
Once the BiLSTM is trained, parsing is performed by first computing the BiLSTM encoding for each word in the sentence (a linear time operation). While the BiLSTM computation is quite efficient as it is, as demonstrated by ?), if using a GPU implementation the BiLSTM encoding can be efficiently performed over many of sentences in parallel, making its computation cost almost negligible. Then, parsing proceeds as usual, where the feature extraction involves a concatenation of a small number of the pre-computed vectors.
Transition-based Parser
We begin by integrating the feature extractor in a transition-based parser [Nivre (2008]. We follow the notation in ?). The transition-based parsing framework assumes a transition system, an abstract machine that processes sentences and produces parse trees. The transition system has a set of configurations and a set of transitions which are applied to configurations. When parsing a sentence, the system is initialized to an initial configuration based on the input sentence, and transitions are repeatedly applied to this configuration. After a finite number of transitions, the system arrives at a terminal configuration, and a parse tree is read off the terminal configuration. In a greedy parser, a classifier is used to choose the transition to take in each configuration, based on features extracted from the configuration itself. The parsing algorithm is presented in Algorithm 1 below.
Given a sentence , the parser is initialized with the configuration (line 2). Then, a feature function represents the configuration as a vector, which is fed to a scoring function Score assigning scores to (configuration,transition) pairs. Score scores the possible transitions , and the highest scoring transition is chosen (line 4). The transition is applied to the configuration, resulting in a new parser configuration. The process ends when reaching a final configuration, from which the resulting parse tree is read and returned (line 6).
Transition systems differ by the way they define configurations, and by the particular set of transitions available to them. A parser is determined by the choice of a transition system, a feature function and a scoring function Score. Our choices are detailed below.
Scoring Function
Traditionally, the scoring function is a discriminative linear model of the form . The linearity of Score required the feature function to encode non-linearities in the form of combination features. We follow Chen and Manning [Chen and Manning (2014] and replace the linear scoring model with an MLP.
Simple Feature Function
The feature function is typically complex (see Section 2.1). Our feature function is the concatenated BiLSTM vectors of the top 3 items on the stack and the first item on the buffer. I.e., for a configuration the feature extractor is defined as:
This feature function is rather minimal: it takes into account the BiLSTM representations of and , which are the items affected by the possible transitions being scored, as well as one extra stack context .An additional buffer context is not needed, as is by definition adjacent to , a fact that we expect the BiLSTM encoding of to capture. In contrast, , , and are not necessarily adjacent to each other in the original sentence. Figure 1 depicts transition scoring with our architecture and this feature function. Note that, unlike previous work, this feature function does not take into account , the already built structure. The high parsing accuracies in the experimental sections suggest that the BiLSTM encoding is capable of estimating a lot of the missing information based on the provided stack and buffer elements and the sequential content between them.
While not explored in this work, relying on only four word indices for scoring an action results in very compact state signatures, making our proposed feature representation very appealing for use in transition-based parsers that employ dynamic-programming search [Huang and Sagae (2010, Kuhlmann et al. (2011].
Extended Feature Function
One of the benefits of the greedy transition-based parsing framework is precisely its ability to look at arbitrary features from the already built tree. If we allow somewhat less minimal feature function, we could add the BiLSTM vectors corresponding to the right-most and left-most modifiers of , and , as well as the left-most modifier of , reaching a total of 11 BiLSTM vectors. We refer to this as the extended feature set. As we’ll see in Section 6, using the extended set does indeed improve parsing accuracies when using pre-trained word embeddings, but has a minimal effect in the fully-supervised case.We did not experiment with other feature configurations. It is well possible that not all of the additional 7 child encodings are needed for the observed accuracy gains, and that a smaller feature set will yield similar or even better improvements.
1 Details of the Training Algorithm
The training objective is to set the score of correct transitions above the scores of incorrect transitions. We use a margin-based objective, aiming to maximize the margin between the highest scoring correct action and the highest scoring incorrect action. The hinge loss at each parsing configuration is defined as:
where is the set of possible transitions and is the set of correct (gold) transitions at the current stage. At each stage of the training process the parser scores the possible transitions , incurs a loss, selects a transition to follow, and moves to the next configuration based on it. The local losses are summed throughout the parsing process of a sentence, and the parameters are updated with respect to the sum of the losses at sentence boundaries.To increase gradient stability and training speed, we simulate mini-batch updates by only updating the parameters when the sum of local losses contains at least 50 non-zero elements. Sums of fewer elements are carried across sentences. This assures us a sufficient number of gradient samples for every update thus minimizing the effect of gradient instability. The gradients of the entire network (including the MLP and the BiLSTM) with respect to the sum of the losses are calculated using the backpropagation algorithm. As usual, we perform several training iterations over the training corpus, shuffling the order of sentences in each iteration.
We follow ?);?) in using error exploration training with a dynamic-oracle, which we briefly describe below.
At each stage in the training process, the parser assigns scores to all the possible transitions . It then selects a transition, applies it, and moves to the next step. Which transition should be followed? A common approach follows the highest scoring transition that can lead to the gold tree. However, when training in this way the parser sees only configurations that result from following correct actions, and as a result tends to suffer from error propagation at test time. Instead, in error-exploration training the parser follows the highest scoring action in during training even if this action is incorrect, exposing it to configurations that result from erroneous decisions. This strategy requires defining the set such that the correct actions to take are well-defined also for states that cannot lead to the gold tree. Such a set is called a dynamic oracle. We perform error-exploration training using the dynamic-oracle defined by ?).
Aggressive Exploration
We found that even when using error-exploration, after one iteration the model remembers the training set quite well, and does not make enough errors to make error-exploration effective. In order to expose the parser to more errors, we follow an aggressive-exploration scheme: we sometimes follow incorrect transitions also if they score below correct transitions. Specifically, when the score of the correct transition is greater than that of the wrong transition but the difference is smaller than a margin constant, we chose to follow the incorrect action with probability (we use in our experiments).
Summary
The greedy transition-based parser follows standard techniques from the literature (margin-based objective, dynamic oracle training, error exploration, MLP-based non-linear scoring function). We depart from the literature by replacing the hand-crafted feature function over carefully selected components of the configuration with a concatenation of BiLSTM representations of a few prominent items on the stack and the buffer, and training the BiLSTM encoder jointly with the rest of the network.
Graph-based Parser
Graph-based parsing follows the common structured prediction paradigm [Taskar et al. (2005, McDonald et al. (2005]:
Given an input sentence (and the corresponding sequence of vectors ) we look for the highest-scoring parse tree in the space of valid dependency trees over . In order to make the search tractable, the scoring function is decomposed to the sum of local scores for each part independently.
In this work, we focus on arc-factored graph based approach presented in ?). Arc-factored parsing decomposes the score of a tree to the sum of the score of its head-modifier arcs :
Given the scores of the arcs the highest scoring projective tree can be efficiently found using Eisner’s decoding algorithm [Eisner (1996]. McDonald et al. and most subsequent work estimate the local score of an arc by a linear model parameterized by a weight vector , and a feature function assigning a sparse feature vector for an arc linking modifier to head . We follow ?) and replace the linear scoring function with an MLP.
The feature extractor is usually complex, involving many elements (see Section 2.1). In contrast, our feature extractor uses merely the BiLSTM encoding of the head word and the modifier word:
The architecture is illustrated in Figure 2.
The training objective is to set the score function such that correct tree is scored above incorrect ones. We use a margin-based objective [McDonald et al. (2005, LeCun et al. (2006], aiming to maximize the margin between the score of the gold tree and the highest scoring incorrect tree . We define a hinge loss with respect to a gold tree as:
Each of the tree scores is then calculated by activating the MLP on the arc representations. The entire loss can viewed as the sum of multiple neural networks, which is sub-differentiable. We calculate the gradients of the entire network (including to the BiLSTM encoder and word embeddings).
Labeled Parsing
Instead, we chose to first predict the unlabeled structure using the model given above, and then predict the label of each resulting arc. Using this approach, the number of parts stays small, enabling fast parsing.
The labeling of an arc is performed using the same feature representation fed into a different MLP predictor:
As before we use a margin based hinge loss. The labeler is trained on the gold trees.When training the labeled parser, we calculate the structure loss and the labeling loss for each training sentence, and sum the losses prior to computing the gradients. The BiLSTM encoder responsible for producing and is shared with the arc-factored parser: the same BiLSTM encoder is used in the parer and the labeler. This sharing of parameters can be seen as an instance of multi-task learning [Caruana (1997]. As we show in Section 6, the sharing is effective: training the BiLSTM feature encoder to be good at predicting arc-labels significantly improves the parser’s unlabeled accuracy.
Loss augmented inference
In initial experiments, the network learned quickly and overfit the data. In order to remedy this, we found it useful to use loss augmented inference [Taskar et al. (2005]. The intuition behind loss augmented inference is to update against trees which have high model scores and are also very wrong. This is done by augmenting the score of each part not belonging to the gold tree by adding a constant to its score. Formally, the loss transforms as follows:
Speed improvements
The arc-factored model requires the scoring of arcs. Scoring is performed using an MLP with one hidden layer, resulting in matrix-vector multiplications from the input to the hidden layer, and multiplications from the hidden to the output layer. The first multiplications involve larger dimensional input and output vectors, and are the most time consuming. Fortunately, these can be reduced to multiplications and vector additions, by observing that the multiplication can be written as where and are are the first and second half of the matrix and reusing the products across different pairs.
Summary The graph-based parser is straight-forward first-order parser, trained with a margin-based hinge-loss and loss-augmented inference. We depart from the literature by replacing the hand-crafted feature function with a concatenation of BiLSTM representations of the head and modifier words, and training the BiLSTM encoder jointly with the structured objective. We also introduce a novel multi-task learning approach for labeled parsing by training a second-stage arc-labeler sharing the same BiLSTM encoder with the unlabeled parser.
Experiments and Results
We evaluated our parsing model on English and Chinese data. For comparison purposes we follow the setup of ?).
For English, we used the Stanford Dependency (SD) [de Marneffe and Manning (2008] conversion of the Penn Treebank [Marcus et al. (1993], using the standard train/dev/test splits with the same predicted POS-tags as used in ?);?). This dataset contains a few non-projective trees. Punctuation symbols are excluded from the evaluation.
For Chinese, we use the Penn Chinese Treebank 5.1 (CTB5), using the train/test/dev splits of [Zhang and Clark (2008, Dyer et al. (2015] with gold part-of-speech tags, also following [Dyer et al. (2015, Chen and Manning (2014].
When using external word embeddings, we also use the same data as ?).We thank Dyer et al. for sharing their data with us.
Implementation Details
The parsers are implemented in python, using the PyCNN toolkithttps://github.com/clab/cnn/tree/master/pycnn for neural network training. The code is available at the github repository https://github.com/elikip/bist-parser. We use the LSTM variant implemented in PyCNN, and optimize using the Adam optimizer [Kingma and Ba (2015]. Unless otherwise noted, we use the default values provided by PyCNN (e.g. for random initialization, learning rates etc).
The word and POS embeddings and are initialized to random values and trained together with the rest of the parsers’ networks. In some experiments, we introduce also pre-trained word embeddings. In those cases, the vector representation of a word is a concatenation of its randomly-initialized vector embedding with its pre-trained word vector. Both are tuned during training. We use the same word vectors as in ?)
During training, we employ a variant of word dropout [Iyyer et al. (2015], and replace a word with the unknown-word symbol with probability that is inversely proportional to the frequency of the word. A word appearing times in the training corpus is replaced with the unknown symbol with probability . If a word was dropped the external embedding of the word is also dropped with probability .
We train the parsers for up to 30 iterations, and choose the best model according to the UAS accuracy on the development set.
Hyperparameter Tuning
We performed a very minimal hyper-parameter search with the graph-based parser, and use the same hyper-parameters for both parsers. The hyper-parameters of the final networks used for all the reported experiments are detailed in Table 2.
Main Results Table 1 lists the test-set accuracies of our best parsing models, compared to other state-of-the-art parsers from the literature.Unfortunately, many papers still report English parsing results on the deficient Yamada and Matsumoto head rules (PTB-YM) rather than the more modern Stanford-dependencies (PTB-SD). We note that the PTB-YM and PTB-SD results are not strictly comparable, and in our experience the PTB-YM results are usually about half a UAS point higher.
It is clear that our parsers are very competitive, despite using very simple parsing architectures and minimal feature extractors. When not using external embeddings, the first-order graph-based parser with 2 features outperforms all other systems that are not using external resources, including the third-order TurboParser. The greedy transition based parser with 4 features also matches or outperforms most other parsers, including the beam-based transition parser with heavily engineered features of Zhang and Nivre (2011) and the Stack-LSTM parser of ?), as well as the same parser when trained using a dynamic oracle [Ballesteros et al. (2016]. Moving from the simple (4 features) to the extended (11 features) feature set leads to some gains in accuracy for both English and Chinese.
Interestingly, when adding external word embeddings the accuracy of the graph-based parser degrades. We are not sure why this happens, and leave the exploration of effective semi-supervised parsing with the graph-based model for future work. The greedy parser does manage to benefit from the external embeddings, and using them we also see gains from moving from the simple to the extended feature set. Both feature sets result in very competitive results, with the extended feature set yielding the best reported results for Chinese, and ranked second for English, after the heavily-tuned beam-based parser of ?).
Additional Results
We perform some ablation experiments in order to quantify the effect of the different components on our best models (Table 3).
Loss augmented inference is crucial for the success of the graph-based parser, and the multi-task learning scheme for the arc-labeler contributes nicely to the unlabeled scores. Dynamic oracle training yields nice gains for both English and Chinese.
Conclusion
We presented a pleasingly effective approach for feature extraction for dependency parsing based on a BiLSTM encoder that is trained jointly with the parser, and demonstrated its effectiveness by integrating it into two simple parsing models: a greedy transition-based parser and a globally optimized first-order graph-based parser, yielding very competitive parsing accuracies in both cases.
This research is supported by the Intel Collaborative Research Institute for Computational Intelligence (ICRI-CI) and the Israeli Science Foundation (grant number 1555/15). We thank Lillian Lee for her important feedback and efforts invested in editing this paper. We also thank the reviewers for their valuable comments.