Elamur Research

Unsupervised Recurrent Neural Network Grammars

Paper · 2019 · Yoon Kim, Alexander Rush, Lei Yu et al.

Summary

A sentence can be read as a sequence of words or as a hierarchy of phrases. A recurrent neural network grammar, or RNNG, uses both views. As it generates words, it builds a tree and uses the phrases it has already assembled to help predict what comes next. Earlier RNNGs learned from sentences paired with human-annotated trees. This paper asks whether the grammar can learn from the sentences alone, while retaining the ability to assign probabilities to text and producing trees that resemble human analyses.

Removing the annotations creates a problem. To calculate the probability of a sentence, the grammar would have to account for all the trees that could have generated it. Different trees lead to different histories of word generation and phrase composition, so the grammar cannot readily combine the calculations. And a grammar that predicts words well can still settle on a repetitive, linguistically uninformative way of grouping them. The authors introduce a separate network that reads a whole sentence and proposes trees. It uses a conditional random field, which scores candidate phrases and combines them into valid trees. The grammar learns by scoring sampled proposals, and the parser learns which structures the grammar tends to score well. Their shared training objective is a lower bound on the log probability of the observed sentence.

On English and Chinese treebank benchmarks, the resulting unsupervised grammar, URNNG, improves on a sequential recurrent baseline in word prediction and is competitive with an RNNG trained on annotated trees. It also improves on the sequential baseline in a larger English experiment. As a parser, URNNG is competitive with the gated-attention system PRPN on English, while PRPN does better on Chinese. The two systems recover different kinds of phrases more readily. On a separate test that asks which of two almost identical sentences is grammatical, the supervised grammar leads by a clearer margin, and URNNG makes a pattern of errors similar to the sequential baseline’s.

The results show that a grammar can learn to assign useful probabilities to text and recover aspects of phrase structure from the same training sentences. How much structure it recovers depends on its training conditions. The authors needed several measures to keep the parser from settling on trivial trees, and training required more time and memory than the sequential approach. On English Penn Treebank data with punctuation removed, the induced trees failed to improve on a fixed right-branching baseline.

Deep dive: Unsupervised Recurrent Neural Network Grammars

Unsupervised Recurrent Neural Network Grammars learns to predict sentences and discover phrase structure from text without annotated trees. · about 38 minutes to read

The problem and its context

What changes when the trees disappear

Ordinary word prediction gives direct feedback. A system proposes probabilities for the next word, and the text supplies the answer. Phrase structure poses a different problem. The words are visible, but the decisions about which words form a phrase and where that phrase attaches are usually absent from the text. A human can record those decisions in an annotated collection of sentences, or treebank. Learning to make the decisions without that record is a problem in parsing and grammar induction.

The earlier RNNG gave a neural sequence predictor a way to reuse the results of those decisions. Once it finished a phrase, it could compress the phrase into a representation and use that representation as part of its context for later words. This made constituent structure part of the process that assigns a sentence its probability. In supervised training, a tree says when the grammar should complete a phrase and which pieces belong together. The training example therefore provides both the words and the expected structural decisions. The paper takes this treatment of structure from Recurrent Neural Network Grammars.

As the authors describe the earlier evidence, supervised RNNGs had performed well in word prediction and parsing, and previous studies had found advantages on some syntax-sensitive evaluations. The annotation requirement was common to those studies. A corpus with a tree for every sentence supplies a valuable signal, but requiring one limits the text on which the grammar can train. The unsupervised question is whether the words themselves provide enough evidence to guide phrase composition. Here, “unsupervised” refers to the absence of tree annotations during that training. Human judgments about phrase boundaries can still serve as a reference at evaluation time.

Once the reference tree disappears, every potential tree becomes a candidate explanation for the same words. A tree might assemble a short phrase and attach it immediately, or leave it on the stack while additional words are generated. These choices influence the hidden state used for later predictions. Consequently, even two trees that contain the same span can give that span different roles in the full generation history. A calculation that treats those histories as interchangeable would discard information the grammar was designed to use.

Probability introduces a second obligation. If several trees could generate the sentence, its probability includes the contributions from all of them. The score of the best tree answers a question about one explanation. The total answers a question about the words alone. A grammar could give the same best-tree score to two sentences while assigning very different total probabilities to them, because the other explanations also carry probability. This distinction matters whenever the goal is to compare URNNG with a sequential language model that assigns a probability directly to the word sequence.

The trade-off in earlier approaches

The paper describes a familiar route to unsupervised parsing. Define a probability distribution over words and their hidden structure, then choose parameters that give the observed text high probability after summing out that structure. A probabilistic context-free grammar makes such a sum practical by limiting what a local decision can depend on. A chart can reuse the result for a piece of a sentence in more than one larger analysis. Earlier work also used priors and auxiliary objectives to favor useful trees. These choices guide what the grammar will tend to learn even when several analyses account for the same words. The formal background is the context-free grammar.

The authors present contextual flexibility as a reason to retain the RNNG. A recurrent state can preserve information about earlier words and structural actions when deciding what to do next. The RNNG imposes a preference through its architecture, because it has an explicit operation for combining phrases, but its probabilities need not factor according to context-free rules. That flexibility makes the same chart calculation unavailable for the generator. It also leaves room for a solution in which the grammar learns to predict words under a simple, repetitive tree convention.

These are two distinct obstacles. Even a hypothetical exact sum over the grammar’s trees would address only the computational one. The objective would still reward plausible text, and a plausible sentence can be generated under several structural analyses. A fixed rule that always combines the earliest available pieces is enough to impose a hierarchy. The existence of that hierarchy says little about whether its boundaries resemble phrases people recognize. The authors seek an additional preference in the learning procedure so that the flexibility that helps predict words can coexist with a useful way of grouping them.

Other neural approaches described in the paper had already coupled language prediction with structure discovery. Some embedded soft, tree-like organization in the network’s hidden layers, including the gated-attention approach used by PRPN. Another line of work made Markov assumptions so that it could sum exactly over latent dependency trees. Dependency structure organizes relations between words, while the constituency trees studied here organize nested spans. The paper also places its method alongside work that learns trees from another task’s training signal, including approaches based on policy gradients, differentiable structured layers and relaxations of discrete choices.

URNNG adopts a particular division of labor. The generator keeps its dependence on earlier actions and words, while a separate parser uses a simpler distribution over trees. That parser can efficiently find likely analyses of an observed sentence. In return, the scores assigned by the generator provide a training signal for the parser. The paper’s premise is that restrictions on how the parser expresses uncertainty can influence what the generator learns, even though the generator itself retains a flexible recurrent state.

The method, step by step

Two networks see the same sentence differently

During training, the parser starts with the complete sentence. It can use words near the end to decide how the beginning should be grouped. The generator works in the order a sentence is produced. It can use the words and structural decisions that have already occurred, and each decision helps determine which state it will see next. The parser’s access to the whole sentence is appropriate because it is proposing a hidden explanation for an observation. The generator must assign a probability to that observation using its own sequence of decisions.

Both networks work with the same kind of tree. Each leaf is one of the sentence’s words, in its original order. Each internal node combines two neighboring pieces, and each piece can itself be a word or an already assembled phrase. Internal nodes carry no grammatical labels. For instance, the parser can group words that the treebank labels as a noun phrase, but it expresses that decision by placing a constituent over the words. There is no action for assigning the label “noun phrase.” This is a simplified version of the supervised RNNG architecture that motivated the paper.

The two sides represent the tree differently because they need to do different things with it. The parser uses a set of spans, each identified by the positions of its first and last words. The grammar uses an action sequence that starts empty and builds up those spans. A shift produces a word. A reduce combines the two pieces on top of a stack. The conversion preserves which pieces were grouped and when they become available to the generator.

How URNNG learns from an observed sentence

The steps in order.

How URNNG learns from an observed sentenceStep 1: Encode the full sentence in both directions1. Encode the full sentence in both directionsStep 2: Score candidate constituent spans2. Score candidate constituent spansStep 3: Compute the distribution over valid trees3. Compute the distribution over valid treesStep 4: Sample binary trees from the parser4. Sample binary trees from the parserStep 5: Convert each tree to shifts and reductions5. Convert each tree to shifts and reductionsStep 6: Score its actions and words with the grammar6. Score its actions and words with the grammarStep 7: Update the networks using scores and entropy7. Update the networks using scores and entropy

The grammar’s stack makes the difference between alternative trees concrete. Imagine four successive words. One analysis joins the first pair and the second pair before joining the resulting phrases. Another joins the first pair, folds the next word into that phrase, and only then processes the last word. When the generator predicts the last word, the available phrase representations differ. The parser can compare complete versions of these trees after seeing every word, while the generator’s score records what each tree would have required it to predict along the way.

Representing a tree as actions

x = [x₁, …, x_T],  z = [z₁, …, z₂T₋₁] ∈ 𝒵_T

Here x is the sentence, x₁ through x_T are its words, and T is its length. The vector z records the actions that build the tree. The entries indexed from 1 to 2T−1 are shifts, coded as 0, or reductions, coded as 1. The ellipses stand for the intervening words or actions. Membership in 𝒵_T means the action sequence describes a valid binary tree over the sentence. The action count follows from shifting every word and combining the resulting pieces until a single tree remains.

|𝒵_T| = (2T−2)! / (T!(T−1)!)

The vertical bars give the number of valid action sequences for length T. The exclamation mark denotes a factorial, and / denotes division. The expression is the Catalan count at index T−1. It counts the different ways of building an ordered binary hierarchy over the words, independently of what the words are. The count grows exponentially with length, even with constituent labels removed.

The stack initially contains a sentinel pair of zero vectors. Each later entry stores a recurrent hidden state and a vector supplied to the recurrent network when the entry was created. For a word, the supplied vector is its embedding. For a completed constituent, it is the result of composing the vectors of its children. The first component tells the grammar about the stack context. The second supplies the material to be combined when the corresponding entry becomes part of a phrase. The stack mechanism is adapted from work on stack long short-term memory.

Choosing an action and updating the stack

(h_prev, g_prev) = Top(S)

S is the stack and Top reads the pair on its top without removing it. h_prev is the recurrent state available before the action and g_prev is the input vector stored with it. The parentheses denote the ordered pair. The action distribution uses the hidden state h_prev.

zₜ ∼ Bernoulli(pₜ),  pₜ = σ(wᵀh_prev + b)

zₜ is the action at step t, and ∼ means it is drawn from the named distribution. A Bernoulli distribution makes a binary choice, with pₜ the probability of the outcome coded as 1, a reduce. The sigmoid σ converts the affine score to a probability. The transposed learned vector wᵀ takes a dot product with the current hidden state and b is a learned scalar bias. The grammar forces a shift when the stack has too few real items to reduce. The sentinel does not count as a piece of a sentence.

x ∼ Categorical(softmax(W h_prev + b_vocab))

In this formula x means the individual word emitted on a shift. W is the learned word-output matrix and b_vocab is the corresponding bias vector. The softmax turns the vector of scores into probabilities over the vocabulary. The categorical distribution draws a word according to those probabilities. During training, the word is observed, so the grammar uses the probability of that specific word. A shift therefore contributes both a structural decision and a word prediction to the score of a sentence–tree pair.

h_next = LSTM(eₓ, h_prev)

LSTM is the stack’s long short-term memory update. It takes eₓ, the word embedding of the shifted word x, together with the preceding hidden state h_prev. Its output h_next summarizes the stack after accounting for this input. The grammar pushes the pair consisting of h_next and eₓ. Keeping the word vector alongside the hidden state allows the reduce operation to retrieve the vector for the word itself.

(hᵣ, gᵣ) = Pop(S),  (hₗ, gₗ) = Pop(S)

Pop returns the top entry of stack S and removes it. The first call returns the right child’s hidden state hᵣ and input vector gᵣ. The second returns the left child’s hₗ and gₗ. The order follows from generating words from left to right, so the piece farther to the right was pushed more recently.

g_new = TreeLSTM(gₗ, gᵣ)

TreeLSTM is the composition function and g_new is the resulting phrase vector. Its two inputs are the stored constituent vectors gₗ and gᵣ. This choice lets the function combine representations of the children themselves. The stack hidden states summarize wider contexts and play a different role. The recurrent equations also use cell states, which the paper leaves implicit. When a child is a word embedding, its cell state for composition is zero. The composition function follows Tree-Structured Long Short-Term Memory Networks.

h_new = LSTM(g_new, h_prev)

Here h_prev is read from the stack after the child entries have been popped. g_new is the newly composed phrase vector, and h_new is the updated stack state produced by the LSTM. The grammar pushes the pair consisting of h_new and g_new. In effect, the stack replaces the two separate entries with one completed piece, which later actions and words can depend on. The full process also learns to produce an end-of-sentence token after the last reduction.

From a joint probability to a learning objective

The generator can score an observed sentence and a proposed tree by following the tree’s action sequence. It adds a word score at each shift and an action score at each structural decision. The two sets of terms record different predictions made along the same path. At a word prediction, earlier actions have already determined which representations are on the stack. At an action prediction, the earlier words help determine whether the grammar is ready to compose a phrase.

log p_θ(x, z) =
  Σₜ₌₁^T log p_θ(xₜ | x₍<t₎, z₍<n(t)₎)
  + Σⱼ₌₁^(2T−1) log p_θ(zⱼ | x₍<m(j)₎, z₍<j₎)

p_θ denotes probabilities assigned by the grammar with parameters θ, which include its recurrent networks and the learned action and word predictors. log is the logarithm, Σ indicates a sum, and the conditioning bar lists information available for the prediction. In the first sum, xₜ is word t, x₍<t₎ is the prefix before that word, and z₍<n(t)₎ is the sequence of actions before its generating action. In the second sum, zⱼ is action j, z₍<j₎ is the preceding action sequence, and x₍<m(j)₎ denotes the words already generated at that point. The paper abbreviates the two sums as log p_θ(x | z) and log p_θ(z | x_<z). These names refer to factors along a generation path. In particular, the second sum is different from an unconditional prior on tree shapes.

With annotated training trees, the joint log probability can serve as the objective directly. The unsupervised objective concerns a sentence whose tree is hidden. It combines joint probabilities before taking the logarithm.

log p_θ(x) = log Σ_{z′ ∈ 𝒵_T} p_θ(x, z′)

p_θ(x) is the sentence’s marginal probability, and z′ ranges over valid trees in 𝒵_T for length T. Each summand is a joint probability of the same sentence and a different tree. As the action history can affect every subsequent state, the generator cannot use the parser’s span-based shortcuts to evaluate this sum. A constituent with the same endpoints can participate in generation histories that make different predictions.

The authors introduce an inference network with its own parameters φ. It computes a distribution over trees for each input sentence. The word “amortized” refers to learning a single network that can do this across sentences. Its parameters are reused when a fresh sentence arrives. The approach draws on variational inference with a learned recognition network.

ELBO(θ, φ; x) = E_{z ∼ q_φ(z | x)}[log(p_θ(x, z) / q_φ(z | x))]

ELBO stands for evidence lower bound. It is a function of the grammar parameters θ and parser parameters φ for the observed sentence x. q_φ(z | x) is the parser’s probability for a tree z when it sees x. E denotes an average under that distribution. Inside the average is the logarithm of a ratio, with the grammar’s joint probability in the numerator and the parser’s probability of the sampled tree in the denominator. Evaluating the whole average exactly is still impractical because it includes scores from the grammar for all the trees. The form of the expression makes it possible to estimate the gradient by sampling.

ELBO(θ, φ; x) = log p_θ(x) − KL[q_φ(z | x) ∥ p_θ(z | x)]

The quantity KL is the Kullback–Leibler divergence, which measures the discrepancy between the distribution before ∥ and the distribution after it in that direction. p_θ(z | x) is the grammar’s true posterior over trees for the complete sentence. q_φ(z | x) is its variational approximation. Subtracting a non-negative divergence makes the objective a lower bound on log p_θ(x). The bound would be tight if the two distributions agreed. The true posterior in this identity differs from the conditional action factors used in the joint score, because it conditions on the entire observed sentence.

This identity explains the learning relationship between the networks. For a fixed generator, the inference network can improve the bound by approximating its posterior more closely. Adjusting the generator can also change the discrepancy. A generator that distributes its posterior probability in a way the parser can express pays a smaller penalty, all else being equal. The authors exploit this relationship by using a parser that represents preferences for spans and valid combinations of spans. The restriction gives the generator an incentive to learn a compatible posterior without requiring its word predictions to have the same restricted form.

The inference network adds a learned position embedding to each word embedding and reads the resulting vectors in both directions with an LSTM. A forward state summarizes one direction of reading and a backward state summarizes the other. For each candidate span, the parser subtracts states near the span boundaries and passes the combined differences through a small feedforward network. Thus the score for a span can depend on sentence context even though the subsequent tree calculation uses those scores as fixed quantities.

sᵢⱼ = MLP((→hⱼ₊₁ − →hᵢ) ⊕ (←hᵢ₋₁ − ←hⱼ))

sᵢⱼ is a real-valued score for a constituent from word i through word j, inclusive. The arrows distinguish the forward hidden states →h from the backward hidden states ←h, and their subscripts identify the boundary positions used in the paper’s formulation. Each minus sign denotes vector subtraction. ⊕ concatenates the two difference vectors. MLP means multilayer perceptron, the feedforward network that converts the concatenated vector into the span score. A span score contributes to the preference for a tree. It is neither a probability on its own nor a score for a particular constituent label.

q_φ(B | x) = exp(Σ_{i≤j} Bᵢⱼ sᵢⱼ) / Z_T(x)

B is a binary matrix describing a tree, with Bᵢⱼ equal to 1 when the tree includes the span from i through j, and 0 otherwise. The sum runs over possible endpoint pairs with i≤j. Its value is the sum of the scores of the spans the tree uses. exp is the exponential function, and Z_T(x) normalizes the resulting weights over valid trees for x. The formula defines a conditional random field, or CRF. Its support contains whole legal trees, so the choice of one span still constrains which other spans can occur with it.

Z_T(x) = Σ_{B′ ∈ ℬ_T} exp(Σ_{i≤j} B′ᵢⱼ sᵢⱼ)

ℬ_T is the set of valid tree matrices for sequences of length T, and B′ is the matrix for one such tree. The inner sum scores a tree and the outer sum adds its exponentially transformed weight to those of the other legal trees. Z_T(x) is called the partition function. The sum ranges over an exponentially large set, but its particular factorization allows the author’s parser to avoid listing the members.

The inside algorithm uses a chart of spans. For a one-word span, there is no split to choose. For a longer span, the algorithm considers every split into adjacent left and right spans. The contribution for a split uses the chart values already calculated for its two children, together with the score of the parent span. Adding these contributions yields the total weight for the possible subtrees over that span. Working from shorter spans towards longer ones eventually gives the weight for the whole sentence. The computation takes O(T³), meaning its running time grows at most cubically in sentence length T under this accounting.

This reuse works because the score of a subtree is a sum of its own span scores. If a particular subtree can be used in several larger analyses, its weight has already been calculated. Although a bidirectional encoder can give the score information from beyond the span, it supplies the same score to the chart regardless of which larger analysis uses that span. The RNNG’s generative score has no equivalent guarantee. The parser gains an exact calculation for its own restricted distribution while the generator retains its history-dependent decisions.

q_φ(z | x) = q_φ(f⁻¹(z) | x)

f maps a legal tree matrix in ℬ_T to its action sequence in 𝒵_T. The inverse f⁻¹ recovers the matrix for an action sequence z. The left-hand side writes the parser’s distribution in the grammar’s action notation. The right-hand side assigns that sequence the probability of the corresponding tree matrix. No additional probability is attached to the conversion.

The chart can also guide an exact draw from the parser’s distribution. Starting with the whole sentence, the sampler chooses a split with probability proportional to the total weights of the possibilities under that split. It repeats this within each child until it reaches the words. Sampling this way preserves the relationships among spans imposed by a legal tree. It also keeps alternatives in play during training. Returning only the best analysis would remove the sampling step on which the paper’s gradient estimators rely.

Learning from sampled trees

ELBO(θ, φ; x) = E_{z ∼ q_φ(z | x)}[log p_θ(x, z)] + H[q_φ(z | x)]

H is the entropy of the parser’s distribution. It is the expected negative log probability the parser assigns to a tree drawn from itself. The other term averages the grammar’s joint log score for the sampled sentence–tree pairs. A parser that puts all its probability on one tree has no uncertainty over its choice. A parser that spreads its probability gives alternative trees opportunities to contribute, although doing so also exposes it to whatever joint scores those alternatives receive.

∇_θ ELBO(θ, φ; x) ≈ (1/K) Σ_{k=1}^K ∇_θ log p_θ(x, z⁽ᵏ⁾)

∇_θ means the gradient with respect to the generator’s parameters. K is the number of trees drawn, k indexes a draw, and z⁽ᵏ⁾ is the tree drawn on that occasion. The approximate equality indicates a Monte Carlo estimate. Each sampled tree provides a complete action sequence, so the generator can get a gradient from it much as it can from a tree supplied in supervised training. Averaging the gradients gives an unbiased estimate for this part of the generative update.

For the parser’s update, the sampled tree is a discrete outcome. The update uses the relationship between the grammar’s score for a tree and the probability with which the parser chose it. The paper treats the two terms in the objective separately. It computes entropy with another dynamic program using the inside values, also in O(T³), and differentiates that calculation. It estimates the gradient of the expected joint score with a score-function estimator.

∇_φ E_{z ∼ q_φ(z | x)}[log p_θ(x, z)] =
  E_{z ∼ q_φ(z | x)}[log p_θ(x, z) ∇_φ log q_φ(z | x)]

∇_φ is the gradient with respect to the inference network’s parameters. The log probability of a tree under q_φ has a gradient that says how the parser’s parameters affect its preference for that tree. The grammar’s log joint score multiplies this gradient. The expected product over draws of z gives the required gradient. When the expectation is estimated with a small sample, its value can vary substantially across draws even with the networks held fixed.

r⁽ᵏ⁾ = (1/(K−1)) Σ_{j ≠ k} log p_θ(x, z⁽ʲ⁾)

r⁽ᵏ⁾ is the reference score for draw k. The index j runs over the other draws, as indicated by j ≠ k. Dividing by K−1 averages their joint log scores. The exclusion matters because it supplies a reference based on other trees for the same sentence, independent of the draw whose contribution is being adjusted.

(1/K) Σ_{k=1}^K (log p_θ(x, z⁽ᵏ⁾) − r⁽ᵏ⁾) ∇_φ log q_φ(z⁽ᵏ⁾ | x)

This is the sample estimator for the parser’s expected joint-score gradient. For every tree z⁽ᵏ⁾, the difference in parentheses compares the grammar’s score with the leave-one-out reference r⁽ᵏ⁾. That difference weights the parser’s own log-probability gradient for the draw, and the outer average combines the contributions. The subtraction is a control variate, a device for reducing fluctuations in the estimate. The authors report that this device worked better in their experiments than reference scores produced by a separate auxiliary network or language predictor.

Keeping early training from locking into one tree shape

A degenerate training run can settle on always grouping to the left or always grouping to the right. The authors refer to this outcome as posterior collapse in their setting. The sampled trees in such a run may be valid, but they scarcely respond to the sentence. To help avoid this outcome, the authors begin by giving the word-prediction term greater influence relative to the other terms. Over the first two epochs, they increase the weights on the conditional action term and the parser entropy linearly from 0 to 1, updating the weights by batch.

The two networks also use different optimizers. The generator uses stochastic gradient descent with a learning rate of 1. The layer that predicts actions has a learning rate of 0.1, and the generator’s gradients are clipped at 5. The inference network uses Adam with a learning rate of 0.0001, running-average parameters of 0.9 and 0.999, and gradient clipping at 1. The authors observed that training the parser with Adam led to faster convergence and that updates to the inference network ceased after epoch two. Thus the generator receives proposals from a learned parser even after the phase in which the parser itself is changing. Adam.

The reported training schedule uses 18 epochs, batches of 16 sentences, and 8 trees per sentence for the Monte Carlo gradient estimates. The paper reports that this duration was sufficient for convergence and that validation perplexity was used for early stopping across systems. Initial parameters are sampled uniformly between −0.1 and 0.1. A failure to improve validation performance can trigger learning-rate decay by a factor of 2 per epoch, with decay disabled during the first eight epochs.

The stack LSTM has two layers, with input and hidden size 650 and dropout of 0.5. The tree LSTM has 650 units. A single bidirectional LSTM layer containing 256 hidden units serves as part of the parser. Its span-scoring network has a single hidden layer with a rectified linear activation, followed by normalization and dropout of 0.5. Word embeddings are shared between the parser and generator, and the generator ties the input and output word embeddings. The authors use the same setup for the English and Chinese treebanks and lower dropout for the larger English corpus. They release the implementation under harvardnlp/urnng. Layer Normalization.

Experiments and results

Three corpora and several kinds of comparison

The English treebank experiments use the Penn Treebank, abbreviated PTB, with the splits and preprocessing used by the earlier RNNG. Punctuation remains in the input. Words that occur only once are replaced according to the Berkeley parser’s mapping rules, giving a vocabulary of 23,815 word types. Training and evaluation treat each sentence independently. The more familiar PTB setup for word prediction uses a 10K vocabulary and allows information to carry across sentence boundaries. Both differences matter when comparing perplexities. The authors compare with earlier work under the sentence-level preprocessing where possible. Penn Treebank.

The Chinese experiments use version 5.1 of the Chinese Penn Treebank, abbreviated CTB. They adopt the splits used in an earlier parsing study and replace singleton words with one unknown-word symbol. This leaves 17,489 word types. The setup makes it possible to ask whether a method tuned around the English experiments still gives useful word probabilities and phrase boundaries on a second language. It also keeps the treebank’s treatment of constituent structure relevant to how parsing success is measured. A Fast and Accurate Dependency Parser using Neural Networks.

For the larger English experiment, the authors take a random sample from the One Billion Word Benchmark. They report 1M training sentences and 2K sentences for validation/test, with a 30K word vocabulary. The full corpus has 30M sentences. The experiment puts considerably more text into training than the treebank does, while preserving sentence-level generation. The authors reduce dropout to 0.1 for both URNNG and the sequential recurrent baseline on this corpus. One Billion Word Benchmark.

The sequential recurrent baseline, RNNLM, has the same size as URNNG’s stack LSTM. It helps distinguish the effect of making phrase composition available from the effect of replacing a small recurrent predictor with a larger one. The RNNG comparisons using fixed left-branching, right-branching and random trees test what happens when the architecture still composes phrases but training supplies a tree by a simple rule. PRPN, short for Parsing Reading Predict Network, is a comparison with a different way of learning structure from words. Its gated attention embeds a soft hierarchy in the recurrent predictor.

The supervised comparison uses a grammar trained with treebank trees made binary by right-branching binarization and stripped of their labels. This keeps the structural action inventory close to URNNG’s. It also means that the supervised baseline is a particular simplified RNNG, alongside earlier published variants that differ in architecture and size. The authors train a separate discriminative parser with the same architecture as URNNG’s inference network for use with the supervised grammar. It proposes trees when the supervised grammar is asked to score words alone.

Word prediction

Perplexity measures how much probability a predictor gives the words it encounters, normalized by the number of words. Lower perplexity means that the observed words received higher probability on this scale. The systems are trained with an end-of-sentence token, and the reported perplexity convention excludes these tokens from the count. The parser proposes a tree over the sentence’s words without using the end marker, which the generator learns to produce after composing the full tree.

For RNNG and URNNG, perplexity requires an estimate of marginal sentence probability. The parser sees the full sentence and proposes plausible trees by importance sampling. Each draw contributes the grammar’s joint probability for the sentence and tree, adjusted for how likely the parser was to draw that tree. The paper prints a logarithm on the joint probability inside the sampling ratio. The probability ratio follows from the marginalization identity and gives the importance-sampling calculation described here.

log p_θ(x) ≈ log((1/K) Σ_{k=1}^K p_θ(x, z⁽ᵏ⁾) / q_φ(z⁽ᵏ⁾ | x))

x is the observed sentence, p_θ is the grammar, and q_φ is the proposal distribution used to draw the K trees. Each z⁽ᵏ⁾ is draw k. Dividing the joint probability by the proposal probability corrects for drawing some trees more frequently than others. The average estimates the sum of joint probabilities, and the outer logarithm gives the estimated log sentence probability. The authors use K=1000 importance samples for perplexity. At evaluation they also divide the parser’s span scores by a temperature of 2.0 before the CRF calculation, which broadens the proposal distribution.

On PTB and CTB, URNNG improves on RNNLM in perplexity and performs competitively with the supervised grammar. The left-branching grammar fares poorly as a predictor. The right-branching grammar performs similarly to RNNLM, which the authors relate to its effective resemblance to sequential word generation. PRPN’s default settings work poorly under the paper’s preprocessing, while adjusting its hyper-parameters improves its performance. The paper cites 62.0 perplexity for default PRPN under the conventional PTB word-prediction setup. That number describes a different vocabulary and treatment of sentence boundaries from the comparison here.

The authors also start with a supervised RNNG and then use the unsupervised objective to continue training the generator and parser. This run uses 10 more epochs and a generative learning rate of 0.1. The hybrid improves perplexity. The result is consistent with complementary contributions from the two objectives. Treebank supervision offers an initial organization of the sentence, and the marginal objective gives later training the freedom to allocate probability to other compatible analyses. Both features change together in the hybrid comparison.

On the larger English sample, URNNG again improves on RNNLM. The authors additionally label the training sentences with a self-attentive parser and use the resulting trees to train an RNNG, with and without subsequent fine-tuning on the unsupervised objective. Both variants improve on RNNLM, while URNNG gives the strongest word prediction among these comparisons. The external parser used to supply annotations is reported to obtain 95.17 F₁ on the PTB test set. That score measures the external parser’s accuracy on PTB. Its use in the larger experiment tests how well its predicted trees serve as training targets for a different system and corpus. Constituency Parsing with a Self-Attentive Encoder.

The numerical values stated for default PRPN and the external parser measure different tasks or evaluation protocols. The main performance comparisons are described by their reported ordering, since the accompanying prose gives no individual scores for those rows. The chart records the reported change in URNNG’s experimental setup across the treebanks and the larger corpus. Lower on this axis means less dropout.

URNNG training dropout on PTB and CTB versus One Billion Word

The larger English experiment uses less dropout than the treebank experiments.

URNNG training dropout on PTB and CTB versus One Billion WordEnglish PTB and Chinese CTB setting: 0.5English PTB and Chinese CTB setting0.5One Billion Word subset setting (this paper): 0.1One Billion Word subset setting (thispaper)0.1
The numbers
System or settingdropout rate
English PTB and Chinese CTB setting0.5
One Billion Word subset setting (this paper)0.1

Recovering constituents from words

To evaluate phrase discovery, the authors give the parser an entire sentence and decode the tree with the highest CRF score. They use the Viterbi form of the inside algorithm, also called CKY in this setting. It chooses the best split at each point in the chart in place of adding the weights of all splits. A different procedure could draw candidate trees and rerank them with the generator’s joint score. The reported parsing evaluation uses the parser’s own highest-scoring tree. Thus the generator’s role is to provide a learning signal, while the final choice of tree is a direct test of the learned inference network.

The authors compare spans using unlabeled F₁. Precision measures how many predicted spans match reference spans, recall measures how many reference spans are recovered, and F₁ combines them. The main evaluation uses evalb to ignore punctuation and exclude single-word spans and the span covering the whole sentence. Those spans are automatic consequences of including all the words in one tree. Excluding them concentrates the comparison on the boundaries that a parser must discover. The reference trees retain their original branching, so the authors also report oracle binarized trees as upper-bound references for the binary setup.

The grammar learns from words in the full datasets. The authors note that many earlier induction experiments used shorter sentences and supplied reference part-of-speech tags. Here the unsupervised parser obtains neither those tags nor gold trees as inputs to training. On English PTB, URNNG’s unlabeled span scores are comparable to PRPN’s. On Chinese CTB, PRPN comes out ahead. Both improve on fixed right branching. Together these results show that the likelihood-based training scheme can produce useful brackets while leaving ample room for other systems to recover boundaries it misses.

A separate PTB comparison follows the evaluation used in earlier work on latent trees. It compares against binarized references, includes punctuation and the trivial spans, and averages sentence-level F₁. A heuristic in that comparison attaches trailing punctuation at the root. Applying it leaves URNNG’s reported result unchanged because its induced trees already make that attachment. The alternate scoring convention changes which brackets earn credit and how scores across sentences are combined. The main PTB ranking belongs to the punctuation-ignoring evaluation against the original annotations.

Choosing the grammatical sentence

The authors use a separate evaluation based on the work of Marvin and Linzen. Each item presents a grammatical sentence and a minimally different ungrammatical counterpart. A language predictor succeeds if it gives the grammatical sentence greater probability. The tasks include subject–verb agreement in structures such as relative clauses, agreement between reflexives and their antecedents, and the licensing of negative polarity items. These items isolate choices that average perplexity over held-out prose can leave relatively inconspicuous.

The evaluation retains only pairs whose words are known to the systems under comparison. This leaves 80K sentence pairs. The grammar is also trained on a smaller corpus than in the original targeted evaluation. The conclusions therefore concern the comparison within the paper’s setup. The supervised RNNG leads the other systems overall. URNNG does slightly better than RNNLM, but the pattern of their errors is similar. The authors leave open whether that gain reflects syntax-sensitive differences in what URNNG learns or the improvement in word prediction seen in its perplexity.

This comparison helps interpret the other results. Unlabeled F₁ assesses which spans the parser can recover when it sees a complete sentence. The minimal-pair test asks whether the probabilities assigned to complete sentences favor one grammatical outcome over another. Recovering many correct spans can coexist with errors in the relative probabilities. Likewise a system can favor the grammatical sentence without exposing a matching constituency tree. The supervised advantage in the minimal-pair test shows that the unsupervised and supervised grammars remain distinguishable on a measure that gives specific grammatical choices greater weight.

What the ablations show

A hierarchy is useful when it changes the right predictions

The fixed-tree comparisons hold on to the grammar’s basic operations while changing how phrases are arranged. A left-branching tree reduces whenever it can, repeatedly nesting the previous prefix with the newest word. This gives the composition network substantial depth. Its poor perplexity shows that adding deep composition alone is an inadequate explanation for URNNG’s advantage. Which information is compressed, and when that compression happens, affects the context used to predict the next word.

Right branching supplies a related check from the other direction. In a fully right-branching tree, most reductions are delayed until the words have been shifted. During word prediction, the stack therefore behaves much like a sequential recurrent history. Its similarity to RNNLM in perplexity fits that interpretation. The architecture has access to a composition function under both branching conventions. The placement of the operations determines whether the generator has already assembled useful pieces while it still has more words to predict.

The length analysis adds a condition to the overall perplexity ranking. On PTB, RNNLM is better at short sentences, while RNNG and URNNG have an advantage when sentence length is greater than 10. This is a comparison among groups of sentences in the evaluation. It fits the expectation that representing completed phrases can be more valuable as the generator has more context to manage. Sentence length also changes other properties of the examples. The grouping analysis cannot isolate the precise feature of longer sentences that gives the grammar its advantage.

The supervised-to-unsupervised continuation changes the objective after a grammar has learned from reference trees. It improves perplexity on the treebank experiments, while on the larger English sample the grammar trained from text alone remains ahead of the alternatives that start with predicted trees. These comparisons distinguish the value of a structural architecture from the value of making it imitate a specific tree for every sentence. They also expose a difference between starting from reference trees and starting from predictions produced on the larger corpus. The paper offers the limitations of predicted-tree supervision as a possible interpretation of the larger-corpus result.

Which trees the parser learns

A preliminary comparison changes the architecture of the inference network. The authors tried a transition-based parser that could see the whole sentence and make structural decisions without the CRF’s explicit factorization. It repeatedly settled on left branching in their experiments, despite attempts to adjust optimization. This comparison supports their reason for introducing a restricted parser alongside the flexible grammar. The result is specific to the tested design and training regime. The paper also notes a related dependency induction approach that uses a transition-based parser successfully with additional constraints based on linguistic rules.

Another analysis asks whether similar parsing scores conceal different trees. The authors compare URNNG’s trees with other predicted trees, including those from a URNNG trained with a different random seed. They also break down recall by the labels on reference constituents. Although URNNG never predicts labels, a correctly recovered span can be credited to the category assigned by the treebank. This comparison gives more detail than an overall count of matching brackets, because it shows which kinds of constituents each system tends to retrieve.

URNNG recovers more of the reference VP and SBAR constituents, while PRPN is better at recovering NP constituents. VP is the treebank’s verb phrase label, SBAR denotes subordinate clauses, and NP denotes noun phrases. The distinction offers a concrete reason to avoid reading a near tie on English as agreement about the same trees. The authors propose using spans that both parsers identify as partial annotation for a further training stage. The paper leaves that combination for future work.

The punctuation comparison tests what remains of URNNG’s induction performance when a cue to phrase boundaries is removed from the training text. On the altered PTB data, URNNG fails to improve on the right-branching baseline. Under the main protocol, punctuation was already ignored in scoring. The difference concerns what the parser gets to see while learning, and what it can infer from those cues about the surrounding spans. The result is compatible with useful learning on punctuated text and shows the dependence of that finding on the input conditions.

Whether the inferred trees carry information

The distributional analysis looks inside the trained system. One diagnostic is reconstruction perplexity, based on the grammar’s word scores along trees drawn from the parser. Those trees are selected with access to the whole observed sentence. They can contain information about how to organize the words that the generator would have to infer on its own during generation. Reconstruction perplexity is considerably lower than ordinary perplexity. The distinction between the two measures is central to interpreting the gap.

E_{z ∼ q_φ(z | x)}[log p_θ(x | z)]

This is the expected terminal log score used as the basis of reconstruction perplexity. q_φ(z | x) is the parser’s distribution conditioned on the sentence x, and E averages over trees z drawn from it. log p_θ(x | z) is the paper’s shorthand for the word-prediction terms in the interleaved joint score. Those terms use the structural actions supplied along the sampled path. This diagnostic asks how well the grammar predicts the words when it can use an analysis inferred from those same words.

E_{z ∼ q_φ(z | x)}[log(q_φ(z | x) / p_θ(z | x_<z))]

This is the paper’s divergence diagnostic between the variational posterior and the generator’s conditional action prior. q_φ(z | x) is the parser probability, and p_θ(z | x_<z) is the product of the grammar’s action probabilities conditioned on their respective prefixes along the path. x_<z summarizes those word prefixes. The average uses trees from the parser. This is a separate comparison from the divergence in the ELBO identity, which uses the grammar’s full posterior given the sentence.

The reported divergence is substantially above zero. The posterior entropy is also lower than the conditional prior entropy, with some uncertainty remaining in the posterior. The authors additionally use the entropy of a uniform distribution over binary trees as a reference and average the divergence and entropy metrics across sentences. Taken together, the diagnostics indicate that conditioning the tree distribution on the sentence has an effect and that sampled analyses assist word prediction. The evidence about which phrases those analyses represent comes from span evaluation and the recall breakdown.

Limitations

Limits the authors identify

Training is considerably more demanding than training an ordinary sequential recurrent predictor. The parser’s chart has O(T³) cost, the gradient estimates require several sampled trees, and the generator needs to score each tree’s action sequence. The authors report that the changing computation graphs are the principal time bottleneck. Different sequences can request shifts and reductions in different orders, making efficient batching difficult even though the authors batch these operations where they can. The chart calculation can be batched but is a significant memory cost.

Training is also sensitive to optimization choices. The paper uses warm-up for two terms, separate optimizers, different learning rates and a stopping point for updating the inference network. These measures were needed to avoid trivial solutions in the authors’ experiments. The complete recipe supplies evidence that this architecture can learn nontrivial trees. The results say less about which individual measures would suffice, or whether a different optimizer and schedule could yield the same outcome reliably.

The authors explicitly identify reliance on punctuation. Commas and other marks can offer clues to constituent boundaries, and URNNG learns to use them from the input. The weaker result on punctuation-free PTB limits how far the reported induction scores extend to differently prepared text. The paper mentions other approaches that train directly on corpora with punctuation removed, including PRPN and Ordered Neurons. The input conditions are therefore part of the comparison whenever the systems are said to learn syntax from words.

The paper also warns that induction results across studies can be hard to compare. Evaluations differ in whether they retain punctuation, impose sentence-length cutoffs, use additional data, and include whole-sentence or one-word spans. They can differ in whether they count sentence-level or corpus-level F₁, and in whether their references have been binarized. Even with the same corpus name, those choices change the task and sometimes the amount of information offered at training time. The paper consequently gives most weight to systems evaluated together.

Limits apparent from the design

The unsupervised grammar can express only unlabeled binary constituency. Its output can recover a reference boundary even though the corresponding treebank constituent has a category the grammar never assigns. And whenever the references contain a constituent with more than two children, a binary analysis must resolve intermediate attachments. The oracle comparison helps show what the chosen binarization means for the score. It does not supply evidence about how well the method could learn labels or directly represent the original range of branching structures.

The comparisons also scope the headline language prediction result. Sentence-level PTB with the earlier RNNG preprocessing is a particular version of the task. The larger English run shows that the method remains competitive outside that small treebank. It still uses a sample of the benchmark, a capped vocabulary and a sentence-level objective. The work provides evidence on those preprocessing choices and on English and Chinese as represented by these corpora. Generalization to other languages, annotation schemes, longer contexts and text with different punctuation conventions remains open.

Several measurements reveal different parts of the system. The perplexity comparison depends on importance sampling for the latent-tree grammars, while the sequential baseline scores words without integrating over trees. The best-tree parsing comparison evaluates the inference network, and the grammar’s true posterior might favor a different tree. The reconstruction comparison gives the generator the benefit of an analysis derived from the same sentence. These are legitimate ways to answer different experimental questions. Reading any one of them as a complete measure of the learned grammar would lose the distinctions the experiments make.

There is a similar limit on causal interpretation. URNNG changes the use of composition, the training objective and the existence of a structured inference network relative to a sequential predictor. The branching comparisons and the preliminary parser experiment help narrow the explanation, but they do not isolate the effect of every change. On syntactic minimal pairs, the similar error patterns for URNNG and RNNLM leave the source of URNNG’s smaller gain uncertain. The stronger performance of the supervised grammar on that test is evidence that the unannotated setup has yet to recover some of the benefits of explicit tree supervision.

The authors close by suggesting an analogy with language acquisition. A parser with its own constraints and a flexible learner can interact in a way that yields apparently grammatical organization. This is a hypothesis about how a bias in parsing might influence the grammar acquired. The experiments test sentence prediction and recovered treebank spans under a computational training regime. Extending the analogy to human learning would require evidence about the acquisition process itself.

What came after

The later papers that cite URNNG take up different parts of the problem. Their titles establish several connections to the original question, from inducing a probabilistic grammar to studying how a system with explicit structural biases behaves. The citations establish the connection between the papers, while the individual research questions indicate what each puts under examination.

Compound Probabilistic Context-Free Grammars for Grammar Induction continues the search for phrase structure under a probabilistic grammar. Its point of contact with URNNG is the treatment of the grammar as an object whose structure is to be inferred from language. The choice of a compound probabilistic context-free grammar shifts the focus to the grammar family itself. In URNNG, context-free structure enters most directly through the inference network that guides a recurrent generator. The two formulations therefore give a reader different places to look for the assumptions that guide induction.

Tree Transformer carries the interest in phrase structure into self-attention. The original grammar uses stack operations to decide when to compose a phrase and make it available for later predictions. Integrating tree structure into attention raises the corresponding architectural question for a system that routes information through attention. It places the tree in the mechanism for relating positions to one another, a different setting from scoring a recurrent action sequence. Transformer and attention.

StructFormer broadens the target of induction to dependency and constituency structure together. It also takes masked language modeling as the learning objective. Masking changes what the network is asked to predict, while the two structural targets change what it tries to discover. Its connection with URNNG is the attempt to obtain a structural analysis as part of learning from words. The comparison brings out how many choices are left open by that general aim, including the structure being induced and the prediction task that supplies the training signal. Dependency parsing.

Transformer Grammars takes up explicit syntactic biases in Transformer language modeling at scale. The point of continuity is the question of what a language predictor gains when the way it processes text reflects syntactic organization. URNNG studies this question with a recurrent stack and a parser that guides learning of hidden trees. The later title puts the architectural comparison in a Transformer setting and makes scale part of the question.

Compositionality decomposed connects the discussion to generalization in neural networks. URNNG makes composition a concrete operation and measures how that operation relates to the observed words and reference spans. Work organized around different kinds of compositional generalization asks what a system can do when it must use learned pieces in new combinations. The link is a question about the consequences of composition. Recovering a familiar phrase boundary and generalizing a learned operation are distinct outcomes that call for distinct evaluations.

Tree Transformer’s Disambiguation Ability of Prepositional Phrase Attachment and Garden Path Effects examines more specific behavior in the attention-based line. Prepositional phrase attachment asks which part of a sentence a prepositional phrase belongs with. A garden path occurs when an initially plausible reading has to be revised as more words arrive. Both phenomena sharpen a question already visible in URNNG’s separate parsing and minimal-pair evaluations. A system can recover many reference spans overall while its decisions on a particular ambiguity still require direct examination.

Cite

Cite as Yoon Kim, Alexander Rush, Lei Yu, Adhiguna Kuncoro, Chris Dyer and Gábor Melis. 2019. Unsupervised Recurrent Neural Network Grammars. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/n19-1114 · arXiv 1904.03746

@inproceedings{kim2019unsupervised,
  title = {{Unsupervised Recurrent Neural Network Grammars}},
  author = {Yoon Kim, Alexander Rush, Lei Yu, Adhiguna Kuncoro, Chris Dyer and Gábor Melis},
  booktitle = {Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)},
  year = {2019},
  doi = {10.18653/v1/n19-1114},
  eprint = {1904.03746},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/n19-1114}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/kim-2019-unsupervised-recurrent-neural-network-grammars/

References

93 references, from the paper's own bibliography.

  1. Roee Aharoni and Yoav Goldberg. 2017. Towards String-to-Tree Neural Machine Translation. In Proceedings of ACL. our card
  2. David Alvarez-Melis and Tommi S. Jaakkola. 2017. Tree-structured Decoding with Doubly-Recurrent Neural Networks. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  3. Waleed Ammar, Chris Dyer, and Noah A. Smith. 2014. Conditional Random Field Autoencoders for Unsupervised Structured Prediction. In Proceedings of NIPS. OpenAlex ↗ · Scholar ↗
  4. Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. 2016. Layer Normalization. In Proceedings of NIPS. OpenAlex ↗ · Scholar ↗
  5. James K. Baker. 1979. Trainable Grammars for Speech Recognition. In Proceedings of the Spring Conference of the Acoustical Society of America. OpenAlex ↗ · Scholar ↗
  6. Rens Bod. 2006. An All-Subtrees Approach to Unsupervised Parsing. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  7. Samuel R. Bowman, Luke Vilnis, Oriol Vinyal, Andrew M. Dai, Rafal Jozefowicz, and Samy Bengio. 2016. Generating Sentences from a Continuous Space. In Proceedings of CoNLL. our card
  8. James Bradbury and Richard Socher. 2017. Towards Neural Machine Translation with Latent Tree Attention. In Proceedings of the 2nd Workshop on Structured Prediction for Natural Language Processing. OpenAlex ↗ · Scholar ↗
  9. Jan Buys and Phil Blunsom. 2015. Generative Incremental Dependency Parsing with Neural Networks. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  10. Jan Buys and Phil Blunsom. 2018. Neural Syntactic Generative Models with Exact Marginalization. In Proceedings of NAACL. our card
  11. Jiong Cai, Yong Jiang, and Kewei Tu. 2017. CRF Autoencoder for Unsupervised Dependency Parsing. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  12. Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. 2013. One Billion Word Benchmark for Measuring Progress in Statistical Language Modeling. arXiv:1312.3005. our card
  13. Danqi Chen and Christopher D. Manning. 2014. A Fast and Accurate Dependency Parser using Neural Networks. In Proceedings of EMNLP. our card
  14. Kyunghyun Cho, Bart van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. 2014. On the Properties of Neural Machine Translation: Encoder-Decoder Approaches. In Proceedings of Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation. our card
  15. Jihun Choi, Kang Min Yoo, and Sang goo Lee. 2018. Learning to Compose Task-Specific Tree Structures. In Proceedings of AAAI. OpenAlex ↗ · Scholar ↗
  16. Junyoung Chung, Sungjin Ahn, and Yoshua Bengio. 2017. Hierarchical Multiscale Recurrent Neural Networks. In Proceedings of ICLR. our card
  17. Caio Corro and Ivan Titov. 2019. Differentiable Perturb-and-Parse: Semi-Supervised Parsing with a Structured Variational Autoencoder. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  18. Chris Cremer, Xuechen Li, and David Duvenaud. 2018. Inference Suboptimality in Variational Autoencoders. In Proceedings of ICML. OpenAlex ↗ · Scholar ↗
  19. Yuntian Deng, Yoon Kim, Justin Chiu, Demi Guo, and Alexander M. Rush. 2018. Latent Alignment and Variational Attention. In Proceedings of NIPS. our card
  20. Andrew Drozdov, Patrick Verga, Mohit Yadev, Mohit Iyyer, and Andrew McCallum. 2019. Unsupervised Latent Tree Induction with Deep Inside-Outside Recursive Auto-Encoders. In Proceedings of NAACL. OpenAlex ↗ · Scholar ↗
  21. Greg Durrett and Dan Klein. 2015. Neural CRF Parsing. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  22. 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 ACL. our card
  23. Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A. Smith. 2016. Recurrent Neural Network Grammars. In Proceedings of NAACL. our card
  24. Ahmad Emami and Frederick Jelinek. 2005. A Neural Syntactic Language Model. Machine Learning, 60:195–227. OpenAlex ↗ · Scholar ↗
  25. Akiko Eriguchi, Yoshimasa Tsuruoka, and Kyunghyun Cho. 2017. Learning to Parse and Translate Improves Neural Machine Translation. In Proceedings of ACL. our card
  26. Jenny Rose Finkel, Alex Kleeman, and Christopher D. Manning. 2008. Efficient, Feature-based, Conditional Random Field Parsing. In Proceedings of ACL. our card
  27. Jenny Rose Finkel, Christopher D. Manning, and Andrew Y. Ng. 2006. Solving the Problem of Cascading Errors: Approximate Bayesian Inference for Linguistic Annotation Pipelines. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  28. Kuzman Ganchev, João Graça, Jennifer Gillenwater, and Ben Taskar. 2010. Posterior Regularization for Structured Latent Variable Models. Journal of Machine Learning Research, 11:2001–2049. OpenAlex ↗ · Scholar ↗
  29. Peter Glynn. 1987. Likelihood Ratio Gradient Estimation: An Overview. In Proceedings of Winter Simulation Conference. OpenAlex ↗ · Scholar ↗
  30. Joshua Goodman. 1998. Parsing Inside-Out. PhD thesis, Harvard University. OpenAlex ↗ · Scholar ↗
  31. Jetic G$\overline{\text{u}}$, Hassan S. Shavarani, and Anoop Sarkar. 2018. Top-down Tree Structured Decoding with Syntactic Connections for Neural Machine Translation and Parsing. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  32. John Hale, Chris Dyer, Adhiguna Kuncoro, and Jonathan R. Brennan. 2018. Finding Syntax in Human Encephalography with Beam Search. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  33. Serhii Havrylov, Germán Kruszewski, and Armand Joulin. 2019. Cooperative Learning of Disjoint Syntax and Semantics. In Proceedings of NAACL. OpenAlex ↗ · Scholar ↗
  34. Phu Mon Htut, Kyunghyun Cho, and Samuel R. Bowman. 2018. Grammar Induction with Neural Language Models: An Unusual Replication. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  35. Rebecca Hwa. 1999. Supervised Grammar Induction Using Training Data with Limited Constituent Information. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  36. Rebecca Hwa. 2000. Sample Selection for Statistical Grammar Induction. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  37. Lifeng Jin, Finale Doshi-Velez, Timothy Miller, William Schuler, and Lane Schwartz. 2018. Unsupervised Grammar Induction with Depth-bounded PCFG. In Proceedings of TACL. our card
  38. Mark Johnson, Thomas L. Griffiths, and Sharon Goldwater. 2007. Bayesian Inference for PCFGs via Markov chain Monte Carlo. In Proceedings of NAACL. our card
  39. Matthew Johnson, David K. Duvenaud, Alex Wiltschko, Ryan P. Adams, and Sandeep R. Datta. 2016. Composing Graphical Models with Neural Networks for Structured Representations and Fast Inference. In Proceedings of NIPS. OpenAlex ↗ · Scholar ↗
  40. Kazuya Kawakami, Chris Dyer, and Phil Blunsom. 2018. Unsupervised Word Discovery with Segmental Neural Language Models. arXiv:1811.09353. OpenAlex ↗ · Scholar ↗
  41. Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. 2017. Structured Attention Networks. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  42. Diederik P. Kingma and Jimmy Ba. 2015. Adam: A Method for Stochastic Optimization. In Proceedings of ICLR. our card
  43. Diederik P. Kingma and Max Welling. 2014. Auto-Encoding Variational Bayes. In Proceedings of ICLR. our card
  44. Nikita Kitaev and Dan Klein. 2018. Constituency Parsing with a Self-Attentive Encoder. In Proceedings of ACL. our card
  45. Dan Klein and Christopher Manning. 2002. A Generative Constituent-Context Model for Improved Grammar Induction. In Proceedings of ACL. our card
  46. Rahul G. Krishnan, Uri Shalit, and David Sontag. 2017. Structured Inference Networks for Nonlinear State Space Models. In Proceedings of AAAI. OpenAlex ↗ · Scholar ↗
  47. Adhiguna Kuncoro, Miguel Ballesteros, Lingpeng Kong, Chris Dyer, Graham Neubig, and Noah A. Smith. 2017. What Do Recurrent Neural Network Grammars Learn About Syntax? In Proceedings of EACL. our card
  48. Adhiguna Kuncoro, Chris Dyer, John Hale, Dani Yogatama, Stephen Clark, and Phil Blunsom. 2018. LSTMs Can Learn Syntax-Sensitive Dependencies Well, But Modeling Structure Makes Them Better. In Proceedings of ACL. our card
  49. Bowen Li, Jianpeng Cheng, Yang Liu, and Frank Keller. 2019. Dependency Grammar Induction with a Neural Variational Transition-based Parser. In Proceedings of AAAI. OpenAlex ↗ · Scholar ↗
  50. Zhifei Li and Jason Eisner. 2009. First- and Second-Order Expectation Semirings with Applications to Minimum-Risk Training on Translation Forests. In Proceedings of EMNLP. our card
  51. Yang Liu, Matt Gardner, and Mirella Lapata. 2018. Structured Alignment Networks for Matching Sentences. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  52. Yang Liu and Mirella Lapata. 2018. Learning Structured Text Representations. In Proceedings of TACL. our card
  53. Jean Maillard and Stephen Clark. 2018. Latent Tree Learning with Differentiable Parsers: Shift-Reduce Parsing and Chart Parsing. In Proceedings of the Workshop on the Relevance of Linguistic Structure in Neural Architectures for NLP. OpenAlex ↗ · Scholar ↗
  54. Mitchell P. Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. 1993. Building a Large Annotated Corpus of English: The Penn Treebank. Computational Linguistics, 19:313–330. our card
  55. Rebecca Marvin and Tal Linzen. 2018. Targeted Syntactic Evaluation of Language Models. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  56. Takuya Matsuzaki, Yusuke Miyao, and Junichi Tsujii. 2005. Probabilistic CFG with Latent Annotations. In Proceedings of ACL. our card
  57. Gábor Melis, Chris Dyer, and Phil Blunsom. 2018. On the State of the Art of Evaluation in Neural Language Models. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  58. Stephen Merity, Nitish Shirish Keskar, and Richard Socher. 2018. Regularizing and Optimizing LSTM Language Models. In Proceedings of ICLR. our card
  59. Tomas Mikolov, Martin Karafiat, Lukas Burget, Jan Cernocky, and Sanjeev Khudanpur. 2010. Recurrent Neural Network Based Language Model. In Proceedings of INTERSPEECH. OpenAlex ↗ · Scholar ↗
  60. Andriy Mnih and Karol Gregor. 2014. Neural variational inference and learning in belief networks. In Proceedings of ICML. OpenAlex ↗ · Scholar ↗
  61. Andriy Mnih and Danilo J. Rezende. 2016. Variational Inference for Monte Carlo Objectives. In Proceedings of ICML. OpenAlex ↗ · Scholar ↗
  62. Tahira Naseem, Harr Chen, Regina Barzilay, and Mark Johnson. 2010. Using Universal Linguistic Knowledge to Guide Grammar Induction. In Proceedings of EMNLP. our card
  63. Graham Neubig, Yoav Goldberg, and Chris Dyer. 2017. On-the-fly Operation Batching in Dynamic Computation Graphs. arXiv:1705.07860. OpenAlex ↗ · Scholar ↗
  64. Vlad Niculae, André F. T. Martins, and Claire Cardie. 2018. Towards Dynamic Computation Graphs via Sparse Latent Structure. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  65. Ankur P. Parikh, Shay B. Cohen, and Eric P. Xing. 2014. Spectral Unsupervised Parsing with Additive Tree Metrics. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  66. Hao Peng, Sam Thomson, and Noah A. Smith. 2018. Backpropagating through Structured Argmax using a SPIGOT. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  67. Elis Ponvert, Jason Baldridge, and Katrin Erk. 2011. Simpled Unsupervised Grammar Induction from Raw Text with Cascaded Finite State Methods. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  68. Ofir Press and Lior Wolf. 2016. Using the Output Embedding to Improve Language Models. In Proceedings of EACL. our card
  69. Maxim Rabinovich, Mitchell Stern, and Dan Klein. 2017. Abstract Syntax Networks for Code Generation and Semantic Parsing. In Proceedings of ACL. our card
  70. Danilo J. Rezende, Shakir Mohamed, and Daan Wierstra. 2014. Stochastic Backpropagation and Approximate Inference in Deep Generative Models. In Proceedings of ICML. our card
  71. Yoav Seginer. 2007. Fast Unsupervised Incremental Parsing. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  72. Yikang Shen, Zhouhan Lin, Chin-Wei Huang, and Aaron Courville. 2018. Neural Language Modeling by Jointly Learning Syntax and Lexicon. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  73. Yikang Shen, Shawn Tan, Alessandro Sordoni, and Aaron Courville. 2019. Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networks. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  74. Haoyue Shi, Hao Zhou, Jiaze Chen, and Lei Li. 2018. On Tree-based Neural Sentence Modeling. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  75. Noah A. Smith and Jason Eisner. 2004. Annealing Techniques for Unsupervised Statistical Language Learning. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  76. Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. 2016. Ladder Variational Autoencoders. In Proceedings of NIPS. OpenAlex ↗ · Scholar ↗
  77. Valentin I. Spitkovsky, Hiyan Alshawi, and Daniel Jurafsky. 2013. Breaking Out of Local Optima with Count Transforms and Model Recombination: A Study in Grammar Induction. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  78. Mitchell Stern, Jacob Andreas, and Dan Klein. 2017. A Minimal Span-Based Neural Constituency Parser. In Proceedings of ACL. our card
  79. Emma Strubell, Patrick Verga, Daniel Andor, David Weiss, and Andrew McCallum. 2018. Linguistically-Informed Self-Attention for Semantic Role Labeling. In Proceedings of EMNLP. our card
  80. Kai Sheng Tai, Richard Socher, and Christopher D. Manning. 2015. Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks. In Proceedings of ACL. our card
  81. Ke Tran and Yonatan Bisk. 2018. Inducing Grammars with and for Neural Machine Translation. In Proceedings of the 2nd Workshop on Neural Machine Translation and Generation. OpenAlex ↗ · Scholar ↗
  82. John C. Trueswell and Lila R. Gleitman. 2007. Learning to Parse and its Implications for Language Acquisition. The Oxford Handbook of Psycholinguistics. OpenAlex ↗ · Scholar ↗
  83. Wenhui Wang and Baobao Chang. 2016. Graph-based Dependency Parsing with Bidirectional LSTM. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  84. Xinyi Wang, Hieu Pham, Pengcheng Yin, and Graham Neubig. 2018. A Tree-based Decoder for Neural Machine Translation. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
  85. Adina Williams, Andrew Drozdov, and Samuel R. Bowman. 2018. Do Latent Tree Learning Models Identify Meaningful Structure in Sentences? In Proceedings of TACL. our card
  86. Ronald J. Williams. 1992. Simple Statistical Gradient-following Algorithms for Connectionist Reinforcement Learning. Machine Learning, 8. OpenAlex ↗ · Scholar ↗
  87. Sam Wiseman, Stuart M. Shieber, and Alexander M. Rush. 2018. Learning Neural Templates for Text Generation. In Proceedings of EMNLP. our card
  88. Naiwen Xue, Fei Xia, Fu dong Chiou, and Marta Palmer. 2005. The Penn Chinese Treebank: Phrase Structure Annotation of a Large Corpus. Natural Language Engineering, 11:207–238. OpenAlex ↗ · Scholar ↗
  89. Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W. Cohen. 2018. Breaking the Softmax Bottleneck: A High-Rank RNN Language Model. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  90. Pengcheng Yin and Graham Neubig. 2017. A Syntactic Neural Model for General-Purpose Code Generation. In Proceedings of ACL. our card
  91. Pengcheng Yin, Chunting Zhou, Junxian He, and Graham Neubig. 2018. StructVAE: Tree-structured Latent Variable Models for Semi-supervised Semantic Parsing. In Proceedings of ACL. our card
  92. Dani Yogatama, Phil Blunsom, Chris Dyer, Edward Grefenstette, and Wang Ling. 2017. Learning to Compose Words into Sentences with Reinforcement Learning. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  93. Xiaodan Zhu, Parinaz Sobhani, and Hongyu Guo. 2015. Long Short-Term Memory Over Tree Structures. In Proceedings of ICML. OpenAlex ↗ · Scholar ↗