Top-down Tree Long Short-Term Memory Networks
Paper · 2016 · Xingxing Zhang, Liang Lu and Mirella Lapata
Summary
A word’s grammatical connection to another word can matter more for prediction than its place in the sentence. A verb can help predict its object even when other words intervene. The subject can make that prediction more specific. “Top-down Tree Long Short-Term Memory Networks” builds those connections into a language model. The authors’ TreeLSTM scores a sentence by working through a dependency tree, a representation in which words are linked to the words they grammatically depend on. The same sentence can have several possible trees, and the method can give those trees different scores.
TreeLSTM begins at an artificial root and works outward, visiting the tree level by level. For each head, it visits the left dependents before the right dependents, beginning with the closest word on each side. Separate long short-term memory networks, or LSTMs, handle the first dependent and subsequent siblings on each side. They pass recurrent states to one another and share the matrices that represent input words and score possible output words. Repeating the sibling operations lets the architecture handle varying numbers of dependents, and the recurrent paths have no prescribed depth cutoff. The authors specify the kinds of connections to follow, while the networks learn what information to carry along them.
The basic TreeLSTM can reach an object through its verb without seeing any dependents on the verb’s left. The extended version, LdTreeLSTM, addresses that gap by reading the left dependents into a separate memory and making that memory available when it predicts the first right dependent. On the Microsoft Research sentence completion challenge, LdTreeLSTM consistently improved on TreeLSTM in the reported comparisons. The strongest LdTreeLSTM surpassed the previously published benchmark leader, which combined multiple predictors. It also beat the authors’ sequential LSTM baselines.
The authors also tested the approach on dependency parsing by asking it to choose among trees proposed by MSTParser. Both versions improved on the parser’s original choices without using part-of-speech tags or dependency labels in their own scoring. LdTreeLSTM did best among the rerankers. Its unlabeled attachment score was slightly above that of a published neural transition parser, while the stack-LSTM parser remained ahead. The paper also demonstrates how to generate new trees. Binary classifiers decide whether a branch or sibling should be added, and LdTreeLSTM supplies a word when the answer is yes. The authors suggest sentence compression and simplification as possible applications and identify other kinds of trees, including constituent trees and taxonomies, as possible extensions.
Deep dive: Top-down Tree Long Short-Term Memory Networks
Top-down TreeLSTM scores and generates dependency trees, using syntactic paths to predict words for sentence completion and parse reranking. · about 38 minutes to read
The problem and its context
What counts as context for a word?
A sentence comes to a reader in a fixed order, but grammatical relationships give its words another organization. A noun can depend directly on a verb even when a modifier of another word stands between them. A phrase can also contain several words that contribute to its meaning while only its head has a direct connection to the rest of the sentence. A predictor that proceeds in written order receives the intervening words as part of its history. A predictor organized around grammatical links can make the governing verb an immediate source of information.
That choice affects the question a predictor can answer. A word sequence admits a score for the sequence itself. A sentence paired with a dependency tree offers something more specific to score. Each possible attachment can change which word predicts another and which information reaches that prediction. This matters in parsing because the words are already given, and the task is to decide how they fit together. It also matters in sentence completion because replacing a word changes the plausibility of a completed sentence and can affect how the words fit into its tree.
The paper places this question in the development of neural alternatives to n-grams. An n-gram predictor estimates a word’s likelihood from a limited sequence of preceding words. Neural approaches represent words as vectors, so words encountered in similar contexts can acquire similar representations and support similar predictions. The paper describes earlier feed-forward networks that map a context to a distribution over possible continuations, as well as recurrent networks that carry a state from one word to the next. One of the feed-forward approaches it discusses is A Neural Probabilistic Language Model.
A recurrent state is a learned summary that is updated as the network reads its inputs. Long short-term memory adds a separate memory cell and learned controls, called gates, for retaining old information, writing new information, and exposing information to the rest of the network. The paper presents these controls as a way to address training difficulties that arise when useful signals must travel across many recurrent updates. It points to earlier LSTM applications in translation, speech recognition, and image description to explain why the architecture was a plausible starting point. Those applications established the relevance of LSTMs to sequence prediction. The question here was how to organize recurrent updates around syntax.
What earlier syntax-based approaches supplied
The authors describe a history of language prediction informed by parsing. In that work, a grammar or an analysis of the sentence supplied information that could affect the next-word prediction. Approaches varied in which parts of a parse they used. The antecedents the paper names include Probabilistic Top-Down Parsing and Language Modeling and Immediate-Head Parsing for Language Models.
Earlier dependency-based approaches had also been developed for particular tasks, including sentence completion, speech recognition, and machine translation. The paper describes methods that select a bounded context on the dependency tree. This is a Markov assumption about which earlier information matters for the current decision. It makes the conditioning context manageable but requires choosing how much of the tree to retain. The earlier methods described by the authors used n-gram smoothing to estimate probabilities from counts. Some subsequent approaches used feed-forward networks to estimate probabilities for structured contexts.
The most immediate comparison for sentence completion was prior work that applied a recurrent network to a dependency-based prediction scheme. In the authors’ account, the earlier recurrent approach treated words encountered over the tree as sequences. TreeLSTM makes the connection used at each step part of the recurrence itself. A link from a head to its nearest left dependent invokes a different transformation from a link between successive dependents. The distinction is carried into the state passed forward, so the same source word can be processed differently according to what the architecture is about to predict.
The authors also distinguish that decision from providing a network with a manually selected inventory of syntactic features. A feature-driven method must decide which properties of a tree are worth representing and how to supply them to the learner. TreeLSTM specifies a small set of structural operations and learns recurrent transformations for those operations. The decision to use dependency trees, distinguish sides, and order siblings still comes from the design. What training supplies is a way to encode the lexical and structural history available through those operations.
The claim that the architecture can be viewed as having infinite order concerns the absence of a fixed cutoff on the dependency path. A state can descend through successive levels or pass through successive siblings until it reaches the word being predicted. This describes the connections the architecture permits. The state at each step is still a vector of fixed size, so what survives the journey depends on the recurrent transformations and their learned gates.
Reading a tree and building a tree
Recursive neural networks provided another starting point. The paper describes work that begins with a parsed sentence and combines its token representations into larger units. Repeating that operation upward can yield a vector for the sentence. That vector can then serve a task such as sentiment classification or paraphrase detection. The input tree determines where the combinations take place.
The earlier tree-structured LSTM work by Tai and colleagues also generalized the usual sequence architecture to exploit tree topology. The authors cite it for learning distributed representations over syntactic structures. TreeLSTM in this paper is designed around a different decision at each step. Beginning near the top of the tree, it uses the part of a structural path already available to predict which word comes next along that path. The distribution over words is part of the requested output, and the resulting probabilities contribute to a score for the entire traversal. The related work appears as Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks.
A top-down order also gives prediction a usable direction when the tree has yet to be built. A head can be present before any of its dependents. A nearer sibling can be present before a farther one. The architecture can therefore use either as context without consulting a part of the tree that has yet to be generated. For a known tree, this order tells the scorer which operation to apply. For free generation, an additional decision is needed about whether the operation should take place at all.
The paper studies these uses with dependency trees. Each dependency edge connects a head to one of its direct dependents. The dependent’s position in the original sentence determines whether it is on the head’s left or right. The authors assume projectivity throughout. Intuitively, the trees under consideration have branches that can be laid out over the sentence without crossing dependency arcs. Within that setup, the paper gives a representation that preserves enough information to recover the ordered dependency tree while making both heads and siblings available to the recurrent predictor.
The method, step by step
From grammatical relations to prediction paths
Imagine a head with several words attached to its left. The nearest left dependent is the starting point for that side of the head. The method reaches it directly from the head. To predict the next left dependent, it proceeds from the nearer sibling it has just reached. It repeats that operation as it moves away from the head. The right side follows the same pattern, with a direct step to the nearest right dependent and sibling steps to reach dependents farther away.
The paper calls the direct steps Left and Right. It calls the sibling steps Nx-Left and Nx-Right, with Nx meaning next. The sibling steps are connections in the representation used for prediction. In the original grammatical analysis, the farther dependent still belongs to the original head. The modified path lets information about that head reach the farther dependent through the nearer sibling, carrying along a representation of the lexical decisions made on the way.
The traversal uses the original dependency tree to organize the visit. It starts at a special ROOT node, generates its sole dependent through a Right operation, and works through each level before moving down to the next. For each head it visits, the left-side list comes first. Within either side, “first” means closest to the head in the sentence. The path followed to compute a prediction and the overall order in which nodes are visited do different jobs. The overall order supplies a schedule. The path says which earlier state the current computation should retrieve.
How TreeLSTM scores an ordered dependency tree
The steps in order.
The example in the paper is a sentence about a manufacturer selling cars. Its main verb, sold, attaches to ROOT. In the analysis shown, year is the closest left dependent of sold and manufacturer is farther away on that side. The closest right dependent is cars, followed on the right by in. These words make the distinction between a grammatical link and a prediction link concrete. Manufacturer and year are siblings in the grammatical tree. For prediction, the route to manufacturer runs through year. On the other side, the route to in runs through cars.
The representation of the path to in therefore has access to the decisions leading to sold and cars. The base architecture’s path to cars is shorter. It comes from sold via a Right edge, so it has no direct route through manufacturer. The difference matters because the left dependents have already been visited when cars is predicted. Being available earlier in the traversal and being available to a particular recurrent update are separate conditions. The extension in the paper changes the second condition.
The path definitions
The authors write a path as an ordered list of pairs. In each pair, the first item is a source word or ROOT, and the second item says what kind of edge to take from it. The pair describes how to reach the next node. For a path ending at a word under prediction, its last pair already identifies the source and operation without containing the identity of the word to be predicted.
𝒟(ROOT) = ()
Here 𝒟 means the dependency path in the modified representation. ROOT is the artificial node from which traversal begins. The empty parentheses denote an empty sequence. ROOT has no predecessor, although it serves as the source for the first lexical prediction.
𝒟(w) = 𝒟(wᵖ) ∥ (⟨wᵖ, Left⟩)
This is the case in which w is its head’s first left dependent. The superscript p identifies the head, written wᵖ, and ∥ appends one sequence to another. The parentheses on the right enclose a sequence containing a single pair, and the angle brackets delimit the pair. Left directs the network from wᵖ to its nearest left dependent. The new path consists of the path that reached the head, followed by this step.
𝒟(w) = 𝒟(wˢ) ∥ (⟨wˢ, Nx-Left⟩)
Here w is a subsequent left dependent, and wˢ is its adjacent sibling on the same side, closer to the head. In terms of sentence position, that sibling is to the right of w. The superscript s identifies this sibling. The concatenation operator ∥ joins its path to the final pair ⟨wˢ, Nx-Left⟩, which directs the network one sibling farther away on the left. Since this pair is enclosed in parentheses, it is appended as an element of the path sequence.
𝒟(w) = 𝒟(wᵖ) ∥ (⟨wᵖ, Right⟩)
For the first right dependent w, wᵖ again stands for the grammatical head. The one-pair sequence appended by ∥ contains the head and the Right edge type. The operation reaches the closest dependent to the head’s right. The authors use this case for the sole dependent of ROOT as well.
𝒟(w) = 𝒟(wˢ) ∥ (⟨wˢ, Nx-Right⟩)
For a later right dependent w, the superscript s marks the adjacent sibling wˢ closer to the head. That sibling is to the left of w. The path to wˢ is extended using ∥ and the pair ⟨wˢ, Nx-Right⟩, enclosed as a one-element sequence. The edge type directs the network outward on the right.
The original analysis can be recovered because the direct step on either side identifies the head. Each later sibling step stays with the same head and preserves order among its dependents on that side. A new direct step starts a dependent list for a different head. Hence, the same grammatical relations used to define the paths can be read back from the collection of paths. The change is in how information travels during prediction.
For the cars prediction, the list starts with ROOT paired with Right, then contains sold paired with Right. The first pair positions the computation at the verb. The second specifies the operation that produces the distribution for its first right dependent. For in, a further pair adds cars and Nx-Right. The Nx-Right update receives the lexical identity of cars and a state constructed along the path that reached it, so it can use the governing verb even though the immediate source of the update is a sibling.
Turning a traversal into a score
With a tree in hand, the architecture has a prediction problem for every ordinary word. The authors assume that the relevant context for each prediction is its path. Multiplying the resulting conditional word probabilities gives the sentence score under the given tree.
P(S ∣ T) = ∏[w ∈ BFS(T) ∖ {ROOT}] P(w ∣ 𝒟(w))
Here S is the sentence, T is its dependency tree, and P denotes a probability. The vertical bar means “given.” The product sign ∏ combines the terms for word nodes w, with ∈ indicating membership in the traversal written BFS(T). BFS stands for breadth-first search. The set difference sign ∖ and the braces around ROOT exclude the artificial start node. The notation 𝒟(w) identifies the path used to predict w. Each occurrence of a word contributes as a node in the traversal, including repeated occurrences of the same vocabulary item.
The traversal order ensures that a predecessor’s state has been stored before a later prediction needs it. The product itself can be accumulated in any order once those individual probabilities have been computed. A change to an attachment can alter several paths even though the sentence still contains the same tokens. The changed paths invoke different updates or retrieve different states, and the resulting word probabilities can give the alternate analysis a different score.
ROOT plays the role of a beginning-of-sentence marker. It is assumed to exist, so its own probability contributes no factor. It remains an input because the lexical head of the sentence has to be predicted from somewhere. The formula conditions on T. In particular, when a candidate analysis is supplied, there is no need at this step to predict the existence of an edge the analysis already specifies. Generating a new tree introduces those edge decisions separately.
The recurrent update and the word distribution
The four recurrent operations are Gen-L, Gen-R, Gen-Nx-L, and Gen-Nx-R. The first pair takes a head as its immediate lexical input and moves to a first dependent. The second pair takes a sibling as its immediate lexical input and continues an existing dependent list. A node with many siblings on one side repeatedly uses the corresponding next-sibling operation. A path that penetrates further into the tree keeps using the direct and sibling operations as its edges require.
At a visit indexed by t, the incoming edge points back to a source indexed by t′. These indices refer to breadth-first order. The source may be the immediately preceding node, but the operation can also retrieve information from well before that node in the traversal. To begin the right side, for example, the basic network returns to the head’s state even if it has just visited several left dependents. Retrieving the appropriate earlier state is what makes this computation a recurrence over paths.
The source word is represented initially by a one-hot vector. Each entry corresponds to a word in the vocabulary, and the vector selects the entry for the source word. Multiplication by the input embedding matrix retrieves a learned vector for that word. Because the input matrix is shared, a word has the same input representation whichever of the four operations uses it. Each operation can still interpret that representation differently through its own recurrent weights. This is the input side of the paper’s use of word embeddings.
The paper denotes the embedding matrix by Wₑ. Its dimensions are s by |V|, where s is the embedding size and |V| is the vocabulary size. The output matrix, Wₕₒ, has |V| rows and d columns, where d is the size of the recurrent hidden state. A row of the output matrix supplies the weights used to score a possible next word from that state. Sharing this matrix means all edge types use the same vocabulary scoring weights after producing their own hidden representation. The input and output matrices serve distinct roles. The sharing is across edge types within each role.
The selected LSTM combines the source embedding with recurrent information stored at the source node. The resulting hidden state is stored for the current node. The paper organizes the top-layer states as columns of a common matrix H. The column H[:, t] is the state at traversal position t, where the colon denotes all rows. The initial column, H[:, 0], is filled with small values, with 0.01 given as an example. The separate LSTMs can read from the same collection of stored states and write their results back to it, allowing one type of edge to follow another.
The output matrix turns the current hidden state into an unnormalized score for each vocabulary item. These scores enter a softmax, which produces a probability distribution by exponentiating each score and dividing by the sum of the exponentiated scores.
P(wₜ ∣ 𝒟(wₜ)) = exp(yₜ,ᵥ) / ∑[k′ = 1 to |V|] exp(yₜ,ₖ′)
In this notation, wₜ is the word at traversal step t, and v is the vocabulary position of that word. The quantity yₜ,ᵥ is its score at step t. The expression yₜ,ₖ′ is the corresponding score for the vocabulary entry indexed by k′, and |V| counts the vocabulary entries. The sum ∑ runs over those entries, and exp is the exponential function. The denominator normalizes the scores against all competing words. The left side gives the probability of wₜ under the path 𝒟(wₜ), with the vertical bar indicating the conditioning relation.
The state used for the output has been built from a source word already available in the traversal. Scoring an observed target means looking up that target’s probability in the resulting distribution. The target word can then serve as a lexical input when the traversal follows an edge out of that node. For a tree being generated, the corresponding word identity is obtained by sampling from the distribution, after which it can serve the same role in subsequent predictions.
What the gates retain
Each edge-specific LSTM can have multiple layers. The source embedding is the input at the bottom. At a given layer, the current computation uses the signal from the layer below at the current traversal position and the recurrent information from the corresponding layer at the earlier position. The final layer’s hidden state supplies the output word scores. The implementation stores the internal hidden states and memory cells for all layers because future updates can retrieve recurrent information from an earlier node.
At each layer, the candidate input is a new signal computed from the current input and retrieved hidden state. The input gate controls how much of this signal enters the memory cell. The forget gate controls how much of the earlier cell is retained. These operations act component by component, so the memory can preserve some coordinates while updating others. The paper omits bias terms in its mathematical presentation.
ĉₜˡ = iₜ ⊙ uₜ + fₜ ⊙ ĉₜ′ˡ
Here ĉₜˡ is the memory cell at layer l and current traversal step t. The quantity ĉₜ′ˡ is the cell at the same layer for the source step t′. The candidate input is uₜ, the input gate is iₜ, and the forget gate is fₜ, with layer and edge type implicit for those quantities. The symbol ⊙ denotes multiplication of corresponding vector entries, and + adds the two resulting vectors. The left-hand side records the updated memory for use at later nodes.
The gate calculations use learned weights for the input arriving at the layer and for the earlier hidden state. The edge type and layer identify the relevant weights. A sigmoid maps gate inputs to values that control how much of each coordinate can pass. The output gate determines how much of the updated cell becomes visible in the hidden state. That hidden state can feed the next layer, contribute to vocabulary scoring at the top layer, or become part of the recurrent input on a later edge. The memory cell itself remains available for later recurrence.
The paper uses L for the layer count and z for the selected edge type. The input to the bottom layer has size s, the size of a word embedding. The internal hidden representations have size d. Thus, the bottom layer’s weights for the candidate input accept an s-dimensional vector, while the corresponding weights at deeper layers accept a d-dimensional input. The weights applied to the earlier hidden state take a d-dimensional vector throughout.
An ordinary sequential LSTM retrieves its recurrent context from the previous sequence step. The variation here is in the choice of earlier position and the choice of recurrent weights. At each TreeLSTM step, the incoming edge selects one operation. The authors use that observation to explain why the recurrent work per visited word follows the same pattern as in a regular LSTM in spite of the four parameter sets. The stored states also let a head’s history support several later branches without recomputing the path from ROOT each time.
Giving the right side access to the left
In the base architecture, the head state is the point of departure for both sides. Revisiting it to start a right branch gives the network the information available when it reached that head. The left dependents generated in the meantime do not change that saved state. The example in the paper makes the cost of this restriction concrete. Sold can plausibly lead to many kinds of objects. Knowing that the seller is a manufacturer may make a particular object more plausible, but the basic Right operation that predicts cars has no access to that left dependent through its path.
LdTreeLSTM adds an LSTM for summarizing a head’s direct left dependents. By the time prediction reaches the first right dependent, the left-side words are available. The auxiliary LSTM reads them from farthest to nearest, reversing their order of creation. Its final state summarizes the list. That state becomes an additional input to the first-right-dependent update, which still has the head information used by the base architecture.
The paper calls the sequence of left dependents vₜ, where t now identifies the step for the first right dependent. It uses K for the length of this auxiliary sequence and qₖ for the hidden state after reading its entry at position k. The final state qₖ at the end of the sequence, indexed by the full length K, is the representation supplied to Gen-R. The left summary therefore reaches the first right dependent directly. Subsequent right siblings can receive the information through the recurrent state passed along their Nx-Right path. They need no new pass over the left list.
The auxiliary network’s inputs are the direct left dependents of the current head, so the mechanism has a specific scope. At this point in a breadth-first traversal, their deeper descendants need not have been visited. The extension exposes the words on the other side that the traversal has already made available and compresses them into one state. The reverse direction, giving the left-side predictions information from the as-yet ungenerated right side, would require a different prediction schedule or a different conditioning scheme.
Learning from trees
Training starts from sentences with dependency analyses. These analyses specify the incoming edge types, the source nodes, and the target words. A training pass can therefore traverse each tree and compare the resulting predictions with the observed words. The paper uses negative log-likelihood on the smaller parsing dataset. Taking a logarithm turns the product of word probabilities into a sum of log probabilities. Negating that quantity yields a loss that increases when observed words receive lower probabilities.
ℒᴺᴸᴸ(θ) = −(1 / |𝒮|) ∑[S ∈ 𝒮] log P(S ∣ T)
The symbol ℒᴺᴸᴸ denotes the negative log-likelihood loss, and θ denotes the learned parameters used to compute the probabilities. The collection 𝒮 is the training set, and |𝒮| counts its sentences. The sum ∑ iterates over a sentence S belonging to that collection, as indicated by ∈. In each term, T is the dependency tree for S, P(S ∣ T) is the conditional probability defined by the traversal, and log is the logarithm. The minus sign turns high log-likelihood into low loss. The factor 1 / |𝒮| averages sentence contributions, each of which contains the contributions of its word predictions.
A full softmax requires scores for every vocabulary entry at every observed word. The authors use noise-contrastive estimation for the larger sentence completion corpus, where the vocabulary makes that calculation expensive. Training becomes a discrimination problem. For a fixed path, there is an observed word from the corpus and there are words sampled from a known noise distribution. The network is trained to give the observed item a high probability of being data and the sampled ones a high probability of being noise.
P̂(w ∣ 𝒟(wₜ)) = exp(Wₕₒ[w, :] · hₜ) / Ẑ
Here P̂ is the quantity used to score a possible data word w given the path 𝒟(wₜ) at traversal step t. The word at that step in the training tree is wₜ, while w can be either the observed word or a candidate sampled from noise. Wₕₒ[w, :] selects every column of the output matrix row for w. The dot denotes the dot product with hₜ, the top-layer hidden state at step t, and exp is the exponential. The scalar Ẑ serves as the normalizing term. It takes the place of a separately computed sum over the vocabulary for each context. The authors initialize ln Ẑ to 9, where ln is the natural logarithm, and learn Ẑ during training.
P_d(w, 𝒟(wₜ)) = P̂(w ∣ 𝒟(wₜ)) / (P̂(w ∣ 𝒟(wₜ)) + k P_n(w))
The quantity P_d is the probability assigned to the data class for a word w evaluated in the path context 𝒟(wₜ). The estimated data score is P̂, and P_n(w) is the probability of drawing w from the noise distribution. The parameter k is the number of noise draws per observed word. The denominator adds the data score and the noise score weighted by k. The ratio therefore accounts for both how plausible the word is under the predictor and how likely it is to have been drawn as noise.
ℒᴺᶜᴱ(θ) = −(1 / |𝒮|) ∑[T ∈ 𝒮] ∑[t = 1 to |T|]
(log P_d(wₜ, 𝒟(wₜ)) + ∑[j = 1 to k] log[1 − P_d(w̃ₜ,ⱼ, 𝒟(wₜ))])
Here ℒᴺᶜᴱ is the noise-contrastive loss and θ denotes the parameters learned by minimizing it. In this expression 𝒮 is viewed as the training collection of trees T paired with the sentences, and |𝒮| is the size of that collection. The outer sum iterates over trees, the next sum over prediction steps t, and |T| counts those steps for T. The observed word is wₜ and the path remains 𝒟(wₜ) for all examples at that step. The index j runs over the k noise draws, with w̃ₜ,ⱼ denoting the j-th sampled word for that context. The data probability is P_d, so subtracting it from 1 gives the noise probability. The logarithms reward identifying the observed and sampled items correctly, and the negative sign gives a loss to minimize.
The authors set k to 20 for noise-contrastive training. For the sampling distribution they start with unigram frequencies, which count words individually, and smooth them using an exponent of 0.75. This adjustment reduces the concentration of the noise distribution on the most frequent words. The noisy alternatives are used for the training discrimination task. They are separate from the candidate words supplied by the sentence completion benchmark.
Both training objectives are optimized by stochastic gradient descent. The authors use batches of 64 and pass error signals back through the recurrent computations used to obtain each prediction. Parameters are initially drawn uniformly from [−0.1, 0.1]. The learning rate starts at 1.0 and is divided by 2 per epoch once validation log-likelihood ceases to improve appreciably, continuing until convergence. The authors apply dropout to the 2-layer versions of TreeLSTM and LdTreeLSTM. Dropout is the regularization method discussed in Dropout: A Simple Way to Prevent Neural Networks from Overfitting.
g ← 5g / ‖g‖ when ‖g‖ > 5
The vector g is the gradient and ‖g‖ is its norm. The greater-than sign gives the condition for rescaling, and the left arrow means replacing the gradient with the expression on the right. The factor 5 sets the norm of an update that triggers the rule. Dividing by the original norm preserves the direction of the gradient while limiting its magnitude.
s = d / 2
The symbol s is the input word embedding size, and d is the recurrent hidden size. The authors use this relation when setting the embedding dimensions. The input vectors are consequently smaller than the recurrent states used to score output words. The implementation used Torch, and the authors released the code under the repository name td-treelstm.
Deciding whether a word should be generated
Scoring a supplied tree tells the network which edge comes next. At generation time, a head may have no dependent on a given side, and a sibling may be the last in its list. A word distribution alone cannot answer either question. The authors use binary classifiers to decide whether an eligible edge should be added. Add-Left and Add-Right decide whether to begin the respective dependent lists. Add-Nx-Left and Add-Nx-Right decide whether those lists should continue. An affirmative decision invokes the matching recurrent operation and prompts sampling from the predicted word distribution.
The classifier features combine a stored recurrent state and the output embedding of the current word. The output embedding is the vocabulary vector associated with that word on the scoring side of the trained LSTM. It provides lexical information about the current node, while the recurrent feature supplies information carried along the path. To obtain training cases, the authors run a trained LdTreeLSTM over the parsed training corpus and collect features at the relevant points. The true or false decisions come from the presence or absence of the corresponding edges in those trees.
Each classifier is a two-layer network with rectifier units and a hidden size of 300. Rectifier units allow positive activations through and suppress negative ones. The authors train the classifiers with AdaGrad at a learning rate of 0.01 and use the LdTreeLSTM from the parsing experiment to generate sample trees. This procedure learns which edge decisions tend to accompany the states of a trained word predictor. The word predictor supplies the lexical samples after those edge decisions have been made.
The authors discuss a different way to express the same boundary decisions. A tree generator could include explicit start and stop symbols for dependent lists, allowing the recurrent predictor to handle list boundaries. They chose separate classifiers to avoid adding those extra recurrent steps to training. This leaves a distinction between the conditional word score used for ranking supplied trees and the procedure that produces a tree by predicting edges and sampling words.
Experiments and results
Choosing the missing word
The Microsoft Research Sentence Completion Challenge consists of 1,040 SAT-style test sentences. Each item offers five words for a blank and asks the system to select the correct one. The reported accuracy measures correct selections over those test items. A system can approach this as a similarity problem or as a sentence-scoring problem. In the similarity approaches described by the paper, each candidate word is compared with the other words in the sentence using vector representations. In the sentence-scoring approaches, each candidate produces a completed sentence, and the system selects the candidate whose completed sentence receives the highest score.
TreeLSTM belongs to the sentence-scoring group. Its score for a completion uses dependency paths, so a word can affect the score in several ways. The path into the blank determines which prior words and edge types inform the candidate’s own probability. When the candidate word in turn serves as a source for later predictions, its lexical identity can change their probabilities as well. The score measures the compatibility of the completed sentence under the tree traversal, beyond the single probability of filling the blank.
The training corpus consists of 522 Project Gutenberg novels. The authors remove the files’ headers and footers, divide the text into tokens, and parse the sentences into dependency trees using Stanford CoreNLP. This preprocessing produces a corpus of 49M words. The words are lower-cased, and those occurring five times or less are replaced with UNK, a shared token for rare or unknown words. The resulting training vocabulary contains 65,346 words. The authors randomly sample 4,000 sentences from the training data for validation. The preprocessing tool is described in The Stanford CoreNLP Natural Language Processing Toolkit.
The size of that vocabulary motivates noise-contrastive training for the tree networks. The authors also train their sequential LSTM and bidirectional LSTM comparisons with noise-contrastive estimation and tune their hyper-parameters on the development set. The sequential LSTM follows the word sequence. The bidirectional comparison adds recurrent context in both directions along it. These implementations place the tree architecture alongside alternatives trained by the authors for the same benchmark, in addition to the systems whose scores they take from earlier publications.
Among the previously reported test results, ivLBL reached an accuracy of 55.5 and was the strongest word-vector approach in the comparison. LBL had an accuracy of 54.7, the best result among the previously published individual language predictors discussed in the paper. Both draw on log-bilinear word prediction. The published benchmark leader combined recurrent predictors with skip-gram and reached a test accuracy of 58.9. This distinction matters because the individual LdTreeLSTM is compared with both individual alternatives and a combined system.
For comparability with the earlier work, the authors restrict the tree networks to 1 layer in this experiment. LdTreeLSTM consistently improves on the basic TreeLSTM in the reported comparisons. With a hidden size of 400, it exceeds the previously published benchmark leader as a single predictor. The authors also report that the strongest sequential LSTM falls below an LdTreeLSTM with a hidden size of 300. Those orderings establish both comparisons without assigning an exact accuracy to the winning tree network.
The sequential baselines show that increasing the hidden size did not produce a steady improvement on this task. The LSTM with hidden size 400 outperforms the one with hidden size 300, whereas performance declines with hidden size 450. The bidirectional LSTM also performs below the sequential LSTM in the authors’ comparison. Its result is evidence about the implementation tested here. It helps put the tree network’s result in context because an additional way to access word-sequence information offered no advantage in this setup.
The paper also compares parameter counts. The input and output matrices account for most parameters in the ordinary neural systems it discusses, since each matrix has an entry vector for each vocabulary item. Several comparison systems additionally use a maximum-entropy component with 1 billion sparse n-gram features. Within the LSTM family, the tree networks use distinct recurrent transformations for their edge types while sharing the large vocabulary matrices. Consequently, the authors report a modest increase in total parameters relative to a sequential LSTM. This comparison concerns where the parameters are stored. The networks still carry different recurrent information and have different prediction paths.
Choosing among proposed dependency trees
The parsing experiment reverses which part of the prediction problem is open. The words are fixed, while the analysis can vary. A second-order MSTParser supplies its top K full dependency trees for a sentence. The rerankers use their tree-conditioned scores to change the order of these candidates. A winning reranked candidate may have several attachments that differ from the baseline parser’s first choice. The method selects a tree that the first parser already proposed. The authors’ candidate generator is Online Learning of Approximate Dependency Parsing Algorithms.
The training data come from Penn Treebank sections 2–21. Section 22 is the development split used to select the hidden size, the number of layers, and K, the number of candidate trees. Section 23 is the test split. The authors use Stanford basic dependencies. Part-of-speech tags are predicted with the Stanford Tagger in the experimental setup, but the tree scorers themselves are trained without those tags, dependency labels, or composition features. Their lexical preprocessing replaces singletons with UNK. Training uses negative log-likelihood for the words in the supplied analyses.
There are separate scores for unlabeled and labeled attachment. Unlabeled attachment score, or UAS, measures how often a word is attached to the correct head. Labeled attachment score, or LAS, also requires that the label naming the dependency relation be correct. Since the tree scorer ignores labels, LAS assesses the labels of the complete candidate selected by reranking. It can change when the scorer chooses a different tree with different attachments and associated labels. That makes LAS a measure of the chosen output’s labeled analysis even though the reranker itself learns from unlabeled paths.
The plain TreeLSTM result uses hidden size 300, 1 layer, and K = 2 candidates. The LdTreeLSTM result uses hidden size 200, 2 layers, and K = 4. Both improve on MSTParser in the reported comparison, and LdTreeLSTM gives the strongest reranking performance. The table includes UAS and LAS for both approaches. The comparison establishes that choosing among a short list of alternatives can improve the initial result using a scorer trained to predict words along the candidate structures.
The authors compare against the NN parser of Chen and Manning and the S-LSTM parser of Dyer and colleagues. The NN parser uses a neural classifier to predict parsing transitions. The S-LSTM parser also builds the tree through transitions and uses LSTMs to represent the evolving contents of its stack and buffer. The best LdTreeLSTM reranker is slightly ahead of the NN parser on UAS, while the S-LSTM parser gives the better performance. These are comparisons between complete parsing setups, one using a separate proposal stage and the others making transition decisions to build analyses. The comparison parsers are described in A Fast and Accurate Dependency Parser using Neural Networks and Transition-Based Dependency Parsing with Stack Long Short-Term Memory.
The authors also initialize the input matrix with pretrained GloVe vectors. For TreeLSTM, they report a slight improvement with hidden size 200, 2 layers, and K = 4, while pretraining gives no reported improvement for LdTreeLSTM. The two reported TreeLSTM configurations differ in their architectural settings and candidate list size, so the comparison describes the resulting tuned configurations. The vectors are from GloVe: Global Vectors for Word Representation.
Making the edge decisions in free generation
The generation experiment uses the LdTreeLSTM trained for Penn Treebank parsing and evaluates binary decisions for the four edge types. Add-Left reaches 94.3% accuracy and Add-Right reaches 92.6%. These are the decisions about whether to start a dependent list. Add-Nx-Left reaches 93.4% and Add-Nx-Right reaches 96.0%. These are the decisions about whether another sibling follows on the given side. The paper reports the accuracies without identifying an evaluation split for the classifier figures.
Edge decision accuracy for the Penn Treebank tree generation setup
The next-right decision has the highest reported accuracy.
The numbers
| System or setting | accuracy % |
|---|---|
| Start a left dependent list | 94.3 |
| Start a right dependent list | 92.6 |
| Add another left dependent | 93.4 |
| Add another right dependent (this paper) | 96.0 |
The classifier results describe local choices. A complete tree also requires the sampled words to be compatible with one another and each series of edge decisions to stop in suitable places. The paper illustrates the combined process with generated dependency trees. Those samples demonstrate how the scorer and classifiers can be used together after training. They give a different kind of evidence from the sentence completion and reranking results, which evaluate choices on pre-defined test cases.
What the ablations show
Supplying information from the other side of the head
The closest comparison to an architectural ablation is the base TreeLSTM versus LdTreeLSTM. Both systems encode the same kinds of dependency paths and use the same ordering of left and right dependents. LdTreeLSTM adds the auxiliary reading of left dependents and supplies that representation to the recurrent transition that starts the right side. In sentence completion, the authors report a consistent improvement for the extension. This supports the practical value of giving right-side predictions access to left-side words within this design.
There are two linked consequences of that addition. The first right dependent receives a new source of lexical evidence. Later right siblings can also inherit a state influenced by the left side. The completion result aggregates both effects across all word predictions in each candidate sentence. It does not say how much of the improvement came from the first right dependent, how much came from subsequent siblings, or which particular left words contributed in the successful cases. The running example with manufacturer and cars explains the mechanism available to the network. It serves as an illustration of a path the added evidence can take.
The comparison also adds an LSTM and therefore extra trainable weights. The paper tests the value of the complete left-dependent extension. A comparison with an equally large recurrent addition that could not see the left dependents would be needed to attribute the benefit specifically to the added context independently of capacity. The reported result gives the stronger evidence for the implemented design as a whole.
The reranking result points in the same direction for the reported systems, with LdTreeLSTM ahead of the plain TreeLSTM. That comparison changes hidden size, layer count, and candidate list size. In particular, asking the reranker to choose from more candidates creates the possibility of choosing a better analysis that the smaller list did not contain. It also creates the possibility of preferring a poorer analysis newly admitted to the list. The comparison shows how the tuned configurations perform as pipelines. It provides less isolation of the left-dependent computation than a matched test using the same candidate lists and settings would provide.
Word order, recurrent size, and initialization
The sequential LSTM baselines test whether a tree-based predictor can outperform familiar recurrent alternatives on the same completion challenge. The use of noise-contrastive estimation in both families makes the comparison more informative about the architectures. The superior LdTreeLSTM result covers a bundle of choices, including syntax-based conditioning, edge-specific recurrent weights, and the use of left-dependent context. The experiment does not replace these choices individually to measure their separate contributions.
The hidden-size comparison within the sequential family is narrower. It shows an improvement at size 400 over size 300 and a decline at size 450. A larger state can represent more information, but the benchmark result depends on how effectively that state can be trained and used in predictions. The comparison establishes the empirical ordering for these settings. It does not identify the cause of the decline at the largest setting or imply the same ordering for other corpora.
The GloVe comparison tests whether pretrained lexical information helps the rerankers. The authors find a small benefit for TreeLSTM and no improvement for LdTreeLSTM. This indicates that the reported improvement from pretraining depends on the configuration. The different settings of the plain and pretrained TreeLSTM results limit the extent to which the change can be assigned to initialization alone. They also leave open how pretrained vectors and the left-dependent encoder interact.
Which lexical features help an edge decision?
For generation, the authors report that using the input embeddings as classifier features gives slightly worse classifiers than using output embeddings. The output vectors come from the side of the network trained to score predicted words, while the input vectors represent words that serve as sources for recurrent updates. Both their role in training and their dimensionality differ. The paper calls attention to the lower dimensionality of the input vectors, and the qualitative result supports the authors’ feature choice for the edge classifiers. It supplies no separate measure of the effect of embedding size.
Accuracy also varies across the edge types. The highest reported accuracy is for continuing the right side, and the lowest is for starting it. Each classifier answers a different binary question, so these results reflect both the information available in its features and the distribution of examples it faces. The paper gives no class frequencies alongside these accuracies. A higher accuracy for one decision therefore cannot on its own establish that its grammatical context is easier to represent.
Limitations
Limits stated by the authors
The analysis assumes projective trees. The paper develops its path construction under that assumption and evaluates the dependency-tree formulation within it. Application to other tree families, including constituent trees and taxonomies, is presented as possible. Those structures are outside the reported experiments. An application would need to specify what the edges mean and what gets predicted when a path is extended.
The authors also state that LdTreeLSTM is directional in its treatment of sibling groups. The right side can use the left-side dependents because those words have already been generated. Left-side predictions proceed before any corresponding right dependents are available. That asymmetry preserves the ability to generate in the specified order. Any advantage that would come from conditioning left-side words on their right-side counterparts lies outside this architecture as tested.
The parsing rerankers omit dependency labels from their inputs. The authors identify incorporating labeled information as future work. Accordingly, the labeled attachment results report the quality of the labels on the selected candidate trees. They do not measure a learned ability to distinguish competing relation labels on the same set of attachments. Trees that differ only in labels yield the same unlabeled paths for the word scorer.
The authors also discuss the cost of modeling list boundaries with explicit symbols. For a sentence of N words, they say such a scheme can add 2N symbols under the setup they consider, with corresponding increases in computation and memory during training. They use separate classifiers as a more economical way to make edge decisions for their generation demonstration. The paper does not compare the resulting samples with those of a system trained using that alternative.
Limits implied by the evaluation
The word-scoring objective assigns probabilities conditional on a particular dependency tree. The experiments use that ability to compare completed sentences and to rank supplied analyses. A probability for a string that accounts for all possible parses would require a treatment of the alternative trees and their probabilities. The paper’s word-probability product alone supplies no such calculation. Likewise, the separate classifier procedure demonstrates generation but does not turn the reported reranking objective into a jointly trained likelihood for edge choices and words.
For reranking, the list produced by MSTParser sets the space of possible outputs. Where that list excludes an attachment, the reranker has no means of introducing it. Performance therefore reflects the quality and variety of the candidates as well as the score used to choose among them. The comparison with transition parsers shows how the whole reranking setup performs on the shared evaluation. It cannot establish the quality of TreeLSTM as an independent parser operating directly on a sentence with no proposed tree.
Sentence completion uses dependency analyses of a corpus parsed automatically. The approach depends on the structural contexts supplied during training, and the paper does not report a comparison that varies the accuracy or source of those analyses. The benchmark also asks for selection among alternatives instead of unrestricted prediction. The result establishes the relative success of the scoring setup for those test items. It gives no direct measurement of the quality of arbitrary sentences sampled from the network.
The possible reach of the recurrent context is wider than the evidence about what the state actually retains. A dependency path has no preset maximum depth in the formulation, but every prediction relies on a finite learned representation. The paper does not report completion or attachment results grouped by path depth or sibling position. It therefore cannot show how far a lexical influence remains useful in practice or whether the advantage is concentrated on short paths.
The classifier accuracies and sampled trees leave several questions about free generation open. Accuracy is measured on individual edge decisions rather than complete generated sentences. A sequence of mostly plausible local decisions can still produce an ill-formed tree or an awkward sequence of words. Additionally, the training features come from states traced through observed corpus trees, while a generator encounters states reached after its own sampled words and predicted edges. Errors in those earlier choices can influence later decisions. The reported classifier results do not quantify that effect. The compression and simplification applications proposed in the conclusion also receive no direct evaluation.
What came after
Insertion-based Decoding with Automatically Inferred Generation Order takes up the question of generation order from a different direction. TreeLSTM specifies the order through a dependency tree and a traversal rule. The later paper’s title identifies a decoding procedure based on inserting words and inferring the order of those insertions automatically. Both approaches make the order of prediction a design decision that can differ from the final order of the words.
The distinction is where that freedom comes from. In TreeLSTM, the grammatical analysis identifies the head and siblings, and the traversal tells the predictor which of them can supply context at each step. In insertion-based decoding, the decision highlighted by the later work is when to insert a word into the developing output. The connection is the use of a generation order other than ordinary left-to-right prediction. The cited work approaches that question through inferred insertion order, while TreeLSTM’s contribution is to make an explicit syntactic analysis determine the route by which earlier word choices inform later ones.
Cite
Cite as Xingxing Zhang, Liang Lu and Mirella Lapata. 2016. Top-down Tree Long Short-Term Memory Networks. Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.
@inproceedings{zhang2016top,
title = {{Top-down Tree Long Short-Term Memory Networks}},
author = {Xingxing Zhang, Liang Lu and Mirella Lapata},
booktitle = {Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
year = {2016},
doi = {10.18653/v1/n16-1035},
eprint = {1511.00060},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/n16-1035}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/zhang-2016-top-down-tree-long-short/
References
- Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Janvin. 2003. A neural probabilistic language model. The Journal of Machine Learning Research, 3:1137–1155. our card
- Eugene Charniak. 2001. Immediate-head parsing for language models. In Proceedings of the 39th Annual Meeting on Association for Computational Linguistics, pages 124–131. Association for Computational Linguistics. our card
- Ciprian Chelba and Frederick Jelinek. 2000. Structured language modeling. Computer Speech and Language, 14(4):283–332. OpenAlex ↗ · Scholar ↗
- Ciprian Chelba, David Engle, Frederick Jelinek, Victor Jimenez, Sanjeev Khudanpur, Lidia Mangu, Harry Printz, Eric Ristad, Ronald Rosenfeld, Andreas Stolcke, et al. 1997. Structure and performance of a dependency language model. In EUROSPEECH. Citeseer. OpenAlex ↗ · Scholar ↗
- Danqi Chen and Christopher Manning. 2014. A fast and accurate dependency parser using neural networks. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 740–750, Doha, Qatar, October. Association for Computational Linguistics. our card
- X Chen, X Liu, MJF Gales, and PC Woodland. 2015. Recurrent neural network language model training with noise contrastive estimation for speech recognition. In In 40th IEEE International Conference on Accoustics, Speech and Signal Processing, pages 5401–5405, Brisbane, Australia. OpenAlex ↗ · Scholar ↗
- Ronan Collobert, Koray Kavukcuoglu, and Clément Farabet. 2011. Torch7: A matlab-like environment for machine learning. In BigLearn, NIPS Workshop, number EPFL-CONF-192376. OpenAlex ↗ · Scholar ↗
- Marie-Catherine De Marneffe, Bill MacCartney, Christopher D Manning, et al. 2006. Generating typed dependency parses from phrase structure parses. In Proceedings of LREC, volume 6, pages 449–454. our card
- John Duchi, Elad Hazan, and Yoram Singer. 2011. Adaptive subgradient methods for online learning and stochastic optimization. The Journal of Machine Learning Research, 12:2121–2159. OpenAlex ↗ · Scholar ↗
- Chris Dyer, Miguel Ballesteros, Wang Ling, Austin Matthews, and Noah A. Smith. 2015. Transition-based dependency parsing with stack long short-term memory. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 334–343, Beijing, China, July. Association for Computational Linguistics. our card
- Jason M Eisner. 1996. Three new probabilistic models for dependency parsing: An exploration. In Proceedings of the 16th conference on Computational linguistics-Volume 1, pages 340–345. Association for Computational Linguistics. our card
- Ahmad Emami, Peng Xu, and Frederick Jelinek. 2003. Using a connectionist model in a syntactical based language model. In Proceedings of the IEEE International Conference on Acoustics, Speech, and Signal Processing, pages 372–375, Hong Kong, China. OpenAlex ↗ · Scholar ↗
- Katja Filippova, Enrique Alfonseca, Carlos A Colmenares, Lukasz Kaiser, and Oriol Vinyals. 2015. Sentence compression by deletion with lstms. In EMNLP, pages 360–368. our card
- Xavier Glorot, Antoine Bordes, and Yoshua Bengio. 2011. Deep sparse rectifier neural networks. In International Conference on Artificial Intelligence and Statistics, pages 315–323. OpenAlex ↗ · Scholar ↗
- Alan Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. 2013. Speech recognition with deep recurrent neural networks. In Acoustics, Speech and Signal Processing (ICASSP), 2013 IEEE International Conference on, pages 6645–6649. IEEE. our card
- Joseph Gubbins and Andreas Vlachos. 2013. Dependency language models for sentence completion. In EMNLP, pages 1405–1410, Seattle, Washington, USA, October. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Michael U Gutmann and Aapo Hyvärinen. 2012. Noise-contrastive estimation of unnormalized statistical models, with applications to natural image statistics. The Journal of Machine Learning Research, 13(1):307–361. OpenAlex ↗ · Scholar ↗
- Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation, 9(8):1735–1780. OpenAlex ↗ · Scholar ↗
- Sepp Hochreiter. 1998. Vanishing gradient problem during learning recurrent neural nets and problem solutions. International Journal of Uncertainty, Fuzziness and Knowledge-based Systems, 6(2):107–116. OpenAlex ↗ · Scholar ↗
- Christopher D Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven J Bethard, and David McClosky. 2014. The stanford corenlp natural language processing toolkit. In Proceedings of 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 55–60. our card
- Ryan T McDonald and Fernando CN Pereira. 2006. Online learning of approximate dependency parsing algorithms. In EACL. our card
- Tomas Mikolov, Martin Karafiát, Lukas Burget, Jan Cernockỳ, and Sanjeev Khudanpur. 2010. Recurrent neural network based language model. In INTERSPEECH 2010, 11th Annual Conference of the International Speech Communication Association, Makuhari, Chiba, Japan, September 26-30, 2010, pages 1045–1048. OpenAlex ↗ · Scholar ↗
- Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013a. Efficient estimation of word representations in vector space. In Proceedings of the 2013 International Conference on Learning Representations, Scottsdale, Arizona, USA. our card
- Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013b. Distributed representations of words and phrases and their compositionality. In Advances in Neural Information Processing Systems 26, pages 3111–3119. our card
- Tomas Mikolov. 2012. Statistical Language Models based on Neural Networks. Ph.D. thesis, Brno University of Technology. OpenAlex ↗ · Scholar ↗
- Piotr Mirowski and Andreas Vlachos. 2015. Dependency recurrent neural language models for sentence completion. In ACL, pages 511–517, Beijing, China, July. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Andriy Mnih and Geoffrey Hinton. 2007. Three new graphical models for statistical language modelling. In Proceedings of the 24th International Conference on Machine Learning, pages 641–648. OpenAlex ↗ · Scholar ↗
- Andriy Mnih and Koray Kavukcuoglu. 2013. Learning word embeddings efficiently with noise-contrastive estimation. In Advances in Neural Information Processing Systems 26, pages 2265–2273. OpenAlex ↗ · Scholar ↗
- Andriy Mnih and Yee Whye Teh. 2012. A fast and simple algorithm for training neural probabilistic language models. In Proceedings of the 29th International Conference on Machine Learning, pages 1751–1758, Edinburgh, Scotland. our card
- Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. 2013. On the difficulty of training recurrent neural networks. In Proceedings of the 31st International Conference on Machine Learning, pages 1310–1318, Atlanta, Georgia, USA. OpenAlex ↗ · Scholar ↗
- Jeffrey Pennington, Richard Socher, and Christopher D Manning. 2014. Glove: Global vectors for word representation. EMNLP, 12:1532–1543. our card
- Jordan B. Pollack. 1990. Recursive distributed representations. Artificial Intelligence, 1–2(46):77–105. OpenAlex ↗ · Scholar ↗
- Brian Roark. 2001. Probabilistic top-down parsing and language modeling. Computational linguistics, 27(2):249–276. our card
- David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. 1988. Learning representations by back-propagating errors. Cognitive modeling, 5:3. OpenAlex ↗ · Scholar ↗
- Rico Sennrich. 2015. Modelling and optimizing on syntactic n-grams for statistical machine translation. Transactions of the Association for Computational Linguistics, 3:169–182. our card
- Libin Shen, Jinxi Xu, and Ralph Weischedel. 2008. A new string-to-dependency machine translation algorithm with a target dependency language model. In Proceedings of ACL-08: HLT, pages 577–585, Columbus, Ohio, USA. our card
- Richard Socher, Eric H. Huang, Jeffrey Pennington, Christopher D. Manning, and Andrew Ng. 2011a. Dynamic pooling and unfolding recursive autoencoders for paraphrase detection. In Advances in Neural Information Processing Systems, pages 801–809. OpenAlex ↗ · Scholar ↗
- Richard Socher, Jeffrey Pennington, Eric H. Huang, Andrew Y. Ng, and Christopher D. Manning. 2011b. Semi-supervised recursive autoencoders for predicting sentiment distributions. In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pages 151–161, Edinburgh, Scotland, UK. our card
- Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: A simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958. our card
- Ilya Sutskever, Oriol Vinyals, and Quoc VV Le. 2014. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pages 3104–3112. our card
- Kai Sheng Tai, Richard Socher, and Christopher D. Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1556–1566, Beijing, China, July. Association for Computational Linguistics. our card
- Kristina Toutanova, Dan Klein, Christopher D Manning, and Yoram Singer. 2003. Feature-rich part-of-speech tagging with a cyclic dependency network. In Proceedings of the 2003 Conference of the North American Chapter of the Association for Computational Linguistics on Human Language Technology-Volume 1, pages 173–180. Association for Computational Linguistics. our card
- Ashish Vaswani, Yinggong Zhao, Victoria Fossum, and David Chiang. 2013. Decoding with large-scale neural language models improves translation. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1387–1392, Seattle, Washington, USA. our card
- Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. 2015. Show and tell: A neural image caption generator. In The IEEE Conference on Computer Vision and Pattern Recognition, Boston, Massachusetts, USA. our card
- Ying Zhang. 2009. Structured language models for statistical machine translation. Ph.D. thesis, Johns Hopkins University. OpenAlex ↗ · Scholar ↗
- Geoffrey Zweig and Chris J.C. Burges. 2012. A challenge set for advancing language modeling. In Proceedings of the NAACL-HLT 2012 Workshop: Will We Ever Really Replace the N-gram Model? On the Future of Language Modeling for HLT, pages 29–36, Montréal, Canada. OpenAlex ↗ · Scholar ↗
- Geoffrey Zweig, John C Platt, Christopher Meek, Christopher JC Burges, Ainur Yessenalina, and Qiang Liu. 2012. Computational approaches to sentence completion. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics: Long Papers-Volume 1, pages 601–610. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗