---
title: "Recurrent Neural Network Grammars — Dyer 2016"
description: "Recurrent Neural Network Grammars build sentences and phrase trees together, improving parsing and word prediction on English and…"
canonical: "https://research.elamur.ai/free/en/papers/dyer-2016-recurrent-neural-network-grammars/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/dyer-2016-recurrent-neural-network-grammars/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2016](https://md.research.elamur.ai/free/en/papers/2016/) / Recurrent Neural Network Grammars

# Recurrent Neural Network Grammars

Paper · 2016 · Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros et al.

**Authors:** [Chris Dyer](https://md.research.elamur.ai/free/en/authors/chris-dyer/), [Adhiguna Kuncoro](https://md.research.elamur.ai/free/en/authors/adhiguna-kuncoro/), [Miguel Ballesteros](https://md.research.elamur.ai/free/en/authors/miguel-ballesteros/) and [Noah A. Smith](https://md.research.elamur.ai/free/en/authors/noah-a-smith/) · **Year:** 2016 · **Venue:** Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**504** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2289899728) · [Cited by **270** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/dyer-2016-recurrent-neural-network-grammars/cited-by/) · [Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies](https://aclanthology.org/volumes/N16-1/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/N16-1024/)
- [PDF](https://aclanthology.org/N16-1024.pdf)
- [DOI 10.18653/v1/n16-1024](https://doi.org/10.18653/v1/n16-1024)
- [arXiv 1602.07776](https://arxiv.org/abs/1602.07776)
- [OpenAlex](https://openalex.org/W2289899728)

Citations: OpenAlex, 2026-10-14.

## Summary

A sentence arrives as a line of words, but its parts fit together as phrases. A noun phrase can sit inside a verb phrase, which in turn belongs to a larger clause. The authors of *Recurrent Neural Network Grammars* ask whether a system can benefit from building those phrases explicitly as it generates the words. Their system, called an RNNG, assigns a probability to a sentence and its phrase tree together. It builds the tree from the root downward and generates words from left to right. When it chooses a word, the enclosing phrase labels are already available. When it finishes a phrase, it combines the children into a vector that can inform subsequent decisions.

The grammar uses a short inventory of operations. It can open a labeled phrase, generate a word, or close the most recently opened phrase. Closing can gather any number of children, so a tree with several siblings under one parent can be handled directly. Recurrent neural networks summarize the developing tree and the history of the derivation. This lets the grammar use information beyond a phrase’s own label, relaxing the independence assumptions of a [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/). A companion parser uses the same tree-building operations with a sentence supplied in advance. It either picks actions greedily to produce a tree or samples trees for the generator to score.

The distinction matters because scoring a known sentence–tree pair is easier than finding the best tree or scoring the sentence alone. The authors use the companion parser to propose trees, then apply the generator’s joint probabilities in different ways. For parsing, they select the sampled tree with the highest joint score. For evaluating the grammar as a [language model](https://md.research.elamur.ai/free/en/concepts/language-model/), they estimate the sentence’s probability with importance sampling, which accounts for how often the proposal parser would draw each tree.

A corrigendum reports results after a repair to phrase composition. The corrected generator achieves phrase-structure parsing F1 of 93.3 on the English Penn Treebank test set, §23, and 86.9 on the Chinese Treebank 5.1 test set. Its corresponding held-out per-word perplexities are 105.2 and 148.5. The authors report leading parsing results on those benchmarks and lower perplexity than the sequential LSTM comparison in both languages. The repair had a particularly clear effect on parsing. In the original implementation, each completed phrase lost its rightmost child when its vector was computed. Restoring that child gives the comparison direct relevance to the paper’s proposal that information from complete phrases should travel upward through the tree.

## Deep dive: Recurrent Neural Network Grammars

Recurrent Neural Network Grammars build sentences and phrase trees together, improving parsing and word prediction on English and Chinese treebanks. · about 38 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A word history has more than one organization

A predictor that reads from left to right can carry forward a summary of the words it has seen. The paper takes the success of recurrent neural networks at this task as its starting point. Their history can extend back through the sentence, and earlier recurrent systems had already improved on established approaches to predicting text. The authors also point to conditional generation in translation, image captioning, and dialogue. In those settings a system produces words in order while drawing on an input such as a source sentence or an image. [Show, Attend and Tell](https://md.research.elamur.ai/free/en/papers/xu-2015-show-attend-tell-neural-image/) is among the examples the paper cites.

Running through a sequence gives the network an order in which to update its memory. It leaves the network to learn how the parts of that sequence group together. A phrase tree supplies a different organization. It represents a phrase as the parent of its words and subphrases, and it allows a larger phrase to contain that whole unit. A newly arriving word can belong to several nested phrases at once. The authors’ question is how to put that organization to work while keeping the recurrent network’s ability to draw on a long history.

In the noun phrase used to illustrate composition, *the hungry cat*, the word *cat* sits next to *hungry* in the sequence. In a phrase tree, both have a direct connection to the noun phrase that contains them. These are different views of the same material. A recurrent predictor can learn from the word order. A phrase-building predictor can also carry a representation of the phrase as a unit once it has encountered its children. This gives the architecture a place to combine information that, in a sequential system, would have to be recovered from the history of state updates.

The paper describes earlier research showing that sequential recurrent networks can recognize context-free languages and languages beyond that class. Its proposal concerns what the architecture encourages the system to learn from data. A system built around constituent boundaries already has operations for starting, completing, and reusing phrases. The training problem is then to learn when those operations are appropriate, what words to generate, and what information to retain from the completed phrases. This is the sense in which the authors describe a syntactic inductive bias. The structure of the system favors certain ways of organizing what it learns.

#### What the grammar contributes to prediction

In a conventional probabilistic context-free grammar, a nonterminal such as a noun-phrase label can be expanded by applying a rule. The rule probabilities are local to the symbol being expanded. That locality makes the grammar convenient to work with, but it also ties together decisions that might benefit from different information. Two noun phrases may have the same category while occurring in very different contexts. A grammar that can refer to the derivation already carried out can give their possible continuations different probabilities.

The RNNG keeps a recursive process for constructing well-formed phrases. It puts the probabilities of the individual construction decisions in a neural network. This preserves the usefulness of opening a phrase and building its contents under a label, while giving the probability of a particular decision access to context beyond that label. The distinction helps explain the paper’s use of the word *grammar*. The action system specifies how a legal tree can be assembled. The learned parameters determine which of those legal continuations the system favors in context.

Earlier syntactic work had already treated the words and their structure as outcomes of the same generation process. The paper points to work on computing probabilities for an initial stretch of words under a stochastic grammar. A probability for such a stretch has to account for the different ways a grammar could have produced it, including analyses that are still incomplete. This line of work gives important context for the RNNG’s own need to combine probability across trees. [Computation of the Probability of Initial Substring Generation by Stochastic Context-Free Grammars](https://md.research.elamur.ai/free/en/papers/jelinek-1991-computation-probability-initial-substring-generation/)

How the tree is constructed determines when its information becomes available. In a bottom-up system, the operations combine items that are already present. A word can therefore be generated before the label of a phrase containing it has been introduced. The authors also discuss left-corner systems, which can provide some information from higher in the tree. As the paper notes about Henderson’s earlier work, a left-corner derivation generally has yet to establish the full path from the root to a word when that word is generated. Henderson’s system is close to the RNNG in a different respect. It uses a neural representation of a potentially unbounded history to make generation decisions.

The authors identify a separate line of work that was already building trees downward from a root. They cite Charniak and Roark as examples of generation through recursive nonterminal expansion. They also describe later work by Charniak that used hand-designed features over a syntactic derivation history, with a random forest choosing the next action. In an RNNG, recurrent encoders and learned phrase representations provide the features used to make the corresponding decisions. [A Maximum-Entropy-Inspired Parser](https://md.research.elamur.ai/free/en/papers/charniak-2000-maximum-entropy-inspired-parser/) and [Probabilistic Top-Down Parsing and Language Modeling](https://md.research.elamur.ai/free/en/papers/roark-2001-probabilistic-top-down-parsing-language/)

#### Where transition-based parsing fits

[Parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) assigns a structure to an observed sentence. A transition-based parser does so by making a series of small changes to a working state. Each action continues a partly built tree, and the completed run determines the output. The RNNG paper draws on earlier shift-reduce parsers, which also use a stack and an input buffer. Those data structures give the new method familiar machinery for holding items and consuming words. The authors change what a phrase-building action can do and when it can happen. Earlier phrase-structure shift-reduce systems often worked with trees transformed into binary branching form. The new action inventory can introduce a parent early and later attach all of its children in one operation. [A Classifier-Based Parser with Linear Run-Time Complexity](https://md.research.elamur.ai/free/en/papers/sagae-2005-classifier-based-parser-linear-run/) and [Fast and Accurate Shift-Reduce Constituent Parsing](https://md.research.elamur.ai/free/en/papers/zhu-2013-fast-accurate-shift-reduce-constituent/)

The paper draws an analogy with Earley’s algorithm. Its prediction operation introduces nonterminals, and its scanning operation advances through terminals. A phrase can therefore be anticipated and then completed after its contents have been processed. The analogy concerns the order of the operations. An RNNG assigns its action probabilities using representations of its own history, which matters when trying to share computation across competing analyses. The paper also relates its tree traversal to the linearized representations in [Grammar as a Foreign Language](https://md.research.elamur.ai/free/en/papers/vinyals-2014-grammar-foreign-language/).

Another precedent concerns the neural representation of the stack itself. Earlier work in [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/) used a stack LSTM so that a parser could obtain a running neural representation of a stack as entries were added and removed. A dependency structure and a phrase tree encode different objects, but the problem of maintaining a changing stack representation is shared. The RNNG also needs a way to obtain an embedding for a completed phrase of arbitrary width, since the object returned to its stack can include any number of already completed subtrees. [Transition-Based Dependency Parsing with Stack Long Short-Term Memory](https://md.research.elamur.ai/free/en/papers/dyer-2015-transition-based-dependency-parsing-stack/)

Tree-shaped neural networks supplied a further precedent. The paper describes their earlier uses in discriminative parsing, sentiment analysis, and sentence representation. In those applications, tree structure could organize the computation of a vector useful for a prediction. The particular role proposed here is to compute those vectors during generation, so that information from a completed phrase helps determine how the sentence and its tree develop. The authors also identify a design issue with reusing earlier composition functions directly. Some work assumed binary branching, and the authors wanted both variable numbers of children and an explicit role for the parent label. [Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank](https://md.research.elamur.ai/free/en/papers/socher-2013-recursive-deep-models-semantic-compositionality/) and [Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks](https://md.research.elamur.ai/free/en/papers/tai-2015-improved-semantic-representations-tree-structured/)

### The method, step by step

#### Open a phrase, process its children, close it

A stack holds the unfinished parts of the analysis alongside complete pieces of the tree. An open phrase appears on the stack as a marker with a category label. Words and completed subtrees above it are the children that have been built so far. The most recently opened marker is the one the next closing operation will use. This last-in, first-out convention makes nesting straightforward. A phrase opened inside another phrase finishes before its parent does.

For the parsing version, the stack starts empty and the input buffer holds the sentence. The buffer is read from the front. An action called `NT(X)` puts an open marker labeled `X` on the stack. Here `X` is a nonterminal, a label for a category that may have children. `SHIFT` takes the next word from the buffer and places it on top of the stack. The word is a terminal, a leaf of the tree. `REDUCE` takes words and completed subtrees off the stack until it reaches the nearest open marker. It removes the marker too and puts back a single item representing the completed constituent. The children inside that item keep their original order in the sentence.

Consider the paper’s noun phrase, *the hungry cat*. With `NP` open, the successive words can enter the stack as its children. Closing the phrase turns the noun-phrase marker and the items above it into a completed subtree. If a larger phrase was opened earlier, this subtree is now available as one of that larger phrase’s children. The tree-building operation is the same when a child is itself a substantial phrase. Each completed child occupies one stack entry by the time its parent is reduced.

The number of children is determined when the phrase closes. Opening `NP` commits to a label and a place in the tree. The system can subsequently add another child or decide it has enough and close the phrase. Since `REDUCE` gathers all items above the marker, there is no need for an intermediate binary node to join an initial pair before adding the next child. A unary phrase, which has a single child, uses the same mechanism as a wider phrase.

The generator works with a buffer of words it has produced. Its word action is `GEN(x)`, where `x` is the selected word. This action appends the word to the output and pushes it onto the stack. `NT(X)` and `REDUCE` carry out the same structural work as in parsing. When the root has been completed and is the sole stack item, the generation run has produced both a tree and its sentence. In parsing, completion also requires the input buffer to be empty.

How the grammar builds a sentence and its tree The steps in order.

#### Restrict the choices to well-formed transitions

The paper describes the grammar through its symbol inventories and the parameters that set its probabilities.

```
(N, Σ, Θ)
```

`N` is the finite set of nonterminal labels, `Σ` is the finite set of terminals, and `Θ` denotes the trainable neural parameters. The parentheses group these into the formal description of the grammar. The terminal and nonterminal sets have no members in common. The action inventory and its constraints determine what kinds of structures can be built. The parameters encode preferences among actions without an explicit table of phrase-rewrite probabilities.

In the parser, let `B` be the remaining input buffer, `S` the stack, and `n` the number of still-open nonterminals. The authors denote the legal actions in that state by `𝒜ᴅ(B, S, n)`, where `D` identifies the discriminative parser. A label can be opened only while there is an unread word and `n < 100`. A shift also needs an unread word, and it needs at least one open nonterminal. This gives every shifted word a place in the tree.

A reduce action requires a completed item at the top of the stack, which prevents closing a phrase with no children. It also requires either at least two open nonterminals or an empty buffer. If there is another open nonterminal underneath, the phrase being closed can become a child of it. If the only open phrase is the root, closing it is permitted after the last word has been read. Once the buffer is empty, open ancestors can still be completed in succession. The restrictions govern which choices enter the distribution at each state as well as the shape of the output.

The generator’s legal set is `𝒜ɢ(T, S, n)`, where `G` identifies generation and `T` is the output buffer. With no unread input to check, the stated conditions for generating a word are that a phrase be open. Reducing also requires an open phrase and a completed item at the top of the stack. A generator can decide to close its root as soon as those conditions permit. The completion of the root determines the length of the output, which the parser already knows from its input.

The parser’s depth bound addresses a practical issue that can arise even for a short sentence. A unary node can wrap another node without adding a word. Arbitrarily long chains of such nodes would allow infinitely many possible trees for a fixed string. The bound restricts how far the parser can descend through open nodes. The paper’s runtime claim is about executing a derivation. With constant-time stack pushes and pops, the total stack work grows linearly with the number of nodes constructed. One reduction can have many pops, but each completed child is removed when it is incorporated into its parent. For a single parse with fixed maximum depth, the output size is bounded linearly in the input length. Computing sentence probabilities by considering multiple possible derivations is a separate inference problem.

#### Obtain the action sequence from an annotated tree

Supervised training starts with trees supplied by a [treebank](https://md.research.elamur.ai/free/en/topics/treebanks/). For each tree, the authors specify a traversal that descends through the children from left to right and completes each child before moving to its next sibling. Entering an internal node emits `NT` with the node’s label. Visiting a leaf emits the action for the word. Leaving an internal node emits `REDUCE`. A tree therefore singles out a particular action sequence. In the other direction, following that sequence reconstructs the tree.

The notation `a(x, y)` names the generator sequence for sentence `x` and tree `y`. Its leaf actions name the words to generate. The notation `b(x, y)` names the corresponding parser sequence, whose leaf actions are shifts. In the parser sequence, the identity of the shifted word follows from the input buffer and the shifts performed so far. This distinction later permits the two systems to score the same tree under different objectives.

The paper omits preterminals from the output trees. In these treebanks, preterminals are the [part-of-speech tags](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) immediately above words. The transition system could represent such tags with the ordinary opening and closing operations. Leaving them out shortens the action sequence and reduces the number of labeled actions. The paper also notes that standard parsing evaluation does not score preterminal prediction accuracy. The discriminative parser nonetheless uses predicted tags as input information. It obtains English tags from the Stanford Tagger and Chinese tags from Marmot. Those input features have a different role from adding tag nodes to the tree the parser predicts. [Feature-Rich Part-of-Speech Tagging with a Cyclic Dependency Network](https://md.research.elamur.ai/free/en/papers/toutanova-2003-feature-rich-part-speech-tagging/)

A known tree gives the trainer both a target action and the preceding state for every position in the sequence. In generation, the objective is to maximize the likelihood of the annotated corpus under the joint distribution of words and trees. Each training pair supplies a particular tree, so this objective can be evaluated directly from the actions of that tree. For the discriminative parser, the objective maximizes the conditional likelihood of the reference actions with the words supplied in advance. The two training objectives reflect the different information each system is expected to predict.

#### Represent the partial derivation in a neural state

The generator maintains learned vector summaries of the words it has emitted, the stack, and its past actions. An embedding is a vector used to represent an item such as a word, an action, or a phrase. An LSTM, short for long short-term memory, is a recurrent network that updates a state as it reads a sequence of these vectors. The word output and the action history both grow by appending new items, which makes them suitable for ordinary recurrent encoders.

The stack poses a different problem. Its top can change by the addition of a word or an open category, or by the removal of several items when a phrase finishes. The stack LSTM preserves the state associated with earlier stack positions, so a pop can recover the summary for the newly exposed position. When a completed phrase is pushed, its vector becomes the next input to the stack LSTM. The vector represents the phrase as a constituent, while the resulting stack state represents it in the context of the other items still on the stack.

The paper combines the summaries as follows.

```
uₜ = tanh(W [oₜ ; sₜ ; hₜ] + c)
```

`uₜ` is the state vector used to score actions at step `t`. `oₜ` summarizes the output buffer `Tₜ`, `sₜ` summarizes the stack `Sₜ`, and `hₜ` summarizes the actions taken before step `t`. The square brackets and the separators inside them indicate concatenation, which places the vectors end to end. `W` is a learned matrix multiplying that concatenated vector, and `c` is a learned bias vector added to the result. `tanh` applies the hyperbolic tangent to each component. The subscript `t` refers throughout to the state before choosing the action at that step.

These summaries give the decision process different views of its past. The output buffer preserves the order of the words already generated, including words now inside completed subtrees. The stack exposes open phrases and the completed units still relevant to building them. The action history records the sequence of decisions, including which labels were opened and where a reduction occurred. Much of the same event history can be expressed through more than one view. Their distinct representations allow a decision to draw on lexical sequence, current constituency, and construction history in different ways.

There is also a difference between access to the whole derivation and storage of its details. Every preceding action can affect the recurrent summary. At scoring time the network receives a vector, and the learned recurrent updates determine how much information survives there. The action probabilities can consequently depend on an extensive history, while their actual use of it depends on training and on what the encoders retain.

#### Compose a completed constituent

The composition function runs when a phrase closes. It takes the embeddings of the children and the embedding of the phrase label. In the *the hungry cat* example, one LSTM reads the noun-phrase label and then the children in sentence order. Another starts with the same label and reads the children in reverse order. In both passes, the label is established before the network sees the children. The paper’s motivation is that the label can orient the composition towards information relevant to that kind of phrase.

After the two passes, the final states are joined together, transformed by learned weights and a bias, and passed through a hyperbolic tangent. The result is the vector pushed for the completed phrase. A later reduction can consume that same vector as a child embedding. The computation is recursive across the tree even though the LSTMs inside any one reduction read a sequence of siblings.

For a phrase with several children, the two passes see the same child embeddings in opposite orders. A child that appears late in one pass appears early in the other. The order of the children is therefore visible to the composition function. The parent label is visible in the same position in each pass, and the length of the sequence is determined by the actual children. These properties matter to the architecture’s intended behavior. A noun phrase and a verb phrase can be composed under different label embeddings, and a long phrase can be represented by the same procedure as a short one.

The resulting vector is separate from the recorded tree. The tree retains the child nodes that the algorithm grouped under the label. The vector is the representation passed along for future prediction. This distinction explains why a defect in computing the vector can affect accuracy without making the transition procedure emit structurally malformed trees. The corrigendum identifies such a defect, in which the rightmost child dropped out of the input to composition.

#### Turn action scores into probabilities

A derivation can be treated as a sequence of choices. For a specified sentence and tree, the generator assigns a joint probability by multiplying the probabilities of those choices.

```
p(x, y) = ∏ₜ₌₁^|a(x,y)| p(aₜ ∣ a₍<t₎)
```

`p(x, y)` is the joint probability of word sequence `x` and phrase tree `y`. `a(x, y)` is their generator action sequence, and `|a(x,y)|` is its length. The product sign `∏` means to multiply the factors, starting at step `1` and ending at that length. `aₜ` is the action taken at step `t`, and `a₍<t₎` is the sequence of actions strictly before `t`. The vertical bar within `p(aₜ ∣ a₍<t₎)` indicates that the probability is conditional on the preceding actions.

To choose an action, the generator compares a learned score for each legal action in the current state. In softmax notation, with the action bias written inside the score, the normalization is as follows.

```
p(aₜ ∣ a₍<t₎) = exp(rₐₜᵀ uₜ + bₐₜ) / ∑ₐ′∈𝒜ɢ(Tₜ,Sₜ,nₜ) exp(rₐ′ᵀ uₜ + bₐ′)
```

`rₐₜ` is the learned vector for the selected action `aₜ`, and `bₐₜ` is its learned scalar bias. `rₐₜᵀ uₜ` is the dot product between that vector and the state vector, with `ᵀ` indicating the transpose. `exp` is the exponential function. The summation sign `∑` adds the exponential scores for candidate actions `a′` belonging to the legal set `𝒜ɢ(Tₜ,Sₜ,nₜ)`. Here `Tₜ` is the generated word buffer, `Sₜ` the stack, and `nₜ` the count of open nonterminals at step `t`. The slash divides the selected action’s exponential score by the sum over legal actions. Candidates outside that set are excluded before normalization.

The paper first describes word generation as a choice of `GEN(x)`. In the implemented factorization, the structural decision to generate a word is made first. Once `GEN` has been chosen, the word is selected conditional on the current state. This keeps the structural action distribution from having to contain a competing entry for every word. The probability of generating a particular word includes the probability of taking the word action and the probability assigned to the word at the subsequent lexical choice.

For this lexical choice, the authors group the vocabulary into classes. A class-factored softmax chooses a class and then chooses a word within it. The groupings come from the greedy agglomerative clustering procedure of Brown and colleagues. The paper describes a number of classes on the scale of the square root of the vocabulary size and gives the resulting cost of the word prediction step as follows.

```
O(√|Σ|)
```

`O` denotes order of growth, `Σ` is the vocabulary, `|Σ|` is its size, and `√` denotes the square root. The comparison is with the order of growth for a full-vocabulary softmax.

```
O(|Σ|)
```

Here the same `O` and `|Σ|` notation expresses growth in direct proportion to vocabulary size. These are the paper’s complexity statements for the lexical prediction step. Tree construction, neural state updates, and inference over alternative trees are additional work.

#### Use the sentence to propose analyses

The discriminative parser replaces the generated-output summary with an encoding of the input buffer. It starts with the whole sentence available and shifts words as required by the derivation. For a decision about the next action, the stack and action history describe the work already done, while the input buffer represents words still to come. This can be useful for deciding which phrase to open or whether a phrase already has all its children. The training objective teaches the parser to predict transitions conditional on access to the sentence.

During greedy decoding, the parser selects its most probable legal action at each step. An early decision can affect all later states. A separate option is ancestral sampling. The parser draws an action from its current distribution, applies it, and draws the next action from the distribution in the resulting state. A complete draw yields a tree. Multiplying the probabilities used at each draw gives the proposal probability of that tree, since the traversal associates each tree with a unique parser action sequence. The same conditional parser can therefore serve as a fast predictor and as a source of competing analyses for the generator.

#### Estimate a sentence probability or find a high-scoring parse

The generator’s joint probability answers how much probability goes to a particular pairing of the sentence and a tree. Evaluating word prediction calls for the probability of the sentence regardless of its tree. That probability is obtained by summing the joint probabilities of compatible pairs.

```
p(x) = ∑ᵧ∈𝒴(x) p(x, y)
```

`p(x)` is the marginal probability of sentence `x`. `𝒴(x)` is the set of trees with terminal sequence `x`, and `y` is a tree in that set. The summation `∑` adds the joint term `p(x, y)` for every such tree. This is a sum across possible explanations of the same observed words.

Different histories can lead to related partial trees while leaving different recurrent states. Because the next action distributions then differ, the paper treats exact summation as intractable. The same difficulty affects the search for the maximum a posteriori tree, or MAP tree. For a fixed sentence, that is the tree of highest conditional probability under the generator. Its ranking is the same as the ranking by joint probability, since the sentence probability would be the common normalization for every tree.

The proposal parser makes the problem manageable by drawing trees using the words as guidance. Its conditional distribution is written `q(y ∣ x)`. The importance-sampling argument requires positive proposal probability wherever the joint probability is positive. It also requires efficient sampling and a known proposal probability for a sampled tree. Those last properties follow from the sequence of conditional action draws and the unique traversal of each tree.

A tree generated by the proposal comes with an importance weight.

```
w(x, y) = p(x, y) / q(y ∣ x)
```

`w(x, y)` is the weight for tree `y` with sentence `x`. `p(x, y)` is the joint score from the generator, and `q(y ∣ x)` is the probability with which the proposal draws that tree given the sentence. The slash indicates division. An analysis that is common under the proposal is sampled often, and the denominator accounts for that frequency. An analysis that is uncommon under the proposal can carry a larger weight when it is drawn.

```
p(x) = ∑ᵧ∈𝒴(x) q(y ∣ x) w(x, y) = 𝔼q(y ∣ x)[w(x, y)]
```

`p(x)` is again the marginal probability, and the summation ranges over the tree set `𝒴(x)`. `q(y ∣ x)` is the proposal probability of a tree `y` and `w(x, y)` is its importance weight. `𝔼q(y ∣ x)` denotes expectation under that proposal distribution. Multiplying each weight by its proposal probability recovers the joint term for that tree. This is the identity that allows a proposal based on the complete sentence to assist in estimating a probability defined by a generator that sees words as it produces them.

The expectation becomes a sample average in the implementation of the estimate.

```
p(x) ≈ (1/N) ∑ᵢ₌₁ᴺ w(x, y⁽ⁱ⁾)
```

`N` is the number of sampled trees in this equation, a different use of the letter from the nonterminal inventory. `i` indexes those draws from `1` through `N`, and `y⁽ⁱ⁾` is the tree at draw `i`, sampled from `q(y ∣ x)`. The sum adds the weights for sentence `x`, and multiplication by `1/N` turns the sum into their average. The approximation sign indicates that the sample mean estimates the marginal `p(x)`.

For parsing, the sample plays a different role. The generator scores each proposed tree, and the reported procedure keeps the tree with the greatest joint probability among those drawn. The importance weight is used for the sum, while the joint score is used for the ranking. A low proposal probability can increase a tree’s importance weight without making it the generator’s preferred analysis. The distinction follows from the questions being answered. One asks how to account for the total probability across trees, and the other asks which available tree has the highest score.

### Experiments and results

#### Training data and settings

The English experiments use the Penn Treebank, abbreviated PTB. The authors train on § 2–21, use §24 for validation, and evaluate on §23. English words that occur only once in the training corpus are mapped using the Berkeley parser’s unknown-word classes. The preprocessing preserves differences in letter case. Numbers beyond the singleton treatment are left in their original form. The paper explains this choice as following parsing practice, since the same generator is evaluated both for phrase structure and for word prediction. The Berkeley parser is part of the work associated with [Improved Inference for Unlexicalized Parsing](https://md.research.elamur.ai/free/en/papers/petrov-2007-improved-inference-unlexicalized-parsing/).

The Chinese corpus is the Penn Chinese Treebank Version 5.1, abbreviated CTB. Its training material comes from § 001–270 and 440–1151. The development split is § 301–325, and the evaluation split is § 271–300. The Chinese experiments use a single unknown-word class. The English and Chinese perplexities therefore concern the words as represented in their respective preprocessed corpora. Each value belongs to its own split, language, and vocabulary treatment.

The discriminative parser uses a hidden dimension of 128 and 2-layer LSTMs. The authors report that larger hidden dimensions lowered validation performance for this parser. The generator uses a hidden dimension of 256, also with 2-layer LSTMs. Dropout, which regularizes learning by temporarily suppressing some activations during training, is tuned using validation likelihood. The selected rate is 0.2 for the discriminative parser and 0.3 for the generator. The sequential LSTM comparison in language modeling also uses a selected dropout rate of 0.3.

During training, stochastic gradient descent operates at a learning rate of zero.1. The authors follow Glorot and Bengio’s recommendations for initializing the parameter values. Those settings belong to the reported comparison, since the systems being compared differ in their hidden dimensions and training objectives. The corrected implementation is available in the authors’ `clab/rnng` repository, which they identify as the code for reproducing the repaired results.

#### Parsing a held-out sentence

The parsing evaluation asks how closely the output’s labeled constituents agree with those of the annotated tree. A constituent has a category and covers a span of words. Precision measures the share of predicted constituents that match the reference. Recall measures the share of reference constituents that the parser recovers. F1 combines precision and recall into one score, with higher values indicating better agreement. A parser can miss some phrases while correctly finding others in the same sentence, and the metric registers that partial success.

The authors report the greedy discriminative parser alongside the generative reranker. Some earlier shift-reduce systems in the comparison use beam search, which retains alternative partial derivations. The RNNG generator is evaluated with a candidate set obtained by sampling. For each English test sentence, the paper describes taking 100 independent samples from a flattened version of the discriminative distribution. Each probability is raised to the power α, which the authors set to 0.8, and the distribution is normalized again. A power below unity places relatively more probability on less likely alternatives, encouraging diverse candidate trees. The authors chose the value based on sample diversity on the development set.

The generator then scores the sampled trees under its joint distribution, and the best-scoring one is evaluated. The authors use the same methodology for Chinese and report the same broad pattern of stronger parsing by the generative system. As a comparison of complete systems, this includes the difference between a greedy conditional predictor and a joint scorer that chooses among many proposed trees. A candidate can be an alternative the conditional parser assigns some probability to even if it would never appear on that parser’s greedy path.

The paper situates the parsing results among discriminative, generative, and semisupervised systems. These categories matter when comparing claims about performance. A semisupervised system can draw on training material beyond the supervised treebank setup, and a reported ensemble combines predictions from multiple systems. The paper specifically identifies the result from *Grammar as a Foreign Language* that uses WSJ training material alone and a single system. This keeps that reference point distinct from the results the authors discuss for substantially larger semisupervised training sets.

The corrected generator achieves F1 of 93.3 on the English PTB §23 test split and 86.9 on the Chinese CTB 5.1 §271–300 test split. The chart shows the corrected system in the two benchmark settings. Each result measures agreement with the annotations of its own test corpus.

Corrected generative RNNG phrase-structure F1 on the PTB and CTB test sets The corrected generator reaches the leading reported parsing result on each benchmark.

**The numbers**

| System or setting | F1 |
| --- | --- |
| English PTB §23 (this paper) | 93.3 |
| Chinese CTB 5.1 §271–300 | 86.9 |

The paper’s original conclusion describes the English result as ahead of earlier single supervised generative parsers and places its original Chinese result slightly behind the best generative comparison. The corrigendum updates that record. It reports the repaired parser as achieving the best reported results on both benchmarks in its comparisons. Corpus, training regime, and the correction all matter when interpreting the scope of that claim. The F1 values are test results from the corrected system, while the discussion in the original body was written around the earlier runs.

#### Predicting the held-out words

For the language task, the reported metric is held-out perplexity per word. The calculation starts with sentence log probabilities, normalizes the aggregate by the number of words, changes the sign, and exponentiates. The stop symbol is excluded from the word count. A lower perplexity means that the system assigned higher probability to the held-out words under that evaluation. This is distinct from how frequently the highest-probability word prediction matches the next word, since perplexity uses the probability given to the observed word even when another word was favored.

For a sequential LSTM, the probability is based on its sequence of word predictions. For the RNNG, the grammar puts probability on sentence–tree pairs. Its sentence score needs to reflect the total probability across trees, estimated by the procedure described earlier. Using just the top tree would measure the score of one analysis of the sentence. The proposal parser helps evaluate the syntactic generator, but its own conditional tree probabilities cannot provide a word perplexity.

The paper reports a comparison of sequential and syntactic language systems and identifies the tuned sequential LSTM as the neural reference point. The corrected generative RNNG attains per-word perplexity of 105.2 on the English PTB §23 test set. On the Chinese CTB 5.1 test set, §271–300, it attains 148.5. The authors report an advantage over sequential recurrent prediction in both languages. They also note that the repair slightly worsened English perplexity relative to the faulty implementation, while the corrected English system still outperformed the optimized sequential LSTM. Exact numeric scores for that baseline and the corresponding difference are unnecessary to the ranking the authors report. The corrected perplexities give the absolute results under the paper’s per-word scoring and preprocessing conventions.

The paper also presents random text samples from sequential and syntactic generation. Such examples illustrate the kind of output each approach can produce. The held-out perplexities are the quantitative comparison, and the parsing scores provide a second evaluation of the same generative approach. A sentence can receive substantial probability even if the most probable proposed tree differs from the reference in some constituents. Conversely, ranking the best tree well for a fixed sentence is compatible with assigning that sentence a low overall probability. The two evaluations probe different consequences of the shared joint distribution.

### What the ablations show

#### The composition repair exposes the role of the rightmost child

The paper’s most direct investigation of a component comes from repairing the implementation. The intended composition function sends the phrase label and every child to the two LSTMs. In the erroneous implementation, the rightmost child was replaced by another embedding of the phrase label. For *the hungry cat*, the forward composition thus received the noun-phrase label, *the*, *hungry*, and the noun-phrase label again. The embedding of *cat* was absent from that input. The same omission applied to the rightmost child of every constituent.

A phrase can still be represented and pushed onto the stack under that implementation. Its children also remain part of the recorded tree. The problem is in the information that the representation carries forward. If the final child is a word, that word’s embedding fails to enter the composition. If it is a subtree, the vector made from that subtree is lost at the point where it would have contributed to its parent. The effect can therefore extend beyond the phrase where the error occurs. An ancestor can receive a child vector that was already formed from incomplete information.

Any wording or structural information registered elsewhere in the system can still contribute to subsequent decisions. The action history has one view of how the derivation reached the current state. The generator’s word buffer has another view of the emitted words. The missing contribution is specifically the route through which a child enters its parent’s vector. This makes the repair relevant to the claim that composition is a useful part of tree building. It restores the information at the place the architecture was designed to use it.

The error affected both RNNG variants, since both use phrase composition when they reduce. The corrected parsing results improve considerably, and the authors interpret the change as evidence that upward propagation of child information is important. The comparison is between complete composition and an accidental corruption that simultaneously discards a child and duplicates the category label. It supports the value of the full operation under the paper’s setup. The comparison cannot isolate the effect of the omitted child from the effect of the extra label, or identify which types of phrases benefit most.

The change in English perplexity gives a further qualification. English parsing improves with repaired composition, while English per-word perplexity increases slightly relative to the erroneous run. The repaired system still has the better perplexity in the sequential LSTM comparison. The contrast between the responses of the two metrics is informative. A constituent error affects labeled-span agreement directly, whereas sentence probability adds contributions across analyses. A change that helps the generator rank trees can affect the sum of their probabilities in a different way. The paper reports the empirical pattern without establishing a more detailed account of its cause.

#### The conditional and joint systems differ in several ways

The paired parsing experiments compare systems with the same general transition inventory and different probability targets. This addresses whether joint generation provides a competitive basis for parsing. The discriminative parser can inspect words that the generator would have yet to produce, so its action decisions have useful lookahead. The generator still wins the reported system comparisons. The authors connect this outcome to Henderson’s suggestion that a larger, less structured conditioning context can be harder to learn and may give a system more opportunity to overfit.

The authors also discuss the comparison with *Grammar as a Foreign Language*. They report that the earlier discriminative approach reached performance similar to the generator with substantially more semisupervised training data. With the same data used by the RNNG, its results were closer to those of the discriminative parser. For the authors, these observations motivate the possibility that joint training is statistically efficient when annotated data are limited.

The experiments do not vary only the objective. The parsers use different hidden dimensions and dropout rates. The full input is available directly to the conditional system, and the greedy and sampled decoding procedures expose the systems to different alternatives. The generator also has word prediction as part of training. These differences leave room for multiple accounts of the outcome. The paper’s comparison gives a reason to investigate statistical efficiency. It does not establish how much of the parsing improvement comes from the objective alone.

The sequential LSTM comparison answers a related question at the level of word prediction. It compares a predictor organized around a running word history with the larger package of syntax-aware choices in the RNNG. The generator includes root-to-leaf labels, recursive phrase composition, a stack encoder, and a history of structural actions. The paper does not report an experiment that removes each element in turn while keeping the other conditions fixed. The baseline establishes the performance of the whole approach on the chosen tests, while the composition repair provides a more focused comparison of how a particular implementation decision matters.

### Limitations

#### Limits and open questions identified by the authors

Exact inference is the central limitation the paper identifies. A specified tree gives a specified derivation, so its joint probability can be scored one step at a time. An observed sentence leaves its tree uncertain. Different histories can carry different probabilities into later decisions, making it difficult to merge analyses and carry out an exact sum or maximization. The proposed approach depends on sampling from a separate conditional parser that can see the whole sentence.

The authors discuss particle filtering as a possible alternative for applications that need left-to-right probabilities. A particle filter would maintain a collection of partial analyses as words arrive. The paper proposes adapting this approach to the RNNG transitions and describes the resulting left-to-right marginalization as potentially running in expected linear time. The experiments with the full-sentence proposal do not demonstrate that alternative. In the reported setup, the benefit of the proposal is precisely that it can use words beyond the current generation position to suggest analyses.

The authors also point to problems that involve generating a sentence conditioned on an input. They propose replacing sequential generation with the RNNG’s syntactic process in such settings and cite earlier translation work on conditional syntactic generation. Their experiments train and evaluate on phrase-annotated sentences. They leave the conditional application as a direction for further work.

A further possibility is to use the grammar in research on human sentence processing. The authors distinguish a grammar that generates in left-to-right order from a processing account that explains how people interpret language over time. A grammar provides structured probabilities that could enter such an account. Establishing a link to actual reading or listening behavior would require a processing proposal and an evaluation of that proposal. The paper offers the grammar as a starting point for this work.

Finally, all the paper’s training runs are supervised by annotated trees. The authors suggest that the joint distribution could in principle support training from words alone through expectation maximization. In that approach, learning would have to account for the uncertain trees while updating the grammar’s parameters. The paper’s supervised training can use a reference derivation directly, and its experiments do not solve that additional inference problem.

#### Limits that follow from the evaluation

The sample-based MAP estimate is limited by the candidate set. If the best tree under the generator is absent from the draw, scoring the candidates perfectly still cannot recover it. The reported F1 therefore describes the proposal and reranker working together. It leaves open how much a better search method or a different proposal would change the result for the same generator. The discussion of flattening motivates more varied draws, but a tree can have positive proposal probability and still be practically difficult to sample.

Marginal estimation has a related sensitivity. A tree with a substantial joint contribution and a small proposal probability can receive a large weight. Whether that tree appears in the finite sample can make a considerable difference to the estimate. The derivation of the estimator explains the correction for the proposal distribution, and the paper motivates conditioning on the whole sentence as a way to reduce variance. The reported perplexities do not establish how the estimates vary across repeated draws or how much sampling would be needed for stable estimates on other corpora. Exactness also relies on the support condition stated in the method, which is especially relevant whenever restrictions on possible derivations differ between two systems.

The benchmark scope limits claims about language modeling more broadly. English and Chinese each have a specified corpus, split, and treatment of uncommon words. A lower perplexity there supports the approach under those conventions. Changing vocabulary handling can change the task because some distinct word forms may share an unknown-word category. The reported comparison also concerns sentences under a single-sentence evaluation. It supplies no direct test of whether the architecture uses structure across a larger discourse or behaves similarly under other annotation conventions.

The experiments have an analogous scope for constituency. F1 measures agreement with the treebanks’ spans and labels, with preterminals omitted from the predicted output. It does not individually test each nested construction or tell how predictions change as nesting becomes deeper. The transition system can construct unary and wider phrases directly, but the parser deliberately bounds the number of open nonterminals. Its ability to represent a kind of structure and its measured accuracy on examples of that structure are separate questions.

The comparisons also leave the authors’ learning-efficiency explanation open. Establishing how much annotated data the generator saves would require observing performance over different training sizes under comparable prediction and search conditions. The paper instead compares the systems it trained and draws on previously reported comparisons with more training data. Together with the repair, those experiments show that the design works on the reported benchmarks and that phrase composition matters to the resulting parser. They provide limited grounds for attributing the entire improvement to any single choice among joint training, top-down order, recurrent conditioning, and candidate reranking.

### What came after

#### Explicit structure and learned syntax

Several later papers that cite the RNNG return to the question of where syntactic knowledge comes from. [Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependencies](https://md.research.elamur.ai/free/en/papers/linzen-2016-assessing-ability-lstms-learn-syntax/) takes sensitivity to grammatical dependencies as the object of evaluation. This poses a complementary question to the RNNG benchmark. A comparison of perplexities can show which system assigns more probability to held-out text overall. A test of a syntax-sensitive dependency can ask whether a particular relation changes a prediction in the expected way. The two approaches look at language prediction at different levels of detail.

[What Do Recurrent Neural Network Grammars Learn About Syntax?](https://md.research.elamur.ai/free/en/papers/kuncoro-2016-recurrent-neural-network-grammars-learn/) directs the question at the grammar itself. The original architecture makes phrase labels and composed subtrees available. It leaves open what the learned vectors and scoring decisions actually use. The later work’s focus is the learned syntactic behavior of RNNGs, an inquiry that starts where a corpus-level parsing score ends.

[LSTMs Can Learn Syntax-Sensitive Dependencies Well, But Modeling Structure Makes Them Better](https://md.research.elamur.ai/free/en/papers/kuncoro-2018-lstms-can-learn-syntax-sensitive/) brings those two lines of inquiry together. Its stated conclusion allows both a sequential recurrent architecture’s capacity to learn syntactic dependencies and a benefit from explicitly modeling structure. This echoes the original distinction between having the capacity to learn a regularity and designing an architecture that gives the learner a direct way to organize that regularity.

[Transformer Grammars: Augmenting Transformer Language Models with Syntactic Inductive Biases at Scale](https://md.research.elamur.ai/free/en/papers/sartran-2022-transformer-grammars-augmenting-transformer-language/) takes the broad idea of putting a preference for syntax into the predictor and applies it to a Transformer architecture at scale. The connection is at the level of the architectural question. In both cases, the study concerns how explicit structural organization can enter word prediction. The later work moves that question beyond the recurrent encoders used in the RNNG. [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/)

#### Tree construction and tree prediction

[In-Order Transition-based Constituent Parsing](https://md.research.elamur.ai/free/en/papers/liu-2017-order-transition-based-constituent-parsing/) examines a different order of construction for a transition-based constituent parser. The RNNG’s opening action fixes the category before the children are read or produced. An alternative traversal changes when a phrase-building decision occurs relative to the processing of its children. This is a distinct design choice from whether a parser uses explicit constituents at all, and it returns to the original paper’s concern with the information available at each decision.

[Constituency Parsing with a Self-Attentive Encoder](https://md.research.elamur.ai/free/en/papers/kitaev-2018-constituency-parsing-self-attentive-encoder/) approaches constituency through a self-attentive encoding of the sentence. It shares the task of recovering a phrase tree and places the emphasis on how the input is represented for parsing. In the original paper, the representation of the observed words was one component of a system also tracking the stack and action history. The later paper’s focus makes the encoder itself a central choice in the study of constituency parsing.

[Multilingual Constituency Parsing with Self-Attention and Pre-Training](https://md.research.elamur.ai/free/en/papers/kitaev-2019-multilingual-constituency-parsing-self-attention/) addresses constituency across languages using self-attention and pretraining. The RNNG experiments use annotated English and Chinese under their own corpus conventions. The multilingual work is related through the target of constituency prediction, with its scope defined by multilingual evaluation and its emphasis on pretraining. These parsing papers share an output representation with the RNNG without requiring the claim that they adopt its joint sentence-generation procedure.

[Compound Probabilistic Context-Free Grammars for Grammar Induction](https://md.research.elamur.ai/free/en/papers/kim-2019-compound-probabilistic-context-free-grammars/) shares the broader problem of assigning probabilities to syntactic structures and brings grammar induction to the foreground. This connects with the RNNG authors’ outlook on learning from sentences when reference trees are unavailable. The later title identifies a different grammar family for that learning problem. The common question is how to use a probability distribution over possible structures when the structure itself must be inferred.

#### Generation and human comprehension

[Towards String-To-Tree Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/aharoni-2017-string-tree-neural-machine-translation/) places structured output in a conditional generation task. Its direction from a string to a tree is close to the prospect the RNNG authors raise for translation, in which sentence generation would depend on a source input while still producing syntactic structure. The connection lies in treating the structure of the output as part of generation. It leaves the details of the later translation architecture distinct from the RNNG’s unconditional joint probability.

[On the Predictive Power of Neural Language Models for Human Real-Time Comprehension Behavior](https://md.research.elamur.ai/free/en/papers/wilcox-2020-predictive-power-neural-language-models/) studies a different target for language predictions, namely human behavior during comprehension as it unfolds. This is the kind of question the RNNG authors identify when they discuss incremental syntax in their outlook. Predicting behavior adds an empirical target beyond recovering a reference tree or assigning high probability to a held-out sentence.

[Can Language Models Handle Recursively Nested Grammatical Structures? A Case Study on Comparing Models and Humans](https://md.research.elamur.ai/free/en/papers/lampinen-2024-can-language-models-handle-recursively/) narrows the comparison to recursive nesting and explicitly brings humans into the study. Nesting is central to what the RNNG’s stack and recursive composition are designed to represent. The case-study framing revisits that property as an object of evaluation. Where the original work measures the overall results of building phrase structure during generation, the later question concerns behavior on the nested structures themselves.

## Cite

Cite as Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros and Noah A. Smith. 2016. Recurrent Neural Network Grammars. Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/n16-1024](https://doi.org/10.18653/v1/n16-1024) · [arXiv 1602.07776](https://arxiv.org/abs/1602.07776)

```bibtex
@inproceedings{dyer2016recurrent,
  title = {{Recurrent Neural Network Grammars}},
  author = {Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros and Noah A. Smith},
  booktitle = {Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
  year = {2016},
  doi = {10.18653/v1/n16-1024},
  eprint = {1602.07776},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/n16-1024}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
