---
title: "Tree Parsing with Synchronous Tree-Adjoining Grammars (2011)"
description: "How weighted synchronous tree-adjoining grammars restrict translations to specified trees and how an Earley-style algorithm builds the result."
canonical: "https://research.elamur.ai/free/en/papers/buchse-2011-tree-parsing-synchronous-tree-adjoining/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · **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/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/buchse-2011-tree-parsing-synchronous-tree-adjoining/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2011](https://md.research.elamur.ai/free/en/papers/2011/) / Tree Parsing with Synchronous Tree-Adjoining Grammars

# Tree Parsing with Synchronous Tree-Adjoining Grammars

Paper · 2011 · Matthias Büchse, Mark-Jan Nederhof and Heiko Vogler

**Authors:** Matthias Büchse, [Mark-Jan Nederhof](https://md.research.elamur.ai/free/en/authors/mark-jan-nederhof/) and [Heiko Vogler](https://md.research.elamur.ai/free/en/authors/heiko-vogler/) · **Year:** 2011 · **Venue:** Proceedings of the 12th International Conference on Parsing Technologies · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**6** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2149831156) · Cited by **3** papers in our library of more than 163,000 papers whose bibliographies we read · [Proceedings of the 12th International Conference on Parsing Technologies](https://aclanthology.org/volumes/W11-29/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/W11-2903/)
- [PDF](https://aclanthology.org/W11-2903.pdf)
- [OpenAlex](https://openalex.org/W2149831156)

Citations: OpenAlex, 2026-10-14.

## Summary

A translation grammar may describe many ways to build a pair of syntactic trees. During training or translation, the system frequently knows something about one of those trees already. It may have a particular input parse, for example, or a family of permitted output structures. The practical question is how to incorporate that information and keep the surviving derivations available for later computation. Büchse, Nederhof, and Vogler tackle this form of [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) for synchronous tree-adjoining grammars, which build two trees together and can insert structure around a subtree that is already in place.

The authors give the translation grammar explicit states and mark its substitution and adjoining sites with distinct kinds of variables. A second grammar specifies the tree restriction. Its states describe what it expects at each node, and its weights can distinguish among the trees or among different ways of accepting the same tree. The construction combines the states of the two grammars at the places where fragments meet. A substitution needs an agreement at the root of the inserted tree. Adjoining needs agreement both at the root of the inserted fragment and at the opening where the original subtree goes.

The central result is a closure theorem. Start with a weighted synchronous tree-adjoining grammar and a restriction given by a weighted regular tree grammar. Applying the restriction to either side produces a translation that can again be represented by a weighted synchronous tree-adjoining grammar. Its weight for a tree pair is the original translation weight multiplied by the restriction's weight for the tree on the chosen side. The resulting grammar is finite and can serve as the starting point for another restriction.

The paper also gives an Earley-inspired algorithm that begins at the initial states and pursues rule fragments as the restriction permits. It constructs every useful rule of the product grammar while bypassing some rules that could never contribute to a complete derivation. The authors establish a worst-case bound for the deduction phase that is linear in the size of the original grammar's input fragments, with factors depending on the restricting grammar and the number and kinds of sites in a rule. The evidence is formal: a construction, a correctness argument, a complexity analysis, and a worked derivation.

## Deep dive: Tree Parsing with Synchronous Tree-Adjoining Grammars

How weighted synchronous tree-adjoining grammars restrict translations to specified trees and how an Earley-style algorithm builds the result. · 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

#### What a restricted translation needs to retain

A grammar used in statistical [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) can give several derivations for the same result. A derivation records the rules used and how they fit together. A derived tree records the structure those rules build. When a translation grammar builds a pair of trees, different derivations can yield the same pair. This distinction matters whenever the next computation needs to account for all the ways a result can arise.

Consider a translator whose input is a phrase-structure tree. The translation grammar in isolation describes many possible input trees and their corresponding outputs. The translator has a more specific task. It needs the part of that relation compatible with the tree it has received. In the paper's terminology, applying a condition to the input is an input product. Applying a condition to the output is an output product. A condition can describe a single tree or a regular language of trees, meaning a family that a finite-state tree grammar can specify. Weights generalize the condition by allowing an accepted tree to contribute a numerical factor.

One could define the desired relation by inspecting every derivation and retaining the compatible ones. That description leaves the main computational problem unresolved. A finite recursive grammar can describe an unbounded collection of derivations. The paper seeks a finite grammar that describes the restricted collection through reusable rules. With that representation, a subsequent operation can work on the grammar itself. A further product can impose another condition, and projection can select one side of the relation for a subsequent computation.

#### Why adjoining changes the task

The earlier approaches surveyed in the paper work with several kinds of grammatical structure. A synchronous [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/) can produce paired sentences. A tree-to-string transducer can relate a phrase-structure input to a string. Other approaches build two trees. Within this last group, the important distinction for the construction is what the elementary fragments can do when they are combined.

In tree substitution, a fragment has a leaf reserved for another tree. A complete tree fills that position. The result can be checked against a finite-state constraint by agreeing on a state at the joining point. Adjoining also allows an auxiliary fragment to wrap around an existing subtree. The auxiliary fragment has a root and a distinguished leaf, called its foot, where the old subtree is reinserted. A constraint must track the state where traversal enters the auxiliary fragment and the state where traversal resumes in the old subtree. The paper's algebra gives those two requirements separate places in the product state.

Synchronous adjoining adds another responsibility. An adjoining operation on the input side is tied to one on the output side, even if the corresponding sites occupy different positions in their respective fragments. A restriction on the input therefore changes which synchronized choices remain available on the output. The construction has to carry this effect through recursion while preserving the original pairing. The authors cite linguistic motivation and previously reported translation benefits for admitting adjoining. [Synchronous Tree-Adjoining Grammars](https://md.research.elamur.ai/free/en/papers/shieber-1990-synchronous-tree-adjoining-grammars/) · [Synchronous Tree Adjoining Machine Translation](https://md.research.elamur.ai/free/en/papers/deneefe-2009-synchronous-tree-adjoining-machine-translation/)

#### Where the product enters a translation system

The paper identifies grammar estimation, feature weight estimation, and decoding as uses for a restricted derivation grammar. In grammar estimation, rule extraction gives a system a set of candidate rules from translation pairs. The system then needs to assign rule probabilities. One approach chooses a canonical derivation for each training pair and counts rule occurrences in those derivations. This is comparatively inexpensive, and its likelihood interpretation depends on treating the chosen derivations as the actual ones. A training method based on Inside-Outside can account for alternative derivations. To do this, it needs a weighted regular tree grammar for the derivations of the observed pair. An input restriction and an output restriction can give the required collection in applicable grammar formalisms.

Feature weight estimation uses the restricted grammar for a different purpose. A translation system may combine signals from the translation grammar with other evidence, such as a score for the target sentence. The scoring functions receive the source sentence, the candidate target sentence, and its derivation. Each feature has an adjustable weight. In the minimum-error-rate training setup described by the authors, a system needs the highest-ranked derivations for a specified source. The product imposes the source condition, and an n-best procedure then ranks derivations within the resulting collection. The paper notes that the source condition is usually a string in this setting, with a phrase-structure tree possible in systems that take parsed input. [Discriminative Training and Maximum Entropy Models for Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/och-2002-discriminative-training-maximum-entropy-models/) · [Statistical Syntax-Directed Translation with Extended Domain of Locality](https://md.research.elamur.ai/free/en/papers/huang-2006-statistical-syntax-directed-translation-extended/)

For decoding, the paper distinguishes ranking individual derivations from choosing an output by its total score across derivations. A sentence may receive contributions from several derivations, so the single best derivation can point to a different candidate from the one with the largest aggregate score. The authors write the decoding objective in the following form.

```
ê = argmaxₑ ∑_d ∏_i hᵢ(e, d, f)^λᵢ
```

Here `f` is the given foreign sentence, `e` is a candidate English sentence, and `d` is a derivation. The index `i` ranges over the features. The function `hᵢ` evaluates a feature on the candidate, derivation, and input, and `λᵢ` is its weight. The product `∏` combines feature contributions for a derivation. The sum `∑` combines contributions across derivations for the candidate, and `argmaxₑ` chooses an output `ê` with the greatest aggregate score.

The paper describes that decoding problem as NP-hard even for simple grammars. One approximation it discusses, crunching, limits the sum to a finite collection of high-ranking derivations for the source. This gives the restricted grammar a role in decoding as well as in training. It defines what is eligible before the ranking procedure chooses a manageable collection. The theorem concerns the product that imposes the condition. The ranking and truncation have their own role further along in the computation.

#### What earlier work already covered

Some of the earlier tree-parsing methods considered by the authors handle elementary fragments joined by substitution. Huang and colleagues give a procedure for finding the best derivation of a tree-to-string transducer restricted to an input tree. Graehl and colleagues compute a weighted grammar of derivations for a tree-to-tree transducer restricted to a pair of trees. Eisner describes how to obtain the derivations of a synchronous tree-substitution grammar for a given tree pair. These contributions differ in what they return. A best derivation makes a single choice. A derivation grammar retains alternatives that a later calculation may need. [Statistical Syntax-Directed Translation with Extended Domain of Locality](https://md.research.elamur.ai/free/en/papers/huang-2006-statistical-syntax-directed-translation-extended/)

The formalism in Nederhof's work on weighted tree parsing already supports a weighted intersection with a regular tree language. It uses weighted linear index grammars, which are equivalent to tree-adjoining grammars in the monolingual setting considered. According to the paper, adding synchronization to that approach runs into a rule-height restriction. The interaction makes the resulting synchronous formalism less expressive than synchronous tree-adjoining grammars.

Maletti's earlier construction uses extended tree transducers with explicit substitution to represent synchronous tree adjoining. Special symbols encode where to carry out adjoining, and a separate evaluation gives those symbols their effect. The construction handles restrictions on either side by regular tree languages in an unweighted setting. The question left open for the authors was how to combine a regular weighted restriction with synchronized adjoining while returning a grammar that could take part in the same operations again.

### The method, step by step

#### Describe the restriction as a grammar of trees

The method starts with two grammars. The translation grammar builds a pair. The restriction grammar assigns a weight to a single tree. The paper calls the latter a weighted regular tree grammar, or WRTG. It consists of a finite collection of states, an alphabet of tree labels, an initial state, and weighted rules. A state records the requirement currently placed on a node. Once the grammar chooses a rule for that node, the rule supplies the states required at the children, in their given order.

```
H = (P, Σ, r₀, R, p)
```

Here `H` is the restriction grammar in the general definition. `P` is its state set, `Σ` is its tree alphabet, `r₀` is the initial state, `R` is the rule set, and `p` assigns a non-negative real weight to each rule. The paper uses `R_H` and `p_H` for the restriction's rules and weights when the translation grammar also appears in the same construction.

```
ρ = r → σ(r₁, …, rₖ)
```

Here `ρ` denotes a restriction rule. The arrow separates its starting state `r` from the fragment it licenses. The label `σ` comes from `Σ`. The states `r₁, …, rₖ` go to the `k` ordered children. At a leaf the rule calls for no child states. An alphabet may specify how many children a label takes. The paper starts with ordered trees and also records each node's actual number of children so that its definitions can refer to the shape of the tree at hand.

To express that shape, the authors use positions. A position is a sequence of child indices that can be followed from the root. The empty sequence `ε` identifies the root. Appending a child index takes the position one edge deeper. The notation makes it possible to talk about the same node in a tree of labels and in a tree of states. A *run* is a tree of states covering exactly the positions of the tree being checked. For that run to be valid, the state at each node, the tree label there, and the states at its children must match a rule.

```
ρ(κ, t, w) = κ(w) → t(w)(κ(w1), …, κ(w rkₜ(w)))
```

Here `t` is the tree being checked, `κ` is the run, and `w` is a node position. The expression `κ(w)` gives the state there and `t(w)` gives the tree label. The expression `rkₜ(w)` counts the children of `w` in `t`, and `w1` and `w rkₜ(w)` denote the first and last child positions when there are children. The expression `ρ(κ, t, w)` specifies the rule that must exist at that node.

A run contributes a product because it has to account for all the nodes of the tree. One tree can admit several runs, which the grammar treats as alternative ways to obtain the tree. To obtain the tree's weight, the grammar adds the contributions of the runs that start in the initial state.

```
wt(κ, t) = ∏_{w ∈ pos(t)} p(ρ(κ, t, w))
```

Here `wt(κ, t)` is the weight of the run `κ` on `t`. The set `pos(t)` contains the positions of `t`, `w` ranges over those positions, and `∈` denotes membership. The product `∏` multiplies the weight `p` of the rule `ρ(κ, t, w)` at each position.

```
L(H)(t) = ∑_{κ run on t, κ(ε) = r₀} wt(κ, t)
```

Here `L(H)` is the weighted tree language assigned to grammar `H`, and `L(H)(t)` is its value at tree `t`. The summation ranges over valid runs `κ` for which the state at the root `ε` is the initial state `r₀`. Each summand is the run weight `wt(κ, t)`. The support of the language, written `supp(L(H))`, consists of trees with non-zero weight. A restriction can thereby exclude trees, distinguish among compatible ones, and give weight to multiple state assignments on a compatible tree.

#### Give the translation rules explicit interfaces

The translation grammar works with fragments on both sides. Each rule has an input fragment and an output fragment, plus instructions about which derivations supply the pieces that the fragments need. Two types of state distinguish a complete tree from a context, a tree fragment with an opening at its foot. The paper calls these nullary and unary states. The terms describe how many arguments the derived fragment needs when it is used. A complete tree needs none. A context takes the subtree that will fill its foot.

```
G = (Q, F, Σ, q₀, R, p)
```

Here `G` is the weighted synchronous tree-adjoining grammar, or WSTAG. `Q` is its set of nullary states, `F` its disjoint set of unary states, `Σ` its terminal alphabet, and `q₀` its initial nullary state. `R` contains the synchronized rules, and `p` assigns each a non-negative real weight. The common alphabet in the definition supplies labels for the two components of a translation.

```
q → ⟨ζ, ζ′, q₁ … qₘ, f₁ … fₗ⟩
```

Here `q` is a nullary state, `ζ` and `ζ′` are the input and output fragments, and the brackets group the components of a rule. The states `q₁ … qₘ` are the required nullary child states for the `m` substitution sites. The states `f₁ … fₗ` are the required unary child states for the `l` adjoining sites. The arrow indicates a rule that produces a tree pair when its required pieces have been supplied.

```
f(∗) → ⟨ζ, ζ′, q₁ … qₘ, f₁ … fₗ⟩
```

Here `f` is a unary state and `∗` denotes the foot. The two fragments `ζ` and `ζ′` each contain that opening. The lists `q₁ … qₘ` and `f₁ … fₗ` again give the states for the substitution and adjoining derivations. This rule produces a pair of contexts for use at an adjoining site.

Within each fragment, a variable `xⱼ` is a leaf where a derived tree can be substituted. A variable `zⱼ` has a child of its own. It stands for an instruction to place a derived context around the subtree under that variable. Every site variable occurs exactly once in each of a rule's two fragments. In a context rule, the foot also occurs exactly once in each fragment. An index connects matching sites across the two sides. As a result, the fragments can differ in their arrangement while agreeing on which derivation supplies each pair of pieces.

Substitution at `xⱼ` replaces the variable leaf with the tree derived by the corresponding child. The paper calls this first-order substitution. At `zⱼ`, the corresponding child supplies a context. The subtree originally under `zⱼ` fills the foot of that context. The context then occupies the position of `zⱼ`. The paper calls this second-order substitution. If the context is just a foot, filling it returns the original subtree unchanged. The authors use that identity context to represent optional adjoining. They also describe using finite information in the states to enforce the left and right adjoining conditions of tree-insertion grammars. The substitution-only case is available by using nullary states alone.

#### Make derivations into trees of rule choices

A derivation has a tree shape of its own. Each node names a rule, and its children give the derivations required by that rule. The substitution children come first, followed by adjoining children, in their indexed order. This tree records the construction instructions independently of the shape they give to either derived tree. The authors formalize the allowable instructions with a WRTG whose alphabet consists of the WSTAG's rules. Each rule symbol has as many children as there are sites for other derivations.

```
H_G = (Q ∪ F, R, q₀, R′, p′)
```

Here `H_G` is the grammar of derivation trees for `G`. Its state set is the union `Q ∪ F` of the translation grammar's nullary and unary states. Its alphabet `R` is the original translation rule set, and its initial state is `q₀`. The rule set `R′` and weight assignment `p′` belong to `H_G`.

```
D(ρ) = a → ρ(q₁, …, qₘ, f₁, …, fₗ)
```

Here `ρ` is an original translation rule and `D(ρ)` is its corresponding derivation grammar rule. The notation `a` stands for the left-hand state of `ρ`, either the nullary state `q` or the unary state `f`. The ordered children of the symbol `ρ` have states `q₁` through `qₘ` for substitution and `f₁` through `fₗ` for adjoining. The paper writes the rule separately for each type of state.

```
p′(D(ρ)) = p(ρ)
```

Here `p′` gives the derivation grammar rule `D(ρ)` its weight, and `p(ρ)` is the weight of the original translation rule. Because a node in a derivation tree explicitly names its rule, that rule fixes the state at the node. There is a unique run of `H_G` on each derivation tree. Its weight is consequently a product of the original rule weights, with each rule occurrence contributing at its own position.

To recover the derived trees, the paper uses two evaluation maps. Each reads the same tree of choices. The input map evaluates the input fragments, and the output map evaluates the output fragments. This arrangement follows the bimorphism account of synchronous grammars, in which a shared derivation receives a tree interpretation on each side. [Unifying Synchronous Tree Adjoining Grammars and Tree Transducers via Bimorphisms](https://md.research.elamur.ai/free/en/papers/shieber-2006-unifying-synchronous-tree-adjoining-grammars/)

```
h₁(ρ(d₁, …, dₘ, d′₁, …, d′ₗ)) = ζ[x⃗/h₁(d⃗)][[z⃗/h₁(d⃗′)]]
```

Here `h₁` is the input evaluation. The root rule `ρ` has input fragment `ζ`. Its substitution child derivations are `d₁` through `dₘ`, gathered in `d⃗`, and its adjoining child derivations are `d′₁` through `d′ₗ`, gathered in `d⃗′`. The vector `x⃗` lists the substitution variables and `z⃗` lists the adjoining variables. Single brackets indicate replacement of a variable leaf by the corresponding recursively evaluated tree. Double brackets indicate wrapping the subtree beneath an adjoining variable in the corresponding recursively evaluated context. The slash separates the site from the material used there. The output map `h₂` uses the output fragment `ζ′` and evaluates every child with `h₂`.

In the worked derivation, the authors use a rule for a sentence containing the verb *saw*. Its subject and the other argument are supplied by substitution. The clause is also under an adjoining variable. The auxiliary fragment supplies an adverb, *yesterday*, and a foot. Substitution completes the arguments of the verb, and adjoining puts the completed clause into the auxiliary fragment's foot. The input tree thus displays a clause under a larger sentence node with an adverbial branch. The output tree is obtained from the same sequence of rule choices by reading their other fragments.

```
dₑₓ = ρ₁(ρ₂, ρ₃(ρ₄), ρ₅)
```

Here `dₑₓ` is the worked derivation and `ρ₁` through `ρ₅` name its rules. Parentheses enclose the ordered children in the derivation tree. The rule `ρ₂` supplies one substitution result. The branch rooted at `ρ₃`, with its child `ρ₄`, supplies the other. The rule `ρ₅` supplies the adjoining context. The nesting records which derivations depend on which choices. After evaluation, tree labels such as the sentence category and the verb belong to the derived tree, while the rule names belong to the derivation.

```
T(G)(s, t) = ∑_{d deriving (s, t)} L(H_G)(d)
```

Here `T(G)` is the weighted translation defined by `G`, `s` is an input tree, and `t` is an output tree. The summation ranges over derivation trees `d` whose evaluations are `s` and `t`. The term `L(H_G)(d)` is the weight that the derivation grammar `H_G` assigns to `d`. This is a separate sum from the one used to define a restriction tree's weight. The translation sum ranges over different derivations that yield the same tree pair. The restriction sum ranges over different runs on a specified tree.

#### Specify what the two products must compute

An input product makes the restriction weight a factor for the input tree. An output product applies that factor to the output tree. These definitions give a criterion for the construction before any algorithm is chosen. Whatever rules the resulting grammar uses, evaluating its entire translation relation must give the specified value for each pair.

```
(L ◁ T)(s, t) = L(s) · T(s, t)
```

Here `L` is a weighted tree language, `T` is a weighted translation, and `s` and `t` are the input and output trees. The symbol `◁` denotes input product. The dot `·` multiplies the weight `L(s)` assigned to the input tree by the original pair weight `T(s, t)`.

```
(T ▷ L)(s, t) = T(s, t) · L(t)
```

Here `▷` denotes output product. The same translation `T` supplies the pair weight, and the restriction `L` is evaluated at `t`, the output tree. A zero restriction weight removes the pair from the support of the product. A positive weight multiplies its original weight by that amount.

Another way to understand the product is to view the restriction as a relation that takes each accepted tree back to itself with the designated weight. Composing with that relation on the relevant side supplies the weight without changing the tree supplied to the translation. This is why the construction can preserve the original tree fragments and put its new information in the states.

```
T(H ◁ G) = L(H) ◁ T(G)
```

Here `H ◁ G` is the WSTAG constructed for the input product, `T` maps a WSTAG to its weighted translation, and `L(H)` is the restriction language given by `H`. The `◁` on the right is the semantic operation on a weighted language and a translation. The equality says the constructed grammar realizes that operation.

```
T(G ▷ H) = T(G) ▷ L(H)
```

Here `G ▷ H` is the corresponding WSTAG for restricting the output. The `▷` on the right is the semantic output product. The authors present the input construction in detail. For the output product the restriction grammar runs on the other rule fragments, with the input fragments and the synchronization still carried in the grammar.

The authors also explain the unweighted case through a previously established closure property. With true and false as weights, disjunction and conjunction take the roles of addition and multiplication. The input evaluation can be performed by a macro tree transducer, a device whose parameters can carry a subtree into the evaluation of a context. Taking the inverse image of a regular restriction through that evaluation gives a regular language of derivation trees. Evaluating both sides on those derivations gives the unweighted restricted translation.

```
L(H) ◁ T(G) = h(h₁⁻¹(L(H)))
```

Here `L(H)` is now an ordinary set of trees, `T(G)` is a set of tree pairs, and `◁` restricts the input of that relation. The preimage operation `h₁⁻¹` selects derivation trees whose input evaluations belong to `L(H)`. The map `h` takes each selected derivation to the pair formed by its input evaluation `h₁` and output evaluation `h₂`. This argument locates the regular language at the level of derivations. The weighted construction also has to account for the contributions of the individual restriction runs.

#### Fit restriction runs across fragment boundaries

The direct construction makes local runs over the input fragment of each translation rule. A run can check ordinary labels with ordinary rules of `H`. It needs temporary rules to pass the places where the translation grammar will supply material later. The construction gives those places a state assignment, denoted `θ`. At a substitution variable the assignment gives the state required at the root of the missing tree. At an adjoining variable it gives an ordered pair, the state at the top of the context and the state at its foot. At the foot of the current rule, if present, it records the state that must be supplied by whatever will fill it.

The temporary grammar is written `H(r, θ)`. It starts the local run in state `r` and uses the assignment `θ` to interpret the sites in the fragment. The paper temporarily adds the following kinds of rules, all with weight `1`.

```
r → xⱼ  if θ(xⱼ) = r
```

Here `r` is a state of `H`, `xⱼ` is the substitution variable for site `j`, and `θ(xⱼ)` is the state assigned to that site. The rule ends the local run at the variable. In a complete derivation, a run over the substituted tree continues at the required state.

```
r → zⱼ(r′)  if θ(zⱼ) = (r, r′)
```

Here `zⱼ` is the adjoining variable for site `j`, `r` is the upper state, and `r′` is the state required at the lower end of the context. The assignment `θ(zⱼ)` records them in that order. The temporary transition summarizes the two ends of the context, whose real restriction transitions are accounted for in the corresponding adjoining child.

```
r → ∗  if θ(∗) = r
```

Here `∗` marks the foot and `θ(∗)` is the state assigned to it. The temporary rule ends the local run where a subtree will enter the context. The weight `1` for the temporary rules lets a local run carry information across a site without adding a separate factor for the placeholder.

The product's nullary states pair one translation state with one restriction state. Its unary states pair a translation state with two restriction states, one for each end of the context. The initial state pairs the translation's initial state with the restriction's initial state. The product uses the input and output fragments of the original rule as they stand. It changes the states on their interfaces and calculates a new rule weight.

```
H ◁ G = (Q × P, F × (P × P), Σ, (q₀, r₀), R′, p′)
```

Here `H ◁ G` denotes the product grammar. The symbol `×` forms Cartesian products of state sets. The nullary and unary state sets are `Q × P` and `F × (P × P)`, respectively. The alphabet is `Σ`, and `(q₀, r₀)` is the initial state. The symbols `R′` and `p′` now denote the product rule set and its weight assignment, separately from their use in the earlier definition of `H_G`.

```
u = (q₁, θ(x₁)) … (qₘ, θ(xₘ))
```

Here `u` is the ordered list of product states for substitution. Each `qⱼ` is the original state of a substitution child and `θ(xⱼ)` is the restriction state required there. The ellipsis ranges over the `m` substitution sites. A child in a product derivation must supply a tree licensed by both components of its state.

```
v = (f₁, θ(z₁)) … (fₗ, θ(zₗ))
```

Here `v` lists the product states for adjoining. Each `fⱼ` is the original unary state for site `j`, and `θ(zⱼ)` is its pair of restriction states. The ellipsis ranges over the `l` adjoining sites. Matching the upper state lets a restriction run enter the context. Matching the lower state lets it continue into the enclosed subtree.

```
(q, r) → ⟨ζ, ζ′, u, v⟩
```

Here the product rule starts in nullary state `(q, r)`, combining the original rule state `q` with the restriction state `r` at the fragment root. The two fragments `ζ` and `ζ′` come from the original rule. The lists `u` and `v` specify the required states of its substitution and adjoining children.

```
(f, (r, θ(∗))) → ⟨ζ, ζ′, u, v⟩
```

Here `f` is the original unary state. Its restriction component pairs the root state `r` with the foot state `θ(∗)`. The fragments `ζ` and `ζ′` and the child-state lists `u` and `v` serve the same roles as in the nullary rule. The extra state on the left allows the surrounding derivation to tell where the run resumes after it passes through this context.

For a rule of either kind, the original rule, starting state, and assignment specify a product rule. Several local runs can have the same starting state and the same interface assignment. Their internal differences need no further state information because the other fragments join them only at the declared sites. Their contributions can therefore be added before the product rule is used.

```
p′(ρ, r, θ) = p(ρ) · L(H(r, θ))(ζ)
```

Here `p′(ρ, r, θ)` is the weight of the product rule made from original rule `ρ`, root state `r`, and assignment `θ`. The factor `p(ρ)` is its original translation rule weight. The factor `L(H(r, θ))(ζ)` sums the local runs on the input fragment `ζ` with the specified boundaries. The dot multiplies the two factors. The temporary rules make it possible to calculate that sum on a finite fragment before any of the missing material is supplied.

The boundaries explain how the local calculation accounts for a full run. Take a derivation of a compatible tree pair and a restriction run on its input tree. At each occurrence of a translation rule, the full run determines a starting state and the states at all its sites. Conversely, when the local runs are joined according to compatible product states, the states at identified positions agree. Each actual transition of the full run belongs to the fragment that supplied its ordinary label. Multiplication then collects the contributions along the derivation, and summation collects the choices of local runs and derivations. This gives the weight required by the input product.

#### Compute the product from the initial states

Enumerating all assignments gives a direct description of the product, including assignments whose local run weight is zero or whose rules can never take part in an initial derivation. The algorithm works from the initial state pair to limit that enumeration. It maintains items, compact statements about a state or about the progress of a local run on one rule fragment. Inference rules add an item whenever the items already established justify it. The authors use a depth-first, left-to-right traversal of fragments, with prediction and completion inspired by Earley's method.

Building a weighted input product The steps in order.

A request item `(q, r)` calls for a rule in nullary state `q` starting with restriction state `r`. A request `(f, r)` calls for a context in unary state `f` starting with state `r`. The foot state of the context becomes known through completion. In either case, prediction considers original rules with the requested translation state. It creates a request at the root of a particular rule fragment. The form `(ρ, w, r)` then means that the traversal is to visit position `w` in rule `ρ` with restriction state `r`.

At an ordinary symbol, the deduction selects a positive-weight restriction rule with the required label and arity. That rule specifies a sequence of child states. A progress item keeps this sequence, a record of how many children have been handled, and the assignments made at variables encountered so far. The deduction requests the next child with its prescribed state. When that child is complete, the child's assignment is joined to the current assignment. Each variable occurs only once within the fragment, so the processed subtrees contribute assignments at distinct sites.

At a substitution leaf, a requested child derivation must finish with the correct state at its root. The leaf records that state. At an adjoining variable, the deduction requests a context with the currently required restriction state at its top. A completed context supplies the state at its foot. The deduction can then check the subtree beneath the adjoining variable using that foot state. A foot in the rule being traversed records its expected state as part of the assignment. In this way, the run on the literal child of an adjoining variable uses the requirement at the far end of the inserted fragment.

A completed fragment position is recorded as `[ρ, w, r, θ]`. The components identify the rule `ρ`, the position `w`, the restriction state `r` at that position, and the assignment `θ` within the completed part. At the root, `w` is `ε`, so the item gives the whole interface required to create a product rule. Completed nullary and unary state items allow the appropriate pending requests elsewhere in the deduction to proceed. A unary completion records both the root state and the foot state.

The item set starts empty and grows until applying the inference rules adds nothing. It is finite because the positions, states, rules, and assignments from which items are made are finite. The next phase emits the rule associated with each completed root item. An optional reduction tries to remove rules outside useful derivations. The paper defines usefulness by occurrence in a complete derivation tree, which is a stronger condition than having started from a request that was reached during prediction. A branch of the search can finish some fragments and still fail to finish the surrounding derivation.

#### Give completed rules their weights

Item construction records which combinations can be used. The weighting phase counts their contributions. For a completed item the function `W` gives the sum of weights for local runs compatible with it. An ordinary node has a choice of restriction rule. Each choice supplies states for all children. The child contributions are multiplied together with the rule weight, then the results are summed over the matching choices.

```
W([ρ, w, r, θ]) = ∑_{r₁, …, rₖ} p_H(r → ζ(w)(r₁, …, rₖ)) · ∏_j W([ρ, wj, rⱼ, θⱼ])
```

Here `W` is the weight function for completed items. The item refers to original rule `ρ`, position `w`, root state `r` at that position, and assignment `θ`. Its ordinary label is `ζ(w)`, and `k` is that node's number of children. The sum ranges over child-state sequences `r₁, …, rₖ` whose completed child items are in the computed set `I`. For child index `j`, `wj` is its position, `rⱼ` its state, and `θⱼ` the part of `θ` belonging to sites under that child. The product combines those child weights. The function `p_H` gives the weight of the restriction transition for the chosen label and states.

```
W([ρ, w, r, θ]) = 1  if ζ(w) ∈ {∗, x₁, …, xₘ}
```

Here `ζ(w)` is the label at position `w` of rule `ρ`. The set on the right contains the foot `∗` and the substitution variables `x₁` through `xₘ`. The assigned root state `r` and interface `θ` have already been checked by the deduction, so the item receives the neutral weighting factor `1` for the local placeholder. In a product derivation, the corresponding material supplies its weight separately.

```
W([ρ, w, r, θ]) = W([ρ, w1, r′, θ ∖ {zⱼ ↦ (r, r′)}])
```

This equation applies when node `w` carries adjoining variable `zⱼ` and `θ(zⱼ)` equals `(r, r′)`. The position `w1` is the variable's child. The state `r′` is the restriction state at the lower boundary of the adjoining context. The arrow `↦` denotes the assignment of that variable to its pair of states, and `∖` removes the assignment when passing to the child. The local weight is the child's weight. The adjoining derivation accounts for the run on the inserted context.

```
pᵤ(ρ, r, θ) = p(ρ) · W([ρ, ε, r, θ])
```

Here `pᵤ` is the weight assigned by the algorithm to a rule it generates. The factors are the original weight `p(ρ)` and the computed local weight of the completed root item for starting state `r` and assignment `θ`. The root position `ε` makes the item range over the whole input fragment. This is the algorithmic counterpart of multiplying by `L(H(r, θ))(ζ)` in the direct construction.

The authors describe two ways to organize this computation. Back pointers can store the items used to establish a later item so that its contributions can be retrieved when weights are calculated. Weighting can also be interleaved with deduction if items are processed in an order that supplies the right-hand sides of the recurrences before their left-hand sides. Both arrangements calculate the same weights. The choice concerns how the algorithm stores and revisits dependencies.

#### Explain why the deduction covers the required rules

To interpret an item, the paper places it in a partial enriched derivation tree. An enriched derivation decorates the positions in each rule's input fragment with restriction states. Those states must respect the transitions of the restriction grammar. When fragment positions come together in the derived tree, their decorations must agree. A partial enriched derivation can have missing derivation branches, represented by `⊥`, and positions with states still to be assigned, represented by `?`.

This description gives a meaning to the frontier of the traversal. On the already visited side of a frontier position, the decoration is present. If a visited site requires a child derivation, the corresponding branch has been filled and its relevant states assigned. Positions further along the traversal remain open. A request item witnesses a place where the traversal needs to continue. A completed item gives the assigned states for a portion already checked. A progress item gives the same kind of information for the children of an ordinary node that the traversal has finished so far.

The soundness argument is local. Each inference step extends or reports part of a derivation consistent with the transitions and site agreements it has checked. For instance, an adjoining completion gives an upper state and a foot state, and traversal continues under the adjoining variable only in the supplied foot state. A completed root item thus describes a valid match for a fragment with the declared interface. Its surrounding derivation can still be partial, which accounts for the possible presence of useless rules in the emitted grammar.

For completeness, the authors point to a contradiction argument. In a complete enriched derivation, every required choice provides the witnesses for the corresponding requests and completions. A first missing step in the traversal would have the prerequisites that license it, contradicting saturation of the item set. The guarantee is that the generated rule set contains the useful rules of the product. The weighting calculation then agrees with the direct construction on the generated rules. The inputs to this procedure are already specified grammars. Rule extraction, parameter fitting, and corpus preparation are outside the construction.

### Experiments and results

#### The evidence and the worked example

The paper reports a formal result and a worst-case analysis. It gives no training or test corpus, measured translation score, or timed implementation. Its comparisons with earlier approaches concern the restrictions they support and the objects their procedures return. Those comparisons provide the context for the closure theorem. They supply no shared test set or baseline scores for an empirical ranking.

The worked example gives the numerical result for a particular input and output tree pair in the illustrative grammar. The derivation tree `dₑₓ` uses the rules `ρ₁` through `ρ₅`. Each occurrence contributes its rule weight, and multiplication gives a derivation weight of `0.24`. The paper identifies this derivation as the only one yielding the illustrated pair, so the weight of the tree pair itself is also `0.24`. The number measures the original grammar's weight for that pair. The example uses the distinction between multiplying within a derivation and summing across derivations, with just one contribution to the latter sum.

The example also makes visible why the proof treats two kinds of attachment. The rule for the clause needs complete arguments at its substitution leaves. Once those parts are supplied, a context adds the adverb and leaves the completed clause at the foot position. A state at the clause root alone would describe the substitution case. The step that adds the adverb involves a state at the outer root and another where the clause is reinserted. The product preserves the original paired choices while checking those requirements on the side under restriction.

#### How many assignments the construction allows

The paper bounds the size of the direct product by separating the number of original rules from the number of state assignments available for each. The root of every original input fragment needs a restriction state. Each substitution site supplies another state choice, and each adjoining site supplies a pair of choices. A context rule has its own foot, which adds a state choice beyond those for any of the adjoining sites inside it. The chart compares just the root and foot portion of this count. The other sites contribute to the exponent separately.

Root and foot state slots in the direct WSTAG product by rule form A context-producing rule records a foot state as well as a root state.

**The numbers**

| System or setting | state slots |
| --- | --- |
| Context-producing rule | 2 |
| Tree-producing rule (this paper) | 1 |

Both settings in the chart belong to the authors' construction. A tree-producing rule has the smaller root and foot contribution because it has a root and no foot. A context-producing rule needs the extra slot for its opening. The cost comparison describes how many state choices the construction indexes at these boundaries for a rule of each form.

```
C = max{m + 2 · l + y | ρ is an (m, l)-rule; y = 1 for (α), y = 2 for (β)}
```

Here `C` is the largest exponent contribution among original translation rules `ρ`. The `max` selects the largest value in the displayed set. The vertical bar introduces the conditions defining that set. The count `m` is the number of substitution sites and `l` is the number of adjoining sites. The term `2 · l` counts the two states at each adjoining site. The offset `y` is `1` for the nullary rule form `(α)` and `2` for the unary rule form `(β)`, which counts its own foot as well as its root.

```
|R′| ∈ O(|R| · |P|^C)
```

Here `|R′|` is the number of rules in the direct product, `|R|` the number of original translation rules, and `|P|` the number of restriction states. Vertical bars give set size, `∈` denotes membership, and `O` gives the asymptotic upper bound. The exponent `C` is the largest state-slot count defined above. The dot multiplies the original rule count by the maximum growth associated with assigning restriction states.

This bound concerns the product described by the direct construction. It has a place for all the choices of fragment root and site assignment. Some choices give identical boundary requirements along large portions of the grammar, while others fail at the first incompatible restriction transition. The size estimate allows all assignments up to its stated bound. The algorithm has a different way to decide which ones to materialize, by deriving completed items from the initial pair.

#### Worst-case cost of the deduction phase

For the algorithm, the authors analyze the time and space needed to compute the closed set of items. A progress item can identify a rule fragment and a position in its traversal, specify the restriction transition being checked, and record a partial assignment. The bound accounts for these pieces of information separately. Its first term measures the size of the translation grammar as seen from the constrained side.

```
|G|ᵢₙ = ∑_{ρ ∈ R} |pos(ζ(ρ))|
```

Here `|G|ᵢₙ` is the input size of the translation grammar for this analysis. The sum runs over the original rules `ρ` in `R`. The expression `ζ(ρ)` is the input fragment of rule `ρ`, and `|pos(ζ(ρ))|` counts that fragment's tree positions. Thus a large fragment contributes through its nodes even if it is only one entry in the rule set.

```
O(|G|ᵢₙ · |R_H| · |P|^C)
```

Here `O` expresses the worst-case bound for time and space in the first phase of the algorithm. The factor `|G|ᵢₙ` counts positions across original input fragments. The factor `|R_H|` counts rules of the restricting grammar and accounts for the parent and child states specified by a restriction transition. The factor `|P|^C` covers the possibilities for assigning states at the fragment boundaries. The dots indicate multiplication.

The space argument counts the possible items, particularly the progress items that track a transition and the assignments obtained from its processed children. The time argument counts possible instantiations of the inference rules, following the approach the paper credits to McAllester. The authors obtain the same order of growth for the two bounds. The stated linear dependence on input fragment size comes from the first factor. The other factors remain part of the result, including the exponent determined by the rule with the most boundary information. A grammar with larger site counts or a restriction with many states can therefore have a costly product even when the fragment-size term is linear.

The main outcome is that the operation yields a grammar in the same class and that its useful portion can be found through the deduction. Compactness here means that a finite representation can share rules among derivations. The rule bound and the item bound state how that representation and its computation can grow. They apply to the mathematical construction and the specified deduction phase under their given size measures.

### What the ablations show

The paper gives no empirical ablations, and its comparisons concern the scope of earlier formalisms, the direct construction versus deduction, and the information carried by the parser's items.

#### Direct enumeration and prediction answer different questions

The direct construction is the specification against which the algorithm can be understood. It describes a rule for each combination of original rule, start state, and interface assignment, with weight given by the sum of compatible local runs. Its strength as a definition is that every potential rule can be considered independently. Whether it will participate in a derivation from the initial states can be decided later. As a route to computing the product, this can create work even for combinations that have no part in a complete result.

The deduction considers a rule fragment after some requested state makes it relevant. It pursues restriction transitions and child completions from there. This can rule out work at two different levels. An original rule may never be predicted with a particular start state. A predicted rule may also fail to reach a completed root item for a particular interface. The authors' guarantee is about coverage of useful rules, so avoiding those cases is compatible with keeping the derivations the product needs.

The optional reduction addresses a different condition. A predicted branch can complete and yield a product rule, while some later requirement prevents it from belonging to a full derivation. The completed rule is locally compatible and was reached from a request. Its usefulness still depends on the surrounding choices. The paper leaves reduction optional because removing these rules costs computation now and may save work in later operations. It gives no measurements of the size of either effect.

#### The state interfaces explain the division of work

The substitutions and adjoining operations share a common idea: the part that supplies material and the part that receives it must agree on the restriction state at their join. The difference between the two rule forms follows from the place where evaluation can continue. A substituted tree occupies a leaf position and is checked from the state at its root. An auxiliary context occupies a position with a subtree under it, and that subtree must still be checked after the context has been traversed. The foot state carries the requirement for that check. This explains the different state-slot counts in the analytical comparison.

The separation between items and weights also supports two distinct kinds of sharing. Several local runs may agree on an assignment `θ`, so they share a completed item and a product rule. The weight calculation adds their contributions. Several larger derivations may then use that same product rule in different surroundings, since each only needs to match its declared interface. The product grammar retains alternatives at both levels, with the local run alternatives aggregated at the rule and the derivation alternatives retained in the grammar.

The analysis of partial enriched derivations clarifies why an item can be kept even if it belongs to a branch that later fails. It states a property of a legitimate partial construction. A state at the root of a requested fragment is evidence that a specific local computation can start there. A completed item gives stronger evidence about that fragment, including the states at its sites. Usefulness depends on whether those facts can participate in a complete derivation from the start state. These distinctions support the correctness argument and explain the role of the optional reduction.

### Limitations

#### Limits identified by the authors

The authors treat pruning and implementation as work still to be done. The exact deduction can build a large set of items. They suggest partitioning it and bounding the size of each partition, drawing on the precedent of cube pruning. Such a bound would change the search if it discarded items needed by a useful rule. The paper gives the correctness guarantee for the full deduction and leaves a pruned implementation and its behavior unmeasured.

They also identify a specialized algorithm for regular weighted string restrictions as future work. The paper says that its tree closure result implies closure for regular weighted string languages through an earlier result of Maletti and Satta. That implication establishes that a grammar of the required kind can represent the restriction. The algorithm developed in detail here works on trees, and the authors leave open how to exploit the special structure of a string restriction directly.

The conclusion explains why two precedents for string parsing have narrower applicability. The CYK-like algorithm discussed there requires binarizing the trees of a synchronous tree-insertion grammar, which the paper says reduces its expressive power. The tree-to-string approach of DeNeefe and Knight relies on the weak equivalence of tree-insertion grammars to context-free grammars. That property concerns the generated strings and supports their conversion. The authors explain that it cannot supply the same route for general synchronous tree-adjoining grammars. [Synchronous Tree Adjoining Machine Translation](https://md.research.elamur.ai/free/en/papers/deneefe-2009-synchronous-tree-adjoining-machine-translation/)

The detailed presentation concentrates on the input product, with the output case obtained by the corresponding construction on the other component. The paper states the weighted equality and provides the direct construction, while omitting its full proof of that equality. Its correctness discussion for the deduction gives meanings for the items and sketches completeness. A reader checking the proof of the weighted construction has to supply the argument connecting compatible local runs with runs on complete composed trees.

#### Limits visible in the setup

The theorem assumes a weighted synchronous grammar whose rules have the declared site discipline and a restriction expressible by a weighted regular tree grammar. The finite-state interfaces are what make the product possible. A condition requiring information beyond what can be carried by a finite collection of states falls outside the stated result. Changing the grammar to permit operations such as repeating a site variable would also require revisiting how runs and weights are combined. The paper's construction relies on each substitution or adjoining site occurring exactly once on each side.

The worst-case bound singles out the size of the input fragments for the deduction phase. The elapsed time for an end-to-end implementation would also reflect rule materialization, the choice to reduce the grammar, and the organization of the weighting phase. The paper offers possible implementation arrangements but gives no measurements for them. It also gives no distribution of site counts, restriction states, or surviving items from a grammar extracted for translation. The bound identifies sources of growth without establishing how frequently a practical grammar approaches it.

There is a distinction between the finite size of the product grammar and the total weights it represents. The former follows from finite sets of rules, states, and positions. The latter uses a sum over derivations of a given pair. With recursion, there may be many derivations for the same pair, and the formalism includes a context consisting only of a foot. A grammar that can repeat an insertion leaving the derived trees unchanged can yield infinitely many such derivations. For applications that require a finite real total, convergence of the corresponding sum is a separate property to check. The paper supplies no general convergence condition for those cases.

Finally, the paper's translation examples motivate why the restricted grammar could be valuable in estimation and decoding. The theorem establishes that the restriction can be represented and the algorithm can compute the specified rules. Those results leave the application-level questions open. Translation quality would depend on the rules and weights supplied to the procedure, while the cost of a practical system would depend on how much of the product it actually needed and on the subsequent ranking or estimation computation.

### What came after

The paper closes with two proposed continuations: introducing pruning into the deduction and designing a product algorithm tailored to weighted string restrictions. The first would change how much of the search is retained during construction. The second would change how the restricting language is represented and used during traversal. The authors furnish the exact tree product as a point of comparison for either direction.

No later study is identified here that implemented those proposals, extended the weighted closure construction, or measured its effect in translation. The related systems discussed in the paper are its predecessors. They explain the gap the authors addressed, while the documented contribution ends with the weighted tree product and its Earley-style construction.

## Cite

Cite as Matthias Büchse, Mark-Jan Nederhof and Heiko Vogler. 2011. Tree Parsing with Synchronous Tree-Adjoining Grammars. Proceedings of the 12th International Conference on Parsing Technologies.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{buchse2011tree,
  title = {{Tree Parsing with Synchronous Tree-Adjoining Grammars}},
  author = {Matthias Büchse, Mark-Jan Nederhof and Heiko Vogler},
  booktitle = {Proceedings of the 12th International Conference on Parsing Technologies},
  year = {2011},
  url = {https://aclanthology.org/W11-2903/}
}
```

> 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)
