Elamur Research

Preservation of Recognizability for Synchronous Tree Substitution Grammars

Paper · 2010 · Zoltán Fülöp, Andreas Maletti and Heiko Vogler

Summary

A sentence can have several plausible grammatical structures, and the choice among them can affect its translation. A parser can pass those possibilities along as a collection of trees with different weights. The authors ask whether a grammar that translates trees into trees can work on that entire weighted collection and still return something a finite grammar can represent. Such a collection is called recognizable. The question matters because a finite representation can describe many alternatives, including an unbounded family of trees, without listing them individually. This is the setting for the paper’s contribution to syntax-based machine translation.

The paper studies synchronous tree substitution grammars. Each rule supplies a fragment for the input tree and a fragment for the output tree. It links the places where further fragments can be inserted, so the two trees grow through a shared sequence of rule choices. The authors introduce temporary states at those linked places. Labels that belong to a finished parse tree can then serve a different purpose from the states that control how the grammar expands it. A completed pair receives the sum of the weights of its derivations, with each derivation weighted by the product of its rule weights.

The main result gives a condition for each direction of application. Starting from a recognizable weighted collection of input trees, the output collection is recognizable if every synchronous rule contributes a node to the output tree. Starting from a recognizable weighted collection of output trees, the input collection is recognizable if every rule contributes a node to the input tree. These conditions bound how many rule applications can contribute to a fixed tree on the side being constructed. The authors give a direct construction for the resulting finite grammar. They also show that a grammar satisfying both conditions has a recognizable weighted domain and range, which record the total weight of the transformations associated with each input or output tree.

A second result explains why the construction works. The authors show that the same weighted transformation can be described by a regular tree grammar over shared derivations and two maps that turn each derivation into its input and output trees. This description is called a weighted tree bimorphism. It locates the dependence between the two trees in the shared derivation and makes it possible to reason about either side separately. The paper establishes these claims through proofs and examples with specified rules and weights.

Deep dive: Preservation of Recognizability for Synchronous Tree Substitution Grammars

The paper shows when synchronous tree substitution preserves a finite grammar representation of weighted sets of input or output trees. · about 37 minutes to read

The problem and its context

Keeping the alternatives from a parse

In the authors’ motivating example, an observer sees a man with a telescope. The telescope could be the instrument used to see him, or it could belong with the description of the man. These readings give the phrase about the telescope different places in the tree. A probabilistic parser can retain the alternative structures and assign them different likelihoods. Structures ruled out by the parser receive weight zero. This turns the result of analyzing a sentence into a function defined on trees, which is the paper’s starting point for parsing.

The parser’s output is useful as an intermediate object. A downstream procedure can inspect more than the highest-weight tree if the analysis is uncertain. The authors point to earlier work that extracts the highest-ranked alternatives efficiently when the weighted collection has a suitable grammar representation. The same representation also gives a way to ask how a tree transformation combines evidence from multiple analyses. If several source trees produce the same target tree, the target can receive a contribution from each source tree.

This raises a question about the form of the result. Suppose a weighted grammar describes the source alternatives, and a separate synchronous grammar relates sources to targets. The two descriptions are finite, but multiplying their contributions and summing over possible sources defines a new function on trees. The desired property is closure: whenever the input function admits the required kind of finite grammar, applying the transformation yields a function that admits a finite grammar of the same kind. The statement has content even when the original weighted set contains infinitely many trees, since the finite objects are the grammars that describe the sets.

The direction can be reversed. If the starting constraints concern target trees, the transformation can be used to assign weights to the source trees that could have produced them. For the authors, the forward and backward questions belong together because both sides of a synchronous grammar are trees and the links between their unfinished positions can be reversed. The technical work is to identify which side needs to grow and to show how to express the resulting weighted set.

Translation as a transformation of structure

The paper contrasts a translation approach based on full parse trees with phrase-based translation, which it describes as working with the sentence’s linear structure. In the syntax-based setting, a rule can make its choice using a tree fragment, and corresponding subtrees can occur in different orders on the two sides. The introduction places the approach of Yamada and Knight alongside phrase-based work by Koehn and colleagues. A Syntax-based Statistical Translation Model · Statistical Phrase-Based Translation

Within syntax-based translation, the paper distinguishes tree transducers from synchronous grammars. A tree transducer describes how trees are mapped to trees. A synchronous grammar describes how paired trees can be built through linked expansions. The authors cite several varieties of transducer and trace the synchronous side through syntax-directed transductions and their generalizations. They place synchronous tree substitution and synchronous tree adjoining in that family. The paper treats these connections as part of the background to its question about weighted tree languages. Synchronous Tree-Adjoining Grammars

The gap between a paired grammar and a tree transformation was already a subject of study. The authors point to early work connecting syntax-directed transductions and tree transducers. They describe a characterization by Shieber in which a classical unweighted synchronous tree substitution grammar can be represented as a bimorphism. In the reverse direction, one can recover the desired tree pairs by relabeling trees produced by a classical grammar. The paper also situates its use of bimorphisms alongside work on the adjoining formalism. Unifying Synchronous Tree Adjoining Grammars and Tree Transducers via Bimorphisms

The need for relabeling points to a difference between the jobs a symbol can perform. In a classical synchronous grammar, the category at a substitution site can constrain which fragment comes next and also appear in a finished tree. The paper’s extension gives the first job to separate states. The terms terminal and nonterminal can otherwise be confusing here. A category that a context-free grammar treats as a nonterminal can label an ordinary node of the finished tree in this paper. It is an output symbol of the tree grammar in that role. A state of the synchronous grammar, by contrast, marks a part of the tree still to be supplied. The authors draw the distinction within the broader study of syntax and grammar formalisms.

The distinction matters when a choice made high in a tree constrains a distant leaf. If the grammar uses a temporary state to remember which choice it made, the intervening visible nodes can retain the same labels across different derivations. The paper gives a family of trees that makes this difference explicit. At issue is what a grammar can remember in the course of substitution while producing trees over a specified alphabet. Separating that memory from the output labels prepares the way for the weighted bimorphism characterization and for the construction that recognizes the result of application.

The method, step by step

From synchronized fragments to a weighted collection

A synchronous rule works on two unfinished trees. Each tree contains ordinary nodes that will be part of the result, and it may contain state leaves that mark places still to be expanded. A link associates an input state leaf with an output state leaf. The two leaves may occupy different positions. If they share a link, they carry the same state and will be expanded by the same rule choice.

The derivation begins with the initial state on each side and a link between them. To apply a rule, the grammar substitutes the rule’s input fragment at one end of a chosen link and its output fragment at the other. The rule specifies how its new state leaves are linked. The original link has now served its purpose. The other existing links stay in place, and the newly introduced links determine future paired expansions. A completed derivation has replaced every state leaf on both sides.

For forward application, the authors combine this process with a second grammar that assigns weights to source trees. Consider one synchronous rule. The second grammar can account for the visible part of its input fragment and record, at each unfinished position, the state from which it must account for the rest. The links say exactly where that requirement belongs on the output fragment. By putting both requirements in a single state at each linked output position, the construction retains enough information to continue. The rule it creates only needs to build the output fragment.

Constructing the grammar for forward application

The steps in order.

Constructing the grammar for forward applicationStep 1: Put the input grammar in normal form1. Put the input grammar in normal formStep 2: Choose a synchronous rule and input start state2. Choose a synchronous rule and input start stateStep 3: Assign input grammar states to linked leaves3. Assign input grammar states to linked leavesStep 4: Weigh the input fragment under those assignments4. Weigh the input fragment under those assignmentsStep 5: Transfer paired states to the output fragment5. Transfer paired states to the output fragmentStep 6: Multiply weights and merge matching output rules6. Multiply weights and merge matching output rulesStep 7: Start the output grammar from both initial states7. Start the output grammar from both initial states

The construction takes grammars with specified rules and weights as its inputs. A parser’s weighted alternatives motivate using such an input grammar, and the worked example supplies one directly. The procedure manipulates the given rules and their weights. There is no stage in the construction that estimates weights from sentence pairs.

Trees, positions, and unfinished leaves

The formal treatment uses ranked trees. In a ranked alphabet, each label has a fixed number of children. The authors use different alphabets for input and output, with the convention that a label appearing in both has the same rank in each. A ranked alphabet can contain labels for leaves, labels for nodes with one child, and labels for nodes with more children. The arity comes from the label.

Σₖ = {σ ∈ Σ | rkΣ(σ) = k}

Here Σ is a ranked alphabet, σ is one of its symbols, and rkΣ(σ) is the rank of that symbol in Σ. The subscript k specifies a rank. The braces collect all symbols satisfying the condition after the vertical bar, and ∈ means membership. The same convention applies to the output alphabet Δ and later to the shared derivation alphabet Γ.

The paper writes TΣ(Q) for trees with ordinary labels from Σ that may also have leaves labeled with a state in Q. A state on its own is such a tree. A larger tree can be built by placing a symbol over an ordered list of subtrees of the length required by its rank. The notation TΣ indicates trees made entirely from the ordinary alphabet. A symbol of rank zero can be written on its own because it already specifies a leaf. In particular, a rank-zero symbol used in a finished tree is distinct from an unfinished state leaf.

Tree positions provide addresses for the links. The empty address denotes the root. To identify a position below the root, first identify the child to enter and then give the address within that child. The paper uses this definition for the positions in a tree with a ranked symbol at its root.

pos(t) = {ε} ∪ {iw | 1 ≤ i ≤ k, w ∈ pos(tᵢ)}

pos(t) is the set of addresses in the tree t, and ε is the empty address. The tree has k children, with tᵢ denoting child i. The bounds on i range over child numbers starting at 1. The address iw concatenates that child number with an address w in the child. The union symbol ∪ joins the root address and all the child-prefixed addresses. For a state used alone as a tree, there is only the root address.

The notation t(w) refers to the label at address w. The authors distinguish all positions, all leaves, and the leaves with labels in a specified set. This lets a rule refer to the exact occurrences being substituted even when several leaves have the same state label.

lv_A(t) = pos_A(t) ∩ lv(t)

lv_A(t) is the set of leaves of t with labels in A. pos_A(t) collects all positions whose labels are in A, and lv(t) collects all leaf positions. The intersection ∩ selects positions with both properties. Taking A to be Q singles out the unfinished leaves of interest to the synchronous grammar.

When a tree replaces a leaf, its root takes the address of that leaf. A position inside the inserted tree gets the old leaf’s address as a prefix. A simultaneous substitution at several distinct leaves is well-defined because each replaced subtree occupies its own position. This addressing convention accounts for the change in links below a substitution site and lets the proof follow a pair from a local rule to a full derivation.

A connected tree pair contains the input tree, the output tree, the correspondence between unfinished leaves, and an accumulated weight. A rule associates such a pair with a state that permits its use.

q → (s, t, V, a)

q is a state in Q, and the arrow introduces a rule that can expand a linked pair of leaves carrying that state. s is an input fragment in TΣ(Q), t is an output fragment in TΔ(Q), and a is the rule’s non-negative weight. V is a bijection from the state leaves in s to the state leaves in t. A bijection pairs every state occurrence on either side with exactly one on the other side. The labels of the paired occurrences must agree.

The correspondence concerns occurrences. If a fragment has several leaves labeled with the same state, the links still distinguish their positions. The same state at two leaves allows the same set of rule choices, while the link at each leaf determines which occurrence on the other side receives that particular choice. An input fragment and an output fragment can therefore use the same subderivations in different orders. Because every linked occurrence has one partner, a subderivation is used once per side at each such link.

A pair can consist of just a single state on one side. In that case the rule changes the outstanding requirement on that side and supplies visible structure on the other. The paper’s rules must be productive on at least one side. A rule is input-productive if its input fragment is more than a state by itself. It is output-productive if that is true of its output fragment. A grammar is productive in a given direction when every rule satisfies that side’s condition. As a consequence, every rule contributes at least one ordinary node somewhere, and the stronger directional conditions say where it must do so.

The authors specify an order for expanding links because they intend to sum over distinct derivations. If a partially built pair has outstanding links in separate branches, either branch could be expanded before the other, while the choices attached to the branches remain identical. Counting both schedules would give that set of choices extra weight. The paper fixes the order by taking the leftmost unfinished leaf in the output tree and following its link to the input leaf. Different rule choices continue to give distinct derivations.

ξ₁ = (q, q, {(ε, ε)}, 1)

ξ₁ is the first connected pair in a derivation from state q. Each q in the tuple is a tree consisting of that state alone. The set has one link, from input root ε to output root ε. The initial weight 1 is the multiplicative identity, so it leaves the first rule’s contribution unchanged.

Suppose that the current pair has trees s₁ and t₁, link set V₁, and weight a₁. The selected link has addresses w and w′, with w′ the leftmost output state address. A rule for the state at w produces the following trees.

(s₂, t₂) = (s₁[w ← s], t₁[w′ ← t])

s₂ and t₂ are the new input and output trees. The brackets describe replacement at an address, and ← puts the tree on its right at the address on its left. The fragments inserted at w and w′ are the rule’s s and t. The old trees are s₁ and t₁.

V₂ = (V₁ ∖ {(w, w′)}) ∪ {(ww₁, w′w₂) | (w₁, w₂) ∈ V}

V₂ is the new link set. The set difference ∖ removes the expanded link from V₁. The union ∪ adds the rule’s links, relocated to their positions in the larger trees. V is the rule’s internal correspondence, and w₁ and w₂ are the local addresses of one linked pair within it. Juxtaposition in ww₁ and w′w₂ concatenates the insertion address with the corresponding local address. The vertical bar gives the membership condition for the links being added.

a₂ = a₁ · a

a₂ is the accumulated weight after the step, a₁ is the weight before it, and a is the weight of the rule. The centered dot denotes multiplication. Thus the final weight of a derivation contains one factor for each rule occurrence.

The grammar can reach the same pair through more than one choice of rules. The authors first define a quantity that allows a derivation to stop at a partially finished pair, then obtain the transformation of completed trees as a special case. Allowing partial trees is useful in the construction, where a fragment is analyzed only as far as the sites at which it hands work to a later rule.

τᴳ_q(s, t, V) = ∑_{a ∈ ℝ≥0, D ∈ 𝒟ᴳ_q(s, t, V, a)} a

τᴳ_q is the weight assigned by grammar G from state q to the connected pair described by s, t, and V. ℝ≥0 is the set of non-negative real weights. 𝒟ᴳ_q(s, t, V, a) is the set of derivations that start from q and reach those trees and links with accumulated weight a. The summation sign ∑ adds a term for each derivation D, even when multiple derivations have the same accumulated weight. The comma in the index imposes both membership conditions.

τ_G(s, t) = τᴳ_qₛ(s, t, ∅)

τ_G is the weighted tree transformation computed by G. In this formula s and t are finished trees, qₛ is the initial state of G, and ∅ is the empty link set. The right-hand side is the preceding derivation sum with that choice of initial state and links. The paper also assumes that rules with the same state, fragments, and links are represented without separate variants distinguished solely by their weights. Later, when the construction produces several contributions to the same rule, it explicitly adds them.

What recognizability requires

A weighted tree language assigns a weight to each tree over a ranked alphabet. The paper uses weighted regular tree grammars to define recognizability. Such a grammar has a finite collection of rules and states. A rule expands a state into a tree fragment and has an associated weight. The weight assigned to a finished tree follows the same product-then-sum convention used for the synchronous grammar.

The authors obtain this kind of grammar as a special case of their synchronous definition. Give a rule identical input and output fragments and link each unfinished leaf to the occurrence at the same address. This grammar builds identical copies of the same tree. Describing both copies would be redundant, so the single-tree notation records the state, fragment, and weight. Productivity of the synchronous rule then requires that the common fragment contain an ordinary node. In particular, a bare transition between states is excluded from this presentation of a weighted regular tree grammar.

ϕᴳ_q(s) = τᴳ_q(s, s, id_{lv_Q(s)})

ϕᴳ_q is the weighted language of the regular grammar G started from state q. The fragment s may still contain state leaves. On the right, τᴳ_q evaluates two copies of s, and id_{lv_Q(s)} is the identity correspondence on the set lv_Q(s) of its state leaves. Each such leaf is linked to itself in the other copy. For a language on completed trees, the grammar starts from its initial state and considers trees with no state leaves. A language is recognizable if some weighted regular tree grammar generates its whole weight function.

In the normal form used in the proof, every weighted regular tree grammar rule has exactly one ordinary tree alphabet symbol on its right-hand side. A larger fragment can be broken into local expansions with intermediate states. The paper invokes the construction for unweighted regular tree grammars and extends it to weights. The purpose is to make the accounting at a boundary straightforward. When the input grammar reads a synchronous rule’s fragment down to its unfinished leaves, each elementary step accounts for one ordinary node, and the state at each unfinished leaf describes what remains.

The definition separates the size of a grammar from the size of the language it describes. A finite set of rules can be reused along a tree of arbitrary depth. Recognizability demands a finite set of states and rules that reproduces the weights throughout that language. A grammar that recognizes the set of trees with positive weight alone would discard information the paper’s application construction is designed to retain.

A shared derivation with two interpretations

The bimorphism characterization starts with a different way to represent the same pair. A tree over an auxiliary alphabet records which rules were chosen and which subderivations filled their outstanding sites. One map turns this shared tree into the input. Another turns it into the output. A weighted regular tree grammar assigns the weight of the shared derivation tree. This separates the choice and weighting of a derivation from the task of interpreting it on either side.

A tree homomorphism in the paper supplies a target template for each symbol in the auxiliary alphabet. The rank of the symbol specifies how many child derivations it has. The template marks as many distinct leaves as there are children. At those leaves it inserts the interpreted children. The mapping is linear because no child is inserted more than once, and complete because each child is inserted. The marked leaves can have a different order from the original children. If a map always places its children in their original order, the authors call it order-preserving.

h(γ(d₁, …, dₖ)) = s[u₁ ← h(d₁), …, uₖ ← h(dₖ)]

h is the tree homomorphism, and γ is a symbol of rank k in the auxiliary alphabet Γ. The trees d₁ through dₖ are the children of the source tree. The symbol’s template is s, with distinct marked leaves at addresses u₁ through uₖ. The bracketed expression replaces each such leaf with the image under h of its corresponding child. The ellipses stand for the remaining indexed children and replacements. On a leaf of the auxiliary tree, the symbol has rank zero and its template requires no child replacements.

A deterministic relabeling is a simpler operation: it replaces each label according to a fixed map and preserves the rank of the label. The tree keeps all its positions, and children stay where they were. A relabeling is therefore order-preserving. It is useful when an intermediate representation uses labels that combine visible symbols with information needed only during derivation.

pos(r(s)) = pos(s)

r is a deterministic relabeling, s is the original tree, and r(s) is the relabeled tree. pos gives the set of addresses. Their equality states that relabeling preserves the tree’s shape.

r(s)(w) = r(s(w))

w is any address in s, r(s)(w) is the label there after relabeling, and s(w) is the original label. Applying r to that label determines the new one. The same notation serves for the map on symbols and its application throughout a tree.

For a weighted bimorphism, the authors use a regular tree grammar K over the auxiliary alphabet Γ and two homomorphisms. The input map has results over Σ, and the output map has results over Δ. A given pair can have several shared derivations that project to it. Its weight is the sum of their weights.

τ_B(s, t) = ∑_{d ∈ hᵢₙ⁻¹(s) ∩ hₒᵤₜ⁻¹(t)} ϕ_K(d)

B is the bimorphism and τ_B is its weighted transformation. s is an input tree and t is an output tree. hᵢₙ⁻¹(s) is the set of auxiliary trees mapped to s by the input homomorphism, and hₒᵤₜ⁻¹(t) is the set mapped to t by the output homomorphism. The superscript ⁻¹ here denotes a preimage. The intersection ∩ keeps auxiliary trees d meeting both conditions. ϕ_K(d) is the weight assigned to such a tree by K, and the sum collects all those contributions.

To pass from a synchronous grammar to a bimorphism, the proof associates a symbol of Γ with each synchronous rule. Its rank is the number of linked sites in the rule. The regular grammar for derivation trees uses the same states as the synchronous grammar. In a rule of that regular grammar, the auxiliary symbol identifies the synchronous rule, and its children specify derivations from the states at the linked sites. The order can follow the leaves of the output fragment. The output homomorphism then preserves this order, and the input homomorphism uses the links to locate those same child derivations on the input side.

In the opposite construction, the regular grammar over Γ is taken in normal form. Its local production specifies an auxiliary symbol and the child states. The two homomorphisms supply the corresponding fragments. Wherever both fragments need the image of the same child, the construction places a link between their marked leaves and assigns those leaves the child’s state. The production’s weight becomes the synchronous rule’s weight.

The correspondence is at the level of derivations. Each elementary rule occurrence is represented with the same weight, and each child derivation is attached at the corresponding linked site. With the chosen derivation order, a completed synchronous derivation can be recovered from its counterpart over the auxiliary alphabet. The argument therefore preserves the sum of products for a tree pair. Preserving which tree pairs are possible would give a weaker equivalence than the one the paper establishes.

Applying the transformation in either direction

Forward application starts with weights on source trees. For any one output tree, it takes each possible source, multiplies that source’s weight by the weight of the transformation to the output, and adds the contributions. Backward application fixes a source tree and uses the weights of the output trees it can produce.

τ(ϕ)(t) = ∑_{s ∈ TΣ} ϕ(s) · τ(s, t)

τ is a weighted tree transformation from Σ-trees to Δ-trees, and ϕ is a weighted language on Σ-trees. τ(ϕ) is the resulting weighted language on Δ-trees. For its value at output tree t, the sum ranges over input trees s in TΣ. ϕ(s) is the input weight, τ(s, t) is the pair weight, and the centered dot multiplies the two.

τ⁻¹(ψ)(s) = ∑_{t ∈ TΔ} τ(s, t) · ψ(t)

ψ is a weighted language on output trees. τ⁻¹(ψ) is the language obtained by applying the reversed transformation to ψ. The displayed value is for an input tree s. The index t ranges over TΔ, the set of finished trees over the output alphabet Δ. The product combines the pair weight τ(s, t) with the output weight ψ(t). The summation adds these products for the fixed source.

τ⁻¹(t, s) = τ(s, t)

Here τ⁻¹ denotes the transformation with its arguments reversed, carrying over the same weight. s and t are the input and output of τ. This inverse is meaningful even if many inputs can reach one output or one input can reach many outputs. At the grammar level the authors reverse the fragments and the bijection in each rule while keeping its weight. The same paired expansions are available with their roles exchanged. The convention for which link to expand first may schedule the choices differently, but the choices along corresponding subderivations and their products are preserved.

The sums are initially written over all trees of the relevant alphabet. Their finiteness depends on which tree is fixed. With output productivity, every rule adds an ordinary node to the output. Any derivation of a specified output tree therefore has at most as many steps as that tree has nodes. With finite rules and finitely many places to expand in each intermediate tree, only finitely many derivations can contribute. In particular, only finitely many distinct inputs can give that fixed output a non-zero pair weight. Input productivity gives the analogous bound when the source is fixed. The correspondence between the side that grows and the side held fixed is the reason for the different conditions in the two directions.

Constructing the forward grammar

Let the recognizable input language be generated by a weighted regular tree grammar K in normal form, with state set P. Let the synchronous grammar be G, with state set Q. The output grammar L uses states from the Cartesian product P × Q. A pair of states records which state of K is responsible for a source subtree and which state of G is responsible for generating that subtree with its linked target counterpart.

The construction considers a rule of G and a state p of K. At the root of the input fragment, it starts K from p. At each input state leaf, it allows a state of K to describe the point where this partial analysis stops. One candidate is produced for each assignment of those boundary states. The input fragment above the boundary remains fixed, so the relevant quantity is the weight from K of that fragment with the assigned state labels.

b = ϕᴷ_p(s[uᵢ ← pᵢ | 1 ≤ i ≤ k])

b is the input grammar’s contribution for this fragment. ϕᴷ_p is the weight function of K started in p, allowing partial trees. s is the input fragment of the synchronous rule. The address uᵢ is its ith unfinished input position in an enumeration of k linked sites, and pᵢ is the state of K assigned there. Between the brackets, the vertical bar and bounds on i specify a replacement at every listed site. The value can collect several partial derivations of the same fragment from p.

Next the construction moves those requirements through the links. If uᵢ corresponds to vᵢ, where vᵢ is an unfinished output address, the new state at vᵢ must retain the input grammar’s boundary state and the synchronous grammar’s original substitution state. The rest of the output fragment is kept.

t′ = t[vᵢ ← ⟨pᵢ, t(vᵢ)⟩ | 1 ≤ i ≤ k]

t is the output fragment of the synchronous rule, and t′ is the fragment formed for L. vᵢ is the output address paired with uᵢ. t(vᵢ) gives the synchronous state labeling that leaf. The angled brackets form the state pair with pᵢ as its first component. The replacement is made at each linked output address indexed by i.

The candidate rule has left-hand side ⟨p, q⟩ and fragment t′ on its right. Its contribution is the synchronous rule weight a multiplied by b. Other synchronous rules or assignments can yield the same fragment from the same paired state. Once their contributions have been computed, the input details distinguishing them have already done their work. The construction combines them at the rule level.

c = ∑ ab

c is the weight of the rule from ⟨p, q⟩ to the fixed fragment t′. Each term is the product of the synchronous rule’s weight a and the input grammar’s partial-fragment weight b. The summation ranges over the rules of G for q and the boundary assignments that yield this particular t′ and this left-hand state. Juxtaposition in ab denotes multiplication.

Only finitely many synchronous rules and boundary assignments are available. The formal description allows potential rules whose resulting weight is zero and removes those entries to give a finite set. Every retained rule contains the visible part of an output fragment of G. Output productivity ensures that it therefore has an ordinary output symbol, as required for L to be a weighted regular tree grammar in the paper’s presentation. The construction begins L from the state pair consisting of the respective initial states of K and G.

The bimorphism view describes the same operation at a different level. Take the preimage of the input language through the input homomorphism, so a shared derivation is assigned the weight of its input tree. Multiply that weight by the weight assigned to the shared derivation by the bimorphism’s grammar. Multiplying two weighted functions point by point is the Hadamard product. Then use the output homomorphism to collect contributions that describe the same output tree. The direct construction puts this preimage, multiplication, and projection into its paired states and rules.

Why the rule weights give the desired answer

The proof needs to compare derivations that may still have work to do. Take an output fragment with unfinished leaves. Specify both required states at each unfinished leaf of the result grammar. On the synchronous side, consider the compatible input fragments with synchronized leaves. On the input grammar side, replace those synchronized leaves with the specified boundary states. The product of the corresponding partial weights measures the contribution of the two derivations up to that boundary.

∑_{s, V} ϕᴷ_p(s′) · τᴳ_q(s, t, V) = ϕᴸ_⟨p,q⟩(t′)

On the left, the sum ranges over compatible input fragments s and links V for the fixed output fragment t with its specified leaves. The fragment s′ is s with the designated input grammar states placed at the leaves linked to those output positions. ϕᴷ_p is the partial-tree weight under K from p, and τᴳ_q is the partial-pair weight under G from q. The dot multiplies these quantities. On the right, t′ is t with the paired states at its unfinished leaves, and ϕᴸ_⟨p,q⟩ is the partial-tree weight assigned by L from the paired state ⟨p,q⟩.

This identity can be read locally. At the first synchronous expansion, the input grammar contributes the weight of its matching partial expansion. The paired states distribute the remaining work to the children at the correct linked positions. Repeating the argument for the child derivations accounts for every rule weight in the two descriptions. Summing the contributions of identical output rules preserves the total when those rules participate in larger derivations, since multiplication distributes over the sum. This is why the construction can discard the source fragments from the output grammar after recording their weights and boundary requirements.

For a finished output tree there are no boundary states to specify and no links left. The possible source trees are also finished because the correspondence pairs all remaining state leaves. The identity specializes to the forward-application formula.

ϕ_L(t) = ∑_{s ∈ TΣ} ϕ_K(s) · τ_G(s, t)

ϕ_L(t) is the weight of output tree t in the constructed grammar L from its initial paired state. ϕ_K(s) is the weight of source tree s from the initial state of the input grammar K, and τ_G(s, t) is the transformation weight from the initial state of G. TΣ is the source tree set, and the sum adds the products for all sources. Since this equality holds for every finished output tree, L recognizes the forward application. For backward application, an input-productive G becomes output-productive when reversed, so the already established construction applies to the reversed grammar and the given output language.

Domain and range as weighted projections

For an unweighted relation, the domain indicates which sources participate and the range indicates which targets participate. The paper’s weighted versions also retain how much weight each tree has across its partners. The domain fixes the source and aggregates its transformation weights. The range fixes the output and does the corresponding aggregation over sources.

dom(τ)(s) = ∑_{u ∈ TΔ} τ(s, u)

dom(τ) is the weighted domain of transformation τ, evaluated at source tree s. The summation index u runs over the possible target trees in TΔ, and τ(s, u) is the weight of the corresponding pair.

range(τ)(t) = ∑_{u ∈ TΣ} τ(u, t)

range(τ) is the weighted range at target tree t. Here u runs over the source trees in TΣ, and τ(u, t) supplies the weights to be summed.

These operations are applications to the constant weighted language that assigns 1 to every tree. The authors observe that this language is recognizable for any ranked alphabet. Choosing it on the target side leaves each pair weight unchanged in the backward formula and gives the domain. Choosing it on the source side does the same in the forward formula and gives the range. As a result, input productivity gives a recognizable domain, and output productivity gives a recognizable range. When every rule supplies ordinary structure on both sides, the two conclusions apply to the same grammar.

Experiments and results

Reading the evidence in a theoretical paper

The paper’s results are theorems about weighted grammars. It reports no translation corpus, training or test split, empirical baseline, or performance metric. Its numerical examples use grammar rules whose weights are specified directly. The outcomes to examine are the tree pairs those rules can produce, the weight a derivation or tree receives, and the structure of the grammar obtained by applying the construction. Across the proofs, the reference quantity is the weight defined by summing over the original derivations and source trees. The constructed grammar must reproduce that quantity.

The main theorem establishes recognizability in the two directional cases. The equivalence theorem supplies a second formal result by putting synchronous grammars with states and weighted bimorphisms on the same footing. It also relates the transformations to classical synchronous grammars followed by deterministic relabelings. The domain and range result follows by using the constant language as an input to the appropriate construction. The examples below show the workings of these results on small grammars.

A transformation that can reorder subtrees

The synchronous grammar in the first worked example has ordinary symbols σ and α. Their ranks are 2 and 0, respectively. Its states are o and e, with o initial. They represent odd and even counts of α leaves in completed trees. A derivation from o can stop with α on both sides using a rule of weight 1/3. The rules from e produce σ roots and require both children to be even or both to be odd. Each of those rules has weight 1/2 and links the children across the two sides in reversed order.

From o, another possibility is a node over children of unlike parity. When the input lists the odd child before the even one, a rule of weight 1/3 reverses their order on the output. When the input starts with the even child, a rule of weight 1/6 puts the odd child first on the output, and another rule of weight 1/6 keeps the order. The input and output of a completed derivation have the same number of α leaves. At every branching site their positions reflect the links chosen there.

The first figure traces a particular derivation. Its input has a σ root, a left subtree with two α leaves, and a right child α. Its output has the single α on the left and the two-leaf subtree on the right. The root rule uses the case for an even child followed by an odd one and reverses the order. The even subtree expands with two odd children. Each outstanding odd leaf can then close with the α rule. The factors shown for the pair use 1/6 for the root choice, 1/2 for the even expansion, and 1/3 for each closing choice. The alternative root rule with the identity links gives the same weight to the pair whose output is identical to the input. Equal weights in this example accompany different output structures because the two relevant root rules have equal weights and the succeeding choices contribute the same factors.

A source grammar with a single continuing branch

The weighted regular tree grammar used as input in the worked application has the same ordinary symbols. From its initial state q, the grammar can produce σ(p, α) with weight 0.4 or end at α with weight 0.6. In the first rule, p continues into a fragment whose continuing state is the right child. In combination, these expansions make the continuing branch change direction as it descends. The other child in each fragment is α. Thus the trees with non-zero weight have the paper’s thin zigzag shape. The figure for this example displays sample trees together with their grammar weights.

The chart compares the two specified choices from the initial state. Its values are rule weights within this illustrative source grammar. The star marks the larger of those weights.

Initial expansion weights in the paper’s zigzag tree grammar

The rule that ends at a leaf has the greater weight.

Initial expansion weights in the paper’s zigzag tree grammarExtend the branch from q: 0.4Extend the branch from q0.4End at α from q (this paper): 0.6End at α from q (this paper)0.6
The numbers
System or settingrule weight
Extend the branch from q0.4
End at α from q (this paper)0.6

Before applying the synchronous grammar, the authors use an equivalent normal-form presentation of the zigzag grammar. For example, an explicit α child can be put behind a state whose rule produces α. This allows the parent rule to supply only σ, and the child’s rule supplies the leaf. The tree and its weight remain the same after the intermediate state has been expanded. The change makes it possible to see which state the source grammar assigns to each linked site of a synchronous fragment.

What the constructed grammar generates

The paper’s forward example combines the zigzag source grammar with the parity-sensitive synchronous grammar. At the initial paired state, the source grammar permits a nontrivial tree whose continuing child is on the left. The synchronous grammar can use the rule whose input starts with an even child followed by an odd child. The input grammar assigns one state to the continuing branch and another to the α child. Those states are paired with e and o at the synchronized output sites.

For the root rule that reverses the children, the paired state for the single leaf appears on the left of the output σ. For the root rule that preserves their order, it appears on the right. The paper shows both resulting rules with weight given by 1/6 multiplied by 2/5. The first factor is the corresponding synchronous rule weight, and the second is the source grammar’s normal-form contribution for the input fragment. The example also shows the initial paired state ending at α, with weight given by 1/3 multiplied by 3/5. This rule arises because both original grammars can end there without leaving a substitution site.

In the result grammar, a recursive expansion can keep carrying the paired state for the continuing branch, while the other branch closes as a leaf. Its location can change under the synchronous links. The authors show the rules that contribute to the resulting weighted language and display the grammar with renamed states. Every tree with non-zero weight in the result is thin. The paper gives the bound 2 on the number of nodes at each depth. This describes the resulting language’s shape. The example’s purpose is to show how the paired-state construction transfers source constraints and weights while allowing changes in subtree order.

What the ablations show

The paper reports no empirical ablations and instead analyzes the roles of the state extension, directional productivity, and correspondence between derivations through proofs and worked examples.

What changes when substitution has its own states

The paper translates a small classical synchronous grammar into the state-based formalism. In the classical grammar, an input substitution category B is paired with an output substitution category D. The state-based grammar treats the pair of categories as the state at both unfinished leaves. Where a category belongs to a visible node in the finished tree, it remains in the appropriate fragment. This lets the state-based grammar reproduce the original substitution choices without requiring the original category names to match across input and output.

A different example establishes why the move can increase what the grammar expresses over fixed visible labels. It considers identical input and output trees that have a root chosen from two distinct unary labels, followed by a chain of the same intervening unary symbol. At the bottom, one leaf label belongs with one root choice and a different leaf belongs with the other. The chain can extend to arbitrary length, so the requirement is a dependence between the root and a leaf across potentially many indistinguishable intervening nodes. The transformation assigns weight 1 when the two trees are identical and obey the association, and 0 otherwise.

τ(s, t) = { 1  if s = t = γ′(γᵐ(α)) or s = t = γ″(γᵐ(β))
          { 0  otherwise

τ is the illustrative transformation and s and t are the two trees. γ′ and γ″ are different unary root symbols, and γ is the unary symbol repeated along the chain. γᵐ(x) means m nested occurrences of γ above tree x. The distinct leaf symbols are α and β. The accepted pairs use the same tree on both sides and couple γ′ to α or γ″ to β. The case values 1 and 0 are weights.

The state-based grammar can choose a state at the root and keep passing the corresponding requirement down the chain until it produces the leaf. The intervening nodes have the same visible label in both cases. In a classical grammar the visible category also controls substitution. The authors use this locality to rule out the illustrated transformation for the classical formalism over the given labels. A classical grammar can recover the state-based behavior with labels that carry extra information during derivation and deterministic relabelings that remove the extra distinctions afterward.

τ(s, t) = ∑_{s′ ∈ r₁⁻¹(s), t′ ∈ r₂⁻¹(t)} τ_G(s′, t′)

s and t are the desired visible trees, and τ is their target transformation. In this formula G is the classical synchronous grammar. s′ and t′ are its trees before relabeling. r₁ is the deterministic input relabeling and r₂ is the deterministic output relabeling. Their preimages r₁⁻¹(s) and r₂⁻¹(t) collect the trees that become the specified s and t. The sum adds the contribution τ_G(s′, t′) for each pair in those preimages.

This comparison isolates a representational issue. The classical grammar with relabelings can produce the weighted result because the intermediate labels carry distinctions that the final labels need not display. The synchronous grammar with states locates those distinctions directly at unfinished sites. The bimorphism construction can then use its derivation grammar to record the states and its two maps to produce precisely the visible fragments.

What the directional condition buys

The finiteness proposition isolates the contribution of productivity. In the forward sum the output tree is held fixed. A rule that supplies an output node spends part of the available size of that tree. It cannot be used indefinitely while producing the same fixed output. The same reasoning with source nodes applies to the backward sum. The two results are linked by exchanging the sides of each grammar rule.

Productivity also matters after the sums are shown to be finite. The new regular grammar retains the output fragment of each rule and its boundary requirements. If the fragment contains an ordinary node, the rule of the new grammar visibly grows its tree. This aligns the construction with the chain-free presentation of weighted regular tree grammars used in the paper. A rule that supplied only a state on the output would leave the construction with a bare state transition there. The proof uses the syntactic condition both for bounding contributions and for ensuring that the produced rules have the required form.

The fixed derivation order addresses a different issue. It controls how the paper counts a combination of local choices, while productivity bounds how large that combination can be for a fixed tree. Summing identical rule contributions addresses yet another part of the accounting: distinct choices that happen to leave the same output rule do contribute separate weight. The formal analyses thus distinguish equivalence caused by changing the schedule from different derivations that project to the same result.

Limitations

Limits stated by the authors

The closure theorem is stated for grammars that are productive on the side being generated. The authors allow synchronous rules that consist of a state on one side, provided they contribute ordinary structure on the other. Such a rule falls outside the guarantee for application towards the side on which it is silent. The paper explicitly introduces the forward, backward, domain, and range sums before imposing conditions that make them finite. Its finiteness argument relies on growth in the fixed tree for the relevant sum.

The hypothesis is a sufficient condition for the stated guarantee. The paper does not classify grammars that violate it by determining which of them still have finite application sums and recognizable results. A rule that is silent on one side takes away the particular node-count bound for that side. The effects on a given grammar would depend on which such rules can actually occur together in its derivations. Similarly, the domain and range statements each have their own condition, so applying the domain statement to a grammar gives no additional conclusion about its range unless the range hypothesis has also been checked.

The paper presents the calculations for non-negative weights in its probabilistic treatment. The authors state that their results hold for weights from arbitrary commutative semirings. The operations used throughout the presentation are multiplication along derivations and addition over alternatives. The paper develops the probability-side notation and examples instead of giving worked cases over different semirings.

The authors also delimit the formalism through its links. Each rule pairs all of its unfinished input leaves with all of its unfinished output leaves. The homomorphisms in the corresponding characterization are linear and complete. A transformation that duplicates an independently expanded constituent on one side, or discards its counterpart, lies outside the form of synchronization studied here. The cited connection with transducers is specifically to the linear, nondeleting extended form with the paper’s restriction on rules silent on both sides.

Limits visible in the setup

The direct construction proves that a finite result grammar can be obtained. Its size can depend on the combinations of boundary states needed for a fragment. A rule with several linked leaves gives the construction several sites at which to assign states of the input grammar. Zero-weight possibilities can be removed and duplicate rules can be combined, but the paper supplies no measured construction cost or quantitative study of how large the result becomes on translation grammars. Finiteness and an effective construction settle the representation question. Computational cost on a particular grammar is a separate question.

The linguistic motivation and the evidence also operate at different levels. Ambiguity in parsing explains why one might want to preserve and transform a weighted collection. The example grammars use ranked symbols and exactly specified state requirements. They establish the mechanics of combining weights and carrying constraints through links. They do not measure whether those mechanics resolve a particular sentence’s ambiguity correctly or improve the quality of translations on a corpus.

Recognizability preserves the defined weight at each tree. The forward weight can accumulate evidence from several source trees, several derivations of a pair, or both. The theorem supplies a grammar for those weights and imposes no extra normalization of the resulting language. In the same way, the weighted domain or range records a sum of relation weights, not a separately estimated distribution. Interpreting those sums as probabilities with a particular normalization would require additional conditions on the input weights and transformation.

The scope of the classical-grammar example is also precise. It demonstrates a difference when trees must carry their specified visible labels throughout. The relabeling characterization explains how a classical grammar can supply equivalent results once intermediate symbols may encode additional information. The example supports the paper’s choice to make states explicit, and the characterization specifies how the relationship between the formalisms depends on what is allowed between derivation and final output.

What came after

The subsequent citing work concerns tree parsing with synchronous tree-adjoining grammars. It takes up parsing in the neighboring adjoining formalism, which the authors had already placed alongside synchronous tree substitution in their account of syntax-based translation. That subject is distinct from the present paper’s question of whether application of a substitution grammar preserves a regular-grammar representation for a weighted collection of trees. The citation connects the work on parsing to the earlier study of synchronous formalisms. The specific role of the recognizability theorem, paired-state construction, or bimorphism characterization in that later work is unspecified. Tree Parsing with Synchronous Tree-Adjoining Grammars

Cite

Cite as Zoltán Fülöp, Andreas Maletti and Heiko Vogler. 2010. Preservation of Recognizability for Synchronous Tree Substitution Grammars. Proceedings of the 2010 Workshop on Applications of Tree Automata in Natural Language Processing.

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

@inproceedings{fulop2010preservation,
  title = {{Preservation of Recognizability for Synchronous Tree Substitution Grammars}},
  author = {Zoltán Fülöp, Andreas Maletti and Heiko Vogler},
  booktitle = {Proceedings of the 2010 Workshop on Applications of Tree Automata in Natural Language Processing},
  year = {2010},
  url = {https://aclanthology.org/W10-2501/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/fulop-2010-preservation-recognizability-synchronous-tree-substitution/