Elamur Research

Grammar as a Foreign Language

Paper · 2014 · Oriol Vinyals, Lukasz Kaiser, Terry Koo et al.

Summary

A syntactic parser identifies how words fit together into phrases and how those phrases form a sentence. A constituency parser expresses this structure as a tree: words appear at the leaves, while larger branches group them into grammatical units. Building an accurate parser had required substantial linguistic design, specialized algorithms, and careful engineering. Grammar as a Foreign Language asks whether a general sequence-to-sequence learning approach can learn this task by treating a sentence and its grammatical analysis as different kinds of strings. The input is ordinary text. The output is a serialized tree, expressed through a sequence of structural symbols. The central question is whether learning that conversion can replace machinery designed specifically for parsing.

The authors turn each tree into a sequence through a depth-first traversal, which follows a branch before returning to its siblings. An encoder reads the sentence, and a decoder generates the tree representation. Both use long short-term memory, or LSTM, recurrent networks. The important addition is attention: while producing each output symbol, the decoder can consult representations of the individual input positions. This gives it repeated access to the sentence rather than requiring it to recover everything from a single compressed state. The resulting architecture, called LSTM+A, uses 3 LSTM layers with 256 units per layer. For experiments with little annotated data, the authors add dropout, a training technique that discourages excessive dependence on particular internal connections. They call that version LSTM+A+D.

The distinction between attention and its absence is decisive on the small, manually annotated Wall Street Journal training set. A basic sequence-to-sequence LSTM performs poorly there, even when the authors use dropout and stop training early. With attention and dropout, an individual system obtains an F1 score of 88.3 on WSJ section 23; an ensemble reaches 90.5. BerkeleyParser, trained on the same data, scores 90.4. These results support a specific conclusion about data efficiency: attention makes this general architecture competitive with an established parser under the paper’s limited-data conditions. They do not show that every configuration performs equally well, or that the individual neural parser already matches the strongest comparison.

The strongest results come from automatically annotated training data. The authors collect web news, parse it with reimplementations of BerkeleyParser and ZPar, and retain sentences whose trees agree exactly. They also adjust the selected data’s sentence-length distribution and include human annotations. This high-confidence training collection contains roughly 11M automatically parsed sentences, described as 250M tokens, alongside roughly 90K human-annotated sentences. An individual LSTM+A trained on this collection achieves 92.5 F1 on WSJ section 23, which the paper reports as the best result available at the time. An ensemble improves that result to 92.8. The student therefore exceeds the parsers used to supply its training labels, although the authors’ explanation—that it learns to disregard some teacher errors—remains a hypothesis.

The paper also examines practical behavior. Its parser rarely generates unbalanced trees, attention frequently advances through words in order, and accuracy declines relatively little as sentences become longer. A generic, unoptimized decoder processes over 120 WSJ sentences per second on a multi-core CPU when using batches of 128 sentences and beam size 1. Results on questions and web text show useful transfer beyond ordinary news sentences, although BerkeleyParser retains an advantage in some of those comparisons. Taken together, the experiments establish that a general sequence predictor with attention can learn a demanding structured task, use imperfect annotations effectively, and produce competitive analyses quickly. They leave open how reliably the same approach would behave under substantially different annotation conventions, languages, or input conditions.

Interesting ideas

Separate structure from its storage format. A tree does not have to be predicted by a tree-specific algorithm simply because the final answer is hierarchical. The authors choose a reversible serialization and learn to produce that representation. This suggests a reusable design question for structured prediction: can the required answer be expressed as a sequence without losing information? If so, a general sequence learner becomes a candidate. The useful borrowing is the separation between the structure users need and the computational representation used during prediction. It applies wherever a structured answer can be serialized clearly and reconstructed reliably.

Give the decoder access to intermediate evidence. Attention supplies a route back to the encoded input at every generation step. That route matters especially when training examples are scarce: the decoder can consult relevant sentence positions while deciding what to emit. Elsewhere, the same principle can guide systems that must produce several output decisions from a long input. Rather than expecting a single summary to support every decision equally well, preserve representations that later stages can revisit. The paper’s controlled comparisons make this more than an architectural preference: under its WSJ setup, access through attention changes whether the approach learns effectively.

Use agreement to select imperfect supervision. The high-confidence corpus is built by keeping automatically parsed sentences on which different parsers produce matching trees. Agreement is a selection rule, not a proof of correctness. Its value is that it offers a practical way to obtain a large training collection without manually annotating every example. The principle can transfer to other annotation tasks when different systems are available and their agreement is informative. The paper also shows why selection must be inspected: agreement disproportionately favors short sentences, so the authors resample rather than accept the resulting distribution unquestioningly.

Remove output distinctions that the task does not evaluate. The authors replace the original part-of-speech labels with a shared placeholder, XX. This simplifies the target sequence and improves constituency F1 by about 1 point. The broader idea is to examine whether the learner is being asked to predict distinctions that the application does not need. Removing unnecessary distinctions can make learning easier, but the condition matters: a category that is irrelevant to one evaluation may be essential to another use. Here the simplification is justified by the parsing metric, which does not score the original part-of-speech tags.

Test the student independently of its teachers. Automatically generated labels do not necessarily set an upper bound on the resulting system’s performance. The student may combine evidence differently from the systems that produced its examples. This paper makes that possibility concrete by evaluating on human-annotated test data and obtaining stronger results than the label-generating parsers. The reusable practice is to keep an independent evaluation target. Agreement with a teacher measures imitation; performance against a separate reference can reveal whether the student has learned something useful beyond that imitation.

Treat efficiency settings as empirical questions. The decoder’s beam width could have been assumed to be crucial because the output is a structured tree. Instead, the authors test it and find relatively small accuracy changes. That result creates room for faster decoding. The same habit applies to other prediction systems: measure the contribution of search effort, preprocessing, initialization, and regularization separately. A complicated task does not imply that every expensive component contributes equally. The useful setting is the one supported by the application’s accuracy and throughput requirements.

Inspect behavior alongside aggregate scores. The attention visualization, malformed-tree analysis, and sentence-length evaluation answer different questions from overall F1. They reveal where the system looks, how it fails structurally, and whether longer inputs create a particular weakness. These analyses do not establish a complete internal explanation, but they make the system’s behavior more concrete. A reusable evaluation should similarly distinguish correctness, output validity, and operating conditions. A strong average score becomes more informative when accompanied by evidence about the cases that produce failures.

Deep dive: Grammar as a Foreign Language

Grammar as a Foreign Language turns parse trees into sequences, showing how attention and synthetic training data improve constituency parsing. · about 38 minutes to read

How Mova uses it

For Mova, a small transparent language system implemented in Rust, the most useful connection is the distinction between a grammatical structure and the procedure that produces it. This paper demonstrates a way to learn constituency structure through a serialized target. It does not establish that Mova already contains such a parser, an LSTM decoder, or an attention mechanism. The concrete applications here are therefore possible extensions and evaluation practices, rather than claims about an existing implementation.

A reversible representation of trees would be a practical starting point. Mova could keep a transparent internal tree representation while also defining a sequence format that can be written, inspected, and reconstructed. Such a format would give a learned component and a deterministic component a common interface. The learned component would propose an analysis; ordinary Rust code could reconstruct the tree and report whether the sequence was structurally valid. The paper’s depth-first representation supplies the underlying idea. Choosing a particular Mova format, implementing its reader, and deciding which grammatical labels it supports would still be separate engineering work.

The malformed-tree results are especially relevant to transparency. A generated string may look like a parse while failing a basic structural requirement. Mova could expose validation as an explicit stage, recording whether a proposed analysis was already well formed or required repair. That would preserve information that disappears if a system silently fixes its output. The authors repair unbalanced trees by inserting brackets at an edge of the generated sequence. Mova could investigate that policy, but it should not treat successful balancing as evidence that the resulting grammatical analysis is correct. Structural validity and linguistic adequacy would need separate reporting.

The paper also suggests a restrained way to expand annotation. If Mova needed constituency training examples, agreement between independent parsers could help identify candidate analyses for further use. A transparent implementation could retain the sentence, the proposed tree, the selection rule, and the source of the annotation. It could also record whether an example was human annotated or automatically selected. These records would make the supervision inspectable. The paper supports agreement filtering as a useful training strategy in its setting; it does not show that agreement removes every error or that the same selection policy suits every language system.

The sentence-length correction is an equally important part of that idea. If Mova collected only easy examples on which existing systems agreed, it might produce a training collection that misrepresented its intended input. The authors encountered precisely this issue with short sentences. A Mova experiment should therefore examine the distribution created by its selection procedure before relying on the resulting annotations. This lesson does not require adopting the neural architecture. It applies to any pipeline that chooses examples using confidence, agreement, or another criterion correlated with input difficulty.

Attention offers a possible inspection surface, but the paper also gives reasons to interpret it carefully. Mova could display which input representations a decoder consults while generating structural symbols. That display might help identify skipped words or unexpected movement through a sentence. Yet each encoder representation contains contextual information, so a highlighted position cannot simply be read as an isolated word causing a decision. For a system whose identity includes transparency, this distinction matters: displaying an internal quantity is useful only when its meaning is explained accurately.

Finally, Mova could borrow the paper’s evaluation structure before borrowing its architecture. It could compare learning from human annotations with learning from selected automatic annotations, separate individual-system results from ensembles, and measure structural failures alongside constituency accuracy. It could also test whether predicting extra labels helps the intended task or merely enlarges the output problem. These are concrete research directions consistent with a small inspectable implementation. The paper provides evidence for trying them, while leaving their value for Mova to be established through its own experiments.

The problem and its context

Recovering phrase structure

Syntactic parsing assigns grammatical structure to a sentence. In the constituency setting, that structure groups words into phrases and combines those phrases into larger units. The result is hierarchical: a phrase may contain other phrases, and the complete sentence occupies the outermost level. This differs from merely attaching a category to each word. The parser must identify both the boundaries of groups and the labels associated with them.

The task is an instructive test for a general learning approach because the output has constraints that ordinary strings need not satisfy. Brackets must balance. A sequence of words must fit into a coherent hierarchy. Decisions made while generating an early part of a tree can affect what must appear later. A successful learner therefore needs to capture dependencies across its output, as well as relationships between that output and the input sentence.

The paper’s motivation concerns both accuracy and design. Constituency parsing had accumulated specialized methods over decades of research. These methods were strong, but their computational procedures and representational assumptions were closely tied to parsing. The authors ask whether comparable performance requires that degree of task-specific machinery. A positive answer would support the broader usefulness of general sequence-to-sequence learning beyond the applications in which it had already been tested.

What specialized parsers contributed

As the paper describes it, much earlier constituency parsing relied on probabilistic context-free grammars. Such a grammar supplies rules for combining categories into larger structures, while probabilities help distinguish among possible trees. The research challenge includes choosing a suitable representation and estimating useful probabilities from finite annotated data.

The authors identify different responses to this challenge. Three Generative, Lexicalised Models for Statistical Parsing emphasizes lexical information and the statistical treatment of infrequent events. Accurate Unlexicalized Parsing represents another route, in which carefully designed grammatical structure plays an important role. These are different approaches, but both illustrate how parser quality depended on choices about the grammatical representation and its statistical assumptions.

Learning Accurate, Compact, and Interpretable Tree Annotation reduces some manual design through latent variables: distinctions within the grammatical representation can be learned rather than specified entirely in advance. Nevertheless, the paper emphasizes that this approach retains a context-free grammatical foundation. Its objection is not that such a foundation cannot work. The strong BerkeleyParser baseline demonstrates the opposite. The question is whether that foundation must be built into the prediction procedure.

Computational cost forms another part of the motivation. The authors describe conventional parsing as having cubic requirements in sentence length. They also discuss faster incremental approaches, including A Linear Observed Time Statistical Parser Based on Maximum Entropy Models, Incremental Parsing with the Perceptron Algorithm, and Fast and Accurate Shift-Reduce Constituent Parsing. These approaches make parsing more efficient, but still organize prediction around operations designed for trees. The shift-reduce system, for example, uses an explicit stack and a parsing-specific transition strategy.

Why a neural parser was not automatically a general parser

Earlier neural approaches had also encoded substantial knowledge about parsing. The paper discusses systems whose structures depended on linguistic insights, approaches that incrementally constructed more elaborate probabilistic representations, and a recurrent approach that divided the tree into separate levels. Each made different compromises between representational power, tractability, and accuracy.

The level-based decomposition is particularly relevant to the new proposal because the authors report that its accuracy suffered on longer sentences. Another earlier approach used a recursive neural network to score candidate trees, but required an existing mechanism to supply those candidates. Scoring a proposed tree and discovering the tree are different problems. A complete parser must perform the latter as well.

The authors’ approach changes where structure enters. It does not remove grammatical information from the training examples: the targets are annotated trees. Instead, it removes a tree-specific prediction algorithm from the architecture. The network learns a mapping between the sentence and a serialized structural answer. The distinction is central to understanding the claim of generality. The training task remains thoroughly grammatical, while the learning machinery is intended to be reusable.

The opportunity created by sequence learning

Sequence to Sequence Learning with Neural Networks had introduced a general way to map an input sequence to an output sequence. Its relevance is immediate once a tree can be represented as a string. Parsing can then be framed as a conversion between sequences of different kinds, rather than as a search procedure defined directly over trees.

The paper also draws on Neural Machine Translation by Jointly Learning to Align and Translate. Its attention mechanism gives the output generator access to the input representations during decoding. In machine translation, this supports a learned relationship between source positions and generated words. For parsing, the corresponding possibility is a learned relationship between sentence positions and generated structural symbols.

Other cited work broadens this context. Recurrent Continuous Translation Models encodes an input sentence and uses a recurrent generator for the output. Show and Tell applies a related generation pattern to image captions. The authors also discuss differentiable attention in handwriting generation and its subsequent use in speech recognition. These examples motivate an architecture that can be reused across tasks, even though each application supplies different inputs and target sequences.

The paper’s early experiment supplies the final motivation. A basic sequence-to-sequence system learns poorly from the standard human annotations, described as 1M tokens. When the authors create a much larger BerkeleyParser-annotated collection, however, that approach reaches 90.5 F1 on WSJ section 23. This suggests that the sequence formulation itself is viable. Attention then becomes the proposed answer to a more specific problem: making that formulation learn effectively without requiring such a large supervised collection.

The method, step by step

The method has separate representational, architectural, and data components. The representation turns a grammatical tree into something a sequence generator can emit. The architecture connects an input sentence to that output. The data procedure determines where the examples come from, including how existing parsers can supply additional supervision.

Learning to generate constituency trees

The steps in order.

Learning to generate constituency treesStep 1: Serialize annotated trees in depth-first order1. Serialize annotated trees in depth-first orderStep 2: Normalize tags and reverse input sentences2. Normalize tags and reverse input sentencesStep 3: Encode words with layered LSTMs3. Encode words with layered LSTMsStep 4: Attend to encoded sentence positions4. Attend to encoded sentence positionsStep 5: Decode structural symbols with beam search5. Decode structural symbols with beam searchStep 6: Reconstruct trees and balance malformed outputs6. Reconstruct trees and balance malformed outputs

Express the tree as a sequence

The first requirement is an invertible conversion. After a tree is written as a sequence, the sequence must still contain enough information to reconstruct the hierarchy. Otherwise, an accurate sequence prediction could fail to specify a complete parse.

The authors use a depth-first traversal. Intuitively, the serialization records entering a constituent, processing what it contains, and leaving it. Nested constituents become nested portions of the output. This preserves the tree’s hierarchy while expressing it in a format that a recurrent decoder can generate sequentially.

The sentence “Go.” is used to illustrate the architecture. Even this short input requires more than copying words: the parser must produce the associated structural representation. The example makes the roles of input and output distinct. The encoder reads the sentence; the decoder emits the analysis.

The authors do not binarize trees, which would force their branching into a more restricted shape. They also avoid special treatment for unary structures, where a constituent has a single child. These choices matter because they keep the preprocessing relatively general. The network must learn the serialized patterns present in the annotations rather than rely on those additional transformations.

Simplify the target and prepare the words

Part-of-speech tagging assigns grammatical categories to individual words. The tree annotations include such labels, but the constituency F1 evaluation used in the paper does not assess their correctness. The authors therefore replace them with XX throughout the training targets. The result is a simpler output problem that preserves the distinctions needed for the reported metric.

Input sentences are reversed, while the tree sequences retain their ordinary order. This is a training and representation choice rather than a change to the sentence’s intended meaning. The encoder processes the reversed word sequence, and the decoder still learns to produce the original tree traversal. All reported experiments use this reversal.

The input vocabulary contains 90K words. Any word outside it becomes UNK, a shared symbol for an unknown word. The approach therefore does not distinguish all unseen words through a specialized representation. This is deliberately simple, although it may discard information that would help parsing.

The output vocabulary has 128 symbols. Its purpose differs from the input vocabulary’s: it supports the serialized grammatical representation. Keeping these roles separate helps explain how a system can read a large collection of word types while generating from a much smaller structural inventory.

Encode the input with LSTM memory

An LSTM maintains an internal memory and a control state as it processes a sequence. The memory lets information survive across processing steps; gates determine what is retained, added, or exposed. In the paper’s notation, xₜ is the input at step t, hₜ is the control state, and mₜ is the memory state.

The input gate is:

iₜ = sigm(W₁xₜ + W₂hₜ₋₁)

Here iₜ determines how strongly new candidate information can enter memory. W₁ and W₂ are learned matrices acting on the current input xₜ and previous control state hₜ₋₁. The function sigm is the elementwise sigmoid nonlinearity.

The candidate memory contribution is:

i′ₜ = tanh(W₃xₜ + W₄hₜ₋₁)

The vector i′ₜ contains proposed new memory content. W₃ and W₄ are learned matrices, and tanh applies the hyperbolic tangent separately to each component. The prime distinguishes this candidate content from the input gate iₜ.

The forget gate is:

fₜ = sigm(W₅xₜ + W₆hₜ₋₁)

The vector fₜ controls how much of the previous memory survives. W₅ and W₆ are learned matrices. As in the input gate, the decision depends on both the current input and the preceding control state.

The output gate is:

oₜ = sigm(W₇xₜ + W₈hₜ₋₁)

The vector oₜ controls the memory information exposed through the current control state. W₇ and W₈ are learned matrices. All of these gates are vectors, so different components can retain or expose different information at the same processing step.

Memory is updated by combining retained and newly admitted content:

mₜ = mₜ₋₁ ⊙ fₜ + iₜ ⊙ i′ₜ

The symbol ⊙ means component-by-component multiplication. The first term preserves selected parts of the old memory mₜ₋₁. The second adds candidate content i′ₜ according to the input gate iₜ. The addition combines those contributions into the new memory mₜ.

The control state is then defined as:

hₜ = mₜ ⊙ oₜ

Here hₜ is the exposed state used by subsequent computation, formed from memory mₜ and the output gate oₜ. This is the recurrence as written in the paper. The learned parameters include W₁ through W₈ and the initial control vector h₀; the nonlinear operations act separately on vector components.

A deep LSTM stacks these computations. The control-state sequence produced by one layer becomes the input sequence of the next. The parser uses 3 layers, each with 256 units. Separate parameter sets handle encoding and decoding, allowing the input reader and output generator to learn different transformations.

Assign probabilities to entire tree sequences

The decoder does not choose a tree in a single indivisible decision. It predicts each output symbol conditional on the sentence and the symbols already generated. The probability of a complete answer combines those sequential decisions.

P(B | A) = ∏ₜ₌₁ᵀᴮ P(Bₜ | A₁, …, A_Tₐ, B₁, …, Bₜ₋₁) = ∏ₜ₌₁ᵀᴮ softmax(Wₒh_Tₐ₊ₜ)ᵀδ_Bₜ

A denotes the input sequence, and B denotes the output sequence. Tₐ and Tᴮ are their respective lengths. Aᵢ is an input symbol at position i; Bₜ is the target output symbol at step t. The product symbol ∏ combines the probabilities across output positions.

In the second expression, h_Tₐ₊ₜ is the relevant top-layer state after the input has been processed and decoding has advanced to step t. Wₒ maps that state into scores for output symbols. Softmax turns those scores into a probability distribution. The superscript T denotes transpose, while δ_Bₜ is a selector vector whose active entry corresponds to Bₜ. Their product extracts the probability assigned to the required symbol.

The paper describes this probability using the conceptual sequence formed by the input followed by the output, while using different LSTM parameters for the respective portions. The important conditional structure is that the complete input and the preceding output symbols inform the next prediction.

A special end-of-sequence symbol tells the decoder when to stop. Without a stopping symbol, predicting successive symbols would not by itself specify a distribution over complete answers of varying lengths. This is especially relevant to trees because their serialized representations do not all have the same length.

Training maximizes the average log probability assigned to the correct target sequence for each input. Stochastic gradient descent adjusts the parameters using that objective. The supervision therefore comes from the whole serialized analysis, even though its probability is decomposed into local symbol predictions.

Add attention over the encoder states

Without attention, the decoder must depend heavily on the compressed information transferred from the encoder. Attention adds another source: representations associated with the individual input positions remain available during output generation.

Let hᵢ be the encoder state for input position i and dₜ the decoder state at output step t. The attention score is:

uᵢᵗ = vᵀ tanh(W′₁hᵢ + W′₂dₜ)

The scalar uᵢᵗ measures how strongly the current decoding state matches input position i under the learned scoring function. The vector v and matrices W′₁ and W′₂ are learned parameters. The transpose on v forms a scalar from the transformed combination of encoder and decoder information.

Scores are normalized across the input positions:

aᵢᵗ = softmax(uᵗ)ᵢ

The vector uᵗ contains the attention scores for all input positions at output step t. Softmax converts them into weights, and aᵢᵗ is the weight assigned to position i. The full vector aᵗ is the attention distribution used for that output step.

The weighted input representation is:

d′ₜ = ∑ᵢ₌₁ᵀᴬ aᵢᵗhᵢ

The summation ranges across the input sequence of length Tᴬ. Each encoder state hᵢ contributes according to its attention weight aᵢᵗ. The resulting vector d′ₜ summarizes the input information selected for the current decoding step. Its prime distinguishes this attention-derived vector from the decoder’s own state dₜ.

The authors concatenate d′ₜ and dₜ. That combined representation supports the output prediction and is passed into the subsequent recurrent computation. The decoder therefore has both a record of its own progress and a newly selected view of the input.

Encoder and decoder hidden representations both have dimensionality 256 in the reported experiments. Accordingly, the attention transformations operate between compatible spaces. The architecture does not impose a rule requiring attention to move monotonically through the sentence. The observed ordered movement is something learned under this task.

Initialize and regularize the network

Word embeddings represent vocabulary items as learned vectors. The authors investigate both random initialization and initialization from vectors trained separately. Their pretrained vectors use the skip-gram approach associated with Efficient Estimation of Word Representations in Vector Space.

The pretraining corpus contains 10B words, and the vectors have dimensionality 512. These vectors initialize the input embedding layer; they do not remain fixed. Parsing training can change them, allowing the initial lexical representation to adapt to the supervised task.

When training on the small WSJ collection, the authors insert 2 dropout layers between adjacent LSTM layers. The corresponding system is LSTM+A+D. Dropout is not used indiscriminately across every reported setting: its main role here is regularization when the annotated training collection is small.

This distinction prevents a misleading reading of the attention result. The strongest small-data configuration combines attention with dropout, while the large-data configuration uses LSTM+A. The experiments separately examine the contribution of dropout, so the paper does not require readers to infer its role from the architecture names alone.

Build the training collections

The small-data experiment uses the standard WSJ training collection, containing 40K sentences. It tests whether a general sequence learner can compete using the familiar human annotations instead of a newly created large training resource.

The expanded collection begins with available treebanks, which are corpora paired with grammatical analyses. The authors use OntoNotes version 5, the English Web Treebank, and the corrected Question Treebank. After reserving evaluation material, these sources contribute roughly 90K annotated training sentences. The WSJ portion of the Penn Treebank is included within OntoNotes, so these names should not be interpreted as entirely separate sources without overlap.

The authors then sample sentences from news on the web and process them with their reimplementations of BerkeleyParser and ZPar. A sentence is retained when both produce the same tree. This exact-agreement requirement supplies a practical confidence criterion without requiring another human annotation pass.

Selection changes the data distribution. The parsers agree more often on short sentences, so simply retaining every agreement would overrepresent them. The authors resample to resemble the sentence-length distribution of the WSJ training set. This adjustment is part of the method, not a peripheral cleaning detail: it counteracts a bias introduced by the confidence rule itself.

The resulting high-confidence corpus combines approximately 11M selected sentences with the human annotations. The large automatically parsed collection is described as 250M tokens. An earlier collection, called the BerkeleyParser corpus, instead uses approximately 7 million web-news sentences annotated by BerkeleyParser alone, combined with the roughly 90K human-annotated sentences.

Decode and reconstruct the answer

At inference time, beam search maintains a limited collection of candidate output sequences as generation proceeds. Its purpose is to avoid committing immediately to every locally preferred symbol. The beam width controls how many candidates remain under consideration.

The reported results generally use beam size 10, while the authors also test narrower beams. Once generation ends, the serialized sequence is interpreted as a tree. If its brackets are unbalanced, the authors insert brackets at the beginning or end to make the structure balanced.

This repair procedure is deliberately simple. It does not constitute a grammar-based search over all possible corrections. The overall method therefore keeps the central prediction procedure general while relying on a small structural adjustment for the relatively uncommon cases in which the generated sequence cannot directly be read as a balanced tree.

Experiments and results

What is evaluated

The authors use EVALB, the standard evaluation tool named in the paper, to score constituency analyses. The reported metric is F1, which balances recovery of reference constituents with avoidance of unsupported predicted constituents. A high score requires getting the hierarchical groupings right, rather than merely generating a plausible-looking string.

Development results use section 22 of the Penn Treebank, while the final test results use section 23. These roles matter throughout the discussion. A development score can guide choices such as beam width or regularization; the held-out test score supports the final comparison. Scores from the different sections should not be interchanged.

The main comparisons include BerkeleyParser variants using self-training, ensembles, or both, along with the transition-based parser discussed in Fast and Accurate Shift-Reduce Constituent Parsing. The paper also relates its setup to semisupervised parsing work such as Effective Self-Training for Parsing. These comparisons locate the results among approaches that exploit more than the basic manually annotated training collection.

The authors explicitly note a difference in training conditions. Their largest training collection contains hundreds of millions of tokens, while the earlier comparison systems were not reported as trained at that scale. The results therefore test a combination of architecture, supervision strategy, and data volume. They are compelling evidence that this combination works, but they do not isolate architecture quality under identical large-data conditions.

Learning from the small WSJ collection

The most direct test of learning efficiency trains only on WSJ. The basic LSTM sequence-to-sequence approach performs poorly even when dropout and early stopping are available. Attention changes the outcome: the individual LSTM+A+D system obtains 88.3 F1 on section 23, and the ensemble obtains 90.5.

WSJ section 23 constituency parsing with WSJ-only training

The attention ensemble reaches the BerkeleyParser comparison, while the individual system remains lower.

WSJ section 23 constituency parsing with WSJ-only trainingLSTM+A+D, individual: 88.3LSTM+A+D, individual88.3BerkeleyParser: 90.4BerkeleyParser90.4LSTM+A+D, ensemble (this paper): 90.5LSTM+A+D, ensemble (this paper)90.5
The numbers
System or settingF1
LSTM+A+D, individual88.3
BerkeleyParser90.4
LSTM+A+D, ensemble (this paper)90.5

The ensemble consists of 5 LSTM+A+D systems. Its result supports the authors’ statement that the general approach can match a standard parser using the same training data. The distinction between the individual system and the ensemble remains important, because their computational requirements differ.

This experiment also prevents a simple explanation in which neural parsing succeeds only after an enormous increase in annotated examples. The small-data attention system is useful without the synthetic corpus. At the same time, its individual-system test result leaves substantial room for improvement, so the experiment should not be read as showing that attention makes training volume irrelevant.

Scaling with automatically annotated sentences

The earlier BerkeleyParser corpus already showed that the plain sequence-to-sequence approach could learn from a large automatically labeled collection. That system reaches 90.5 F1 on WSJ section 23. The result encouraged the authors to investigate a stronger supervision-selection procedure and an attention-based architecture.

With the high-confidence corpus, an individual LSTM+A reaches 92.5 F1 on section 23. The paper reports that this exceeds the previously strongest individual and ensemble results. An ensemble of 5 LSTM+A systems reaches 92.8.

WSJ section 23 constituency parsing after high-confidence training

The individual attention system is already strong, and ensembling improves the reported result further.

WSJ section 23 constituency parsing after high-confidence trainingLSTM+A, individual: 92.5LSTM+A, individual92.5LSTM+A, ensemble (this paper): 92.8LSTM+A, ensemble (this paper)92.8
The numbers
System or settingF1
LSTM+A, individual92.5
LSTM+A, ensemble (this paper)92.8

The individual-system result is central to the paper’s practical argument. The strongest claim does not depend entirely on combining several separately trained predictors. A single attention-based parser achieves the reported leading result, which makes the subsequent speed discussion more relevant to an actual deployment choice.

The authors interpret the teacher–student comparison as evidence for the usefulness of imperfect synthetic supervision. Their suggested explanation is that the student’s different architecture allows it to treat some teacher mistakes as noise. The evaluation supports the outcome—stronger independent test performance—but does not directly identify which errors were ignored or how that happened internally.

Output validity

The parser typically generates a structurally readable tree without a grammar-specific decoding constraint. Under WSJ-only training, it produces malformed outputs for 25 development sentences out of 1700, reported as 1.5%. With the full high-confidence collection, the count is 14, reported as 0.8%.

These figures measure output well-formedness, not constituency accuracy. A balanced tree can still contain incorrect phrase boundaries or labels. Conversely, an output with a bracket error may preserve much useful structure. The analysis is valuable because it distinguishes learning the basic serialized format from predicting the correct grammatical analysis.

All 14 unbalanced outputs from the high-confidence system correspond to sentences or fragments lacking appropriate ending punctuation. The authors connect this pattern to the scarcity of such inputs during training. The result identifies a concrete weakness associated with input conditions rather than a uniformly distributed failure to learn nesting.

Questions and web text

The authors also evaluate outside the main WSJ test. The question evaluation uses 1000 held-out Question Treebank sentences. The web evaluation uses the first half of each English Web Treebank domain, totaling 8310 sentences.

On the question set, LSTM+A trained with the high-confidence collection obtains 95.7 F1. The best reported in-house BerkeleyParser result is 96.2. The neural parser therefore performs well but does not win this comparison.

On the web set, LSTM+A obtains 84.6 F1. The earlier web-parsing comparison cited in the paper reports 83.5, and the authors’ BerkeleyParser trained on human annotations obtains 84.4. BerkeleyParser trained with a large corpus reaches 84.8, which is higher than the attention system’s result.

These comparisons support transfer beyond conventional news sentences while also showing that the leading WSJ result does not imply universal superiority. The source of additional automatic text is news, and the human-annotated component includes other material. The experiment therefore examines held-out performance across different text types, rather than adaptation from a collection containing no related annotation at all.

Throughput under specified conditions

The speed experiment uses a multi-core CPU, batches of 128 sentences, and a generic decoder that the authors describe as unoptimized. At beam size 1, LSTM+A processes over 120 WSJ sentences per second across sentence lengths.

The comparison cited in the paper reports 100 sentences per second using a GPU, with inputs restricted to fewer than 40 words. On that restricted development subset, the comparison system obtains 89.7 F1, while the attention parser at beam size 1 obtains 93.7.

These observations make the speed claim concrete, but the experimental conditions should remain attached to it. Batched throughput is not the same measurement as response time for an isolated sentence. Hardware, sentence restrictions, and decoding settings also differ in the cited comparison. The supported conclusion is that the proposed parser can be fast under the reported conditions while retaining strong accuracy.

What the ablations show

Attention changes learning under scarce supervision

The most consequential comparison removes attention. On WSJ alone, the basic sequence-to-sequence LSTM does not reach a useful level of parsing performance, despite regularization and early stopping. With attention, the same broad input-to-output formulation becomes viable.

The authors report that attention speeds learning of the parsing mapping, improves generalization, and avoids the overfitting behavior they observed without it. The interpretation is consistent with the architecture: the decoder can consult encoded positions rather than relying completely on information compressed into its recurrent state.

This is a stronger finding than simply observing that the attention system has the best final score. The comparison changes an architectural component directly relevant to information access. Still, the small-data conclusions concern the tested configurations. They do not establish that no alternative non-attention architecture could learn effectively from the same annotations.

Dropout matters in the small-data setting

On the WSJ development set, LSTM+A without dropout obtains 86.5 F1. LSTM+A+D obtains 88.7. The authors describe dropout as an important addition when training from the small human-annotated collection.

WSJ section 22 constituency F1 with and without dropout

Dropout substantially improves the attention parser when training uses only WSJ.

WSJ section 22 constituency F1 with and without dropoutLSTM+A: 86.5LSTM+A86.5LSTM+A+D (this paper): 88.7LSTM+A+D (this paper)88.7
The numbers
System or settingF1
LSTM+A86.5
LSTM+A+D (this paper)88.7

The result supports treating attention and regularization as separate contributions. Attention makes the small-data approach learn effectively; dropout improves its generalization further. The architecture name LSTM+A+D captures this combined setting, but the controlled comparison shows why the additional component belongs there.

The paper does not present an equally broad investigation of dropout across every large-data configuration. Its evidence is strongest for the regime in which the authors actually use it. This is enough to justify the reported choice without claiming that dropout has the same effect regardless of training volume.

Pretrained vectors help, but do not explain everything

The authors compare pretrained and randomly initialized embeddings in both main data regimes. With the high-confidence corpus, the development score is 93.3 with pretrained vectors and 92.9 with random initialization. The paper reports the change as 0.4.

For WSJ-only LSTM+A+D, the corresponding development scores are 88.7 and 88.4, a reported change of 0.3. The benefit is consistent, but the randomly initialized systems remain close to their pretrained counterparts.

This comparison narrows the explanation for the headline results. The large 10B-word pretraining corpus supplies useful lexical information, but the observed advantage from that initialization is small relative to the broader architectural and data changes under investigation. The experiment also clarifies that the vectors are an initialization choice, not a frozen external parser hidden inside the system.

Target simplification and input order

Replacing part-of-speech labels with XX improves F1 by about 1 point. The authors find this notable because conventional parsers typically benefit from including the original tags in training. For this sequence-generation setup, predicting those extra distinctions appears to make the evaluated task harder.

The result should be interpreted with the metric in view. It does not show that part-of-speech information has no grammatical value. It shows that explicitly generating the original labels is unnecessary for this evaluation and that removing them helps the tested system recover constituency structure.

Input reversal also helps. Without reversal, development F1 is lower by about 0.2 absolute. The reported effect is modest, but all main results use the beneficial setting. Reversal changes how the recurrent encoder makes context available at different positions, which also matters when interpreting the attention visualizations.

Search effort has a limited effect

Beam size 10 is used for the main decoding results. Reducing the beam to 2 lowers development F1 by 0.2. Beam size 1 lowers it by 0.5, with the resulting score reported as 92.8. Increasing the beam beyond 10 brings no additional improvement.

These comparisons indicate that the system’s accuracy does not depend heavily on retaining a large collection of partial outputs. That matters because narrower search makes decoding cheaper. The speed experiment consequently uses beam size 1 instead of the beam width associated with the main result reporting.

The finding does not imply that search is irrelevant in every structured prediction task. It is evidence about this trained decoder and this evaluation. Within that setting, most of the useful predictive work appears to have been learned well enough that expanded search adds relatively little.

Longer sentences are not the expected failure point

The authors group development examples by sentence length and compare BerkeleyParser, the basic LSTM, and LSTM+A. They report the F1 change between evaluations including sentences up to length 30 and those including sentences up to length 70.

The change is 1.3 for BerkeleyParser, 1.7 for the basic LSTM, and 0.7 for LSTM+A. Attention therefore shows the smallest decline under this analysis. Even the non-attention sequence system degrades only somewhat more than BerkeleyParser.

These are comparisons between cumulative length limits, rather than measurements of a single narrowly defined long-sentence group. They support the claim that sentence length does not cause the severe collapse one might have expected from the sequence formulation. They do not establish performance on arbitrarily long inputs.

Attention reveals an orderly but contextual process

The visual analysis shows sharply concentrated attention that generally progresses through the sentence in order. As a terminal is consumed, the attention focus advances. The authors describe behavior resembling a learned stack procedure, while emphasizing that it is not simply a conventional stack decoder.

The qualification matters. Because the input is reversed, the encoder state at a position contains information about words that follow that position in ordinary sentence order. Attention to a position therefore accesses a contextual representation, not an isolated word. The authors also report examples in which words are skipped.

This analysis offers a useful view of learned behavior, but it does not prove a complete symbolic account of the computation. Its strongest contribution is observational: a system without an explicit parsing stack develops an attention pattern that is closely coordinated with progress through the serialized tree.

Limitations

Limits the authors identify

The authors explicitly acknowledge the simplicity of unknown-word handling. Every word outside the 90K vocabulary maps to UNK. Distinct unfamiliar words therefore lose their separate identities at the input representation level. They suggest that this choice may hold back the final result, while retaining it to keep the framework general.

They also identify a training-distribution weakness in malformed outputs. The high-confidence system’s unbalanced trees occur on sentences or fragments without suitable final punctuation, and such inputs are scarce in training. This is a concrete limit on the claim that tree structure is learned reliably. Reliability depends partly on encountering representative input conditions.

The paper recognizes that WSJ is not representative of the full range of web language. Its additional question and web evaluations address that concern, but do not remove it. The web result is useful and competitive, while the best in-house BerkeleyParser result remains higher. The question result also trails the strongest BerkeleyParser comparison.

The training comparison is another stated qualification. The new system uses a very large collection of automatic annotations, while the cited specialized parsers were not trained under equivalent conditions at that scale. The leading result is therefore a result for the complete training approach. It is not a clean demonstration that the architecture would outperform every alternative if all systems received identical data and computational resources.

Limits visible in the experimental design

A careful reader should distinguish general-purpose machinery from absence of task information. The encoder–decoder architecture is not designed around constituency rules, but the training targets are trees, the serialization is chosen for trees, and the output is reconstructed as a tree. The system learns from abundant examples of the desired grammatical conventions.

Likewise, domain independence describes the intended reusability of the learning approach. It does not mean that the reported parser has been shown to work equally well in every domain. The automatic text comes from web news, and the evaluations cover particular English collections. The paper does not establish multilingual performance or transfer to unrelated annotation conventions.

The data-efficiency claim is also comparative. The standard WSJ collection is small by the neural-training standards discussed in the paper, but it still contains 40K annotated sentences. The pretrained-vector condition also benefits from a separate text corpus. The random-initialization comparisons help show that this pretraining is not the whole explanation, yet they do not turn the experiment into learning grammar without substantial supervision.

The high-confidence collection is selected by agreement, which can preserve shared mistakes. Exact agreement says that the teachers produce the same answer; it does not independently verify that answer. Resampling addresses the observed preference for short sentences, but the paper does not establish that it corrects every selection bias introduced by agreement filtering.

The claim that the student exceeds its teachers is supported by the independent evaluation. The proposed reason is less settled. The authors suggest that architectural differences help the student disregard teacher noise, but they do not trace a collection of known teacher errors through training to demonstrate that mechanism directly. Other aspects of the combined data and learning procedure are not separately eliminated as contributors.

Output validity and explanation remain partial

The bracket-repair rule ensures a limited structural property. It can make a sequence balanced by adding brackets at an edge. It cannot guarantee that phrase boundaries, labels, or attachments are correct, and it does not show that the corrected structure is the best possible repair.

The low malformed-output rate should therefore be read alongside F1 rather than as a substitute for it. The parser mostly learns how to express a tree, while the constituency score measures how closely that tree matches the reference. These are related achievements with different meanings.

The attention display has a similarly bounded interpretive role. It shows where the attention mechanism places weight and how that distribution changes during generation. Because encoder states carry context, the display does not directly reveal every input influence on a prediction. The paper’s own discussion of reversed input and skipped words rules out an overly literal reading of the focus as a perfect word-by-word explanation.

Finally, the speed result measures a specific operating point. It uses batching, a multi-core CPU, and beam size 1. Those conditions demonstrate practical throughput, but do not establish every deployment property. Memory consumption, isolated-request latency, and behavior under very different sentence distributions are not comprehensively characterized. The paper’s contribution is strong evidence that accurate general sequence parsing can also be fast, instead of a complete deployment study.

What came after

The later citing works connect this paper to several research directions: attention, reusable sequence generation, neural parsing, structured output, and the investigation of learned syntax. A citation establishes a relationship in the research record, but not necessarily direct adoption of the parser’s architecture or training procedure. The connections below therefore distinguish a later work’s stated subject from a stronger claim that it reused a particular mechanism.

Attention as an architectural subject

Attention Is All You Need places attention at the center of its stated architectural proposition. The connection to Grammar as a Foreign Language is especially relevant because the earlier parsing experiments show attention doing more than offering a convenient visualization. It changes learning effectiveness under scarce supervision and supports strong structured prediction. That makes this paper an informative predecessor in a research direction concerned with how much computation attention can support. The citation alone does not establish which parsing result, equation, or implementation choice the later work adopted.

Hierarchical Attention Networks for Document Classification moves the attention question into document classification. The application named in its title differs from generating constituency trees. The useful conceptual connection is the availability of representations at different input positions for a later decision. In the parsing paper, those decisions are successive structural symbols. The later title identifies a document-level classification setting, illustrating the wider range of tasks associated with attention without implying that the parser itself became a classifier.

Is Attention Interpretable? takes up a question that is already visible in the parsing analysis. The earlier paper uses attention patterns to inspect learned behavior, while also explaining why a position’s contextual state cannot be equated with an isolated word. The later work’s title makes interpretability itself the object of inquiry. Its citation can be understood against that tension: attention offers an accessible internal quantity, but the meaning of that quantity requires care. No particular conclusion from the later investigation is needed to see why the question matters here.

Parsing and the representation of syntax

Constituency Parsing with a Self-Attentive Encoder returns to the same parsing task while naming a different encoding approach. This creates a particularly direct thematic connection. Grammar as a Foreign Language tests whether constituency trees can be generated by a general attention-enhanced sequence learner; the later title identifies attention within a constituency parser’s encoder. The shared concern is how learned representations support phrase structure. The citation does not by itself show that the later system retained the earlier tree serialization, decoder, or synthetic-data selection procedure.

Simple and Accurate Dependency Parsing Using Bidirectional LSTM Feature Representations concerns dependency parsing, where the analysis centers on relationships among words rather than constituent nesting. Its title identifies bidirectional LSTM representations as part of that approach. The connection is therefore to neural representations for syntax, not evidence that dependency parsing is the same output problem as constituency parsing. Keeping that distinction clear helps explain the earlier paper’s broader relevance without extending its results beyond the task it evaluated.

Transition-Based Dependency Parsing with Stack Long Short-Term Memory is also useful to read alongside the earlier paper’s architectural argument. Its title explicitly brings a stack into an LSTM-based parsing approach. Grammar as a Foreign Language, by contrast, investigates whether recurrent state and attention can learn useful structural behavior without a parsing stack being built into the decoder. These titles identify different ways to combine learning with structural organization. They do not establish a universal preference for either choice.

Sequences, pointers, and structured answers

Pointer Networks is connected by citation and by the question of relating output decisions to input positions. In the parsing paper, attention weights select a contextual view of the input while the decoder emits symbols from its output inventory. The later title identifies pointers as its subject. That is enough to locate a relevant research direction, but not enough to claim that the parsing attention mechanism and the later network perform identical operations.

Incorporating Copying Mechanism in Sequence-to-Sequence Learning addresses a capability named directly in its title: copying within sequence learning. The parsing paper’s treatment of unfamiliar words and its separation between input words and output symbols make the relationship between input content and generated output a natural comparison point. The earlier experiments do not themselves evaluate a copying mechanism, so the later citation should not be read as evidence that copying contributed to their scores.

Abstract Syntax Networks for Code Generation and Semantic Parsing links the discussion to semantic parsing and code generation. Its title names applications in which generated answers have explicit structure. The transferable question from Grammar as a Foreign Language is how that structure should enter the learning problem: through a serialized answer, through the prediction machinery, or through some combination. The later work’s named focus on abstract syntax identifies a related direction without establishing that it used the same answer representation.

Text2Event describes its task as controllable generation from sequences into structures for event extraction. The wording of its title places it near the central representational move of the parsing paper: an ordinary text input can lead to a structured output through generation. The specific event representation and controls are not established by the citation list, so the supported connection is the shared sequence-to-structure problem instead of an asserted implementation lineage.

Learning syntax and evaluating sequence prediction

Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependencies asks a different question from whether a supervised parser obtains a high constituency score. Its title concerns what LSTMs can learn about syntax-sensitive relationships. That distinction matters because the parsing system receives explicit tree supervision. Its success demonstrates an effective learned mapping, but does not by itself settle every question about the grammatical knowledge contained in recurrent representations. The later work belongs to the broader effort to examine that knowledge more directly.

Does String-Based Neural MT Learn Source Syntax? similarly separates producing successful sequence outputs from understanding what syntactic information a learner represents. In Grammar as a Foreign Language, syntax is the requested output. In the question named by the later title, syntax is investigated within a translation setting. Reading those questions together prevents a common overextension: evidence that a network can learn supervised trees is not automatically evidence about everything it learns when trained for another objective.

Sequence-to-Sequence Learning as Beam-Search Optimization names the relationship between learning and search as its focus. The parsing paper trains through conditional sequence likelihood and then examines beam width during decoding. Its finding that wider search offers limited additional benefit is an empirical observation about that setup. The later title points to a related but distinct research question about how sequence learning and beam search should interact.

These later connections show why the paper remains useful beyond its strongest WSJ score. It provides a concrete case in which general sequence learning handles hierarchical output, attention changes learning under limited supervision, and selected automatic labels support a strong independent evaluation result. The later titles extend the surrounding questions to other architectures, other forms of syntax, and other structured tasks. What carries across most securely is the research strategy: choose an inspectable output representation, test how the learner accesses its evidence, and separate predictive success from stronger claims about structure, explanation, and generality.

Cite

Cite as Oriol Vinyals, Lukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever and Geoffrey Hinton. 2014. Grammar as a Foreign Language. arXiv:1412.7449.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1412.7449 · arXiv 1412.7449

@misc{vinyals2014grammar,
  title = {{Grammar as a Foreign Language}},
  author = {Oriol Vinyals, Lukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever and Geoffrey Hinton},
  year = {2014},
  doi = {10.48550/arxiv.1412.7449},
  eprint = {1412.7449},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1412.7449}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/vinyals-2014-grammar-foreign-language/

References

32 references, from the paper's own bibliography.

  1. Ilya Sutskever, Oriol Vinyals, and Quoc VV Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems, pages 3104–3112, 2014. our card
  2. Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. our card
  3. Thang Luong, Ilya Sutskever, Quoc V Le, Oriol Vinyals, and Wojciech Zaremba. Addressing the rare word problem in neural machine translation. arXiv preprint arXiv:1410.8206, 2014. our card
  4. Sébastien Jean, Kyunghyun Cho, Roland Memisevic, and Yoshua Bengio. On using very large target vocabulary for neural machine translation. arXiv preprint arXiv:1412.2007, 2014. our card
  5. Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. OpenAlex ↗ · Scholar ↗
  6. Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013. our card
  7. Eduard Hovy, Mitchell Marcus, Martha Palmer, Lance Ramshaw, and Ralph Weischedel. Ontonotes: The 90% solution. In Proceedings of the Human Language Technology Conference of the NAACL, Short Papers, pages 57–60. ACL, June 2006. our card
  8. Slav Petrov and Ryan McDonald. Overview of the 2012 shared task on parsing the web. Notes of the First Workshop on Syntactic Analysis of Non-Canonical Language (SANCL), 2012. OpenAlex ↗ · Scholar ↗
  9. John Judge, Aoife Cahill, and Josef van Genabith. Questionbank: Creating a corpus of parse-annotated questions. In Proceedings of ICCL & ACL'06, pages 497–504. ACL, July 2006. OpenAlex ↗ · Scholar ↗
  10. Mitchell P. Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. Building a large annotated corpus of english: The penn treebank. Computational Linguistics, 19(2):313–330, 1993. our card
  11. Zhenghua Li, Min Zhang, and Wenliang Chen. Ambiguity-aware ensemble training for semi-supervised dependency parsing. In Proceedings of ACL'14, pages 457–467. ACL, 2014. OpenAlex ↗ · Scholar ↗
  12. Slav Petrov, Leon Barrett, Romain Thibaux, and Dan Klein. Learning accurate, compact, and interpretable tree annotation. In Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the ACL, pages 433–440. ACL, July 2006. our card
  13. Muhua Zhu, Yue Zhang, Wenliang Chen, Min Zhang, and Jingbo Zhu. Fast and accurate shift-reduce constituent parsing. In Proceedings of the 51st Annual Meeting of the ACL (Volume 1: Long Papers), pages 434–443. ACL, August 2013. our card
  14. Slav Petrov. Products of random latent variable grammars. In Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the ACL, pages 19–27. ACL, June 2010. OpenAlex ↗ · Scholar ↗
  15. Zhongqiang Huang and Mary Harper. Self-training PCFG grammars with latent annotations across languages. In Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, pages 832–841. ACL, August 2009. OpenAlex ↗ · Scholar ↗
  16. David McClosky, Eugene Charniak, and Mark Johnson. Effective self-training for parsing. In Proceedings of the Human Language Technology Conference of the NAACL, Main Conference, pages 152–159. ACL, June 2006. our card
  17. Zhongqiang Huang, Mary Harper, and Slav Petrov. Self-training with products of latent variable grammars. In Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing, pages 12–22. ACL, October 2010. OpenAlex ↗ · Scholar ↗
  18. David Hall, Taylor Berg-Kirkpatrick, John Canny, and Dan Klein. Sparser, better, faster gpu parsing. In ACL, 2014. OpenAlex ↗ · Scholar ↗
  19. Michael Collins. Three generative, lexicalised models for statistical parsing. In Proceedings of the 35th Annual Meeting of the ACL, pages 16–23. ACL, July 1997. our card
  20. Dan Klein and Christopher D. Manning. Accurate unlexicalized parsing. In Proceedings of the 41st Annual Meeting of the ACL, pages 423–430. ACL, July 2003. OpenAlex ↗ · Scholar ↗
  21. James Henderson. Inducing history representations for broad coverage statistical parsing. In Proceedings of the 2003 Human Language Technology Conference of the North American Chapter of the ACL, pages 24–31, May 2003. OpenAlex ↗ · Scholar ↗
  22. James Henderson. Discriminative training of a neural network statistical parser. In Proceedings of the 42nd Meeting of the ACL (ACL'04), Main Volume, pages 95–102, July 2004. OpenAlex ↗ · Scholar ↗
  23. Ivan Titov and James Henderson. Constituent parsing with incremental sigmoid belief networks. In Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics, pages 632–639. ACL, June 2007. OpenAlex ↗ · Scholar ↗
  24. Ronan Collobert. Deep learning for efficient discriminative parsing. In International Conference on Artificial Intelligence and Statistics, 2011. OpenAlex ↗ · Scholar ↗
  25. Richard Socher, Cliff C Lin, Chris Manning, and Andrew Y Ng. Parsing natural scenes and natural language with recursive neural networks. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pages 129–136, 2011. OpenAlex ↗ · Scholar ↗
  26. Adwait Ratnaparkhi. A linear observed time statistical parser based on maximum entropy models. In Second Conference on Empirical Methods in Natural Language Processing, 1997. our card
  27. Michael Collins and Brian Roark. Incremental parsing with the perceptron algorithm. In Proceedings of the 42nd Meeting of the ACL (ACL'04), Main Volume, pages 111–118, July 2004. our card
  28. Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. our card
  29. Jan Chorowski, Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. End-to-end continuous speech recognition using attention-based recurrent nn: First results. arXiv preprint arXiv:1412.1602, 2014. OpenAlex ↗ · Scholar ↗
  30. Nal Kalchbrenner and Phil Blunsom. Recurrent continuous translation models. In EMNLP, pages 1700–1709, 2013. our card
  31. Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. arXiv preprint arXiv:1411.4555, 2014. our card
  32. Zoubin Ghahramani. A neural network for learning how to parse tree adjoining grammar. B.S.Eng Thesis, University of Pennsylvania, 1990. OpenAlex ↗ · Scholar ↗