Elamur Research

A Syntax-Directed Translator with Extended Domain of Locality

Paper · 2006 · Liang Huang, Kevin Knight and Aravind Joshi

Summary

A translation can contain the right words and still put them in the wrong order. The problem is especially clear in an English passive such as “the gunman was killed by the police.” In the Chinese translation examined in this paper, the phrase for the police comes before the verb for killing. The words was and by help identify the construction, but the translator also needs to recognize the grammatical roles of the phrases around them. Liang Huang, Kevin Knight and Aravind Joshi address this problem in machine translation by letting an individual translation rule inspect several levels of an English parse tree and specify the order in which the matched parts appear in Chinese.

The translator first selects an English parse, a tree that groups the words into constituents and gives each group a grammatical label. It then works down that tree, matching rules to fragments and translating whatever subtrees the rules leave open. A rule can translate a phrase directly or recognize a construction and give instructions for assembling its translated parts. The passive rule, for example, recognizes the auxiliary, the participle and the agent phrase together. It supplies the Chinese passive marker and places the translated agent before the translated verb. That ability to make a local translation decision using a fragment that reaches across several levels of the source tree is what the authors mean by an extended domain of locality.

The rules come from aligned English–Chinese sentence pairs. Their frequencies give the translator a score for each sequence of rule applications, called a derivation. Several derivations can translate the same subtree, so the authors cache the best result for each node and reuse it wherever that subtree reappears in the search. With a fixed rule set and a fixed input parse, the direct search is linear in tree size under the paper’s analysis. The system also produces a list of distinct Chinese translations for rescoring. Removing duplicates matters because different ways of dividing up the English tree can give exactly the same Chinese string. A Chinese trigram and a length feature then help choose among the distinct candidates.

On a development set of 140 short sentences drawn from the Xinhua portion of the NIST 2003 evaluation data, the direct system scored 20.3 in character-based BLEU. Rescoring the top 5000 distinct translations raised the score to 23.8. The phrase-based Pharaoh system scored 25.5 on the same sentences. Both systems were tuned on that set. The experiments show that rescoring improved the translator’s score in this setup, while the passive example and the formal analysis explain what larger source fragments allow a rule to express. The study leaves open how much that expressiveness contributes to translation quality by itself.

Deep dive: A Syntax-Directed Translator with Extended Domain of Locality

A syntax-directed translator uses larger English parse fragments to guide Chinese word order, then reranks distinct translations for fluency. · about 39 minutes to read

The problem and its context

A reordering decision can depend on the construction

Consider what a translator has to recognize in the passive example. It must translate the noun phrase naming the gunman, recognize that the killing verb has a passive interpretation, and place the agent and verb in the order required by the Chinese construction. Those decisions occur at different places in the English tree. The auxiliary belongs to the verb phrase, while the agent is inside a prepositional phrase. An instruction that can see the auxiliary, the participle and the prepositional phrase together can govern the reordering directly. The translations of the agent and the verb can still be decided independently beneath that instruction.

The paper makes the problem concrete with a second sentence in which someone was asleep by sunset. The surface sequence contains the same conspicuous words, was and by, with material between and after them. In this case asleep describes a state and the phrase about sunset gives a time. A rule that treats any sequence of the form was A by B as a passive will offer a passive translation here too. Giving the translation rule access to the grammatical labels and their arrangement provides grounds for distinguishing the two cases. The authors use this example to explain why they want a rule to specify both the words it recognizes and the structure that makes those words relevant.

Phrase-based translation gave the field a way to learn useful local correspondences. A contiguous source phrase can map to a contiguous target phrase, letting a system translate a small group of words together. The authors draw attention to the separate problem of rearranging those groups, particularly when source and target orders differ substantially. They describe the generative machinery of the phrase-based approaches they discuss as finite-state, and argue that it offers limited means for handling nesting and long-distance dependencies. Their proposal retains direct phrase translation as a special case and gives other rules room to express reordering over syntactically identified parts. Statistical Phrase-Based Translation

The authors also use an English–Arabic comparison to illustrate the structural issue. The English representation places the subject beside a verb phrase that groups the verb and object. The Arabic order in their example places the verb before the subject and leaves the object after it. With the English grouping fixed, a rule acting at the sentence root sees the subject and the verb phrase as its immediate children. Moving those units as intact blocks would keep the verb and object together. Moving the verb across the subject while leaving the object in place requires a view inside that verb phrase. The paper’s claim about the example concerns the correspondence between the displayed structures. A bare listing of the word sequences would leave out the grouping that creates the difficulty.

From syntax-directed compilation to translation

The authors trace syntax-directed translation to compilation. A compiler can first analyze a program into a tree and then use that tree to guide code generation. This division suggests two different questions for language translation as well. A source parser asks how the input sentence is structured. A converter asks how to turn that particular structure into an output sentence. The authors borrow the division and introduce probabilities because a source tree can admit several plausible ways of being translated. Parsing

The paper distinguishes a translation schema from a translator. A schema describes which source and target strings can occur together. In the account the authors draw on, a syntax-directed translation schema is essentially a synchronous context-free grammar, which generates paired strings through coordinated rewriting. A translator is the procedure that produces an output for an input. It can parse the input and recursively transform the result. The distinction matters because a system can describe paired strings with synchronous rules while searching over translation and source structure together. The system in this paper commits to the source structure before searching for its translation.

The authors discuss the work of Yamada and Knight and the hierarchical phrase-based approach of Chiang in those terms. As the paper describes them, both use synchronous context-free rewriting and carry out parsing and transformation in a joint search. The joint search can entertain many source structures, represented compactly in a packed forest. The authors associate these systems’ use of that representation with transfer steps that operate at the scale of a context-free production. They also characterize their decoding as computationally expensive and point to aggressive pruning in Chiang’s system. Their own design buys a different balance by resolving the source parse first and letting each transfer rule inspect a larger region of the chosen tree. A Syntax-based Statistical Translation Model

Chiang’s use of a single generic nonterminal gives the passive example a second purpose. The abstract positions around was and by can represent any constituents that satisfy the rule’s generic requirements. The proposed tree pattern can instead require a past participle in one position and a noun phrase embedded under the prepositional phrase in the other. The paper also observes that the relevant connection extends across five levels from the verb phrase to by. Grammatical labels aid discrimination, and the depth of the fragment allows those labels and the lexical cue to participate in the same decision. The authors situate this distinction alongside formally motivated bilingual grammars such as Wu’s inversion transduction grammars. Stochastic Inversion Transduction Grammars and Bilingual Parsing of Parallel Corpora

Where the extra locality resides

The authors draw on synchronous tree-adjoining grammar and synchronous tree-substitution grammar as earlier ways to give a rewriting rule access to a larger piece of structure. A tree-substitution rule can involve a fragment with internal structure and slots on its frontier. The paper describes synchronous tree substitution as a restriction of synchronous tree adjunction that uses substitution and omits adjunction. Both, in the authors’ account, can express tree correspondences that exceed what paired context-free productions express. The paper cites work on phrasal cohesion and on translation-rule extraction as empirical motivation for going beyond the scope of a single production. Synchronous Tree-Adjoining Grammars · Phrasal Cohesion and Statistical Machine Translation

The proposed converter takes a deliberately asymmetric form. Its English side contains a tree fragment, and its Chinese side contains a sequence of words and substitution slots. The paper notes that the sequence can be viewed as the children of a flat target node. The extra structural detail is therefore on the source side. The parser can continue to build an English tree using context-free productions while the converter recognizes a fragment that spans several such productions. Changing the scope of a transfer rule does not require changing the parser’s grammar to match that scope. The authors cite existing Treebank parsers as evidence that the first stage can be fast in practice. A Maximum-Entropy-Inspired Parser

Dependency-based translation offers another way to direct transfer with a source analysis. The paper describes earlier systems that use dependency structures in place of constituent trees and share the motivation for separating analysis from transfer. It identifies an ordering question for those approaches. The dependency structures used in the work it discusses require either heuristics or a separate mechanism to put target material in sequence. It also mentions a hybrid approach in which phrase-structure information helps with reordering. In the proposed converter, the sequence is written into the rule itself. Once the translated pieces are available, their order follows directly from the positions of the slots. Dependency parsing · Dependency Treelet Translation · Learning Dependency Translation Models

The method, step by step

From an English sentence to a Chinese string

At translation time, the system receives an English sentence and selects a parse. The converter begins at the root of that tree. It looks for a rule whose source pattern fits the tree at that position. Some parts of the pattern specify the exact structure and words the rule consumes. Other parts are labeled slots that match the roots of subtrees still to be translated. The rule’s Chinese side specifies where to put the translations of those subtrees and which Chinese words or punctuation to put around them.

The process repeats wherever a rule leaves a slot. At each slot, the converter treats the corresponding English subtree as its own translation problem. A rule with no slots supplies a finished piece of Chinese text and ends the recursion on that branch. When all the slots in the enclosing rule have been filled, the converter has a translation of the larger subtree. Carry this through to the root and the result is a Chinese sentence.

There may be several matches at any given node. The converter scores the available ways of proceeding and stores results so that a subtree reached by multiple routes needs to be solved only once for the direct search. The implementation also records the available combinations in a derivation forest, a compact representation with shared subproblems. That forest supports a further search for distinct outputs, which are then rescored with evidence about Chinese word sequences and translation length.

Translation from a source parse to a rescored output

The steps in order.

Translation from a source parse to a rescored outputStep 1: Select the highest-probability English parse1. Select the highest-probability English parseStep 2: Match source tree fragments at each node2. Match source tree fragments at each nodeStep 3: Translate the subtrees at substitution slots3. Translate the subtrees at substitution slotsStep 4: Assemble and score Chinese strings4. Assemble and score Chinese stringsStep 5: Store shared choices in a derivation forest5. Store shared choices in a derivation forestStep 6: Extract distinct translations in direct-score order6. Extract distinct translations in direct-score orderStep 7: Rerank using Chinese trigrams and length7. Rerank using Chinese trigrams and length

What a rule matches and what it emits

The formal device is an extended tree-to-string transducer. A transducer specifies how to turn one kind of structure into another. Here it reads an English tree and produces a Chinese string. The particular class in the paper has one state. Its rules are linear and non-deleting with respect to variables. Each variable used by a rule occurs once in its source pattern and once in its target template. The translated subtree that fills a slot thus enters the output exactly once. Words explicitly matched by the source fragment can be treated differently. Their contribution is whatever the right-hand side of the rule specifies.

The components of the transducer are written as follows.

(N, Σ, Δ, R)

N is the set of nonterminals, the grammatical labels used in the source tree. Σ is the input alphabet, whose symbols can appear as source terminals. Δ is the output alphabet, whose symbols can appear in the Chinese string. R is the collection of translation rules. The parentheses group these parts into a tuple.

A rule itself is represented by another tuple.

r = (t, s, φ)

Here r is a particular rule. Its source side t is a tree fragment. Internal nodes carry nonterminal labels, and its frontier consists of source terminals and variables. The target side s is a string containing output terminals and variables in whatever order the rule specifies. The mapping φ assigns each variable in the rule the grammatical label required at its substitution node. The equals sign defines the representation of r.

The target template’s permitted symbols can be stated independently of where they occur in the source fragment.

s ∈ (X ∪ Δ)*

Here s is the target template, X is the set of variables used to describe such templates, and Δ is the output alphabet. The union sign ∪ combines the permitted kinds of symbols. The star allows a finite sequence of those symbols, including the empty sequence, at the level of this notation. The symbol ∈ means that s belongs to that set of sequences. A particular rule also has to satisfy the requirement that its source variables each occur once in its target template.

The rank of a rule is the number of its substitution variables. A purely lexical rule has rank zero. Its source side can still include a whole small tree with several words and grammatical labels, but the complete fragment is matched as a unit and the target output is already specified. A rule with variables spans some structure and leaves the corresponding subtrees open. Because the positions of variables in the target sequence can differ from their order in the source tree, structural matching and target ordering are both expressed by the same rule.

The subject–verb reordering example shows how the notation works. The English sentence node has a subject noun phrase and a verb phrase. The verb phrase in turn contains a verb and an object noun phrase. The paper gives the conversion in this form, with punctuation used here to separate siblings in the tree.

S(x₁:NP, VP(x₂:VB, x₃:NP)) → x₂ x₁ x₃

S labels the sentence, NP a noun phrase, VP a verb phrase and VB a verb position. The variables x₁, x₂ and x₃ stand for the subtrees at the subject, verb and object slots, respectively. A colon attaches a required category to a slot. Parentheses enclose children, commas separate siblings, and the arrow separates the source pattern from the target template. The order to its right tells the converter to emit the verb’s translation, then the subject’s, then the object’s. A single match can inspect inside the verb phrase and specify how a piece of it moves relative to material outside it.

Following the passive through the tree

In the gunman example, the root rule keeps the subject and verb phrase in their top-level order. Both are still represented by substitution slots. The rule deals with the punctuation directly, matching the English period and supplying the Chinese punctuation shown in the paper. Once that rule is selected, the question of what to do with the subject is separate from the question of how to translate the verb phrase.

The subject can be handled by the purely lexical rule for the gunman. The rule matches a noun phrase containing a determiner and a noun, with the specific words identified in the pattern. It emits qiangshou. Because this rule has no variables, the translator needs no separate decision for each of the subject’s words. A phrase translation of the sort that is useful in a phrase-based system can therefore appear inside a derivation otherwise organized by larger syntactic rules.

The verb phrase uses a rule that recognizes the deeper passive structure. The rule includes the auxiliary was near the top of the fragment. Beneath it the pattern locates the past participle and the prepositional phrase introduced by by. Inside the latter is the slot for the agent noun phrase. The fixed material identifies the construction, while the words that fill the participle and agent positions are available for separate translation.

VP(VBD(was), VP-C(x₁:VBN, PP(IN(by), x₂:NP-C))) → bei x₂ x₁

VP is the outer verb phrase and VP-C is the label on the embedded verb phrase in this parse. VBD labels the past-tense auxiliary was. VBN is the past-participle category required for x₁. PP labels the prepositional phrase, IN labels the position containing by, and NP-C is the noun-phrase category required for x₂. Parentheses show which nodes lie inside others, commas separate siblings, and the colons link variables to their required categories. The arrow separates the English fragment from the Chinese template. Bei is the Chinese passive marker supplied by the rule. In the target string, the agent slot x₂ precedes the participle slot x₁.

The remaining subtrees provide jingfang for the police and jibi for the killing verb. Substitution produces the sequence bei jingfang jibi for the verb phrase. The enclosing sentence rule then places the gunman before that sequence and appends the punctuation. The transformation uses grammatical conditions to decide whether the passive rule applies, while the actual words for the agent and participle are decided by the rules that translate their subtrees. This division allows the same structural instruction to leave room for different lexical choices.

The example also shows what the linear and non-deleting conditions govern. The English auxiliary and preposition are fixed terminals in the source fragment. The Chinese template expresses their construction with bei. Meanwhile, the translations of both variable subtrees survive and each appears once. The constraint preserves the material represented by the slots, even though the rule can replace a set of fixed source cues with a different realization in Chinese.

A derivation records the choices

A derivation can be described as a sequence of rule applications, but the paper gives it a tree representation. A node in a derivation tree records the rule used there. Its children record how the rule’s substitution slots were filled. The derivation tree thus organizes choices about fragments and may have a different shape from the source parse tree, which organizes the grammatical constituents of the sentence.

Every derivation has a source projection and a target projection. The source projection is the full English tree assembled by filling all source slots. The target projection is the Chinese string produced by the parallel assembly on the target side. A lexical rule forms a complete derivation on its own.

(E(d), C(d)) = (t, s)

Here d is a derivation consisting of a purely lexical rule, E is the operation that obtains its English tree, and C is the operation that obtains its Chinese string. The rule contributes its source fragment t and its target string s directly. The pairs in parentheses collect the corresponding source and target objects.

For a rule with variables, each variable is filled by a child derivation with the required source root.

ρ(E(dᵢ)) = φ(xᵢ)

Here dᵢ is the child derivation associated with variable xᵢ, and i identifies the corresponding slot. E obtains the child’s source projection. The function ρ reads the label at the root of that tree. The function φ gives the root category required for xᵢ in the parent rule. Equality specifies the condition the child must meet before it can fill the slot.

A parent rule and its children together form a larger derivation.

d = r(d₁, …, dₘ)

Here d is the whole derivation, r is its root rule and m counts the rule’s substitution variables. The child derivations are d₁ through dₘ, one for each slot, and the ellipsis stands for the intervening children. The parentheses indicate that the children are attached to the rule in the derivation tree. Their order in this notation identifies which slot each child fills. The target rule itself determines the order in which their strings are emitted.

The two projections carry out those substitutions in different objects.

E(d) = [xᵢ ↦ E(dᵢ)]t

E(d) is the assembled source tree. The brackets describe a simultaneous substitution over the variables of the source fragment t. For each slot indexed by i, the arrow ↦ sends xᵢ to E(dᵢ), the source tree of its child derivation. Inserting those trees into t reconstructs the source structure covered by d.

C(d) = [xᵢ ↦ C(dᵢ)]s

C(d) is the assembled target string. In this case the template s contains the slot occurrences. For each i, the substitution arrow replaces xᵢ with the target string C(dᵢ) of the corresponding child. The bracketed substitution leaves the fixed target symbols of s in place. The template supplies the order of the inserted strings.

There can be several derivations with the same two projections. The paper demonstrates this with a second way to translate the passive. One rule recognizes the auxiliary and identifies the participle and the entire prepositional phrase as substitution sites. It orders the prepositional phrase’s translation before the participle’s. A separate rule recognizes by inside that phrase, supplies bei and inserts the translated agent. Dividing the work this way produces the same English tree and the same Chinese string as the larger passive rule. The derivation trees differ because the large rule handles the construction in one step and the divided version distributes the work across rules. This ambiguity becomes important when the system goes from finding its best derivation to preparing a list of translations.

Where the rules and probabilities come from

The rule inventory is learned from parallel sentences. The authors first use GIZA++ to obtain word alignments. These alignments identify connections between English and Chinese words in the paired sentences. A variant of Collins’s parser then supplies constituent trees for the English side. The authors apply the extraction procedure of Galley and colleagues to those trees and aligned pairs. The procedure supplies source fragments with corresponding Chinese templates, and occurrences in the training data supply frequencies for the rules. Chinese word sequences for the later rescoring stage are learned from the Chinese side of the parallel corpus with the SRI Language Modeling Toolkit.

The direct translation objective scores a Chinese candidate given the English input. This choice follows the direction in which the converter operates. It does not need to start from a hypothesized Chinese sentence and ask how that sentence could have generated the English one. The objective appears in the paper as follows.

c* = argmax over c of Pr(c | e)

Here e is the observed English sentence and c ranges over Chinese translations. Pr denotes probability, and the vertical bar indicates conditioning on the English input. The operation argmax returns the candidate at which the score is greatest. The star in c* marks that selected candidate.

A possible English parse is an intermediate variable in this objective. The authors write the translation probability as a sum over the English trees that yield the observed sentence.

Pr(c | e) = ∑ over τ ∈ T(e) of Pr(τ, c | e)

Here τ is an English parse, T(e) is the set of parses with sentence e as their yield, and ∈ marks membership of τ in that set. The summation sign ∑ adds the joint probabilities of τ and c given e. The comma in Pr(τ, c | e) groups the two events whose joint probability is being considered.

The paper then factors each joint term using the assumption that the tree provides the source representation needed by the converter.

Pr(c | e) = ∑ over τ ∈ T(e) of Pr(τ | e) · Pr(c | τ)

Pr(τ | e) is the probability of the source tree given the sentence. Pr(c | τ) is the probability of the Chinese string given that tree. The multiplication dot combines the two terms for each τ, and ∑ adds the resulting terms over T(e). Under this factorization, the converter receives the words and structure through τ.

The implemented search replaces the sum over source trees with a selection. The parser independently chooses its highest-probability tree.

τ* = argmax over τ ∈ T(e) of Pr(τ | e)

The star marks the chosen tree τ*. The parse candidates τ belong to T(e), and argmax selects the one with greatest Pr(τ | e). Once this choice is made, the translation stage takes that tree as fixed.

c* = argmax over c of Pr(c | τ*)

Here c again ranges over translations, τ* is the selected tree, and Pr(c | τ*) scores c given that tree. The resulting c* is the translation selected under this staged objective. The authors call the choice of a single most probable tree a Viterbi approximation to the more expensive search implied by the sum.

The same issue arises inside the converter. A Chinese string can receive probability through multiple derivations whose source projection is the chosen English tree. The paper defines the space of allowed derivations by their source projection.

D(τ*) = {d | E(d) = τ*}

D(τ*) is the derivation set for τ*. The braces delimit the set and the bar inside them means such that. A derivation d belongs to the set when its English projection E(d) equals the selected parse τ*. Its Chinese projection is free to vary.

The paper makes a further Viterbi approximation by selecting the best single derivation and taking its target projection.

c* = C(d*) = C(argmax over d ∈ D(τ*) of Pr(d))

Here d* is the highest-scoring derivation in D(τ*), Pr(d) is its probability, and C obtains its Chinese yield. The operator argmax chooses a derivation instead of a string. Consequently a string’s place in the direct search depends on the strongest derivation found for it. Several individually weaker derivations leading to the same output receive no extra credit from having their probabilities added together.

The paper assigns a derivation its score by treating rule applications as independent for this calculation.

Pr(d) = ∏ over r ∈ d of Pr(r)

Pr(d) is the derivation probability used by the search. The product sign ∏ multiplies Pr(r) for the rule applications r in d. Each occurrence in the derivation contributes a factor. Two occurrences of the same rule therefore contribute that rule’s probability at both positions. The product has no term for a Chinese word sequence that straddles the boundary between rules.

The probability of an individual rule is estimated relative to rules with the same source root.

Pr(r) = Pr(t(r), s(r) | ρ(t(r))) = c(r) / ∑ over r′ with ρ(t(r′)) = ρ(t(r)) of c(r′)

Here t(r) is rule r’s source fragment, s(r) is its target template, and ρ reads the fragment’s root label. The conditional probability scores that source fragment and target template given the root category. The notation c(r) means the training count of rule r. In this equation c with a rule as its argument denotes a count, while c on its own in the translation objective denotes a Chinese sentence. The primed symbol r′ ranges over rules whose source roots match r’s root. The denominator adds their training counts, and the slash divides the count for r by that total.

This normalization gives rules rooted in different categories separate pools of evidence. A lexical noun-phrase rule competes in the frequency calculation with other rules rooted in the same noun-phrase category. The passive rule draws its relative frequency from the verb-phrase pool. In the actual search, the converter then checks which rules from the grammar fit the input fragment. Sharing a root label makes a rule eligible for consideration at the category level, while pattern matching decides whether it fits the node in this particular sentence.

Finding the best derivation without solving a subtree twice

For a fixed English tree, the direct search starts at the root with a recursive procedure. At a node it tests source fragments for a match. A match returns the descendant nodes that fill the rule’s slots. For each of those descendants, the procedure obtains the best available translation and its probability. It multiplies those probabilities by the current rule’s probability. If this gives the best score seen at the current node, it records the rule’s Chinese template with the child translations substituted into it.

Choosing the best direct result at each child suffices for evaluating a particular parent rule. For that rule, the child’s score enters as a factor, and the parent has no separate requirement on the Chinese words the child emits. Replacing a child result with a more probable one can therefore improve the score without changing the source match or preventing substitution. With the best result for each child in hand, the converter can compare matched parent rules and select the best combination at the current node.

Different matches can lead to the same descendant. The larger passive rule and the divided passive derivation, for example, provide different routes to parts of the same English parse. Straight recursion can repeat those subproblems many times. The authors explain that the number of decompositions, and hence the number of possible derivations, can grow exponentially with the tree. Memoization changes the amount of work required for the best result. The first call at a node computes and stores its result, while later calls retrieve it from a cache indexed by that node. Each node’s subproblem thus needs to be solved at most once.

The paper states the running-time bound in terms of the tree and the grammar.

O(npq)

O denotes an asymptotic upper bound. Let n denote the input parse tree’s size, p the largest number of rules that can apply at any one node, and q the largest size among applicable rules. The juxtaposition of n, p and q denotes multiplication. The per-node work in this accounting includes handling the rules and their matching fragments. With the grammar fixed, the authors treat p and q as constants and take n to be proportional to the length of the sentence. This is the basis for the linear-time claim about direct transfer. The parser has already run, and the work of extracting a list of distinct translations comes afterward.

Reranking translations with evidence about Chinese sequences

A transfer rule can supply an appropriate local construction and still produce a poor sentence when its output is combined with the output of other rules. A Chinese n-gram score supplies evidence about word sequences, including choices that meet at rule boundaries. The paper uses a trigram for this purpose and adds a separate length feature. It follows Och and Ney’s log-linear formulation, in which weighted features contribute to the score used for selecting an output. Discriminative Training and Maximum Entropy Models for Statistical Machine Translation

c* = argmax over c of Pr(c | e)^α · Pr(c)^β · exp(−λ|c|)

Here c* is the selected Chinese string, c is a candidate and e is the English input. Pr(c | e) is the direct translation term, and Pr(c) is the Chinese trigram probability of the string. The caret marks exponentiation, with α weighting the translation score and β weighting the trigram score. The multiplication dots join the three factors. The function exp is the natural exponential, λ is the length weight, and the bars around c give the length of the translation. The minus sign is the sign printed in the paper’s equation. The authors’ prose says that positive λ favors longer outputs, whereas the displayed factor decreases as length grows for positive λ. The paper reports the tuning target and the resulting scores, while leaving the implementation’s sign convention unclear.

The analogous objective after committing to a parse is expressed over derivations.

d* = argmax over d ∈ D(τ*) of Pr(d)^α · Pr(C(d))^β · exp(−λ|C(d)|)

Here d* would be the best derivation under the combined score. The candidates d belong to D(τ*), the set whose English projection is the chosen tree. Pr(d) is the direct probability of a derivation. C(d) is its Chinese yield, Pr(C(d)) is the trigram probability of that yield, and |C(d)| is its length. The weights α, β and λ, the exponentiation operator, the product dots and the natural exponential have the same roles as in the string objective.

Searching this objective directly is costly because a child’s Chinese output now affects the score of the surrounding sentence. A child string that is good in isolation can make a poor transition when the parent places another translated phrase next to it. The direct recursion can store one winner per node because the direct score factors through the rule applications. Trigram scoring introduces dependencies on the words at the boundary of each piece. The paper’s implementation keeps the direct search and uses it to produce a candidate list. It then applies the combined score to complete strings in that list. A candidate that falls outside the list has no opportunity to benefit from the extra features.

Why the list contains distinct strings

The derivation forest can be viewed as a hypergraph, a representation in which a single edge can connect a parent problem to all its child problems. A vertex corresponds to a source-tree node’s translation subproblem. A matched rule ties that vertex to the subproblems for the variables it leaves open. Several such alternatives can share the same child vertex. The authors use a previous k-best algorithm for monotonic hypergraphs, where moving to a worse-scoring child choice cannot improve the direct combination. Its first phase obtains the best derivation. A recursive phase then requests successively lower-ranked derivations as needed.

Ranking derivations alone would allow the two passive analyses to occupy separate positions even though they emit identical Chinese sentences. The authors call this spurious ambiguity. It matters because larger fragments give the grammar several ways to divide up the same input tree. Several decompositions can agree on the words and order of the output. If those decompositions fill many slots in the candidate list, the trigram ends up comparing fewer distinct translations than the list size suggests.

The authors consider earlier determinization methods, which transform the underlying representation to eliminate ambiguity of this kind. They point out that such a transformation can make the forest exponentially larger in the worst case. Their modification leaves the forest in its shared form. At each vertex, the algorithm keeps a hash table containing strings already returned for that subproblem. When a request for the next candidate returns a duplicate, the algorithm continues until it encounters a different string or exhausts the alternatives. The check therefore applies to intermediate vertex outputs as well as to complete translations at the root.

The first time a given output is reached in direct-score order, it has the strongest available direct derivation for that output. A later derivation with the same target string has the same trigram and length features. In the reported setting, where the direct weight is fixed at α = 1, the stronger direct representative is enough for comparison under the combined score. Retaining a single representative lets the reranker spend its candidate budget on distinct strings. The authors suggest applying the same general strategy to other equivalence relations on derivations, such as grouping derivations that produce the same tree. Their implementation groups them by Chinese string.

Experiments and results

Training on aligned sentences

The training corpus contains 1.95M aligned Chinese–English sentence pairs. Its English side contains 28.3M words. The authors obtain word alignments with GIZA++, parse the English sentences with a variant of Collins’s parser and apply the tree-to-string rule extractor to the resulting structures and alignments. They report 24.7M xRs rules in the resulting inventory. The figure is the size of the rule set used for transfer, while the rule probabilities come from the training frequencies grouped by source root.

The authors train the Chinese trigram on the Chinese side of the same parallel corpus. They use the SRI Language Modeling Toolkit with Knesser–Ney smoothing. The trigram operates on Chinese words and supplies a probability for complete candidate translations during reranking. The system’s evaluation operates on Chinese characters. The two representations serve different purposes. Word sequences provide the reranker’s fluency evidence, and character sequences give the experiment an evaluation unit that avoids depending on a particular Chinese word segmentation.

The reported implementation runs the memoized search for each English input. This obtains the best translation under the direct derivation score and builds a forest encoding the alternative derivations. The k-best procedure then extracts the top 5000 distinct Chinese strings from that forest for rescoring. The trigram and length features are applied after extraction. The study’s comparison thus includes the output chosen by direct scoring alone and the output chosen by rescoring a much wider set of unique candidates.

A development set assembled in reverse

The evaluation sentences come from the Xinhua portion of the Chinese-to-English evaluation set released by NIST for 2003. The authors use it in the reverse direction, selecting the first English reference as their source and using the Chinese sentence as the sole reference translation. They restrict the selection to 140 short sentences, with Chinese sentences of fewer than 25 words. That setup defines the reported experiment more precisely than the name of the test collection by itself. The inputs are English references from the original evaluation, and short Chinese originals serve as the scoring targets.

Both translation systems are tuned on these same sentences. The authors explicitly describe the figures as development-set performance for that reason. The direct and rescored settings share a source-parser-and-transducer pipeline, while Pharaoh provides an external phrase-based comparison. The common evaluation sentences, reference language and scoring procedure make the reported scores comparable within the experiment. Separate tuning and testing would be needed to see how the choices carry over to untouched sentences.

The paper reports character-based BLEU with the setting r1n4. In this experiment, that means a single Chinese reference and precision terms for character sequences up to 4-grams. Matching at the character level lets the scores be computed independently of the systems’ internal segmentation into Chinese words. The reference is still a single rendering, so the measurement gives credit through overlap with that rendering. It offers an aggregate comparison of outputs on this subset.

How the weights were selected

Pharaoh is the phrase-based baseline. The authors tune its feature weights with minimum error-rate training. For their own rescoring system they keep the translation exponent α fixed at 1. The settings left to choose are β for the Chinese trigram and λ for translation length. They search a grid along the trigram-weight axis. For each value of β they use binary search for a length weight that produces a translation-to-reference length ratio closest to 1. This is the tuning target reported for length, and the reference lengths come from the same development sentences used to report BLEU.

The differing tuning procedures are part of the comparison. The authors apply an established tuning procedure to Pharaoh and use a tailored search for the smaller set of freely selected weights in their system. The same data are available for choosing settings in both cases. Each reported result belongs to a concrete system and search procedure rather than to a comparison between two grammars operated under identical scoring and tuning.

The development-set comparison

Translation systems on the NIST 2003 Xinhua development subset by character BLEU

Rescoring improves the syntax-directed translator, while Pharaoh has the highest score on the subset.

Translation systems on the NIST 2003 Xinhua development subset by character BLEUPharaoh: 25.5Pharaoh25.5Syntax-directed direct search: 20.3Syntax-directed direct search20.3Syntax-directed search with rescoring (this paper): 23.8Syntax-directed search with rescoring(this paper)23.8
The numbers
System or settingBLEU
Pharaoh25.5
Syntax-directed direct search20.3
Syntax-directed search with rescoring (this paper)23.8

The direct translator scores 20.3 in character BLEU on the 140-sentence development subset. This setting takes the Chinese yield of the best derivation found by the probability product. Its score gives a point of comparison for the English parse and extracted transfer rules before any Chinese trigram or tuned length feature is used to select the output.

Rescoring the top 5000 distinct translations produces 23.8 character BLEU on the same development subset. The additional scoring stage can choose a Chinese sentence whose best derivation had lower direct probability, provided the sentence made the candidate list. The result shows that access to alternatives and scoring those alternatives with the extra features improved selection under this evaluation. The paper reports the combined rescoring configuration, so the score measures its effect as implemented.

Pharaoh scores 25.5 character BLEU on the same subset. It remains ahead of both versions of the proposed translator. The experiment establishes the initial performance of the syntax-directed system and shows the value of its reranking stage within that setup. The nearby formal and illustrative results address a separate question, namely which rearrangements can be specified by one rule when the source tree is held fixed.

What the ablations show

The paper offers a direct-versus-rescored comparison and worked analyses of reordering and derivation ambiguity, while leaving individual features and source-fragment depth without separate ablations.

What changes when the translator rescores

The direct and rescored systems use the same English parsing stage, the same transfer rules and the same initial scoring of derivations. The direct version stops at the best derivation, yielding 20.3 character BLEU on the development subset. The rescored version extends the search to a list of distinct strings and uses the trigram and length terms to make its final selection. It yields 23.8 on that subset. Because the source analysis and extracted rules are shared, the comparison locates the observed improvement in the later selection procedure.

That procedure changes several things together. It makes alternative outputs available, uses a feature for Chinese word contexts and adjusts the score for length. The paper reports the combined result. A comparison with only the trigram added would help determine how much of the gain comes from preferring particular Chinese sequences. A comparison that changes only the length weight would show how sensitive the metric is to that adjustment. The published scores leave those contributions unresolved. They also leave open how soon the gains appear as the candidate list grows.

The comparison uses unique strings in the reranked setting by design. The search discussion explains why the authors made that choice. Several derivations can give the same string, and each duplicate would consume a position that could have gone to a different translation. The paper describes the proportion of unique outputs among top derivations as small in practice, but gives no measured proportion or comparison between a duplicate-filled list and a distinct-string list at the same candidate budget. The ambiguity example establishes the mechanism. The BLEU experiment evaluates the complete procedure that addresses it.

What the worked rules establish

The English–Arabic structural example isolates the reach of a transfer rule. Holding the grouping of the English subject and verb phrase fixed makes it clear why an operation over the root’s immediate children cannot express the displayed movement as a local exchange of those children. The extended pattern sees the verb and object separately inside the verb phrase. It can place the former before the subject while leaving the latter after it. This is a result about the form of a rule and the represented structures. The experiment supplies no English–Arabic translation scores.

The English passive illustrates where grammatical restrictions matter. The extended fragment jointly tests the auxiliary, the past-participle category, the preposition and the noun phrase within its structure. The generic synchronous pattern discussed by the authors can also match the example about being asleep by sunset. In the tree-to-string rule, the required participle position gives the converter a concrete reason to reject that match. The examples demonstrate a difference in applicability. They do not measure rates of false passive matches, passive coverage across the corpus or the effect of this rule family on BLEU.

The two derivations of the gunman sentence illustrate a different consequence of extended rules. The large passive fragment and the smaller fragments coexist as alternative analyses of the same source tree. The larger fragment can express the reordering directly. The smaller fragments can produce the same target sequence by distributing the work. Once both routes are in a grammar, there is a reason for caching common subproblems and a reason for checking whether two completed derivations have the same Chinese yield. The example is especially helpful because the duplicate arises from a different decomposition of known structure, rather than from two translations that merely resemble each other.

What the baseline can explain

The comparison with Pharaoh gives a benchmark for overall development-set performance. It cannot isolate the value of inspecting deeper parts of the parse tree. Pharaoh and the syntax-directed translator differ in their use of source structure, their transfer rules, the procedures for searching outputs and their tuning. The score for Pharaoh therefore compares complete systems. A comparison within the tree-to-string pipeline between rules of different permitted depths would address the effect of the extended domain more directly, but the paper supplies no such result.

Taken together, the analyses support claims of different kinds. The worked structures show that the formalism can express a specific reordering and enforce category requirements within it. The alternative derivations show how ambiguity can enter even with a fixed source parse and a fixed target string. The development experiment shows that the authors’ combined reranking stage raised character BLEU on their tuned subset. The evidence for applicability, ambiguity and score changes comes from different parts of the study, and each can be interpreted at its own scale.

Limitations

Limits identified by the authors

The authors label the reported evaluation preliminary. Both Pharaoh and the syntax-directed system have their settings tuned on the same 140-sentence subset on which the paper reports their BLEU. The authors say they intend to report tuning and testing on separate data and describe larger-scale experiments as ongoing. The published observations consequently establish the ordering of the tested settings on this development set. The reliability of that ordering on new inputs remains open.

The authors also identify the dependence on a single source parse. Translation begins only after the parser has committed to its best English tree. If that tree gives a construction a different shape or category from the one a rule expects, a potentially appropriate transfer rule can be excluded before translation scoring starts. The authors expressly connect parser errors to translation quality and propose translating the top k parses in future work. That proposal would let translation consider a controlled set of alternative analyses without adopting the full joint search discussed earlier. The reported system translates the best parse alone.

The direction of translation is another boundary they state. The study translates into Chinese from English. The authors partly attribute their choice to the absence of a sufficiently good Chinese parser for their purposes. The formal setup needs syntactic analyses on the source side, so reversing the language pair would shift that requirement to Chinese. The reported scores establish performance only for the direction they tested.

The paper identifies integrated trigram search as further work. Reranking leaves the direct derivation score in charge of who gets onto the candidate list. As a consequence, a sentence that would score well under the combined objective can be unavailable to the reranker. The authors discuss more principled integration of n-gram evidence as a way to address that search limitation. The quality of the reported rescored outputs is therefore tied to the coverage of the direct candidate list, as well as to the usefulness of the trigram and length terms.

Limits visible in the setup

The evaluation is both short-sentence and single-source in scope. It uses short items from Xinhua and repurposes English reference translations as source sentences. That process defines a useful initial comparison, but it leaves other text sources and input distributions untested. In particular, the aggregate scores give no breakdown by how far a reordering reaches, how deep a relevant construction extends, or how frequently a sentence contains the kinds of ambiguity featured in the examples. The subject–verb and passive illustrations explain design choices without establishing how often those choices improve real outputs in the evaluation set.

The use of a single Chinese reference also narrows what the measurement can show. Character-level BLEU measures overlap with that reference at the specified orders. It can register an improvement in the aggregate without identifying whether better ordering, more appropriate lexical choices or differences in output length account for it. Conversely, an individual candidate can express a construction well while using character sequences that differ from the reference. The paper reports neither human judgments nor a construction-specific evaluation that could complement the aggregate metric. The BLEU results therefore carry the comparison of overall outputs, while the worked examples carry the explanation of particular rules.

The probability estimates impose their own simplification. Conditioning a rule’s frequency on its source root gives a common pool to rules sharing that category. It leaves surrounding context outside the matched fragment out of that estimate. Larger fragments can encode more context explicitly, but the direct derivation score still multiplies the rule probabilities independently. The trigram restores some sensitivity to target context at reranking time, while the candidate generator continues to use the independent product. The paper provides no comparison with an alternative rule-probability estimator, so the effect of this simplification is unmeasured.

The transducer’s formal restrictions delimit its expressiveness. A rule must use each matched variable once on each side. It can move a translated subtree, and it can realize fixed source terminals through different fixed material on the target side. Copying an entire variable subtree or omitting the variable is outside this subclass. The target side also presents a flat template rather than requiring a target tree. The examples show what the authors gain from deeper source inspection and explicit ordering within those choices. They offer no empirical estimate of what the restrictions cost.

The efficiency claim concerns a particular stage under stated assumptions. The authors hold the rule set fixed and account for the work in terms of tree size, the number of applicable rules and rule size. An implementation also has to locate matching rules among the large extracted inventory. The paper gives the memoized search and its bound, but reports no timing breakdown for locating matches, parsing sentences, constructing the forest or obtaining the requested distinct strings. Duplicate suppression guarantees that returned strings are distinct. Its description permits inspecting many duplicate derivations before reaching the next distinct output. The linear result for direct search therefore leaves total runtime and the cost of reranking at the reported candidate depth unmeasured.

The paper’s sign inconsistency for the length term also limits reproducibility from the mathematical description. The displayed negative exponent and the prose about a positive coefficient imply opposing preferences when length increases. The tuning procedure supplies a practical goal, a translation-to-reference length ratio closest to 1, and the table supplies the resulting performance. Neither resolves which sign convention was implemented. The ambiguity belongs to the published specification of that feature, while the observed comparison still belongs to the specific rescoring setup the authors ran.

What came after

The later citing work approaches several different points in the translation pipeline. Some of it concerns the decoder and the formalism it must support. Some changes the kind of source structure available to a translation rule or adds source syntax to a system organized around a target tree. Another work places a synchronous grammar in the alignment stage. The citations establish connections to the paper, and the later works’ stated subjects identify which part of the pipeline each addresses. The citation relationship alone leaves the extent of algorithmic inheritance open.

Decoding across grammar families

The cdec paper presents a decoder, alignment and learning framework for finite-state and context-free translation formalisms. Its stated scope spans several of the jobs that matter for interpreting the syntax-directed translator. Huang, Knight and Joshi separate source analysis from transfer, use rules obtained from aligned parallel text, and retain a forest so that many derivations can share the same underlying subproblems. The cdec framework addresses decoding alongside alignment and learning and frames those tasks across grammar families. Its connection is at the level of how a translation system supports formal representations and the procedures that operate on them. The citation leaves open whether it adopted the fixed-tree search or the distinct-string procedure. cdec

Changing the representation of syntax

A novel dependency-to-string model for statistical machine translation places a dependency representation on the source side and a string on the target side. This puts it close to the syntactic transfer question examined by the earlier paper. The earlier translator starts from constituents and writes reordering into the string template, while its discussion of related work identifies linearization as a central issue for dependency-based transfer. The later work’s dependency-to-string formulation makes that representational choice explicit. The relation between the two is clearest in what the transfer operation is specified to connect. One connects source constituents to a string, and the other names dependencies as the source representation for a string-producing system. The later work’s title leaves the particulars of its reordering mechanism open. A Novel Dependency-to-String Model

Augmenting String-to-Tree Translation Models with Fuzzy Use of Source-side Syntax makes source-side syntax available to a string-to-tree approach. The placement of syntax is important in the comparison. In the earlier system, the chosen source tree supplies the conditions for matching extended fragments and the target is emitted as a string. The later work starts from a formulation that specifies a target tree and adds a fuzzy use of source syntax. It therefore takes up the question of how source structure can inform transfer under a different arrangement of representations. The citation and title support this connection, while the exact features and matching procedure remain unspecified here. Augmenting String-to-Tree Translation Models

Putting grammar to work in alignment

Unsupervised Syntactic Alignment with Inversion Transduction Grammars concerns alignment. The earlier translator uses word alignments as inputs to rule extraction, alongside the source parse. By its stated subject, the later work applies inversion transduction grammars to unsupervised syntactic alignment, placing synchronous structure in the problem of finding bilingual correspondences. The relationship highlights a distinction between stages. In the tree-to-string study, an alignment supplies evidence for learning transfer rules, and the converter uses those rules to rearrange and translate parts of a new source tree. In the later alignment study, the grammar is associated with establishing correspondences in the first place. Its citation situates the papers in the same discussion of bilingual structure while leaving any reuse of the earlier transfer algorithm open. Unsupervised Syntactic Alignment with Inversion Transduction Grammars

Cite

Cite as Liang Huang, Kevin Knight and Aravind Joshi. 2006. A Syntax-Directed Translator with Extended Domain of Locality. Proceedings of the Workshop on Computationally Hard Problems and Joint Inference in Speech and Language Processing.

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

@inproceedings{huang2006syntax,
  title = {{A Syntax-Directed Translator with Extended Domain of Locality}},
  author = {Liang Huang, Kevin Knight and Aravind Joshi},
  booktitle = {Proceedings of the Workshop on Computationally Hard Problems and Joint Inference in Speech and Language Processing},
  year = {2006},
  doi = {10.3115/1631828.1631829},
  url = {https://doi.org/10.3115/1631828.1631829}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/huang-2006-syntax-directed-translator-extended-domain/