An Empirical Comparison of Features and Tuning for Phrase-based Machine Translation
Paper · 2014 · Spence Green, Daniel Cer and Christopher Manning
Summary
A phrase-based machine translation system must decide which phrases to use, how to order them, and where to supply words the source leaves implicit. It makes those decisions by scoring possible translations with a weighted set of features. Broad features, such as phrase translation probabilities and a target-language fluency score, give useful evidence across many sentences. A feature tied to a particular word or phrase can correct a more specific error, but it can also learn a preference that happens to suit the examples used for tuning. Spence Green, Daniel Cer, and Christopher Manning ask how to add that specificity while making the learned weights useful on new text.
The authors introduce extended features, many of which share evidence across words placed in the same automatically induced class. A feature can, for instance, score a pattern of word classes on either side of a phrase boundary or penalize the omission of a source word according to its class. Other features describe phrase lengths, the direction of reordering, or the relative amounts of punctuation and common function words. The authors retain some exact-word features and add domain-specific weights for selected lexical decisions. They use source text from a domain to find relevant examples in bilingual training data, then label the phrases extracted from those examples. A single system can use those labels when translating newswire, broadcast news, or web text.
Evaluated with the BLEU score, the strongest configuration yields the paper’s reported average gains of +1.05 for Arabic–English and +0.67 for Chinese–English relative to a strong baseline with sparse lexical features. The domain-aware system significantly exceeds that baseline on every test split for both language pairs. The authors also compare ways to tune the feature weights. Their online expected BLEU objective scores each candidate against reference translations and averages those scores using the system’s current probabilities. In the Arabic–English comparison, it takes less time per epoch than pairwise ranking and achieves a similar held-out score. The authors release the feature extractors and the software used for word clustering and data selection.
The evidence also shows how much the tuning references matter. A candidate can score quite differently against different human translations of the same sentence. Reducing the number of references during tuning has a considerably larger effect on the feature-rich system than on the baseline with only broad features. The paper thus identifies two conditions for making fine-grained scoring useful. The features need to share evidence across enough examples, and the reference data need to give the tuner enough room to recognize different acceptable translations.
Deep dive: An Empirical Comparison of Features and Tuning for Phrase-based Machine Translation
How phrase-based translation improves when it shares features across word classes, adapts to domains, and tunes weights with expected BLEU. · about 39 minutes to read
The problem and its context
What phrase scores leave unresolved
In statistical phrase-based translation, a phrase is a sequence of tokens that can be translated together. A bilingual training corpus supplies examples from which a system extracts rules pairing source phrases with target phrases. At translation time, the decoder chooses rules that cover the input and assembles their target phrases. Alternative assemblies can split the input differently, use different rules for the same span, or visit the source spans in a different order. A derivation records those choices. A finished target sentence gives the words that the reader sees, while its derivation records how the decoder produced them.
The scoring system has to compare these assemblies using several kinds of evidence at once. A translation feature can report how strongly the bilingual data support a phrase pair. A target language model can assign a score to the resulting word sequence. A reordering feature can account for changes in the order of source spans. In the paper’s terminology, these are dense features because a small, shared set of coordinates serves a broad range of translation decisions. The numerical value of a translation probability varies from rule to rule, but its weight determines how much the decoder trusts that kind of evidence across rules.
That shared weight is valuable when the decoder faces phrase pairs with unequal amounts of training evidence. It also limits the distinctions the system can learn. Suppose a particular source noun sometimes requires a preposition in English. A phrase table can contain English renderings both with and without the preposition. A general phrase score still leaves the tuner without a coordinate dedicated to the choice between those renderings. Giving each exact phrase pair its own indicator supplies that coordinate. The challenge is to estimate a weight that remains useful when the same pair occurs in a different sentence and to help related pairs when the exact one has little evidence.
A phrase pair’s internal word links create a similar problem. A rule may have substantial corpus support even though one of its internal alignments is questionable. The broad rule scores can hide that distinction. An explicit alignment feature can recognize the pattern, but a feature that names every word in the pattern accumulates evidence only when that exact vocabulary recurs. The paper calls such features sparse. The issue is the number of occasions on which an individual feature becomes active, often described as how frequently it fires. Raw feature count gives some idea of the size of the tuning problem, while the distribution of occurrences determines how much evidence individual weights receive.
There is also a distinction between evidence for a rule and evidence for the way rules work together. A phrase may be reasonable in isolation and yield an awkward join when followed by another phrase. Conversely, a fluent English sequence assembled from small pieces can miss a translation that would have been easier to express with a larger rule. The authors organize their feature design around these different places where a choice can go wrong. They consider lexical selection, internal word alignment, phrase boundaries, the makeup of a derivation, and reordering.
Why better tuning made feature design worth revisiting
The paper describes a period in which discriminative tuning algorithms could already handle many more weights than a conventional dense system needed. Discriminative tuning adjusts weights according to how well alternative translations score on data with references. The algorithms discussed in the paper differed in their objectives, in whether they processed examples online or in batches, and in how they controlled the number and size of weights. This made it practical to ask the decoder to consider finer distinctions. The authors’ reading of earlier studies was that the ability to fit these distinctions had advanced more consistently than their effect on translation quality.
Hopkins and May’s Tuning as Ranking compares candidates in pairs, encouraging the system to rank the better candidate above the worse one. The method is commonly called PRO, for pairwise ranking optimization. Green and colleagues report that the extra features in that earlier experiment improved on the baseline for only one of the three language pairs. They describe a similar pattern in Gimpel and Smith’s experiments with PRO and ramp loss. In Batch Tuning Strategies for Statistical Machine Translation, several batch procedures produced comparable results, and the effect of extra features depended on the language pair. The paper points to work on reordering and on online training as evidence that some more carefully chosen features could produce consistent gains.
Several building blocks of the authors’ design already appeared in earlier work. Previous studies had used indicators for exact phrase pairs and word alignments, recorded the source and target lengths of a rule, and specialized reordering scores. Some had used part-of-speech tags to pool evidence across words. Others had used induced word classes for target-word features, as a fallback for detailed lexical features, or as the basis for another set of dense scores. The authors draw on those precedents and concentrate on how much a feature should generalize, what information the decoder should retain during search, and how the feature inventory should be tuned.
Why domain and reference choice belong in the same study
A feature weight learned on one kind of text can carry a lexical preference that is less suitable elsewhere. The authors cite Measuring Machine Translation Errors in New Domains for an analysis of lexical selection errors. One such error occurs when the system has access to an appropriate target expression and scores another expression more highly. Earlier domain adaptation studies reviewed in the paper had attached domain labels to broad features, adjusted weights locally using examples similar to an input, or used topic information from source-language text. Other work had added topic information to sparse rule and word alignment features. The present study asks whether one system can learn shared preferences and specialize the lexical decisions that benefit from a domain label.
References pose a related problem for tuning. They define the target against which a candidate is judged, and a reference translation reflects choices about wording as well as meaning. The paper uses the choice between U.S. and United States to illustrate the kind of distinction an exact lexical weight can learn. A candidate can be penalized for differing from an available reference even when a different human translation would support it. A dense system has relatively few ways to encode such a preference. A feature-rich system can learn it directly. Earlier attempts to represent more possible translations through evaluation lattices show that the breadth of valid output was already a concern for evaluation. This study brings the same concern into the design of the tuning experiment.
The method, step by step
From training text to translation rules
The procedure begins with a bilingual corpus, also called a bitext. Each sentence pair offers a source sentence and its translation. Word alignment estimates which source and target tokens correspond. Phrase extraction uses those links to construct the translation rules from which the decoder will later build derivations. The experiments use the Berkeley aligner associated with Alignment by Agreement and combine directional alignments with the grow-diag heuristic. The paper discusses the grow family of procedures in connection with A Systematic Comparison of Various Statistical Alignment Models. The resulting internal links are available to the new features as information about each rule.
The authors prepare further resources for scoring. An English sequence estimator is trained separately for each translation direction, using the English side of the corresponding bitext together with monolingual English news. Counts and word classes are built separately for the source and target languages. The classes group words using corpus evidence. They can be estimated from monolingual text, and the authors use each side of the parallel corpus before word alignment for this purpose. The preparation also includes identifying examples of the genres for which the authors want specialized features. That process produces domain annotations on phrase-table entries.
These resources serve distinct stages of learning. The bilingual corpus supplies rules and the evidence that supports their ordinary phrase scores. The monolingual resources supply word counts, classes, and target sequence evidence. Tuning then learns how much to trust the features that draw on these resources. For example, knowing that two words belong to the same class gives the decoder a way to describe them alike. The effect of that description on a translation depends on its learned weight.
From corpus preparation to held-out translation
The steps in order.
Scoring a translation and keeping track of search state
Each partial derivation extends the translation by applying a rule. The decoder tracks which source spans have been covered and has to compare partial derivations that may reach similar points by different routes. Each feature supplies a value used for scoring. An indicator supplies a value when a particular event occurs. A quantity such as a log probability or punctuation ratio supplies a numerical value. The decoder combines these values with their weights in a log-linear scoring function.
p(e | f; w) = exp(wᵀ φ(e, f)) / Z(f)
Here f is the input string and e is a target string. The vertical bar means that the probability is conditional on f, and w after the semicolon names the parameter vector that determines the distribution. The map φ(e, f) gives the feature vector for the translation, whose values may depend on the derivation used to build it. The vectors w and φ(e, f) have the same dimension, denoted by d in the probability setup. The superscript ᵀ marks a transpose, so wᵀ φ(e, f) is the inner product obtained by multiplying each feature value by its weight and summing the products. The function exp exponentiates that score. Z(f) normalizes the resulting masses over the candidate space for the fixed input and weights. The slash indicates division.
The paper describes a recombination map denoted by ρ. Its coordinate for a feature records the part of the derivation’s state that the feature needs for future scoring. Suppose the decoder has reached compatible search states through different partial derivations. Recombination lets it collapse derivations whose recorded states agree. A useful way to understand this is to ask what a future rule could see. If appending it would make a new feature fire for one history but produce a different feature for another, the decoder needs to preserve the distinction between those histories in its state. That has consequences for both decoding and tuning, because search determines which candidates are available to the learner.
A local feature can be extracted from an individual rule, or computed incrementally without storing a distinct feature-specific state for future decisions. Its recombination coordinate is 0. A non-local feature needs information from the partial derivation. A target sequence score, for instance, may depend on the word history at the end of the current output. The history is the state the corresponding coordinate of ρ represents. An indicator that inspects the classes across a phrase boundary needs a smaller piece of history, the class of the last emitted word. Such choices put constraints on the useful granularity of the features. A design can add a large number of weights and still be straightforward to evaluate if most of its features are local. A feature that introduces new states can also change which derivations the decoder is able to keep separate.
For its feature definitions the paper writes a derivation as an ordered collection of rules.
d = {rᵢ}ᵢ₌₁ᴰ
Here d denotes the derivation in the feature discussion. Each rᵢ is a rule, i is its position in the application order, and D is the number of rules. The braces collect the rules in that indexed order and the subscripts and superscript give the range. Applied to a rule r, f(r) and e(r) mean its source and target strings. The same functions can describe the source and target strings of a derivation. The paper uses d in this context for the derivation and in the probability setup for vector dimension.
Learning from candidate lists
The authors inherit an online tuning procedure from their earlier experiments. At an update, the decoder produces a scored candidate list for a tuning input. The learner evaluates the candidates against the human references and adjusts the weights using a gradient calculated from that list. Repeating decoding during tuning lets the learner see how weight changes affect the set of available translations. The implementation uses mini-batches, so a training pass consists of repeated updates on small groups of inputs.
The step sizes follow AdaGrad. The method adapts the size of an update for each coordinate using the gradients accumulated for that coordinate. This matters when dense features receive evidence continually and a detailed alignment or phrase indicator appears only occasionally. The outer procedure also applies L1 regularization in the FOBOS framework. In this setting, regularization penalizes the magnitude of feature weights and can bring some of them to zero. It provides a way to select active features while learning their weights. The same procedure can be used with a different objective as long as the learner can calculate the required gradient or subgradient.
For expected BLEU, the candidate scores become a probability distribution over a finite list. Each candidate also receives an external reference score. The learning objective combines the two.
ℓₜ(wᵗ⁻¹) = 𝔼ₚ₍ₑₘ₎[G(e)] = (1 / Z) Σₑ′∈Eₜ exp(wᵀ φ(e′, fₜ)) · G(e′)
Here ℓₜ is the objective for update t, and wᵗ⁻¹ means the weights carried into that update from the preceding step. The expectation notation 𝔼ₚ₍ₑₘ₎ denotes averaging under the candidate probabilities for the current input and incoming weights. In the sum, Eₜ is the scored list available at step t, e′ ranges over its candidate translations, and fₜ is the source input for the step. The paper describes the list as an n-best list, where n is its size. The Σ symbol means to sum over all candidates identified by e′∈Eₜ. The expression exp(wᵀ φ(e′, fₜ)) gives the unnormalized weight of candidate e′, using the incoming w. The dot means multiplication by G(e′), the reference score of that candidate. The factor 1 / Z normalizes the sum.
Z = Σₑ′∈Eₜ exp(wᵀ φ(e′, fₜ))
In this equation Z is the total unnormalized mass of the candidates in Eₜ for input fₜ at the current weights. The Σ sums the exponentiated scores across that list. The same e′ indexing and the same feature and weight vectors appear in the objective. Normalizing over the list makes the objective an average weighted by what the decoder currently favors. The paper uses sentence-level BLEU+1, associated with ORANGE, for G. BLEU+1 is a smoothed form of BLEU for scoring individual sentences. A better candidate under that metric contributes a higher G value. The authors describe the framework as expected error because the candidate evaluator can be changed. With BLEU as the evaluator, the aim is to favor higher expected reference scores.
gₜ = 𝔼[G(e) φⱼ(e, fₜ)] − 𝔼[G(e)] 𝔼[φⱼ(e, fₜ)]
In the gradient expression, gₜ is the component for feature coordinate j at time t. The symbol φⱼ is the value of that feature for candidate e and input fₜ. G(e) gives the candidate’s reference score, and each 𝔼 uses the same candidate distribution as the objective. The minus sign subtracts the product of the separate averages from the average of the product. The result is a covariance. If a feature tends to have larger values on higher-scoring candidates within this list, this component points toward a higher weight when improving expected BLEU. The expression gives very little signal for a feature whose value is effectively shared by every candidate in the list.
Pairwise ranking gets its signal by comparing candidates to each other, with the reference scores determining which should be preferred. The version of online PRO discussed in the paper uses a logistic surrogate loss. Computing the exact pairwise objective has quadratic cost in the list size, written O(n²), where n is the number of candidates. Sampling limits the practical cost. Expected BLEU needs averages over the individual candidates, giving linear cost in the list size for its objective calculation. The decoder still has to produce candidates under either procedure, and the runtime measurement includes learning in a real system with many weights. The point of changing the objective is to make better use of the candidates produced during that process.
Choosing how widely to share lexical evidence
The authors use word classes to describe different events at a granularity between an exact word sequence and a single general score. Their notation for the class mapping is as follows.
ϕ : w ↦ c, w ∈ V, c ∈ C
Here ϕ maps a word w to a class c, as indicated by ↦. The colon introduces the mapping, and ∈ means membership. V is the vocabulary of words and C is the inventory of classes. In this equation w stands for a word. The similarly written φ in the scoring equations is the feature map, and w in those equations is the weight vector.
Consider first an exact rule indicator. It gives the tuner a way to reward or penalize a particular source–target phrase pair. The Arabic–English example in the paper concerns an Arabic form translated with the English noun reasons. The available rules include reasons, reasons for, and the reasons for. The paper reports weights of -0.022, 0.016, and 0.002 for those indicators, respectively. These are fitted feature weights. For an Arabic construct of the kind the authors discuss, English can need a preposition that has no overt counterpart in the phrase. It can also need a determiner, depending on the context. The weights give the decoder a lexical preference to combine with its other scores when it chooses how to render the phrase. For a rule to receive this exact-match indicator from the template, it must occur over 50 times in the parallel training data.
A class-based rule indicator reads the same pair of phrases and replaces every word with the class assigned to it. The pattern preserves word order and the distinction between the source and target sides. Different exact rules can therefore activate the same indicator. The paper imagines a class of Arabic present-tense verbs and a class of English auxiliaries. A rule prototype linking a verb of that class to a sequence of auxiliaries can acquire a penalty if it frequently represents a poor rendering in which the main verb disappears. Training can contribute evidence for the same pattern across different verbs. This is the intended middle ground. The indicator still describes a particular bilingual structure, with more support available to its weight than the exact wording alone would provide.
A target unigram class indicator shares at the level of an individual output word. Each target class present in a rule contributes an indicator. The authors give the example of surface-to-surface, air-to-air, and ground-to-air. All fall into class 0 in one English mapping. Their corpus frequencies are 269, 98, and 63, respectively. Their different counts can matter to the ordinary phrase scores, while a class indicator gives the tuner a way to learn a preference that applies to the group. This is a local feature. Extracting it requires the rule’s target words and their class labels. The decoder can combine that signal with the ordinary target sequence score already in use.
Looking inside rules and across their boundaries
The lexicalized alignment template examines the word links inside a rule. It can activate a feature for an individual alignment or for a group of aligned words. In the paper’s example of a rule containing the English translation sunday and a comma, the Arabic word for day is incorrectly linked to the comma under one alignment. A broad phrase probability can still favor the rule if that alignment error occurs often. An indicator dedicated to the alignment provides another way to score it. The class-based alignment template keeps the pattern of correspondence and substitutes classes for exact words. Thus an alignment pattern that recurs with different words can receive a shared weight.
A separate feature represents source deletion. Word alignment and the symmetrization step can be followed by extraction of a rule in which a source content word is left unaligned. For each unaligned word in a rule, the feature fires an indicator for that word’s source class. This gives the tuner a way to distinguish deletion of one kind of word from deletion of another. The feature uses the internal alignment and is local. Its usefulness depends on the correspondence between the induced classes and the distinctions that matter for translation.
The punctuation feature counts target punctuation relative to source punctuation. The paper motivates it with the difference in how readily quotation marks appear in Arabic and English and with the risk of punctuation being involved in spurious word links. The function word feature uses a similar idea for common words. To form the frequency-based inventory for the ratio, the authors select each language’s 25 highest-frequency words. Differences between languages can make the appropriate target amount unequal to the source amount. For instance, the paper contrasts the range of English auxiliaries and modal verbs with Arabic. For a fixed input, the denominator of each ratio is constant, so the output contribution can be accumulated as successive rules are applied. The paper classifies these quantities as local.
At the transition between consecutive output phrases, the authors add a target-class bigram. An n-gram describes a sequence of consecutive items, and this bigram records the class of the word just before the boundary and the class of the word just after it. The authors report overfitting when they used bigram features more broadly and restrict this template to joins between phrases. The join is a decision point at which the decoder is connecting pieces that can each look reasonable on their own. The new feature complements a general sequence score and the dense reordering features that already cross phrase boundaries. It stores the class of the rightmost target word in the partial derivation, which gives the next rule the information it needs to score the join.
The derivation quality templates describe the shape of individual rules. One indicator records the length of the source phrase, another records the length of the target phrase, and a third records both lengths together. The standalone lengths let the tuner learn how much it favors particular span sizes. The joint indicator lets it distinguish, for instance, a source phrase that produces an output of the same length from a source phrase of that length that expands. The paper motivates these features partly by the risk of using too many single-word rules. A derivation may meet the reordering constraint and sound locally fluent while failing to use a larger phrase that better captures an idiomatic rendering. Shape features add evidence about the rule choices that produced the output.
Distinguishing types and directions of reordering
The authors use rule orientation to describe the placement of phrase pairs relative to their neighbors. The baseline orientation vocabulary, shared with the Moses feature extractor, includes monotone, swap, and discontinuous arrangements. Monotone means the relevant pieces follow source order. Swap describes reversal of the local order. Discontinuous describes a placement involving a gap. The authors add a broader non-monotone category that can apply to a swap or a discontinuity. The categories can be specialized with respect to the previous or next rule, yielding eight orientations in the paper’s setup.
An orientation indicator can specify the exact rule words or the corresponding sequences of classes. A rule is included in the exact-word version only if it appears over 50 times in the parallel training data. The class version can pool evidence across different lexical rules with the same pattern. Both templates combine the orientation with the source and target sides of the rule, and both are non-local. Their recombination state records the orientation. These indicators make it possible to learn that a particular sort of rule tends to be useful with a particular change in order.
The other reordering feature starts from the dense linear distortion cost. The cost describes how far the derivation jumps when moving from the end of one covered source span to the start of the next.
δ = [r₁] + Σᵢ₌₂ᴰ |[[rᵢ₋₁]] + 1 − [rᵢ]|
Here δ is the linear distortion, r₁ is the first rule, and rᵢ is the rule applied at step i of a derivation with D rules. Single brackets around a rule give the position of its leftmost source token. Double brackets give the position of its rightmost source token. The term [[rᵢ₋₁]] + 1 denotes the source position immediately after the preceding rule’s span. Subtracting [rᵢ] gives the signed displacement from that reference position to the next rule’s start, with the sign convention set by the order of subtraction in the equation. The vertical bars take the absolute value. The sum runs from i = 2 through D, and [r₁] accounts for the start of the first span.
Taking the magnitude makes jumps of the same size contribute equally to the dense distortion cost even when they go in different directions. The new template uses signed components, giving different indicators to positive and negative values. This lets the tuner learn different preferences for a jump toward an earlier source position and a jump towards a later one. The template is non-local, with the signed distortion recorded in the recombination state. The orientation features and the signed jump feature describe related aspects of movement at different levels of detail. Orientation supplies a structural category, while the signed feature distinguishes the direction and displacement represented by the distortion component.
Estimating word classes at the required scale
The classes have to be available before the decoder can extract these features. The authors describe standard word clustering procedures as taking O(n²) time with respect to vocabulary size, where n is the number of word types in V. Here n refers to vocabulary size. A clustering method that is acceptable on a small corpus can become the slowest part of preparation when applied to the authors’ corpus sizes. The paper cites Two Decades of Unsupervised POS Induction for evidence that several approaches performed similarly on various downstream tasks. The authors use that result to motivate attention to estimation time. Their own timing comparison measures the cost of building a mapping.
Their implementation uses predictive one-sided word clustering and runs its parallel algorithm with multiple threads on one machine. The paper reports timings for Predictive and PredictiveFull. Predictive reduces the vocabulary in two ways. It maps digits to 0, so forms with the same digit pattern can share a class description. A year represented as 0000 and an ordinal pattern such as 0th retain their different shapes. It also maps words occurring fewer than a threshold, τ, to an unknown-word token. The paper reports a vocabulary reduction of 71.1% when combining these changes in its experiment and argues that the resulting mapping also handles unseen events more robustly at decode time.
PredictiveFull omits the vocabulary reductions for a more conservative comparison with the other clustering implementations. Both predictive settings use 30 iterations. PredictiveFull uses τ = 0 and Predictive uses τ = 5. The comparison with other implementations uses their recommended configurations. This preparation step makes the use of class-based features feasible on the bitext. It also controls how many distinct lexical forms the mapping has to cover before the features can share evidence across them.
Giving a rule a domain-specific use
The domain adaptation procedure uses feature augmentation. The basic idea is that a feature can have a general weight and an extra weight specific to the input’s domain. If a phrase pair is useful broadly but especially suitable for a particular genre, its domain-specific weight can adjust the shared score in that genre. The paper relates the shared feature to the prior interpretation discussed in Hierarchical Bayesian Domain Adaptation.
φᵢ → (φᵢ, φᵢ⁽¹⁾, …, φᵢ⁽ᴹ⁾)
This notation expresses the paper’s augmentation in vector form. The arrow means that the original feature φᵢ is retained and accompanied by domain-specific copies, where i is the feature coordinate. M is the number of domains. The parenthesized superscripts label the domains, and the ellipsis denotes the intervening domain copies. The general coordinate supplies shared evidence, while the applicable copy can supply a domain adjustment. The experiments apply this treatment selectively to lexicalized features.
A separate procedure decides which rules qualify as in-domain. The authors choose newswire as the default because most of the bitext comes from that genre. For each other domain they gather source-language examples. They then use the feature decay algorithm, abbreviated FDA, to select bilingual sentence pairs related to the examples. The distinction between a seed sentence and a selected sentence pair matters. The seed text can be monolingual. The phrase rules still come from the selected bilingual data, which already contain the source and target strings needed for extraction.
The phrase extractor tags rules drawn from selected pairs with the relevant domain. The rules and their original scores are preserved, with labels added as annotations. A rule can receive more than one label if it appears in suitable examples for several domains. Development experiments led the authors to augment lexicalized rule indicators, orientations, and alignments. They report that extending this augmentation to class-based and other non-lexical features, such as rule shape, yielded no reduction in error in those development experiments.
The authors also add features that directly describe how a derivation uses in-domain rules. An individual matching rule activates a general in-domain indicator and an indicator specific to its domain. An adjacent-rule feature gives the tuner corresponding signals when successive rules both match. The first template is local. The second stores a boolean indicating whether the last rule is in-domain, so the next rule can determine whether the pair qualifies. The experiments use gold domain labels at the document level for inputs. Given that label, the decoder can use the same shared weights and phrase table across genres, with the domain coordinates supplying additional evidence where they apply.
Experiments and results
Training, development, and test material
The paper evaluates Arabic–English and Chinese–English. The authors chose these directions because the available resources supported experiments with several domains and multiple reference translations. The Arabic–English parallel corpus has 6.6M segments and 375M tokens. The Chinese–English parallel corpus has 9.3M segments and 538M tokens. The bilingual resources came from Linguistic Data Consortium collections from 2012 and earlier. The monolingual English news came from the AFP and Xinhua portions of English Gigaword 4. For each direction, the authors combined that news text with the English side of its bilingual corpus and used lmplz, associated with the paper on scalable modified Kneser–Ney estimation, to estimate an unfiltered 5-gram target language model.
Before phrase extraction, the authors apply tokenization and segmentation appropriate to each language. They process English using Stanford CoreNLP and the conventions of the Penn Treebank. Arabic uses the Stanford segmenter described in Word Segmentation of Informal Arabic with Domain Adaptation and follows the Penn Arabic Treebank standard. Chinese uses the Stanford segmenter discussed in Optimizing Chinese Word Segmentation for Machine Translation Performance and follows the Penn Chinese Treebank standard. The feature templates use the resulting words and alignments. The corpus preparation therefore includes language-specific tokenization alongside the common feature definitions.
The tuning material pools NIST data under the identifier MT023568. It contains 5,604 Arabic–English segments and 5,900 Chinese–English segments, with 4 references for each segment. It spans newswire, web, and broadcast news. The ordinary development set is MT04 newswire. It contains 1,075 Arabic–English and 1,597 Chinese–English segments, also with 4 references. The domain adaptation development split, dev-dom, combines MT04 with web and broadcast news material from LDC2007E61. It contains 2,203 Arabic–English and 2,317 Chinese–English segments and uses 1 reference. Keeping track of these two development splits is important when reading the results. A development score for the domain-aware configuration reflects a different set of sentences and references from that used to select the other configurations.
The test sets are later than the tuning and development material. test1 is MT09 for Arabic–English and MT12 for Chinese–English. It has 1,313 and 820 segments, respectively. test2 is Progress0809, with 1,378 Arabic–English and 1,370 Chinese–English segments. These test sets cover newswire and web text and have 4 references. test3 comes from MetricsMATR08-10. Its Arabic–English split has 628 segments and its Chinese–English split has 613. It includes broadcast news in addition to newswire and web, and it uses 1 reference. These differences in composition matter to interpretation. A lower score on one test set can reflect changes in the text, the reference coverage, or both.
Decoder settings, scoring, and comparison systems
The experiments use the Phrasal toolkit. The decoder limits distortion to 5, uses a cube-pruning beam size of 1200, and restricts phrases to a maximum length of 7. Cube pruning keeps the search over combinations of partial derivations and rule options tractable. The beam controls how much of that search the decoder explores. The weights can affect which candidates survive, so tuning is tied to the decoder configuration as well as to the available rules.
For each condition, the learning run lasts 25 epochs. An epoch is a pass through the tuning set. The reported configuration is selected at the best development score, which can occur before the final pass. The experiments use 16 threads and mini-batches of size 20. The main learning settings are an initial learning rate of 0.02 and an L1 regularization strength of 0.001. The target sequence feature starts at weight 0.5, the word penalty starts at -1.0, and the other dense features start at 0.2. Extended features start at 0.0. These are tuning settings and initial weights. The feature counts and scores reported for the selected configurations describe the result after learning.
For selection and test evaluation the paper uses uncased, corpus-level BLEU-4, expressed as a percentage. The original BLEU paper describes evaluation by matching word sequences against human references and accounting for output brevity. Corpus-level scoring pools the evidence across the translations of a split, and uncased scoring treats case differences alike. Sentence-level BLEU+1 is used within the expected BLEU objective to compare the candidates for an individual input. This distinction matters for the tuning comparisons. The training objective uses reference scores on candidates, while the reported translation quality is corpus BLEU on selected output.
The Dense baseline uses 18 broad features and supplies the common starting set for every configuration. The strong D+Sparse baseline also uses exact lexical indicators for rules, alignments, orientations, and source deletion, without the bitext frequency filtering used by the filtered lexical templates in the new design. D+Ext adds the extended templates while holding back the filtered lexicalized group. D+Ext+Filt adds that group, which includes exact rule indicators, orientations, and alignments. The domain-aware D+Ext+Filt+Dom system adds domain-specific evidence on top of the latter configuration. These comparisons ask how the feature groups behave in practical combinations.
Translation quality across the test splits
Arabic–English test1 shows the progression from Dense through the strongest baseline to the extended configurations. Class-based and other extended templates bring the system into the range of the strong lexical baseline. The addition of filtered exact-word features and domain information raises the score further.
Arabic–English test1 translation quality by feature set, uncased BLEU-4
The domain-aware extended system leads the feature-set comparison.
The numbers
| System or setting | BLEU-4 % |
|---|---|
| Dense | 47.98 |
| D+Sparse | 49.55 |
| D+Ext | 49.66 |
| D+Ext+Filt | 50.02 |
| D+Ext+Filt+Dom (this paper) | 50.45 |
For Arabic–English test2, Dense scores 43.41 and D+Sparse scores 45.40. D+Ext reaches 45.66, and the filtered and domain-aware configurations both score 46.24. On Arabic–English test3, Dense scores 27.56, D+Sparse scores 29.02, and D+Ext scores 29.15. D+Ext+Filt reaches 29.59 and the domain-aware system reaches 30.84. In the paper’s comparison with the strong D+Sparse baseline, the average gain of the domain-aware system across the Arabic–English tests is +1.05 BLEU.
On Chinese–English test1, Dense scores 26.61 and D+Sparse scores 27.86. D+Ext reaches 28.27, D+Ext+Filt reaches 28.68, and D+Ext+Filt+Dom reaches 28.71. On Chinese–English test2, the scores are 26.72 for Dense, 28.41 for D+Sparse, and 28.40 for D+Ext. Adding the filtered lexical group yields 28.90, and adding domain features yields 28.96. The progression on test3 is slightly different. There the sparse lexical baseline scores higher than D+Ext, and the system with both the extended and filtered lexical groups passes it.
Chinese–English test3 translation quality by feature set, uncased BLEU-4
The filtered lexical group moves the extended system ahead of the sparse baseline, and domain features give the highest score.
The numbers
| System or setting | BLEU-4 % |
|---|---|
| Dense | 10.19 |
| D+Sparse | 10.98 |
| D+Ext | 10.72 |
| D+Ext+Filt | 11.24 |
| D+Ext+Filt+Dom (this paper) | 11.67 |
The average Chinese–English gain for the domain-aware configuration relative to D+Sparse is +0.67 BLEU, as reported by the paper. The authors use a permutation test for significance and report that the domain-aware system exceeds D+Sparse significantly on all six test comparisons. This headline result concerns comparisons with the strong feature-rich baseline. It also matters that D+Ext alone is competitive with that baseline. Across the individual tests, D+Ext sometimes leads and sometimes trails D+Sparse, while the full extended inventory combines class-based and other shared features with exact lexical evidence.
The combined domain-aware system equals or improves on D+Ext+Filt on each complete test split. The development scores for D+Ext+Filt+Dom use dev-dom. For instance, the Arabic–English development score of 29.20 for the domain-aware configuration is measured on that mixed-domain split with 1 reference. The 55.35 development score for Arabic–English D+Ext+Filt comes from the ordinary newswire development set with 4 references. The common test splits are where these approaches can be compared under the same evaluation conditions.
The cost of additional features and word clustering
The Arabic–English D+Sparse configuration has 48,597 features and takes 8 minutes per tuning epoch. D+Ext has 62,931 features and takes 11 minutes per epoch. Adding the filtered group brings the count to 94,606 and the time to 14 minutes per epoch. Dense takes 3 minutes per epoch. For Chinese–English, the reported count is 55,024 for D+Sparse and 67,936 for D+Ext. Their times are 8 and 13 minutes per epoch, respectively. D+Ext+Filt has 100,275 features and takes 14 minutes per epoch. The authors attribute the higher iteration cost chiefly to scoring larger feature vectors through larger inner products. The runtime therefore includes the price of using the extra scoring coordinates repeatedly in search.
The word clustering comparison is about preparation before tuning. The task is to group a vocabulary of 63k English words from a 3.7M-token sample into 512 classes. The paper reports wall-clock times in min.sec notation. PredictiveFull takes 3.27 and Predictive takes 2.42. The reported times for Brown, Clark, and Och clustering are 1023.39, 890.11, and 199.04, respectively. The experiments run on the same server. The predictive implementation uses 8 threads, and the comparison implementations each use 1. These measurements show the turnaround of the implementations under the tested settings. The comparison between PredictiveFull and Predictive also shows how the preparation behaves with and without the vocabulary reductions available in the new implementation.
What the ablations show
The extended group and the filtered lexical group
The paper has no full feature-by-feature ablation. Instead, it compares feature groups and analyzes learning objectives, feature selection, domain performance, and sensitivity to references. The authors explain that approximate decoding and randomized tuning order can change the apparent contribution of a particular template across runs. Repeating large-scale training for every feature increment was beyond their resources. The groups in the main experiment give evidence about useful combinations of features and leave the contribution of individual templates unresolved.
D+Ext contains the extended group without the filtered lexicalized templates. Relative to the dense system, the group simultaneously adds several forms of evidence. A class-based phrase feature can pool lexical choices, alignment features can account for omissions and suspicious links, and boundary and distortion features can affect cross-rule decisions. The group’s strong performance shows that useful specialization can come from features with wider applicability than many exact lexical indicators. It leaves open how much of the score comes from each class-based template, each ratio, or each phrase-shape indicator.
Adding the filtered lexical group improves the reported scores over D+Ext on each test split. In Chinese–English test3, that addition also changes the ordering relative to the strong sparse baseline. The comparison supports the use of exact lexical detail inside the wider inventory. It does not separate the value of individual rule indicators, alignments, or orientations. The phrase-frequency restriction and the accompanying inventory act together in the setting the authors tested.
The domain comparison also operates at the group level. The full domain setting combines added lexical weights with indicators for in-domain rules and sequences of in-domain rules. The authors discuss development experiments in which augmenting class-based or non-lexical features produced no detectable reduction in error. That observation guided the choice of what to specialize. The held-out comparison evaluates the resulting domain package, so it cannot establish which of its indicators supplies the gain.
What changes across domains
The per-domain breakdown helps interpret the aggregate test scores. For Arabic–English newswire within test1, D+Ext+Filt scores 59.78 and the domain-aware version scores 60.21. In Arabic–English web text from test3, those scores are 20.58 and 22.37. On Arabic–English broadcast news within test3, they are 30.39 and 31.63. The authors interpret the newswire increases as evidence that shared weights and domain specialization can coexist within a single system. Newswire is the default domain and supplies most of the bitext.
Individual genre slices can move in either direction. On the web portion of Arabic–English test2, the reported scores are 38.80 before and 38.77 after adding the domain features. Chinese–English web text within test1 scores 21.94 and 21.82 in the same comparison. For the web portion of Chinese–English test3, scores rise from 12.83 to 13.80. The claim that the domain-aware configuration maintains or improves accuracy applies to the complete test sets. The per-domain table gives a more granular view of improvements and small declines.
The authors characterize web text as particularly difficult in their setup. They observe that broadcast transcripts are more similar to the default newswire genre and that the bitext contains little web material. Their interpretation is that the automatic data selector has less suitable material to find for web translation. This is plausible within the procedure because domain labels depend on the bilingual sentence pairs available for selection. The per-domain scores measure final BLEU. They leave the number and kinds of lexical selection errors in those outputs undetermined.
Expected BLEU against pairwise ranking
The tuning-objective comparison uses Arabic–English D+Ext+Filt. Expected BLEU takes 14 minutes per epoch, and PRO takes 25. The selected expected BLEU configuration contains 94,606 features, while the selected PRO configuration contains 181,542. The paper reports regularization strength λ = 0.01 for the PRO comparison and says that increasing it further reduced the feature count at the cost of translation quality. Here λ is the strength of the L1 penalty. The feature counts therefore reflect how each procedure behaves under the reported regularization settings.
The selected epoch is 17 for expected BLEU and 14 for PRO. The paper characterizes expected BLEU as faster to converge and emphasizes its lower per-epoch cost. The epoch numbers describe when the selected configurations were obtained, while the minutes per epoch measure the speed of the training passes. These quantities answer different questions. The computational explanation comes from the objectives. Expected BLEU can evaluate and weight individual list entries directly, whereas PRO draws its learning signal from comparisons between candidates.
On the Arabic–English tuning set, corpus BLEU is 59.13 for expected BLEU and 61.20 for PRO. On Arabic–English test1, the corresponding values are 50.02 and 50.09. The authors describe the higher fitting score under PRO as a sign of overfitting because the advantage on the tuning set yields essentially the same translation quality on test1. The numerically higher held-out score belongs to PRO in this comparison. Expected BLEU is attractive for its held-out performance at lower per-epoch cost and with fewer features. The result also illustrates why comparing objectives by their tuning-set outputs alone would favor a method that did not deliver a meaningful increase on the reported test.
Selecting features through regularization or a count cutoff
The paper examines another choice that affects how much evidence each feature sees. One practice is to set a minimum count on occurrences in the tuning data before admitting a feature to the inventory. This is a broad selection rule applied to the whole feature set. The exact rule and orientation templates use a different restriction. Their occurrence condition is on the parallel training data, which are used to supply phrase rules and their statistics. A rule can be frequent enough in the bitext to qualify for an exact indicator and still have a tuning count that puts it at risk under a separate cutoff.
In Arabic–English D+Ext+Filt, the L1 configuration has 94,606 features and scores 59.13 on the tuning split. The configuration using tuning-frequency cutoffs has 23,617 features and scores 56.84 on that split. On Arabic–English test1, the L1 configuration scores 50.02 and the cutoff configuration scores 49.79. The editing imposed by the cutoff is substantial in feature count, and the reported comparison favors L1 on both splits. L1 can shrink a feature whose evidence fails to support a useful weight, while the cutoff uses counts as an admission rule before weight learning can exploit that evidence. The comparison supports the paper’s preference for regularization for this inventory and setup.
What changes when the tuner sees fewer references
The authors tune each of two Arabic–English configurations using either 4 references or 1. With Dense, the tuning-set BLEU scores are 49.52 and 49.34, respectively. On test1 the same configurations score 47.98 and 47.78. With Ext+Filt, tuning-set BLEU is 59.13 using 4 references and 55.39 using 1. On test1, the values are 50.02 and 48.88. The test comparison follows systems trained under different reference conditions. The test1 evaluation itself is shared.
Arabic–English test1 after tuning with different reference counts, uncased BLEU-4
Additional tuning references have a larger effect on Ext+Filt than on Dense.
The numbers
| System or setting | BLEU-4 % |
|---|---|
| Dense, one tuning reference | 47.78 |
| Dense, four tuning references | 47.98 |
| Ext+Filt, one tuning reference | 48.88 |
| Ext+Filt, four tuning references (this paper) | 50.02 |
This controlled comparison ties the sensitivity to a concrete choice about the tuning data. Dense still uses the available references to estimate its weights, but the broad features can express relatively few specific preferences. Ext+Filt can assign weights to particular words, rules, and arrangements and has more ways to match the wording of an individual translation. With multiple references, the candidates have more opportunities to receive credit for valid differences in expression. The paper treats this effect as a possible explanation for weaker outcomes from additional features in settings that provide only one reference.
How reference disagreement appears for the same output
The authors also hold the candidate translation fixed and vary the reference. They take the Dense Arabic–English translations of the 1,075 development sentences. For each output, they compute sentence-level BLEU+1 separately against each of the available references. One plot places the minimum score on the horizontal axis and the maximum on the vertical axis. Points near the diagonal indicate that the candidate is scored similarly even when the reference changes. Points farther above it indicate that the same output receives quite different assessments.
The mean gap between the best and worst reference scores is 18.1 BLEU, with a standard deviation of 11.5. These values summarize within-sentence reference variation on the fixed Dense output. The experiment isolates a property of the supervision. Search has already produced the translation, and the variation arises when the paper changes the reference used to judge it. A candidate that is close to a human rendering can appear unsuitable when measured against another rendering that uses different wording. The plot shows why a rich feature inventory can fit some of this variation if the tuning procedure sees just one of the references.
In a second view of the same outputs, the paper places the best single-reference score on the horizontal axis and the score against all references on the vertical axis. Under the authors’ stated assumption of a constant brevity penalty, the best single-reference score lower-bounds the multiple-reference score. The pooled references give BLEU more opportunities to match the candidate’s word sequences. The resulting target for tuning can reward evidence distributed across reference translations, including cases where no individual reference contains all the sequences that receive credit.
The authors repeat the minimum–maximum analysis using extensions to BLEU+1 proposed in Optimizing for Sentence-Level BLEU+1 Yields Short Translations, using the extensions identified as most effective in a subsequent study they discuss. The mean gap is 17.32 and the standard deviation is 10.68 under that scoring variant. These are measurements of reference-score variation. Drawing on them, the paper suggests that a different candidate evaluator could lessen the problem and points to more refined handling of scoring noise as an avenue for future research.
Limitations
Limits identified by the authors
The authors explicitly limit what can be concluded about individual templates. Search is approximate, and changing the tuning sequence can lead to a different set of translated candidates and a different fitted weight vector. That makes a small score change in an incremental feature comparison hard to interpret without repeated runs. The paper presents the extended and filtered groups as the scale of comparison its resources support. Its strongest claims concern complete configurations, including the combined domain features.
The experiments depend on data with unusual breadth for this type of comparison. The authors cite the availability of multiple references, several domains, and large corpora as reasons for selecting Arabic–English and Chinese–English. Their feature templates use information that can be obtained across languages, with word counts, classes, and alignments supplying much of the required structure. The empirical evidence covers the two evaluated translation directions, both into English. The single-reference comparison further shows that the availability of references during tuning can materially affect the result.
The domain adaptation procedure assumes a domain label for the input. The authors use gold document labels and mention prior work on sentence-level classifiers. The evaluation thus measures specialization with the input domain supplied. The paper also identifies a probable shortage of suitable web material in the parallel corpus. The data selection algorithm has to work within that supply. Even with gold input labels, the usefulness of the domain weights depends on the bilingual examples available to label the rules.
Finally, the authors treat human references as a sample of possible translations. Their reference-variance analysis shows how much the score of a fixed candidate can swing within the available sample. The smoothing analysis changes the scale of this variation while leaving a substantial gap between the best and worst assessments. The paper’s reported metric supports claims about measured overlap with references and about relative scores between systems on the same splits. Its own analysis explains why those observations can leave room for acceptable wording that receives little credit.
Limits visible in the experimental setup
The translation experiments measure corpus BLEU, and the paper’s specific account of lexical selection in new domains is qualified in those terms. Aggregate BLEU improvement can come from several coordinated changes in output. The experiment does not count how often an appropriate phrase was available but ranked below another candidate. Similarly, per-domain BLEU comparisons say how the complete system performed on the observed genre slices. They leave the mechanism behind a particular slice’s score change open.
The ordinary and domain-specific development scores come from different selection splits. The common test sets establish a comparable outcome for the configurations actually selected. A narrower experiment using the same development selection procedure for both configurations would be required to isolate the effect of the added domain features from all consequences of that selection difference. Likewise, the comparison with PRO gives a detailed held-out result on Arabic–English test1 for the extended and filtered feature set. General claims about objective choice across different decoder settings, language pairs, and corpora would require corresponding tests.
The clustering benchmark measures implementations with different threading and settings. Its wall-clock numbers support the practical claim that the authors’ implementation finishes the tested preparation task quickly. A comparison of intrinsic algorithmic cost under matched execution conditions would need to hold threading, preprocessing, and other implementation choices constant. The timing table also does not show how substituting each of those class mappings would affect translation quality. The paper establishes the downstream performance of its own extended configurations and the practical cost of producing their class resources.
What came after
Human Effort and Machine Learnability in Computer Aided Translation cites the comparison and addresses translation in a computer-assisted setting. Its title identifies human effort and machine learnability as the questions it brings together. The citation places the feature and tuning study in that setting’s research context. The relationship supports identifying the shared concern with translation that can be improved through learning. It gives no basis for assigning a particular extended feature, domain adaptation procedure, or expected BLEU experiment to the computer-assisted study.
The connection to Phrasal is more concrete. The toolkit paper is both cited by this study and listed as citing it. The feature comparison identifies Phrasal as the system used to build and run the experiments, including the decoder search under which the feature groups were tested. The study also reports releasing the feature extractors and the supporting clustering and data selection software. The two works are from 2014, and their relationship is best understood through that shared experimental implementation. The comparison establishes how the feature and tuning choices behaved in Phrasal, while the toolkit work describes the software setting in which those choices could be exercised.
Cite
Cite as Spence Green, Daniel Cer and Christopher Manning. 2014. An Empirical Comparison of Features and Tuning for Phrase-based Machine Translation. Proceedings of the Ninth Workshop on Statistical Machine Translation.
@inproceedings{green2014empirical,
title = {{An Empirical Comparison of Features and Tuning for Phrase-based Machine Translation}},
author = {Spence Green, Daniel Cer and Christopher Manning},
booktitle = {Proceedings of the Ninth Workshop on Statistical Machine Translation},
year = {2014},
doi = {10.3115/v1/w14-3360},
url = {https://doi.org/10.3115/v1/w14-3360}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/green-2014-empirical-comparison-features-tuning-phrase/