Elamur Research

Improved Translation with Source Syntax Labels

Paper · 2010 · Hieu Hoang and Philipp Koehn

Summary

A translation system needs to decide which words belong together before it can decide where they should go in the output. A rule that recognizes a prepositional phrase can use that information to place the phrase in a different position in the translated sentence. Requiring every part of every rule to have a grammatical label, however, can leave the system with too few ways to translate a sentence. Hoang and Koehn ask how a system can keep its broadly applicable rules while giving particular rules access to information about the structure of the input. Their experiments study this question in machine translation.

The authors compare two ways to combine hierarchical phrase rules with rules that use source syntax. Hierarchical phrase rules can contain slots for smaller translated phrases. An ordinary slot can cover any suitable span of input words, while a syntactically labeled slot must cover a span with the corresponding label. In the first combination, the authors train the hierarchical and syntax rule sets separately and make both available during decoding, the search for a translation. In the second, a shared grammar also contains rules that can mix labeled and general slots within the same pattern. A rule can therefore require a prepositional phrase in one place while accepting a phrase of any category in another. The authors call this approach soft syntax. When a rule specifies a label, matching that label remains mandatory.

On German–English news commentary, the hierarchical baseline scores 15.9 and the shared soft syntax grammar scores 16.7 in the paper’s case-sensitive % BLEU reporting. Syntax-only rules score 14.9, and decoding with the separately trained rule sets scores 16.1. The authors also find a smaller improvement when translating in the reverse direction. Using chunks, which identify groups of source words without requiring a full parse tree, the German–English soft syntax system scores 16.8 against its own hierarchical baseline of 16.3. That comparison uses all test sentences, including sentences excluded from translation in the full-parse experiment. BLEU score

The analysis gives some indication of what changed in the translations. The soft syntax grammar uses fewer fallback rules that simply join translated pieces in source order. In one German sentence, the hierarchical and soft syntax systems choose the same English words, but the soft syntax derivation moves a time phrase to a more natural position. A separate reachability test finds only a small increase in the share of training examples whose reference translations can be recovered when soft syntax is available. The results thus point to changes in how the decoder assembles and orders translated pieces, alongside a modest gain in what the grammar can produce under that diagnostic.

Deep dive: Improved Translation with Source Syntax Labels

Improved Translation with Source Syntax Labels shows how German–English translation benefits when rules can mix grammatical categories with general phrases. · about 38 minutes to read

The problem and its context

Why translation rules need room to generalize

A phrase pair records a correspondence between a sequence of source words and a sequence of target words. A system can learn many such correspondences from translated sentences, then use them to translate pieces of a new input. A phrase pair that consists entirely of particular words applies only when its source words occur in the right sequence. If two sentences share a useful ordering pattern but use different words for one of its pieces, a fixed phrase pair cannot express what they share. A system then needs either separate entries for those sentences or some way to represent the variable piece.

Hierarchical phrase-based translation supplies that representation. A rule can contain a gap that stands for a subphrase whose translation will be worked out separately. The source and target forms of the rule say where the subphrase belongs on each side. A rule with several such slots can arrange the pieces in a different order on the target side. Since a subphrase can itself be translated by a rule with slots, this arrangement can recur inside a sentence. Reordering is consequently part of what the rules express, and a rule can describe a larger pattern without listing every word that occurs inside it.

The rules use a synchronous context-free grammar. A rewrite describes a source pattern and a target pattern together, with correspondences between their slots. Applying the rewrite contributes to the analysis of the input and to the construction of the output. Hierarchical and linguistically informed systems in the paper share this formal basis. The distinction lies in the information a slot carries and the restrictions on its use. A hierarchical slot is broadly applicable. A slot carrying a syntactic category gives the decoder a reason to require a particular kind of source phrase. Context-free grammar

General slots let the system learn from source spans that cut across the structure a linguist would assign to a sentence. That matters because the boundaries of usable translation pieces are also determined by the words that correspond across languages. Generality has a cost. If the same slot can accept almost any span, there can be many ways to divide a sentence into pieces and combine their translations. Several derivations, or sequences of rule applications, can account for the same output. Exploring those alternatives takes search effort, and a rule learned in one context may be applied in a context for which its ordering pattern is inappropriate.

The earlier hierarchical approach described by the authors controls this ambiguity in part through restrictions at rule extraction. It limits the size and shape of rules, including how slots may occur next to one another. Those restrictions make extraction and decoding more manageable. They are also coarse. A constraint that excludes a shape because it creates ambiguities can exclude some useful instances of the same shape. A hierarchy built from translation rules is therefore already selective even when its slots have no grammatical categories. The question is whether information about the input can support a more discriminating choice of which patterns to admit.

What changes when a slot has a name

A source parse identifies constituents, groups of words given a category by a syntactic analysis. A noun phrase and a prepositional phrase are examples. If a translation rule marks a slot as a prepositional phrase, the decoder can require the entire slot to match such a constituent in the input. The rule then expresses a condition on the phrase that can fill it, even when it leaves the words inside that phrase unspecified. This is especially relevant to a rule that changes word order. A rule licensed by the presence of a whole phrase has a more specific context for moving it than a rule that sees only a variable-length gap. Parsing

Hard constituent requirements can make the grammar too narrow. The aligned material available for extracting a translation rule may include spans that are useful as translation units but that the parser does not identify as single constituents. Requiring the outer span of a rule and every slot inside it to be constituents can prevent extraction from such examples. It can also prevent the resulting rules from fitting new sentences. This is a practical distinction between obtaining a plausible parse and obtaining enough translation rules that fit that parse. A successful parse supplies the spans the decoder may test. It does not ensure that the grammar can derive the desired output using those spans.

The paper describes several earlier ways of trying to widen the reach of syntax-based translation. Work by Zollmann and Venugopal allows rules whose variable spans fail to coincide exactly with constituents on the target side. It constructs more complex labels from the categories involved in the span. That gives the grammar a way to represent a wider range of patterns, at the cost of a larger label inventory. If occurrences are split among many different labels, fewer training examples support each pattern. Hoang and Koehn’s later design choice can be understood against that tradeoff. A general symbol supplies coverage for a difficult span without requiring the system to assign it a more elaborate category. Syntax Augmented Machine Translation via Chart Parsing

Other earlier systems take tree fragments as the source side of a rule and strings as the target side. The paper describes work in which those fragments can match against a packed forest, a representation that makes multiple analyses of an input available together. A fragment that fits one analysis can still apply when another analysis would block it. This addresses uncertainty in what the parser says. A flexible set of translation rules addresses a different difficulty. Even with the selected source analysis in hand, a useful translation span can lack a category that a strictly syntactic grammar would accept. The authors discuss both forest-based decoding and work on extracting rules from forests in this context. Forest-Based Translation and Forest-based Translation Rule Extraction

Earlier research also combined hierarchical rules with tree-to-string rules at decoding time. The paper describes a Chinese–English study by Liu and colleagues that reported a translation improvement from this approach. Such a combination makes additional rules available to the decoder and gives the search a choice among analyses built from the available resources. It leaves open a finer-grained question about rule design. An ordering pattern might have one position where a constituent category is crucial and another where enforcing any category would be unnecessarily restrictive. Providing whole rule sets with different degrees of specificity is one way to broaden a search. Encoding different degrees of specificity inside a rule changes the patterns the grammar can express in the first place.

The authors also discuss earlier work on extracting small rules from parallel sentences and composing them into larger ones. The first aim in that line of work was to explain the aligned sentence pair with minimal rules. Later work made larger rules from the smaller pieces and addressed the treatment of unaligned words. The paper presents these developments as important to obtaining a usable translation grammar, while observing that the syntax in those rules still depends closely on a parser. A wider range of rule sizes and better treatment of alignments can help coverage without eliminating the underlying requirement for syntactic compatibility.

Applying syntax through scores or through the grammar

An alternative to restricting a rule is to let it apply and then give its use a score that depends on the source analysis. The paper describes work by Marton and Resnik that rewards or penalizes cases according to how slots align with constituent boundaries. Features can distinguish categories, so preserving one sort of boundary need not have the same scoring effect as preserving another. The hierarchically extracted rules remain available, and the extra scores help determine which derivations the decoder favors. Soft Syntactic Constraints for Hierarchical Phrased-Based Translation

The number of weights matters in that approach. The paper describes a difficulty with tuning many feature weights through minimum error rate training, or MERT, and explains that weights were tuned in groups in the boundary-feature work. Chiang and colleagues used a large-margin procedure, MIRA, to tune weights together. The authors also discuss subsequent work with a much larger inventory of linguistically motivated features. In this account of earlier research, a key design choice was to keep the rules and change how derivations made from them were scored. Online Large-Margin Training of Syntactic and Structural Translation Features

The paper mentions additional forms of soft linguistic information, including a target head word’s part of speech and scoring components that use dependency structure or source context. It also notes a search issue in systems whose derivations include target trees. Distinct derivations can yield the same target words, and syntactic labels can further divide the probability associated with those words among alternative structures. Returning the strongest individual derivation can then differ from preferring the output with the strongest combined support. Earlier work discussed by the authors tried to estimate support over equivalent unlabeled derivations. The concern illustrates how the placement of syntactic information affects the search as well as the grammar. Part-of-speech tagging

Requiring a source and target tree to fit together raises a further problem. The paper notes that the structures assigned to corresponding sentences can differ across languages. It describes earlier work that tried to give the target parse a backbone compatible with the source parse. Hoang and Koehn use a source analysis and generate a target string. A label in their grammar conditions the source span where a piece of a rule can apply. It does not oblige the decoder to construct a corresponding target constituent of that type. This lets the authors study how much can be gained from categories on the input side while retaining the same basic form of recursive translation used by the hierarchical system.

The method, step by step

From aligned words to an ordering pattern

The procedure starts with parallel sentences and word alignments. An alignment records correspondences between words in the source and target examples. Those correspondences help identify fragments that can be extracted together and links between the variable pieces on each side of a rule. The source analysis provides a separate description of the same input words. It tells the extractor which contiguous spans have categories from a parse or chunk annotation. Alignments support the bilingual correspondence. Source labels describe the source material participating in that correspondence. A Systematic Comparison of Various Statistical Alignment Models

A rule can retain words and abstract over subphrases in the same pattern. The source example concerning Musharraf’s last act illustrates the range of forms the authors extract. A rule can retain the words corresponding to the last act as a phrase pair. A more general rule retains the word for the act and leaves the preceding material to be translated in a slot. If the slot carries the label for an attributive adjective, its use depends on what the source analysis says about the material filling it. If the slot carries the default symbol, the grammar specifies the placement of the piece while leaving its grammatical category open.

The examples also include rules with no fixed words. Their source sides consist of labeled slots, or a mixture of labeled and general ones, and their target sides say how to combine the translations of those slots. Such a rule is called unlexicalized. It can describe an ordering pattern that recurs with different words because the rule records the structure of the combination. In a partially lexicalized rule, the retained words are also part of the conditions for application. A lexical anchor can identify a useful context, while a category can supply information about the whole span of a variable piece.

The label on the left-hand side is a separate choice. A label there describes the whole source span covered by an application of the rule. A label inside the right-hand side describes only the span of its particular slot. The examples include rules whose whole span carries a source category and whose interior still contains a general slot. They also include rules with a general outer label and a labeled piece inside. This separation matters when a reliable grammatical cue concerns only one part of an ordering pattern. The outer span and the other pieces can remain flexible without removing that cue.

Separate rule sets and a shared grammar

The first combination in the paper makes an ordinary hierarchical rule set and a source syntax rule set available to the decoder at the same time. Extraction and estimation for the two sets take place separately. The decoder can use rules from the resources in the same search. Each rule still has the form supplied by its extraction procedure. A hierarchical rule brings general slots, and a fully syntactic rule brings the source categories it requires.

The shared grammar includes fully general rules, fully labeled rules and rules that mix the two kinds of slots. Consider the shape of the rule later used to explain the English word order in the paper’s example. It can identify a prepositional phrase as a distinct source piece while leaving the neighboring phrase general. It can then put the translation of the general phrase before the translation of the prepositional phrase. Such a rule states the category that matters for that local decision. It does not require the neighboring material to match whichever constituent categories a fully labeled version would need. Category matching still has a precise pass or fail condition for the prepositional phrase.

The shared approach is called soft syntax because of the choices available in the grammar. If an input span has a category, the decoder can consider rules whose use depends on that category, alongside rules with a general slot at that position. If the span lacks an appropriate category, general patterns can still be considered. A rule with a mismatched labeled slot cannot become eligible by paying a penalty. The flexibility comes from having another derivation available, potentially through a partly labeled rule that retains a useful requirement elsewhere.

From parallel sentences to source-labeled translation

The steps in order.

From parallel sentences to source-labeled translationStep 1: Align words in parallel sentences1. Align words in parallel sentencesStep 2: Annotate source spans with parses or chunks2. Annotate source spans with parses or chunksStep 3: Extract general, labeled, and mixed translation rules3. Extract general, labeled, and mixed translation rulesStep 4: Estimate rule scores and tune feature weights4. Estimate rule scores and tune feature weightsStep 5: Encode input words and labels as edges5. Encode input words and labels as edgesStep 6: Match rules over spans and rank translations6. Match rules over spans and rank translations

Which patterns are extracted

The ordinary hierarchical extraction procedure requires lexical material in every rule, prohibits consecutive nonterminals, and allows at most 2 nonterminals per rule. The list also caps both source and target spans at 10 words and allows at most 5 source symbols. These restrictions govern different properties. The span width concerns the extent of the underlying material. The symbol limit concerns the length of the source pattern after parts of that material can be represented by nonterminals. A nonterminal may stand for several words even though it takes up one place in the pattern.

For source syntax rules, the authors permit consecutive nonterminals and allow as many as 3. The source left-hand side and the variable spans of a fully syntactic rule must match constituents. Those conditions sharply restrict possible applications, which is the reason the authors give for loosening some of the constraints used in hierarchical extraction. Adjacency between two labeled pieces does not leave as much freedom to place the boundary between them as adjacency between two pieces whose labels can match anywhere. The source analysis supplies endpoints that the decoder can test.

The soft syntax grammar retains the allowance for consecutive nonterminals but prohibits consecutive undecorated ones. As reported for the main configuration, it allows up to 3 nonterminals. The ban on consecutive general slots is meant to keep down ambiguity and preserve decoding speed. Where the source analysis supplies a label for a slot, the annotation can be used. The default symbol also lets the grammar represent spans without a matching constituent. The paper’s numbered list repeats the constituent condition in terms that would cover every slot and the left-hand side, even though its explanation and examples explicitly allow undecorated spans. The operational distinction in the examples is that decorated positions have to match the supplied category, and default positions can cover general spans.

The examples are important because having labeled and unlabeled rules in one place is only part of the design. Abstraction decisions can vary within a pattern. A rule may contain a name slot with a grammatical label, retain a particular word, and leave another slot general. Another may have no fixed words and express the order of its categories and general pieces directly. These examples show where the authors place specificity. They do not give an exhaustive inventory of all extracted forms or all ways the extractor could choose among labels.

How the rule represents both languages

The paper gives the synchronous rule in the following form.

X → ⟨αᴸˢ, γ, ∼⟩

Here X to the left of the arrow is the default target-side nonterminal. The arrow separates the rewrite’s result from its specification. The angle brackets and commas group the source pattern with its label, the target pattern, and the slot correspondence. αᴸˢ is the source string α annotated with the source left-hand-side label Lₛ, written in the superscript above. The subscript s denotes the source side. The source symbols in α and the label Lₛ come from the source alphabet Δₛ. The string γ is the target pattern. Both α and γ can contain terminals, which are words in the patterns, and nonterminals, which are the slots. The symbol ∼ gives a one-to-one pairing between the source and target slots.

The pairing determines the placement of translated subphrases. It can send the translation of an earlier source slot to a later target slot, even though the source-side pattern is matched in input order. The target slot stands for the words generated by translating the corresponding source piece. A label such as the source category for a prepositional phrase remains a condition on where the source slot can apply. The notation distinguishes this source condition from the target yield, the sequence of words the derivation ultimately produces.

The default symbol has related uses on the two sides. On the source side it can denote a slot or outer span with no requirement for a particular category. On the target side the system uses the default category for the left-hand side throughout. Seeing the same symbol in a rule therefore does not mean that target words have been assigned the source constituent label. The source label information can license a rearrangement without requiring a target parse for the rearranged string.

From annotations to a searchable sentence

At decoding time the source words and their labels are represented as a lattice, a graph of edges over positions in the input. The paper uses an unweighted lattice. An edge for a word represents the word at its position. An edge labeled with a nonterminal category represents the stretch of source words covered by that annotation. The weights that rank translation candidates enter through the translation scoring procedure. The lattice supplies what a rule can match.

⟨V, E⟩

Here the angle brackets group the components of the lattice, and the comma separates them. V is the set of vertices, which are word positions at span boundaries. E is the set of edges, each giving a word or a span label between positions. A constituent edge can cover multiple words. A default X edge is created for every span in the soft syntax setup, so the lack of a parser or chunk category for that span does not stop a general slot from matching it.

A useful way to picture the representation is to take a phrase that receives a category from the parser. Its words are still available to rules with fixed lexical material. The category is available as an edge covering the phrase, and the default edge over the same positions also exists. The decoder can start with one of those descriptions and still inspect the same surrounding input. If the source annotation is supplied as chunks, the graph can contain the chunk edges without needing the rest of a tree. The decoder’s question is whether the label covers the required contiguous stretch. Generalizing Word Lattice Translation

The paper represents the lattice for decoding with two matrices.

⟨F, R⟩

The angle brackets group the matrices F and R, and the comma separates them. At source position i, the entry Fᵢ,ⱼ holds the word or category on outgoing transition j. The entry Rᵢ,ⱼ holds the end position of that transition. The index i locates the start in the sentence. The index j selects an outgoing edge at that position. A single position can have outgoing edges of different widths, as when a word and a larger constituent both begin there.

How the decoder matches a rule

The decoder uses CKY+, a chart search that works bottom up over contiguous source spans. A chart records intermediate matches so they can be used inside larger ones. A dotted rule expresses how far a match has progressed. The dot begins before the source pattern. After the decoder recognizes a word or a translated subphrase, it moves the dot past that symbol. The paper presents the matching procedure as inference rules and leaves the generation of the corresponding target pieces implicit there.

(X → αᴸˢ) ∈ G  ⇒  [X → •αᴸˢ, i, i]

In this initialization step, G is the grammar, and ∈ says the rule on its left is a member of it. ⇒ means that the premise licenses the chart item on the right. The parentheses enclose the grammar rule, whose arrow gives the rewrite. The brackets enclose the chart item and the commas separate the dotted rule from the endpoints of its matched range. X, α, and Lₛ have the meanings given for the synchronous rule, with ᴸˢ indicating the source left-hand-side label. The dot • marks the beginning of the match. The repeated position i means that no source words have yet been consumed.

[X → α • Fⱼ,ₖ βᴸˢ, i, j]  ⇒  [X → α Fⱼ,ₖ • βᴸˢ, i, j + 1]

This is the terminal step. X is the target default category, and → introduces the rule pattern. In this step α is the prefix already matched and β is the portion beyond the next symbol. The source left-hand-side label Lₛ still belongs to the whole rule. Fⱼ,ₖ is the label of outgoing transition k at the current position j. Here it must be a word matching the rule’s next terminal. The start position of the item remains i. The brackets and commas delimit the item and its parts, ⇒ gives the licensed advance, and • moves past the terminal. The expression j + 1 is the boundary after consuming the word, with + denoting addition and 1 the single position advanced.

[X → α • Fⱼ,ₖ βᴸˢ, i, j]  and  [X, j, Rⱼ,ₖ]  ⇒  [X → α Fⱼ,ₖ • βᴸˢ, i, Rⱼ,ₖ]

This is the nonterminal step. As in the terminal step, α is the matched prefix, β is the remainder after the next symbol, and ᴸˢ records Lₛ, the source outer label. The arrow → introduces the rewrite, and • marks how far the match has advanced. The next symbol must match the label Fⱼ,ₖ on outgoing transition k at position j. Here that label denotes a nonterminal. Rⱼ,ₖ gives the end position of its edge. The word and joins the two required premises. The middle item, [X, j, Rⱼ,ₖ], means that the chart already has a translated piece with target category X over that stretch of source words. The larger item starts at i. The brackets enclose chart entries, commas delimit their fields, and ⇒ advances the larger match to the edge endpoint.

This step illustrates why the source label and the translated piece are both needed. A source edge tells the decoder which category holds over a span. It does not supply the English words for that span. A completed inner item supplies a translation that the enclosing rule can use. The outer rule can place that piece wherever the target pattern calls for it. For a general slot, the label test can use an X edge, while the chart still has to supply a translated piece for the range.

[X → α • Lₛ, i, Rᵢ,ⱼ]  and  [Fᵢ,ⱼ = Lₛ]  ⇒  [X → αᴸˢ •, i, Rᵢ,ⱼ]

The left-hand-side step checks the category of the whole span after matching the source pattern α. The bracketed items on the left joined by and are its premises. X is the target default category, → introduces the pattern, and • indicates that the remaining check is for Lₛ, the source left-hand-side label. The item starts at i and ends at Rᵢ,ⱼ, the endpoint of outgoing transition j from i. Fᵢ,ⱼ is that edge’s label, and = requires exact equality with Lₛ. The brackets and commas delimit chart fields, and ⇒ licenses the completed item on the right. The superscript ᴸˢ there indicates that the source outer label has been checked.

[X → αᴸˢ •, 0, |V| − 1]

The goal item is a completed match covering the sentence. The brackets enclose it, the commas separate the rule from the source endpoints, and the arrow gives the rewrite to target category X. The source pattern α has outer label Lₛ, indicated by ᴸˢ. The dot at the end means the match is complete. V is the lattice’s vertex set, and |V| is its size. Position 0 is the beginning, and subtraction of 1 from |V| gives the final position in the paper’s indexing.

The authors use the Moses implementation of hierarchical and syntactic training and decoding. The decoder uses CKY+ together with three pruning methods: cube, histogram, and beam pruning. These mechanisms control how much of the space of competing combinations the search explores. The reported experiments hold the pruning parameters fixed across systems. They also cap the source coverage of a nonterminal at 7 words for decoding speed. This limit concerns an individual nonterminal’s source span. A full sentence can be assembled through multiple rule applications. A unified framework for phrase-based, hierarchical, and syntax-based statistical machine translation

How a translation is scored

The search aims to select the most probable target sentence for a given input.

t̂ = argmaxₜ p(t | s)

Here s is the source sentence and t ranges over candidate target sentences. The vertical bar in p(t | s) indicates conditioning on the source. The operator argmaxₜ returns a candidate t that maximizes the expression, and the hat in t̂ marks the selected translation. The equals sign identifies that translation with the result of the search objective. The objective states what the decoder is looking for, while the pruning settings determine how much of the search it can carry out.

p(t | s) = (1 / Z) ∏ₘ [h′ₘ(t, s)]^λₘ

The index m identifies a scoring component. The product sign ∏ₘ multiplies its factors over those components. The function h′ₘ(t, s) is the original feature value for component m on the candidate and source, and the comma separates its arguments. The exponent λₘ is the weight of that component. Square brackets group the value to which the weight is applied. Z is the normalization factor, so 1 / Z multiplies the product by its reciprocal. The equals sign gives the decomposition of the conditional score p(t | s). The authors ignore the normalizer when ranking candidates for a fixed source sentence.

hₘ(t, s) = log h′ₘ(t, s)

Here hₘ is the feature in log space and h′ₘ is its original form. The index m denotes the same component on each side of the equality. The parentheses contain the target t and source s, separated by a comma. The log operator takes the logarithm. Taking logs converts the product of contributions into a weighted sum and preserves their ranking.

log p(t | s) = ∑ₘ λₘ hₘ(t, s)

This is the scoring form in the paper after dropping the normalizing constant for ranking. The left side is the logarithm of the conditional score for target t given source s, with | marking that conditioning. The sum sign ∑ₘ adds the contributions of components indexed by m. The weight λₘ multiplies the logged feature hₘ(t, s), whose arguments are separated by a comma. The equals sign gives the form used for the search objective. An additive term from Z would be common to the candidates being compared for the same input.

At the rule level the paper describes a forward phrase probability.

p(t̄ | s̄)

Here s̄ is a source phrase or rule pattern and t̄ is its target counterpart. The bars over the letters distinguish these phrase-level objects from the complete sentences. The conditional probability is for the target counterpart given the source pattern, with | denoting the condition. The authors use maximum likelihood estimates from fractional counts and smooth those estimates with Good-Turing discounting. Fractional counts let the extraction procedure assign portions of an observation when accumulating evidence for rule pairs. Discounting adjusts the estimates obtained from those counts. The authors also create a phrase-count feature and omit lexical and backward probability features in the reported setup. Phrasetable Smoothing for Statistical Machine Translation

Translation scores are combined with a target language score and other features. The target score helps the decoder compare candidate outputs using evidence about sequences of words in the target language. The weights are tuned by MERT on held-out examples. Soft syntax changes which rules can be learned and which chart matches they can make. It retains the same feature inventory, which lets the authors keep the tuning procedure in place. A useful category can therefore affect the score of a candidate indirectly by allowing a derivation made of different estimated rules. Language model

Experiments and results

Data, tuning, and test coverage

The experiments use the news commentary corpus identified with the 2009 training setup, with nc test2007 for testing. The corpus table lists 82,306 training sentence pairs, 2,034,373 German training words, and 1,965,325 English training words. It lists 2000 sentences for tuning and 1026 for testing. The tuning set is held out from rule estimation. The translation rules and the target sequence score are learned from training material, and the held-out tuning examples are used to set feature weights before test evaluation.

The authors clean and filter the parallel data with the procedures in Moses and obtain word alignments using GIZA++. For the German–English experiments, they build a trigram score from the English side of the training corpus and use it across the comparisons. A trigram uses a sequence of three words as its unit of context. Keeping that target-side resource in common across the German–English settings helps the rule comparison. An observed change in output ordering can happen because the grammar now offers a better sequence to score, because the derivation of a sequence scores differently, or through a combination of the two. N-gram

The German source is parsed with BitPar for the full-parse conditions. The paper reports that 2042 training sentences failed to parse and were removed for both the hierarchical and the syntactic systems in that experiment. The hierarchical system could in principle train without full parses, but using the same filtered material gives the systems comparable training data. On the test side, 991 out of 1026 sentences were parsable. The hierarchical baseline translates the same 991 sentences as the syntax conditions, and the paper evaluates over 1026 sentences. The distinction between the sentences translated and the set used for evaluation is relevant when comparing these scores with those from the chunk experiment.

The tests use truecased data and report case-sensitive BLEU. The metric compares output word sequences with a reference, and case-sensitive scoring makes capitalization part of that comparison. The article’s results distinguish overall agreement with the reference from specific changes in grammar or ordering. The corpus score says how the system performed under the chosen automatic measure. The derivations and the example sentences provide more direct evidence about how particular choices were made. Bleu: a Method for Automatic Evaluation of Machine Translation

Full parses for German–English

The principal comparison has four settings. The hierarchical baseline uses only ordinary hierarchical phrase rules. The syntax-only setting requires the source constituent labels. The joint setting provides separately estimated hierarchical and syntactic rules to the same decoding process. The soft syntax setting learns the shared grammar that also contains partially labeled patterns. The common decoder and pruning settings keep the comparison in the same search framework, while the extraction regimes determine the different sets of available rules.

German–English case-sensitive BLEU on nc test2007 with full-parse conditions

The shared soft syntax grammar leads the comparison, while syntax-only rules score below the hierarchical baseline.

German–English case-sensitive BLEU on nc test2007 with full-parse conditionsHierarchical: 15.9Hierarchical15.9Syntax rules: 14.9Syntax rules14.9Joint hierarchical and syntax rules: 16.1Joint hierarchical and syntax rules16.1Soft syntax rules (this paper): 16.7Soft syntax rules (this paper)16.7
The numbers
System or setting% BLEU
Hierarchical15.9
Syntax rules14.9
Joint hierarchical and syntax rules16.1
Soft syntax rules (this paper)16.7

The syntax-only grammar scores 14.9 against the hierarchical system’s 15.9. In this setup, restricting all source slots to labeled constituents gives up more than the categories restore in the aggregate score. The separately trained joint setting reaches 16.1, which the authors characterize as little improvement. The strongest setting is the shared grammar at 16.7. The authors describe the improvement over the hierarchical baseline as 0.8% BLEU, using the paper’s BLEU scale. The full comparison shows why the organization of the rules matters to their conclusion. Access to an additional rule set produces a smaller change than the grammar that also encodes mixtures within rules.

The reverse-direction experiment checks whether the effect persists when the source and target languages switch roles. For English–German the hierarchical system scores 10.2 and soft syntax scores 10.6 in % BLEU. The authors regard the result as positive and less pronounced. This is evidence from the other direction of the same language pair. The reverse-direction results give overall scores, with less detail about the analysis resources and resulting derivations than the paper provides for German–English.

Chunks for German–English

The chunk experiment replaces the full parse with contiguous groups identified by TreeTagger on the German side. Part-of-speech tags appear alongside labels for noun, verb, and prepositional chunks. A chunk label can give the decoder a source range to match even though the annotations do not provide the full hierarchy of a constituent tree. For a rule whose condition is that a particular contiguous piece have a category, that range can be sufficient. Robust German Noun Chunking With a Probabilistic Context-Free Grammar

The chunker processes all training and test sentences, so this experiment keeps the full sets. The paper attributes the higher hierarchical baseline here to the additional training data and the ability to translate the full test set. Consequently, the clean comparison for chunking is between the soft syntax grammar and the hierarchical system run with those same data conditions. Both use the same test collection, with all 1026 sentences translated.

German–English case-sensitive BLEU on nc test2007 with all sentences retained

The soft syntax grammar improves on its matching hierarchical baseline when its source labels come from chunks.

German–English case-sensitive BLEU on nc test2007 with all sentences retainedHierarchical: 16.3Hierarchical16.3Soft syntax with chunk tags (this paper): 16.8Soft syntax with chunk tags (this paper)16.8
The numbers
System or setting% BLEU
Hierarchical16.3
Soft syntax with chunk tags (this paper)16.8

The hierarchical baseline scores 16.3 and the chunk-labeled soft syntax system scores 16.8. The authors report the improvement as 0.5% BLEU. The experiment establishes that the use of source label edges and partly labeled rules can yield an improvement with this shallower annotation. Whether chunk labels are intrinsically better or worse than full parse labels would require a comparison on matched training and test coverage, because that coverage differs between the reported experiments.

What the ablations show

Can the grammar derive the reference at all?

BLEU reflects the translation the decoder selects. A low score can arise because the grammar lacks a way to produce a good output, because the available scoring components prefer another output, or because pruning discards a promising derivation. The authors use a reachability experiment to examine grammar capacity more directly. They take individual training sentence pairs, extract rules using the pair under examination, and try to recover its target sentence from the source. They disable pruning and recombination in this diagnostic to reduce the role of score-based and context-based search decisions.

Using a sentence for both extraction and recovery makes the question deliberately narrow. The alignment and corresponding words have already been observed. The test asks whether the rule shapes the extractor permits can account for that pair when the decoder puts them together. A failure is therefore informative even though this is not a held-out test. The extraction and application constraints can be restrictive enough that the system cannot reconstruct a translation it has just seen. A success establishes that a route exists in the diagnostic. It leaves open how the usual decoder would rank that route in a larger grammar.

Reference reachability for 1000 training sentences by rule set

Soft syntax offers the highest reachability, and requiring syntax labels throughout sharply restricts which references can be derived.

Reference reachability for 1000 training sentences by rule setHierarchical: 57.8Hierarchical57.8Syntax rules: 11.3Syntax rules11.3Joint hierarchical and syntax rules: 57.9Joint hierarchical and syntax rules57.9Soft syntax rules (this paper): 58.5Soft syntax rules (this paper)58.5
The numbers
System or settingreachable sentences %
Hierarchical57.8
Syntax rules11.3
Joint hierarchical and syntax rules57.9
Soft syntax rules (this paper)58.5

The fully syntactic grammar recovers the reference for 11.3% of the 1000 training examples in the diagnostic, against 57.8% for hierarchical rules. This gives a concrete view of the coverage problem behind the syntax-only test score. The narrow grammar can fail even in a setup that gives extraction direct access to the relevant pair. Joint decoding reaches 57.9%, suggesting that the separately learned syntax rules offer little extra reference coverage where the hierarchical rules are already available. The authors also observe that tuning assigns weights under which syntactic rules are used very rarely in ordinary joint decoding. The reachability rates and tuned rule use address different issues, availability in the diagnostic and preference in the scored search, but both indicate a limited role for the additional independent rule set in these experiments.

The shared grammar reaches 58.5%. The improvement in measured reachability is modest next to the gap between the syntax-only grammar and the hierarchical one. This matters when interpreting the higher BLEU score. A shared grammar can give the decoder a better ordering derivation for sentences whose reference was already reachable, and it can give familiar pieces different rule scores or different combinations. An aggregate reachability result shows how often a reference is possible under the diagnostic conditions. It cannot say which enriched derivations the ordinary decoder will find helpful.

Longer combinations with shorter pieces

The soft syntax grammar can use more nonterminals in a rule than the hierarchical baseline, and it can place some of those nonterminals next to one another. The authors expected the added structural context to help rules operate over longer stretches. The distribution of rules used during decoding initially looks surprising. With soft syntax, the decoder translates more words singly and uses fewer rules that span long stretches. If the effect consisted simply of replacing short translation phrases with longer ones, the distribution would have moved in the opposite direction.

The authors also count glue rules. A glue rule joins translated pieces in source order when the system has no preferred ordinary rule to explain the combination. It lets the system produce a complete output from separate pieces, which is useful when coverage is limited. An ordinary extracted rule can accomplish the same concatenation, but its usage has evidence from bilingual examples and contributes its own score. It can also express a different target ordering. The paper finds that soft syntax uses glue less frequently on the test set. The result is consistent with a decoder that translates small pieces and combines them through more informative rules.

The distinction is between the width of an individual translation piece and the amount of an output that can be accounted for through learned combinations. A system can translate a noun, an adjective, or a verb by itself and still arrange several translated pieces by applying an ordering rule higher in the derivation. Conversely, producing a long phrase in one step says little about how the rest of the sentence will attach to it. The two distributions in the paper capture different aspects of this process. The source span analysis describes the sizes of rules used, and the glue analysis describes how frequently the decoder relies on a general fallback for joining outputs.

A time phrase moves to the end

In one sentence, the paper attributes a statement to János Veres and identifies what would be possible during the opening quarter of 2008. The hierarchical and soft syntax outputs contain the same lexical material. In the hierarchical output, the English time phrase appears between the subject pronoun and the words expressing possibility. The soft syntax output places the time phrase after the predicate. Since the vocabulary is held constant in this comparison, the difference can be inspected as a word order decision.

The derivations show how the soft syntax system gets there. Several rules with no fixed words combine pieces using source labels, including categories for names and for parts of the predicate. Some of these rules preserve source order. In those parts of the derivation the system could have obtained the same local order through glue, but a learned rule contributes an estimated score. The crucial rule treats the time phrase as a prepositional phrase, pairs it with an adjacent general piece and also includes the punctuation. It puts the translation of the general piece before that of the prepositional phrase, leaving the punctuation last. This is precisely where a partially decorated pattern has an advantage in what it can express. The phrase that moves is identified as a constituent, and the material it moves across can be matched without an additional category requirement.

The hierarchy of rules also explains why the availability of such a pattern can help with ordering even when the ordinary lexical rules do less work at long span widths. The important decision in the example takes place at a point where complete subphrases are combined. The translation of each subphrase can be found through smaller rules. The grammatical information constrains the rule that puts those translations together. In the parse-based example, the authors show fewer applications of glue in the soft syntax derivation than in the hierarchical one.

They examine the same sentence using chunk tags. In that case the chunk-based system uses a rule without fixed words to make a local reorder and again produces the grammatical order. The derivation uses the same amount of glue as the hierarchical derivation for this particular sentence. Across the test set, however, the chunk system uses less glue overall. The single sentence thus shows that a useful reorder can take place without a change in its total glue count. The corpus analysis shows that reliance on glue generally falls, a separate observation about how the decoder builds outputs across the set.

How many slots help?

The paper varies the maximum number of nonterminals in soft syntax rules. In the reported German–English width comparison, the setting with a maximum of 2 scores 16.5 in % BLEU. A maximum of 3 scores 16.8, and a maximum of 5 also scores 16.8. This experiment supplies a direct comparison of rule capacity within the soft syntax approach. Rules with more slots can express patterns involving more pieces in one application. The equality of the last scores shows that expanding the allowed count further did not improve the reported BLEU result in this comparison.

The authors interpret the result as evidence that nonterminals provide useful context up to a point. More slots can let a rule specify how a larger combination fits together, especially when labels constrain some of the pieces. Beyond the useful patterns supported by the data and search, a larger allowed rule shape need not improve the translations that are selected. The width comparison reports 16.8 for its 3-slot setting, while the primary full-parse comparison reports 16.7 for soft syntax. Those scores belong to their respective comparisons. The width result is read through the settings reported together in that analysis, while the main comparison measures the soft syntax system against the other grammar choices.

Limitations

Limits identified by the authors

The authors emphasize the practical cost of relying on a full parser. Parsers can require manually annotated treebanks for training, and their reliability can suffer when inputs come from a different domain. The test corpus supplies an immediate illustration of coverage. Of 1026 sentences, 35 were unparsable in the full-parse setup. The training failures also reduced the pool from which both the syntax systems and their matched hierarchical baseline could learn. These exclusions help keep comparisons fair within the experiment, while showing the cost of making a successful parse part of the pipeline. Treebanks

Parse uncertainty is another concern the authors identify. A category supplied by a parser may be wrong even when the parser returns a tree. A forest can make alternative analyses available, which the authors describe as a way to mitigate accuracy problems. The proposed grammar provides another kind of flexibility by allowing default edges and general rules when a particular annotation is unavailable or unhelpful. A mislabeled or missing span can still block a rule that explicitly requires its category. Default edges offer other derivations and do not correct the source analysis itself.

The authors motivate chunking partly by the scarcity of suitable high-quality parsers and by the expectation that shallow annotations are less brittle on unfamiliar text. Their chunker processes the full sets in the reported experiment. The practical conclusion is bounded by the resources used. It shows a way to obtain a gain from contiguous span information with this German annotation setup. The broader question of how different taggers behave across domains or source languages remains outside the experiment.

The conclusion offers better long-range ordering as an explanation for the translation improvement, supported by the analyses of glue usage, span widths, and rule derivations. The authors also leave several directions for future investigation, including tree-to-tree approaches, automatically obtained constituent labels, and back-off between labeled and unlabeled rules. These proposals concern ways to obtain labels or combine levels of specificity beyond those tested. The paper demonstrates the value of its particular shared grammar under the reported conditions.

Limits visible in the experimental setup

Most of the detailed translation evidence comes from German–English news commentary. The reverse direction confirms the direction of the BLEU change for English–German, with less accompanying analysis. The experiments establish a result for the reported corpus, languages, annotations, and search settings. A different source language could offer a different distribution of constituent categories and require different reorderings into the target language. The paper does not run experiments that would determine how strongly those factors affect the gains.

The parser and chunker comparisons have different data coverage. In the parse-based German–English test, all systems translate the same parsable subset of the test collection. In the chunk-based test, the systems translate the whole collection and can train with sentences that were omitted from the full-parse experiment. Each annotation method has its own matched hierarchical baseline. Comparing the final BLEU scores across those conditions would combine the effect of annotation with the effects of training coverage and available test outputs. The paper’s within-condition improvements answer the cleaner question of whether each kind of source annotation helped relative to its comparison.

The main grammar comparison also changes several properties together. The soft syntax grammar has mixed labels, can use some adjacent nonterminals, and permits more slots than the hierarchical baseline. Those choices are connected by design because a source label can provide the constraint that makes a more permissive rule shape practical. The slot-count comparison varies one of the properties within soft syntax. It leaves the separate contributions of mixed labeling and adjacency unresolved. Likewise, the comparison with jointly decoded independent rule sets tests a different way of combining resources and does not isolate a single change in scoring or rule inventory.

BLEU aggregates the agreement of selected outputs with their references. The reported scores establish the ordering of the tested settings on that measure. The paper does not accompany those differences with uncertainty estimates or a broad human evaluation of grammatical improvements. The ordering example isolates a clear change because its outputs use the same words, and the glue analysis shows that a related structural behavior changes across the test set. Neither gives the proportion of all sentences whose word order improved, or the distribution of improvements by the distance over which words or phrases move.

Fewer glue applications indicate that ordinary rules were available and preferred for more combinations. Some of those ordinary rules preserve the input order, as the paper’s example demonstrates. A decrease in glue is consequently evidence about how translations are derived, instead of a count of corrected reorderings. The analysis can support the proposed explanation when considered together with the illustrated rules and BLEU changes. It cannot attribute a specified amount of the aggregate improvement to long-range movement.

The reachability experiment also has a specific scope. Its rules come from the very pair being tested, with pruning and recombination disabled. The resulting percentages characterize the restricted reconstruction exercise. They neither measure the coverage of the full trained grammar on unseen input nor predict how the ordinary decoder will rank an available derivation. The main decoding experiments use common pruning parameters for comparability, but the paper does not quantify runtime and memory tradeoffs for the alternative grammars. The ban on consecutive general slots and the span cap are design choices to control search. Their computational effect is distinct from the demonstrated translation scores.

What came after

The later citations connect the paper to work on where reordering happens in a translation system, what kind of structure describes a reorderable piece, and how multiword units enter language processing. The titles identify the subjects of those works. The citation relationship establishes that they refer to Hoang and Koehn. Details such as adoption of the mixed-rule grammar, reuse of its extraction settings, and replication of its BLEU changes would require more evidence about the citing studies.

The closest connection on the search side is Braune and colleagues’ work on long-distance reordering during search in hierarchical phrase-based statistical translation. Hoang and Koehn had placed ordering information inside a grammar whose rules the chart decoder combines. Their experiment makes the distinction between an available ordering and one the search can find especially relevant. A search procedure can only choose among orderings that its rules and intermediate hypotheses allow it to construct. The later paper’s stated focus is the search aspect of long-distance reordering within a hierarchical phrase-based framework. Its citation situates the source-label grammar alongside another treatment of the reordering problem. Long-distance reordering during search for hierarchical phrase-based SMT

Dlougach’s work concerns building a reordering system with a hierarchical tree-to-string approach. That topic connects to the source-side structural information in Hoang and Koehn’s grammar. In the earlier system, contiguous spans can have labels from a tree, and a rule can use a label to decide where a piece may apply while producing a target string. A tree-to-string approach names a related setting in which source tree structure and a string output are the two sides of the ordering problem. The citation records the relevance of source-labeled translation to that work. The exact role of partially labeled rules in the later system is unspecified. Building a reordering system using tree-to-string hierarchical model

Constant and colleagues cite the paper in a survey of multiword expressions. This places the work in a broader discussion of processing units that contain several words. The relevant connection is the treatment of a span as a group when constructing an output. Hoang and Koehn’s variables can hold chunks or constituent spans, and the translation of the group can be positioned by an enclosing rule. Their experiments concern the usefulness of grammatical source labels for translation. They do not evaluate whether a span is an idiom or otherwise classify it as a multiword expression. The survey is the broader citing work in this set, and the citation alone leaves the specific context of its discussion open. Multiword Expression Processing: A Survey

Cite

Cite as Hieu Hoang and Philipp Koehn. 2010. Improved Translation with Source Syntax Labels. Proceedings of the Joint Fifth Workshop on Statistical Machine Translation and MetricsMATR.

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

@inproceedings{hoang2010improved,
  title = {{Improved Translation with Source Syntax Labels}},
  author = {Hieu Hoang and Philipp Koehn},
  booktitle = {Proceedings of the Joint Fifth Workshop on Statistical Machine Translation and MetricsMATR},
  year = {2010},
  url = {https://aclanthology.org/W10-1761/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/hoang-2010-improved-translation-source-syntax-labels/