Elamur Research

A Generalized View on Parsing and Translation

Paper · 2011 · Alexander Koller and Marco Kuhlmann

Summary

A sentence, its syntactic tree and a corresponding structure in another language can all arise from the same grammatical choices. Yet those objects have different forms, and grammar systems frequently come with algorithms specific to the kind of object they handle. Alexander Koller and Marco Kuhlmann ask how much of parsing and machine translation can be described once and reused. Their answer is the interpreted regular tree grammar, or IRTG. A regular tree grammar specifies the allowed histories of grammatical rule applications. Separate interpretations turn a history into a string, a tree or another kind of object. A single history can have several interpretations, which is how the grammar connects objects across its different sides.

Each interpretation has two parts. A tree homomorphism replaces the labels in the derivation with instructions for building an object. An algebra supplies the operations that execute those instructions, such as concatenating strings or assembling a tree. The separation lets the authors reuse an algebra across different grammars. It also lets them change one side of a synchronous grammar without rebuilding the shared derivation rules. Their tree-substitution example has a version that relates two trees and a version that relates an input string to an output tree. The change is confined to the interpretation on the input side.

The generic parser starts with the observed object and works backward. It builds a decomposition grammar that represents every operation tree evaluating to that object. It then finds the derivations whose instructions belong to this decomposition grammar and intersects them with the original grammar’s derivations. The result is a parse chart that is itself a regular tree grammar. Ordinary string and tree algebras support this construction. The authors also give a decomposition bound of O(n⁶) for the string algebra used for tree-adjoining grammar. With suitable output interpretations, the same parse chart supports decoding by describing the output terms for all compatible derivations.

The framework covers examples from synchronous grammars, tree transducers and linear context-free rewriting systems. It develops an idea from generalized context-free grammar while allowing the grammar and its algebras to use independently chosen operation symbols. It can also describe discontinuous constructions without imposing the fixed bound on string-tuple length used in the authors’ account of linear context-free rewriting systems. The contribution is a common formal account and a way to reuse algorithms. The authors present no benchmark gains or new translation capability. They identify where the reusable construction pays off, where efficiency still depends on the grammar and algebra, and how intersecting chart grammars could help restrict syntactic ambiguity.

Deep dive: A Generalized View on Parsing and Translation

A Generalized View on Parsing and Translation shows how one grammar can support parsing and translation across strings, trees and other structures. · about 35 minutes to read

The problem and its context

What a shared derivation buys

A grammar for a single language can describe how a sentence is assembled. A synchronous grammar describes how two objects are assembled together. In the translation setting discussed by the authors, the objects might be syntactic trees associated with sentences in different languages. In an account of the syntax–semantics interface, one side can describe the syntactic analysis and the other its semantic representation. A shared derivation gives the two objects a common history. Each step can contribute different material on the two sides or put corresponding pieces in a different order.

This history matters when the input differs from the grammar’s natural output. A synchronous tree grammar can specify a relationship between derived trees, while a translation system may receive a sentence with no tree supplied. It must keep the grammatical choices whose source trees have the right string yield, meaning the words in their surface order. It then needs to derive the corresponding target structures. The paper treats the shift from a source tree to its string yield as a change in what is observed on one side. The relationship between grammatical choices survives that shift.

The authors describe synchronous grammars and tree transducers as established approaches to these problems. A tree transducer defines a relation between trees, often with one designated as the input and the other as the output. The paper cites weighted transducers as a basis for syntax-based translation from an input tree to an output tree or string. It also cites Chiang’s translation work as an example of the use of weighted synchronous grammars. These applications give the authors a reason to ask which parts of the formalisms account for the grammatical relationship and which parts deal with the representation supplied to the algorithm. Hierarchical Phrase-Based Translation

The same question arises for semantic construction. The paper points to work in which synchronization relates syntactic structure to semantic structure. This use makes the grammatical connection especially easy to distinguish from the everyday meaning of translation. The two sides can describe different aspects of a sentence in the same language. What matters formally is that both objects arise from associated rule choices. Synchronous Tree-Adjoining Grammars

Earlier ways of comparing grammars

The paper places this question in an older tradition of research on syntax and grammar formalisms. For monolingual grammars, it singles out linear context-free rewriting systems, or LCFRS, as a way of describing several mildly context-sensitive formalisms within a common account. A useful feature of this line of work is the ability to distinguish the structural combination of pieces from their final arrangement in a sentence. A grammatical constituent can contribute separate stretches of the surface string. A formalism that keeps those pieces available can say how later operations combine them. Characterizing Structural Descriptions Produced by Various Grammatical Formalisms

The authors see fewer unifying results for synchronous formalisms. They identify Shieber’s connection between synchronous tree-adjoining grammars and tree transducers as an important precedent. They also draw on the account of transducers through tree bimorphisms. In that account, a regular tree grammar provides a common set of derivations and a pair of tree homomorphisms reads them in different ways. A tree on either side can therefore be understood by asking which derivation produced it and which interpretation gave it its visible form. The authors keep this organization and broaden the kinds of things an interpretation can produce.

Generalized context-free grammar, or GCFG, supplies another precedent. In the paper’s account of Pollard’s formalism, a regular tree grammar generates operation trees and an algebra gives those trees values. The grammar says which operation combinations are available. The algebra says what the combinations mean. That division already allows the value of a derivation to be something other than a tree of grammar rules. IRTG makes an additional division between the labels used to record the rules and the operations used to interpret them. It also gives each side of a synchronous grammar its own interpretation.

An ordinary context-free grammar makes this distinction concrete. Its familiar presentation starts with a nonterminal and rewrites pieces of a string until only words remain. The sequence of choices can also be recorded in a tree. In the authors’ presentation, that rule tree comes first. Reading the leaves as words and the internal rules as instructions for joining their children gives the sentence. Reading the same rule choices as instructions for assembling labeled syntactic nodes gives a syntactic tree. The relation between those outputs follows from using the same rule history.

Recognizing an object and recovering its derivations

The paper gives different names to two tasks that often travel together. Membership asks whether any derivation yields the given object or tuple of objects. Parsing asks for a representation of all the derivations that do. If a sentence has an attachment ambiguity, membership can be settled as soon as one compatible derivation exists. Parsing must preserve the separate attachments licensed by the grammar. A compact chart is valuable because it can make those alternatives available for later processing while sharing their common parts.

This distinction matters when a grammar is reorganized to make recognition cheaper. An equivalent grammar may generate the same strings while recording different rule applications on the way to them. A recognizer can use either grammar to answer the existence question. A parser in the authors’ sense is accountable to the rule inventory and derivation structure of the grammar it was asked to parse with. The difference becomes especially important in synchronous grammar, where a reorganization has to work across the interpretations that share a derivation.

Decoding starts with a related but different question. Some sides of the grammar are observed, and the other sides are to be recovered. A decoder first needs the derivations compatible with the input. It can then read those derivations in the output interpretation. That setup makes parsing and decoding parts of the same construction. It also exposes a condition on how outputs are represented, since the input filter and the output mapping are different mathematical operations.

The method, step by step

Start with the history of rule choices

The authors use the sentence “Sue watches the man with the telescope” to illustrate the distinction between a derivation and its result. In one analysis, the phrase about the telescope belongs with the noun phrase describing the man. In the other, it attaches to the larger verb phrase. The words appear in the same order under either analysis. The internal combinations differ, so they give different trees of rule choices.

At the root of either derivation is a rule that builds a sentence from a noun phrase and a verb phrase. The children of that root must therefore be derivations that produce those categories. A leaf for the subject names the lexical rule that supplies “Sue.” A tree of these rule names makes the grammatical choices explicit even before anything has been said about how to recover the sentence. For the string interpretation, the lexical rule contributes the word and the internal rules arrange and concatenate the strings returned by their children.

A regular tree grammar, or RTG, records which such trees are permitted. As in a string grammar, its nonterminals express what is still required. In the tree grammar they stand at places where a subtree can be inserted. A production replaces one of those nonterminals with a tree fragment. If that fragment contains other nonterminals, rewriting can continue at each of them. The derivation is complete once every remaining label belongs to the terminal signature.

From observed objects to a parse chart and outputs

The steps in order.

From observed objects to a parse chart and outputsStep 1: Build a decomposition grammar for each observed object1. Build a decomposition grammar for each observed objectStep 2: Find derivations whose instructions meet each decomposition2. Find derivations whose instructions meet each decompositionStep 3: Intersect those constraints with the shared rule grammar3. Intersect those constraints with the shared rule grammarStep 4: Keep compatible derivations in a chart grammar4. Keep compatible derivations in a chart grammarStep 5: Map the chart through each output interpretation5. Map the chart through each output interpretationStep 6: Evaluate the resulting terms as output objects6. Evaluate the resulting terms as output objects

The middle of this process is the key change in viewpoint. A conventional chart item can record that a category fits a span of the sentence. Here the chart is a grammar whose derivable trees are the complete rule histories compatible with the observations. The same kind of chart can therefore be used when an observed object is a tree and its parts are identified by tree positions. Only the decomposition step needs to know what kind of object was observed.

Specify the trees and give them operations

The paper uses ranked signatures to describe trees. A signature is a finite inventory of labels, and the rank of each label specifies how many children a node carrying that label has. A word constant can have rank zero. Binary concatenation has room for two children. A tree term writes a node’s label followed by its children in parentheses, so the term makes the grouping visible. The paper uses node addresses as well. The root is at the empty address, and a child address is formed by appending that child’s index to its parent’s address.

[n] = { i | 1 ≤ i ≤ n }

Here n is a non-negative integer, [n] is the set of indices from 1 through n, and i is a possible index. The braces form a set, the vertical bar means “such that,” and the inequalities select the indices in range. For n equal to 0, the index set is empty. The notation lets the paper refer uniformly to the children of a node and the arguments of an operation.

G = (N, Σ, P, S)

Here G is the regular tree grammar, N is its inventory of nonterminals, Σ is its terminal signature, P is the finite production set, and S is the distinguished start nonterminal in N. The nonterminals have rank 0 so that they occupy whole subtree positions. A production has a nonterminal on its left and a term over terminal and nonterminal labels on its right.

L(G) = { t ∈ TΣ | S ⇒*G t }

Here L(G) is the tree language of G, TΣ is the set of finite trees over terminal signature Σ, and t is a candidate tree in that set. The membership sign ∈ places t in TΣ. The notation ⇒*G indicates zero or more applications of productions from G, starting at S. The restriction to TΣ means that a completed derivation has no pending nonterminal.

A second signature can describe the instructions used to build an output. An algebra assigns an operation to each symbol of that signature. It has a domain of values, such as strings or trees, and each operation takes as many arguments as the rank of its symbol. The operations in the definition are total on inputs of their declared arity. A constant is an operation without arguments. For strings, constants supply words or the empty string and the concatenation operation joins its inputs. For trees, the operation associated with a label attaches its argument trees beneath a new root with that label.

⟦f(t₁, …, tₙ)⟧ₐ = fₐ(⟦t₁⟧ₐ, …, ⟦tₙ⟧ₐ)

The subscript ₐ denotes evaluation in a specified algebra. The symbol f names an operation of rank n, the terms t₁ through tₙ are its children, and fₐ is the operation assigned to f by the algebra. The double brackets around a term denote its value. The ellipses stand for the intervening arguments. The equation evaluates the child terms first and passes their values to the operation at the parent.

An operation term and its value can carry very different amounts of information. Two concatenation terms can place parentheses differently and still give the same string. In an ordinary tree algebra the corresponding evaluation preserves the construction as a labeled tree. This difference determines what the parser must consider when working backward from a value. For strings it must accommodate alternative bracketings. For ordinary trees the given tree fixes the constructor at every position.

Translate rule labels into operation trees

The derivation grammar ordinarily has symbols that name grammatical rules. An algebra has symbols that name operations. A tree homomorphism connects these two vocabularies. For each rule symbol it gives a term pattern, possibly with variables marking the places where the interpreted children will go. The pattern can contribute several operation nodes at once. A variable identifies a child by its position in the derivation, even if the corresponding place in the operation term comes earlier or later.

h(f(t₁, …, tₙ)) = h(f){ h(tᵢ)/xᵢ | i ∈ [n] }

Here h is the homomorphism, f is a derivation symbol of rank n, and t₁ through tₙ are its child trees. The expression h(f) on the right is the pattern assigned to f. Each xᵢ is the variable for child i, with i ranging over [n]. The braces after the pattern specify simultaneous substitution, and h(tᵢ)/xᵢ means to replace each occurrence of xᵢ with the recursively obtained term h(tᵢ). The left side denotes the resulting operation term for the entire subtree.

A homomorphism is linear when a pattern uses each variable at most once. This permits a pattern to omit a child. If a pattern uses a variable more than once, the same homomorphic image of that child is inserted at each occurrence. The paper also defines a more restricted class called delabelings. A delabeling replaces a node by a single node of the same rank, uses all of its child variables once, and may permute them.

h(f) = g(xπ(1), …, xπ(n))

Here f is the input label of rank n, g is the replacement label, and h(f) is its term pattern. The symbol π in this formula is a permutation of the indices in [n], and xπ(i) means the variable for the child whose original index is π(i). The ellipsis covers the other positions. The pattern can reorder the children while keeping a single operation at the parent. This local behavior matters in the paper’s analysis of binarization.

The homomorphism for an ordinary string grammar illustrates the larger class of patterns. The authors assign a fresh derivation label to each original production, with rank equal to the number of nonterminal occurrences on its right-hand side. The RTG rule attaches children in the order of those occurrences. The interpretation then takes the whole right-hand side, including its words, and represents it as a right-branching concatenation term. Where the production asks for a constituent, the pattern uses the corresponding child variable. Where it specifies a word, the pattern contributes that word directly. A long right-hand side can therefore produce a term with several concatenations even though it came from a single rule application.

Consider the original grammar’s use of the telescope phrase. Its two derivations give distinct concatenation terms because the verb and noun phrase are grouped differently. Both give the same sentence once their operations are evaluated. The original context-free grammar and the interpreted grammar thus agree on the string being generated. The interpreted account also gives a separate description of the rule tree, the operation term and the final string. Those distinctions will each have a role in the parser.

Give the same derivation several readings

An interpretation pairs a tree homomorphism with the algebra in which its result will be evaluated. The authors put a regular tree grammar and any positive number of these interpretations into an IRTG. With a single interpretation, the grammar describes the objects obtainable in that algebra. With several, it describes the tuples obtainable by reading the same derivation in every interpretation.

𝒢 = (G, I₁, …, Iₙ),  n ≥ 1

Here 𝒢 names the interpreted grammar and G is its underlying regular tree grammar. The interpretations are I₁ through Iₙ, and n is their count. The inequality specifies that at least 1 interpretation is present. Each interpretation uses the terminal signature of G as its homomorphism’s input signature.

⟦t⟧ᵢ = ⟦hᵢ(t)⟧ₐᵢ

Here t is a derivation tree, i is the interpretation index, hᵢ is the homomorphism for that interpretation and ₐᵢ denotes evaluation in its algebra. The left brackets denote the result of applying the complete interpretation. On the right, hᵢ(t) is the operation term, which the outer brackets evaluate.

L(𝒢) = { ⟨⟦t⟧₁, …, ⟦t⟧ₙ⟩ | t ∈ L(G) }

Here L(𝒢) is the interpreted language, the angle brackets form an ordered tuple, and each ⟦t⟧ᵢ is the value of the same tree t in interpretation i. The vertical bar introduces the condition that t belongs to the tree language L(G). The ellipsis covers the other interpretations. The shared t is what makes a tuple synchronous. Objects generated independently on each side need a common derivation before they form a licensed tuple.

The authors illustrate the construction with a synchronous tree-substitution grammar. Its lexicon contains paired tree fragments. Each fragment can have open substitution positions, and the pair specifies which positions correspond. A derivation chooses a lexical pair and combines it with further pairs that supply suitable trees on both sides. The order in which the available positions occur can differ across the paired fragments. Their correspondence records which child derivation belongs at each position.

⟨Aᴸ, Aᴿ⟩ → α(⟨A₁ᴸ, A₁ᴿ⟩, …, ⟨Aₙᴸ, Aₙᴿ⟩)

In this production, Aᴸ and Aᴿ are the root categories of the left and right fragments in lexical entry α. The superscripts ᴸ and ᴿ distinguish the sides. Each ⟨Aᵢᴸ, Aᵢᴿ⟩ is the nonterminal pair required for corresponding substitution positions indexed by i. The rank n of α is the number of these pairs. The arrow means that the root pair can be expanded into a node labeled α with the specified child requirements.

In the running example, the entry for “loves” has substitution positions for the two noun phrases. Its left interpretation places those phrases around the verb under a sentence node. Its right interpretation uses a tree built with application nodes and puts the corresponding child values in the order required by that tree. The derivation also selects the entries for “John” and “Mary.” Since the entries for the arguments are shared across the interpretations, each side knows which child comes from which argument choice.

If the observed object on the left is the sentence “John loves Mary,” the authors replace the left tree interpretation with a string interpretation. The new pattern for the verb entry concatenates its first child, the verb and its second child. The lexical entries for the arguments contribute their words. The right interpretation still constructs its application tree. The very same tree of lexical choices therefore supports a tree–tree relation under one configuration and a string–tree relation under the other. Which choices are possible continues to be determined by the nonterminal pairs and lexical entries.

Turn an observation into a grammar

The generative definition tells us how to get an object from a derivation. Parsing reverses the question. Given an object, the authors first ask which operation terms evaluate to it. The answer may contain many terms, so the parser needs a finite description of the set.

termsₐ(a) = { u ∈ T∆ | ⟦u⟧ₐ = a }

Here a is the observed value, ₐ denotes its algebra, ∆ is that algebra’s operation signature, and T∆ is the set of finite terms over ∆. The variable u ranges over those terms. The double brackets denote evaluation. The vertical bar introduces the equality that selects terms whose value is exactly a.

L(D(a)) = termsₐ(a)

Here D(a) is a regular tree grammar for decomposing a, L(D(a)) is the tree language it generates, and termsₐ(a) is the set of operation terms with value a. An algebra is regularly decomposable, in the authors’ terminology, if a computable procedure produces such a D(a) for every value in its domain. This definition asks for an effective construction as well as a regular language. It leaves the size of the resulting grammar and the cost of constructing it to the analysis of the particular algebra.

For the displayed string construction, the decomposition grammar uses nonterminals indexed by span boundaries. A leaf rule supplies a word at its own location. An internal rule joins two adjacent spans. The start nonterminal covers the whole observed string. The grammar describes all the binary bracketings built over the sentence’s words.

Aᵢ₋₁,ᵢ → wᵢ,  1 ≤ i ≤ n

Here wᵢ is the word at index i of the observed string, n is its length, and Aᵢ₋₁,ᵢ denotes the nonterminal for the span between boundaries i−1 and i. The arrow licenses the word as the term for that span. The inequality specifies which word positions have a rule.

Aᵢ,ₖ → Aᵢ,ⱼ • Aⱼ,ₖ,  0 ≤ i < j < k ≤ n

Here i and k are the outside boundaries of a span, j is a split between them, and n is the string length. The symbols beginning with A name the nonterminals for the parent and its two children. The dot • is the binary concatenation symbol, and the inequalities restrict the splits to adjacent, nonempty child spans within the input. For example, there is a way to join the spans for “the” and “man” into a single term for “the man,” regardless of whether the grammatical interpretation will later build a noun phrase there.

An ordinary tree algebra gives a different decomposition. The observed tree already has one constructor label at each node. The authors use a nonterminal for each position in that tree. A rule at a position gives its label and names the nonterminals for its children. Starting at the root yields the tree itself.

Aπ → f(Aπ1, …, Aπn)

Here π is an address in the observed tree, Aπ names its decomposition nonterminal, and f is the label at that address. Its rank is n. The symbols Aπ1 through Aπn name the child positions obtained by appending the corresponding indices to π, and the ellipsis covers the intervening children. The rule follows the structure of the input tree. In this algebra the resulting decomposition language contains just the given tree.

The string and tree cases show what the abstraction buys. Spans are a consequence of the string algebra’s operations. Tree positions arise from the constructor algebra’s operations. When a grammar uses either algebra, its parser can reuse the relevant decomposition procedure without requiring every rule to be written in terms of spans or tree addresses.

Pull the decomposition back through the interpretation

A decomposition grammar speaks the language of operations, while the original grammar speaks the language of rule choices. The inverse homomorphism puts the observation into the vocabulary of the original grammar. For each derivation tree, it asks whether the instruction term obtained by applying the homomorphism is permitted by the decomposition grammar. An intersection then keeps the trees that also obey the original grammatical rules.

parses𝒢(a) = h⁻¹(L(D(a))) ∩ L(G)

Here parses𝒢(a) is the set of parses for a in the single-interpretation grammar 𝒢. The expression h⁻¹ denotes the preimage operation for the homomorphism h. The set L(D(a)) contains operation terms, and its preimage contains derivation-signature trees whose images lie in that set. The symbol ∩ means intersection. The term L(G) supplies the well-formed derivations of the underlying grammar. Regular tree languages have effective constructions for both preimages under tree homomorphisms and intersections, so the result can also be represented by a regular tree grammar.

For a tuple of observations, the parser applies that construction to each observed interpretation and intersects the resulting languages. The method uses the derivation tree as the common object of comparison. Matching the input on each side with some derivation would only establish that the individual objects are possible. Matching them with a derivation present in every chart establishes that the objects can be generated together.

parses𝒢(⟨a₁, …, aₙ⟩) = ⋂ᵢ∈[n] parses₍G,Iᵢ₎(aᵢ)

Here ⟨a₁, …, aₙ⟩ is the observed tuple and parses𝒢 returns the shared derivations. The large intersection sign means to keep the trees found for every interpretation index i in [n]. On the right, parses₍G,Iᵢ₎(aᵢ) is the parse language obtained by using the common grammar G with interpretation Iᵢ and the corresponding observation aᵢ.

Match a rule’s operation pattern from the leaves upward

The paper identifies computing the inverse homomorphism as a bottleneck. A derivation label may expand to an operation tree containing several nodes. Matching that label against the observation may consequently require several decomposition rules. The direct construction the authors discuss enumerates combinations of decomposition nonterminals for a candidate rule, then tests whether the combination works. Most of the work can occur before the test discovers that the pieces cannot be combined.

The alternative algorithm processes the homomorphism’s patterns from their leaves toward their roots. It uses a tree grammar H for the operation language in a normal form with one terminal in each rule. The authors note that putting a tree grammar in this form increases its size only linearly. The algorithm keeps items that record a position in a pattern, a nonterminal in H and assignments for the variables encountered so far.

[f, π, A, σ]

Here f is the original derivation label, π is a position in its pattern h(f), A is an H nonterminal, and σ records a partial assignment from pattern variables to H nonterminals. The item says that the pattern at position π, with the recorded replacements, can be generated from A. The brackets collect the information needed to pass a partial match to a parent position.

A variable position admits a starting item for each possible nonterminal in H. At a position labeled by a constructor, the algorithm looks for a production in H with that constructor and the needed child nonterminals. It combines the children’s assignments if the assignments agree wherever they mention the same variable. The test matters when the homomorphism repeats an argument. Both occurrences originate with the same child derivation, so the algorithm as presented checks their nonterminal assignments before it records the parent match.

σ = merge(σ₁, …, σₙ)

Here σ₁ through σₙ are the partial assignments from the children of a matched constructor of rank n, and σ is their combined assignment. The operation merge combines their mappings if each shared variable has a consistent assignment. A conflict causes the inference to fail. The ellipsis denotes the intervening child assignments.

Once the matching process reaches the root of h(f), it has found a complete decomposition of that pattern. It adds a preimage rule labeled f whose child nonterminals are the assignments for the corresponding pattern variables. A variable that was absent from the pattern receives a special nonterminal that can generate any tree over the derivation signature. The observation places no condition on such a child through this interpretation. The final intersection with the original grammar still tests whether the child is grammatical in its position.

Read outputs from the chart

Decoding takes a chart for the input and maps each compatible derivation through an output interpretation. For a grammar with a left input and a right output, the authors express the decoding set directly in terms of the left parse language.

decodes𝒢(aᴸ) = { ⟦t⟧ᴿ | t ∈ parses𝒢ᴸ(aᴸ) }

Here 𝒢 is the synchronous grammar, aᴸ is the left input object, and 𝒢ᴸ is the grammar restricted to the left interpretation. The language parses𝒢ᴸ(aᴸ) contains the derivation trees compatible with the input. For each such tree t, the notation ⟦t⟧ᴿ gives its value on the right. The superscripts ᴸ and ᴿ designate the two sides.

To obtain a compact representation, the decoder first constructs a grammar for the output operation terms. A linear output homomorphism maps a regular tree language to a regular tree language, so the paper can reuse an existing closure construction. The terms in the output grammar then evaluate to the required objects. If several interpretations are observed, their parse charts can be intersected first. The chart of shared derivations continues to record how the output readings are related to one another.

The basic method starts with a specified grammar and its interpretations. The paper also sketches a weighted extension. Weights on the productions of the regular tree grammar give a weighted chart from which a best derivation can be extracted. The authors indicate that weighted output grammars can be obtained during decoding, and that expectation maximization can be defined on the weighted charts for training. Their canonical probabilistic treatment assumes statistical independence of individual rule applications. The paper describes the formal organization of that extension rather than a training run with a corpus, an initialization or a test set.

Experiments and results

The evidence consists of worked grammars and cost bounds

The paper presents a formal construction with illustrative inputs. Its closest equivalent to a test case is the context-free grammar and the sentence about Sue, the man and the telescope. The string decomposition grammar for that sentence generates 132 binary bracketings of its word sequence. This count measures the candidate operation terms in the displayed decomposition, before the original grammar is imposed. It does not count grammatical parses.

The authors then compute the inverse image of that decomposition under the string homomorphism. This produces rules that combine derivation labels with span requirements. At that point a rule in the inverse grammar can reflect a way to make the observed string without establishing that the combination is licensed by the original syntactic categories. Intersecting with the grammar supplies the missing condition. After removing rules irrelevant to complete parses, the example chart generates exactly the two derivation trees depicted for the sentence, with the two different attachments of the telescope phrase.

This result illustrates why the intermediate objects matter. The 132 figure describes the amount of bracketing freedom allowed by string concatenation in the example. The final chart describes the rule histories allowed by a particular grammar for that sentence. Its nonterminals combine a grammatical category with a span requirement, so different complete analyses can reuse the same constituent derivations. The authors compare its structure sharing to that of a CKY chart for the same input.

The synchronous tree-substitution example has a different purpose. It shows what stays available when the input changes from a tree to the string “John loves Mary.” The authors use the same lexicon of paired fragments and the same derivation rule choices. The output is the right-hand derived tree under either use, provided the observed object matches the chosen interpretation on the left. The example establishes how to obtain the string-to-tree relation within the framework. It supplies no scoring of output quality or comparison among trained systems.

The efficiency comparison for ordinary strings

The main comparison within the generic parser concerns how to calculate inverse homomorphisms. The baseline is the direct construction that forms possible rule candidates from arbitrary combinations of decomposition nonterminals and tests them. For parsing with a context-free grammar in Chomsky normal form, the paper gives O(n⁴) for this route, where n is the length of the input string. The proposed bottom-up matching construction gives cubic time on the same class of input grammars. These are analytical growth rates in input length.

Running-time exponents for parsing strings with a Chomsky normal form grammar

Bottom-up matching gives a lower input-length exponent than enumerating rule candidates.

Running-time exponents for parsing strings with a Chomsky normal form grammarDirect inverse construction: 4Direct inverse construction4Bottom-up pattern matching (this paper): 3Bottom-up pattern matching (this paper)3
The numbers
System or settingexponent of input length in the time bound
Direct inverse construction4
Bottom-up pattern matching (this paper)3

The paper counts instances of the inference that combines partial matches into a parent item. For ordinary strings, an applicable concatenation rule in the decomposition fixes a left edge, a split and a right edge. In the broader context-free construction, the assignments to the variables of a production are determined by the input positions that delimit the pieces being combined. A production with more nonterminal children permits more positions to vary together.

O(nᵐ⁺¹)

Here O denotes an asymptotic upper bound, n is sentence length, and m is the maximum number of nonterminal occurrences in a production’s right-hand side for the context-free encoding. The superscript m+1 is the exponent from counting relevant input positions. With m = 2 in the binary case, the bound is cubic, as expected for this setting. The comparison addresses the amount of candidate-matching work as input length grows. The paper reports neither measured running times nor a memory comparison.

How other interpretations affect the bounds

For a synchronous context-free grammar with two string inputs, the construction parses each side and intersects the results in the derivation vocabulary. The paper gives the following bound for this route.

O(n₁ᵐ⁺¹ · n₂ᵐ⁺¹)

Here n₁ and n₂ are the lengths of the two observed strings, m is the rank of the underlying regular tree grammar, · denotes multiplication, and O gives the asymptotic bound. Each interpreted side contributes a factor, and the construction can combine their chart information in the intersection. The paper relates the dependence on grammar rank to the known NP-completeness of the general synchronous context-free membership problem. Treating the rank of a fixed grammar as a constant and allowing it to vary across grammars are different conditions on the analysis. Some Computational Complexity Results for SCFGs

For the binarizable class of synchronous context-free grammars, the paper gives a membership bound of O(n₁³ · n₂³), where n₁ and n₂ again measure the input string lengths. The condition is that the synchronized rule can be organized as binary combinations that both sides can use. The order can differ through local swaps. This is a bound for deciding whether the input pair is generated under that condition. It does not measure the cost of explicitly recovering all original rule trees. Binarization of Synchronous Context-Free Grammars

Tree-adjoining grammar gives a different numerical result. Its string interpretation can compose pieces that occupy separate stretches of the final yield. The paper uses an algebra of strings and string pairs with operations suited to those combinations and states that its decomposition grammar D(a) can be computed in O(n⁶) time, where n is the length of the input string. The bound concerns decomposition for that algebra. The inverse interpretation and intersection are separate steps in the general parsing construction.

These examples provide the scope of the numerical evidence. The paper has no corpus splits, empirical accuracy measures or learned baseline runs. A small grammar shows the correspondence between charts and licensed derivations. Complexity arguments show how the choice of algorithm, grammar rank and input representation affects the cost of producing or using those charts.

What the ablations show

The paper has no empirical ablations. It offers controlled changes to the formal setup and analyzes the consequences for the objects described, the charts constructed and the cost of membership.

Changing the input interpretation

The synchronous tree-substitution example changes the left interpretation while holding the regular tree grammar and right interpretation fixed. In the tree version, the supplied left tree constrains the derivation at the level of its constructor structure. In the string version, that side constrains only the words and their order. The derivation grammar supplies the same pairings of lexical entries in both versions. The right side still reads the chosen entries as a tree.

The comparison locates the representation-specific work. A parser for a given left tree uses the direct tree decomposition. A parser for a left string uses the string decomposition and the string homomorphism’s concatenation patterns. Both use the same inverse and intersection construction after the appropriate decomposition grammar has been built. The string observation can leave choices open that a given tree would settle. This is a property of what the changed interpretation observes, even when a small example leads to the same displayed right tree.

The authors use this comparison to revisit the tree-transducer work of Graehl and colleagues. Their account says that the tree–tree and tree–string training cases receive separate algorithmic treatments there. The interpreted grammar formulation locates the change in one algebra and one homomorphism. The formal comparison supports reuse of the parsing and training construction. It gives no measurement of implementation effort or training time.

Changing how candidate rules are found

The inverse constructions have the same target. Each aims to describe the trees that the homomorphism sends into the required operation language. In the direct version, the algorithm first proposes whole tuples of decomposition states. In the bottom-up version, it constructs matches when the necessary smaller matches and an applicable decomposition rule are available. For a string concatenation pattern, those premises make adjacency part of building the match.

This comparison explains the running-time result for the Chomsky normal form case. The bottom-up algorithm uses the structure of the term to identify candidates that fit permitted span combinations. The derivation language and the condition on the observed string are unchanged throughout that comparison. The saving occurs in constructing the inverse grammar. In the chart example, the subsequent intersection still has an independent role because good decomposition matches can be grammatically unsuitable.

Changing the grammar’s branching structure

The authors’ binarization analysis distinguishes restructuring the derivation grammar from changing the language it generates. A production with many nonterminal children can be factored into smaller combinations. Auxiliary nonterminals record the intermediate steps. For an ordinary context-free grammar, the new structure can preserve the observable strings, so a membership test can use the chart of the binary grammar. The chart now contains derivations with the auxiliary steps introduced by the transformation.

Let bin name the transformation on derivation trees, and let G₂ be the grammar for the transformed trees. The paper expresses their relationship at the level of the generated tree languages.

L(G₂) = bin(L(G))

Here G is the original regular tree grammar, G₂ is the transformed grammar, and L denotes the tree language of the grammar in parentheses. The homomorphism bin maps original trees to trees in the new derivation signature. Its application to L(G) denotes the set of images of all trees generated by G.

In the monolingual context-free example, the authors describe both explicit conversion to a binary grammar and the implicit factoring used by an Earley parser. They give cubic parsing time for the resulting binary grammar, with the cost of forming that grammar accounted for separately. They also note that standard context-free binarization is linear in grammar size. A membership test can look for any complete derivation in the binary chart. Certain calculations, such as the inside quantities mentioned by the authors, can also use that chart. To return rule trees in the original vocabulary, the relationship between the binary and original derivations has to be taken into account.

A synchronous rule adds the constraint that the binary grouping must serve both sides. The paper illustrates this with child variables grouped by concatenation in one order on the first side and in a different order on the second. The successful case uses local swaps of the children of concatenation nodes to obtain the second arrangement from the first. Both sides can then work from a shared binary tree, with a local permutation where needed. The general synchronous formalism also admits rules for which the required coordinated binarization is unavailable. The faster membership construction applies to the class where the joint structure exists.

When local operations suffice

The generalized binarization argument replaces the demand for binary branching with a requirement tied to the maximum operation rank of the chosen algebras. The authors look for a common transformation of the original derivations after which each interpretation can be expressed as a delabeling. In that case, pulling a decomposition grammar back through an interpretation is a local operation on its rules. A transition can be relabeled and its children permuted. It needs no search through a larger operation tree for the image of a single derivation label.

The cost analysis then uses the product of the decomposition grammar sizes, written by the authors as O(|D(a₁)| ··· |D(aₙ)|). Here a₁ through aₙ are the observed objects, the bars denote grammar size, and the multiplication combines the factors contributed by the interpretations. The paper treats that product as the target for its intersection-based membership procedure. The argument explains why pushing complex grouping into the common transformation helps. It also distinguishes the cost of that procedure from the cost of taking the inverse image of the binary chart when the desired output is the original parse language.

Limitations

Limits stated by the authors

The authors describe their contribution as unification. The individual formalisms already had ways to parse or translate the objects in the examples. Their paper supplies a common derivation representation and a general route to algorithms. Its claims about efficiency depend on the operation signatures, the decomposition procedure and the form of the homomorphisms. Describing an algebra and an interpretation is sufficient to define a generated language. The generic parser also requires an effective regular decomposition for each observed object.

Decoding has an additional restriction. The authors use closure of regular tree languages under linear homomorphisms to construct the output grammar. A nonlinear output homomorphism can require a term and a distant copy of that term to agree. Its image of a regular tree language need not be regular. The paper therefore gives the output chart guarantee for linear output homomorphisms. It points out that some copying or deletion can instead be expressed by the operations of an output algebra. That changes where the work takes place and leaves the regularity questions for that algebra to be addressed.

The transducer comparison has a qualification of its own. The paper gives the connection between bottom-up tree transducers and the IRTG organization through bimorphisms. Graehl and colleagues use extended top-down transducers. The authors suggest, on the basis of their initial inspection, that the choice may be immaterial for that application, and explicitly leave the relationship for further investigation. The established representation of the bottom-up case and the assessment of the extended top-down application have different evidential status.

The binarization analysis leaves a further open question. Delabelings are a sufficient condition for the linear-time preimage step in the proposed membership construction. The authors say it is unclear whether that condition is necessary to reach the stated cost. They also acknowledge that recovering original derivations from the transformed chart can cause exponential growth. The favorable membership result therefore applies to the existence question on the transformed chart. The paper retains the separate task of describing the original rule histories.

Limits visible in the construction

The strings and trees in the examples are supported by explicit decomposition arguments. The discussion of graphs, pictures and 3D objects identifies other possible interpretation domains. For a new domain, the grammar can describe outputs as soon as its terms have an algebraic interpretation. An input parser needs more. The terms evaluating to a given object must have a computable regular description, and its size and construction cost affect the usefulness of the algorithm. The paper establishes the architecture for extending the method. The examples involving other domains do not establish efficient decomposition for each proposed use.

The displayed string decomposition also has a specific scope. Its lexical rules cover individual words, and its split rules divide nonempty spans. That is enough to describe the binary bracketings used in the worked sentence. The earlier definition of the string algebra also includes an empty-string constant. If that constant is available without restriction, additional terms can insert empty pieces while retaining the same value. An implementation using that full signature must account for empty pieces in its decomposition. The 132 count belongs to the bracketings exhibited for the sentence, under the displayed span construction.

A detail in the inverse algorithm matters when patterns copy a variable. Agreement between the nonterminal assignments for repeated occurrences ensures that both copies meet the same state requirement. If the operation grammar admits multiple state assignments for a single term, however, an accepted match can use different states at the distinct positions of the copied term. The general closure of regular tree languages under inverse homomorphisms still gives the preimage guarantee. A direct implementation of the matching rules needs a representation or construction that accounts for the state information required by all the occurrences. The distinction is relevant to the paper’s broad coverage of nonlinear input homomorphisms.

The generalized membership cost also needs to be read with its algorithmic assumptions. A full product construction can have a size governed by the product of the input grammar sizes. This alone does not show that every instance of membership, or every possible membership procedure, needs to materialize that product. The paper’s argument provides a target in the setting of its construction. Similarly, preserving a language on each side separately is insufficient in general to establish that the original synchronized tuples have been preserved. The common binarization must keep the interpretations aligned on shared derivations, as in the local-swap construction.

For multiple outputs, the individual output term grammars describe what is available in each dimension. If the outputs must stay paired, the shared parse chart supplies the information about which tuples come from a common derivation. Choosing freely from the separate output languages could combine objects licensed by different derivations. The same principle that makes parsing synchronous also governs how to read the output representation.

Finally, the weighted extension gives a formal route to a best derivation and to expectation maximization on charts. The paper supplies no fitted weights, convergence measurements, corpus comparisons or evaluation of translation choices. Its unweighted examples establish how representations and grammar operations fit together. The complexity arguments answer specific questions about growth with input length, grammar rank and decomposition size. They leave empirical accuracy, practical runtime and the behavior of a weighted implementation open.

What came after

The authors close with a direction for subsequent work on chart intersection. Because a chart is a regular tree grammar for the derivations of an input, an additional constraint expressed as a regular tree language can restrict it by intersection. The surviving trees must satisfy the grammar, match the observation and meet the added condition. In a syntactically ambiguous sentence, a constraint can therefore rule out a complete analysis while leaving shared subderivations available to analyses that survive. The authors connect this possibility to earlier work on constraining interpretations and suggest it as a route to ambiguity reduction.

Their other explicit direction concerns binarization. The paper identifies a sufficient condition under which several interpretations can share a transformed derivation grammar and the inverse constructions become local. It leaves open how far the condition can be relaxed while retaining the stated membership cost and preserving the link to original derivations. The paper presents both chart restriction and the broader binarization question as research directions. No later study is identified here as carrying either one forward.

Cite

Cite as Alexander Koller and Marco Kuhlmann. 2011. A Generalized View on Parsing and Translation. Proceedings of the 12th International Conference on Parsing Technologies.

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

@inproceedings{koller2011generalized,
  title = {{A Generalized View on Parsing and Translation}},
  author = {Alexander Koller and Marco Kuhlmann},
  booktitle = {Proceedings of the 12th International Conference on Parsing Technologies},
  year = {2011},
  url = {https://aclanthology.org/W11-2902/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/koller-2011-generalized-view-parsing-translation/