Elamur Research

Direct Error Rate Minimization for Statistical Machine Translation

Paper · 2012 · Tagyoung Chung and Michel Galley

Summary

A translation system can give a promising score to a sentence that it will never manage to produce. Its decoder, the part that searches for a translation, must decide which partial sentences are worth extending. If it drops a useful beginning too soon, changing the weight assigned to the finished sentence may accomplish little. Tagyoung Chung and Michel Galley study what happens when this search process becomes part of the tuning procedure in statistical machine translation.

The standard method they compare against, minimum error rate training, or MERT, collects translations from previous decoder runs and uses those candidates to estimate how different weights would perform. Chung and Galley instead run the decoder with the settings under consideration and evaluate what it returns. That gives the optimizer a way to tune things that change which translations the decoder can find, including a limit on how far it may jump ahead or back in the source sentence. It can also adjust how strongly the decoder penalizes jumps of different lengths and how it estimates the cost of finishing a partial translation. To keep the extra decoding affordable, the authors test settings on batches of sentences and stop early when the results are sufficiently unpromising. They also reuse work from earlier searches.

The experiments cover Arabic, Korean, and Farsi translation into English. When direct search and MERT tune the same kinds of parameters, their scores are close. Direct search is faster end to end in that comparison because it can adjust the reordering limit and scoring weights together, while the baseline runs MERT separately for each limit it tries. The clearest accuracy gains come when direct search can adjust more of the decoder. The authors report improvements ranging from 0.27 to 0.35 points on the test sets, measured with the BLEU score. The paper also tests a version that tunes search settings against a speed target. Its accuracy changes little at approximately the same decoding speed, though it can choose those settings automatically.

The paper’s use of “direct” concerns what gets measured. A complete evaluation scores the translations that the configured decoder actually produces, including the consequences of its search mistakes. It still measures those translations with an automatic metric, and the speedups introduce approximations of their own. The results show where that change in measurement pays off in the tested system. The largest gains come from opening up choices that the baseline leaves fixed or handles through a separate search.

Deep dive: Direct Error Rate Minimization for Statistical Machine Translation

Direct error rate minimization tunes a translation system by decoding during training, letting it adjust both scoring weights and search settings. · about 34 minutes to read

The problem and its context

Scoring a translation and finding it

In the phrase-based system studied here, translating a sentence means choosing translations for pieces of the source and deciding in what order to put them together. A local phrase translation can look plausible while fitting poorly into the English sentence around it. Translating phrases in source order can preserve the wrong word order, while moving them too freely can create a multitude of implausible alternatives. The system combines several scoring signals, with weights that determine how much influence each signal has. Those weights have to work together across a collection of sentences. A weight that improves one choice may make many others worse.

The decoder has to find a good completed translation without extending every partial translation that it could build. Beam search keeps a limited collection of partial candidates and discards others as it goes. The candidates that survive can gain new words and phrases. An early choice in that process can decide the outcome in ways that a score calculated for a finished sentence never reveals. A translation with a high final score is of practical use only if the decoder keeps a route to it open long enough to finish it.

There are therefore two ways a system can deliver a disappointing sentence. Its scoring rules can favor the wrong finished translation, or the search can miss a translation that those same rules would favor. These problems can interact. A scoring weight used to compare completed sentences can also change the order in which the decoder considers partial ones. There are also settings that affect the search directly. A limit on phrase movement changes which candidates the decoder may construct, and a beam setting changes how many candidates it can keep in contention. Searching for good weights while treating those settings as fixed leaves some consequential choices outside the tuning procedure.

What conventional error-rate training measures

MERT already connects parameter tuning to an evaluation criterion such as BLEU or translation edit rate, known as TER. For BLEU, the system is rewarded for producing word sequences that overlap with those in reference translations. TER expresses performance in terms of editing a translation towards a reference. The tuning procedure asks which weights yield output with a better metric value on development data. Those data supply source sentences and reference translations for choosing settings before the final test.

In the familiar list-based form of MERT, the decoder first produces a ranked list of several candidates for each development sentence. During the next optimization step, different weights can pick different winners from these lists. This keeps the optimization cheaper than decoding all the sentences each time the weights change. It also gives a convenient structure to a search over weights. Along a line in weight space, candidate scores can change continuously while the winning candidate stays the same. The measured error then stays constant over stretches of the line and changes when a different candidate wins. MERT exploits those stretches to optimize individual lines efficiently.

The candidate collection grows as tuning proceeds. After a step on the current lists, the decoder runs again with the resulting weights and contributes additional translations. Repeating the cycle gives the optimizer a chance to discover candidates that earlier weights did poorly at finding. The approximation persists within each optimization step. A weight change can make an absent candidate attractive, or interfere with the decoder’s ability to find a candidate that made it onto the lists in an earlier run. In either case, the ranking over stored candidates can diverge from the ranking that matters for actual output.

The paper traces attempts to represent more of the translation search space. A lattice stores alternatives compactly by letting translation paths share parts of a graph. A hypergraph can represent derivations with richer combinations of parts. Replacing lists with these structures gives the tuning step more candidates to work with. Another line of work used random restarts or random walks to explore a weight space with several local minima. Exploring a larger store of translations and exploring more regions of weight space address different problems. A broader candidate representation can improve the estimate of what the decoder might return. More starting points can help an optimizer make better choices within that representation. Lattice-based Minimum Error Rate Training and Efficient Minimum Error Rate Training and Minimum Bayes-Risk Decoding for Translation Hypergraphs and Lattices develop the first approach. Random Restarts in Minimum Error Rate Training addresses the second.

Why some settings sit outside that procedure

Consider the distortion limit, which bounds the distance the decoder may jump when deciding what source phrase to translate next. The strength of a penalty for jumping and the maximum permitted jump distance affect the same behavior in different ways. A penalty can make an allowed jump less attractive. The limit can take the jump out of consideration altogether. If the limit is zero, the weight given to the jump penalty can change without altering BLEU. At a positive limit, the same weight can influence the ordering the decoder selects. This dependence makes it important to find good scoring weights at each limit tested.

Earlier work described in the paper dealt with this by varying the limit separately and tuning the translation weights for each choice. That procedure can accommodate the dependence, but it repeats the weight tuning. It becomes a less attractive way to work when several decoder settings may interact. The authors use the earlier work to motivate putting the reordering limit inside the same search that chooses the weights. A Simple and Effective Hierarchical Phrase Reordering Model

Derivative-free optimization had also been tried in translation before this paper. Some earlier work used the Nelder–Mead method for phrase-based translation with the distortion limit set to zero to keep evaluation practical. Other work applied it to expected BLEU with log-linear scoring, or altered the optimizer to better suit translation parameter tuning. Chung and Galley take up the cost of letting the search itself vary. Their setup asks an optimizer to compare settings by repeatedly using the decoder, even when changing those settings alters the set of translations the decoder will consider.

The method, step by step

From parameter settings to a measured error

Start with a development set and a way to score a batch of translated sentences against their references. The optimizer proposes values for the translation weights and whichever decoder settings are open to tuning. The decoder applies those values to the development sentences. The resulting corpus is scored, and that score guides the optimizer’s next proposal. A parameter can enter this process wherever it affects decoding. It need not correspond to a weight on a fixed list of finished translations.

Decoding and evaluation have different roles. The decoder scores candidates without consulting the reference for the sentence it is translating. The evaluator sees the decoder’s output and the reference. The optimizer learns from the resulting feedback across the development corpus. A search mistake matters whenever it changes the output and therefore changes the score fed back to the optimizer. The procedure does not need to identify the mistake or to know which missing translation would have scored best under exhaustive search.

Direct tuning with decoder feedback

The steps in order.

Direct tuning with decoder feedbackStep 1: Propose scoring weights and decoder settings1. Propose scoring weights and decoder settingsStep 2: Decode development sentences with those settings2. Decode development sentences with those settingsStep 3: Compare translated batches with the current best3. Compare translated batches with the current bestStep 4: Stop early when the comparison warrants it4. Stop early when the comparison warrants itStep 5: Return measured or estimated development error5. Return measured or estimated development errorStep 6: Use the feedback to propose new settings6. Use the feedback to propose new settings

The starting point is the log-linear score used in the paper. Each candidate translation has feature values that describe properties relevant to its score. A feature might express evidence for a particular phrase translation, a preference for a sequence of English words, or a cost for a jump in source order. The feature’s weight determines its contribution. The weighted values are added in the exponent.

p(e ∣ f) ∝ exp(Σᵢ λᵢ hᵢ(e, f))

Here f is the source sentence, e is a possible target sentence, and p(e ∣ f) is the conditional probability of that target given the source. The symbol ∝ means proportional to. hᵢ(e, f) is the value of feature i for the pair, λᵢ is its weight, and Σᵢ adds the weighted values over the features. exp is the exponential function. The proportionality suffices to describe the ranking for a fixed source sentence.

The idealized decoding expression chooses the candidate with the highest score. The hat over the target sentence marks the chosen output. This expression describes the search problem that the decoder is trying to solve.

ê = argmaxₑ exp(Σᵢ λᵢ hᵢ(e, f))

ê is the chosen target sentence, and argmaxₑ selects the candidate e that maximizes the expression that follows. f is the source sentence, hᵢ(e, f) is feature i, and λᵢ is the corresponding weight. Σᵢ sums across the features and exp transforms their weighted sum. A practical decoder can miss the maximizing candidate when it prunes the search.

The tuning problem wraps an error measure around the decoding decision. The paper first writes that problem for the scoring weights. In this expression the reference belongs to the outer evaluation, while the inner search chooses the translation using its own scoring rule.

λ̂ = argmin_λ E(r; argmaxₑ exp(Σᵢ λᵢ hᵢ(e, f)))

λ stands for the vector of weights, λ̂ is a weight vector selected by minimization, and argmin_λ searches over possible values of that vector. E is the chosen error criterion, r is the reference, and the semicolon separates the reference from the candidate delivered to the evaluator. argmaxₑ selects a target e for source f by maximizing the exponentiated sum Σᵢ of feature values hᵢ(e, f) multiplied by weights λᵢ. The paper writes the expression for a source and reference, with tuning carried out by scoring the output across the development corpus. When the metric rewards higher scores, the search seeks the corresponding improvement in the evaluation criterion.

In direct search, the actual decoder implements the inner selection. The following notation makes the decoder settings visible in that step. They affect how candidates are produced and considered even when they do not appear in the weighted sum for a complete sentence.

Φ(f, r; λ, θ) = E(r; decode(f; λ, θ))

Φ is the objective returned by decoding and evaluating. f denotes the source input and r the reference input. λ gives the feature weights and θ denotes the additional decoder settings. decode runs the configured decoder and returns its translation. E measures the result against the reference. The semicolons separate the inputs to decoding and evaluation from the settings or outputs used with them. With a corpus as input, the decoder produces the development translations and the evaluator scores that collection.

argmin_(λ, θ) Φ(f, r; λ, θ)

argmin_(λ, θ) seeks the combination of scoring weights λ and decoder parameters θ with the smallest objective value. Φ evaluates the output produced on source input f against reference input r under that combination. Holding the source and references fixed lets the optimizer compare the consequences of changing the settings. The expression defines what it seeks. The optimization methods determine which points it actually tries.

Choosing settings without derivatives

The objective changes through the decoder’s choices. A small change to a weight may have no effect on a finished translation, while crossing a decision boundary can cause the decoder to deliver a different sentence. A change to a search restriction can likewise admit a new set of candidates. A gradient would describe how the objective changes locally with the parameters. The authors regard a useful gradient as impractical to obtain here. Numerically estimating one would call for more evaluations, each potentially involving a costly round of decoding.

The first method they try is Powell’s method. It searches along directions in parameter space. A search in a coordinate direction changes the amount of one parameter, with the other coordinates fixed during that search. The method uses searches along the coordinate directions to find a promising direction for a further line search. That direction allows movement across several parameter values together. The authors implement golden section search for line searches in their experiments and also discuss how racing can be used when the line is searched on a grid.

Golden section search narrows the interval under consideration by comparing objective values at proposed points. Its exactness requires a unimodal function, one with a single minimum in the relevant sense on the interval. A translation objective can have several minima, so the authors use the search as a practical means of finding a favorable point. The consequence is that even an objective based entirely on decoder output can be optimized only approximately.

The other method is Nelder–Mead, also known as downhill simplex. It keeps a group of points that span the search space. Each point is a complete parameter setting with an associated score. The optimizer uses the relative scores of those points to decide how to form and evaluate a new point. In outline, it tries to replace the least promising vertex and move the simplex into a more favorable region. The simplex can move in response to uneven scores, and the paper notes that some configurations allow it to escape local minima.

number of vertices = D + 1

D is the number of dimensions in the parameter search, with a dimension for each coordinate of the parameter vector. The expression D + 1 gives the number of vertices of the simplex. Each vertex is one setting at which the objective can be evaluated. The plus sign adds one vertex to the number of dimensions.

The two methods make different sequences of evaluation requests. A grid makes it possible to nominate several settings at once. In the simplex method, what the optimizer sees at one point can determine which point it visits next. A golden section line search has similar dependencies. This difference matters for the speedup that compares settings before their full development translations are ready. When proposals have to arrive in sequence, each new one can still be compared with the best setting already evaluated.

Giving the optimizer control over reordering

A phrase-based decoder can translate source phrases in a different order from the one in which they appear. The distortion limit sets the largest jump it is permitted to make. The paper uses an example of English translated into Japanese to illustrate why the limit is consequential even for a relatively simple sentence. The required ordering in that example needs a limit of five. A smaller setting would exclude that route to the translation. A generous setting admits many more routes, adding work for the decoder and putting more alternatives in competition for the places available in the beam.

The soft penalty gives the decoder a second way to control movement. It acts on jumps that are within the limit. The usual linear form ties the size of each contribution to the length of the jump. The authors consider a power on that length, so the relative cost of long and short jumps can change as the power changes.

D(e, f) = Σⱼ λ_d |dⱼ|^(p_d)

D(e, f) is the total distortion penalty for target e given source f. j indexes successive phrase-pair choices, and Σⱼ adds their contributions. dⱼ is the jump associated with choice j, and the vertical bars take its absolute size. p_d is the distortion exponent, with ^ indicating that the jump size is raised to that power. λ_d is the weight applied to those contributions. The subscript d on the weight and exponent identifies the distortion feature. The function D(e, f) names the penalty here, while D in the simplex expression denotes dimensionality.

In the English-to-Japanese illustration, the linear distortion feature value is 11 before applying its weight. At a linear exponent, different allowed sequences of jumps with the same total length receive the same contribution from this feature. A higher exponent gives the longer jumps greater relative influence. The maximum permitted jump, the exponent, and the weight consequently have distinct effects on which ordering the decoder pursues. Keeping them in the same search allows the optimizer to evaluate their combined effect on translated output.

The paper also describes the power as a more general extension of a feature. Instead of making the distortion exponent a fixed choice supplied by the designer, direct search can consider it as a tunable parameter. The same construction is available for other features in the authors’ formulation.

hᵢ(e, f)^(pᵢ)

hᵢ(e, f) is the value of feature i for target e and source f. pᵢ is the exponent associated with that feature, and ^ denotes raising the feature value to the exponent. The expression changes the feature value to which the corresponding scoring weight applies. The paper’s concrete example of this extension is the distortion penalty.

Scoring partial translations and charging for time

When the decoder decides which partial translations to keep, it has different amounts of information about each. It knows the cost already incurred by a partial translation. The cost of the missing portion must be estimated. A good-looking prefix may leave an awkward remainder, while a more expensive prefix may leave an easy one. Future cost estimation gives the decoder a way to account for the remainder before it spends time completing every candidate. The authors relate this idea to heuristic search and to the role of future costs in Statistical Phrase-Based Translation.

f(x) = g(x) + h(x)

x is a partial translation state. g(x) is the cost already incurred in reaching that state, and h(x) is the estimated cost of finishing the translation from there. f(x) is the estimated total and adds those two quantities. The letter f in this expression names a cost function. In the earlier decoding expressions it denoted a source sentence.

The weights used for the known and estimated parts are commonly shared in the system described by the authors. Yet the quality of the estimate differs by feature. The linear distortion estimator discussed in the paper underestimates completion cost, while the language-model component can do the opposite. A language model here contributes evidence about word sequences in the target language. If its future contribution is overestimated, partial translations can look more costly than they eventually turn out to be. That matters when these estimates guide pruning.

The paper illustrates the issue by comparing the estimated and actual total language-model costs over the course of translation. Their ratio approaches 1.0, which means the costs agree. Earlier in the search the estimate is higher. The figure’s progress axis uses 0.1 to indicate that 10% of the source sentence has been translated. The example motivates a change to the weights used before translation is finished. Each feature involved in estimating future cost can receive a separate weight for that role. The decoder can then use a feature differently when estimating a candidate’s potential than when scoring the part it has already generated.

A different objective is needed for beam size and pruning settings. The beam bounds the partial alternatives kept during the search. Histogram pruning restricts how many hypotheses survive, and threshold pruning uses their scores to decide which are too weak to keep. A generous beam and permissive pruning can make a pure accuracy objective favor expensive searches. The paper instead gives the optimizer an accuracy objective that reduces the score when decoding takes longer than a specified target.

TP(tᵢ, t_d) = 1.0                         if tᵢ ≤ t_d
TP(tᵢ, t_d) = exp(1 − t_d / tᵢ)           if tᵢ > t_d

TP is the factor applied to BLEU. tᵢ is the time to translate the development set under the settings being evaluated, and t_d is the desired time for that set. ≤ covers completion at or within the target, with 1.0 leaving the score unchanged. > selects the over-budget case. The expression uses the ratio involving desired and observed time to give the score a time-sensitive adjustment, with exp denoting the exponential function.

The paper’s time penalty can be written with the observed time in the numerator of the over-budget ratio, giving the factor that falls as decoding takes longer.

TP(tᵢ, t_d) = 1.0                         if tᵢ ≤ t_d
TP(tᵢ, t_d) = exp(1 − tᵢ / t_d)           if tᵢ > t_d

TP is the multiplier, tᵢ is the evaluated setting’s development decoding time, and t_d is the target time. The symbols ≤ and > distinguish performance within and beyond the target. 1.0 applies within the target. For a setting that exceeds it, exp raises the exponential base to one minus the observed time divided by the target time. That exponent becomes negative in the penalized case.

A score based on measured time can vary between identical evaluations. To make the objective deterministic, the authors substitute pseudo-time based on a weighted combination of counts. The counts measure n-gram lookups and hypothesis expansions. The first records work in looking up sequences of words, and the second records work in extending translation candidates. Both track activities the decoder performs. The paper uses them as work estimates related to actual decoding time.

Spending fewer evaluations on weak settings

The first acceleration technique is called racing. Its premise is that a setting that performs clearly worse after translating part of the development corpus frequently does not need a full evaluation. The authors adapt a technique originally explained through leave-one-out cross-validation, where each data point is evaluated by a system trained without that point. In the earlier setting, systems are evaluated across the data in a randomized order. As evidence accumulates, comparisons can eliminate some systems before all data points have been processed.

eⱼ* = (1 / N_d) Σᵢ eⱼ(i)

eⱼ* is the mean leave-one-out error for candidate j. N_d is the number of data points, i indexes them, and eⱼ(i) is candidate j’s error on the held-out point i when trained on the rest. Σᵢ sums those errors and division by N_d gives the mean. This equation describes the earlier racing setup. The translation adaptation compares metric values on jointly translated portions of the development corpus.

The direct translation search has a continuous range of possible settings, so the optimizer determines which settings enter a race. When points on a grid can be evaluated in parallel, the candidates along the current line can compete. When a new point depends on earlier results, the authors compare the incoming setting with the best one found so far. The incumbent has already translated the whole development corpus. At each check, the new setting and the incumbent can be compared on the same sentence range, with both assessed against the same references.

The comparison uses a paired randomization test. For each sentence, the outputs of the two systems can be exchanged between the two collections of translations. The test samples randomized collections and measures the metric on them. If exchanging outputs makes a gap as large as the observed gap unusual, the result gives evidence that the two performance levels differ. Pairing is important because both systems translate the same sources. The randomization preserves the source and reference associated with each output. The authors choose this type of test because the earlier comparison cited in the paper found it less prone than bootstrap methods to false declarations of a difference in the setting studied there. On Some Pitfalls in Automatic Evaluation and Significance Testing for MT

Repeating the test after every sentence would add its own cost. In the experiments, the decoder translates batches of 50 development sentences before checks. The exchanges use probability 0.5 per sentence, and the randomization test uses 5000 samples. The significance criterion for abandoning an unpromising setting is p ≤ .05, where p is the test’s significance probability. This quantity and the swap probability have different roles. The swap probability generates the randomized comparisons. The significance criterion governs the decision about whether to stop decoding.

When a challenger is sufficiently worse, racing stops its evaluation. The optimizer still receives an error estimate for that setting, extrapolated from its performance relative to the incumbent on the shared portion. The paper gives a numerical example. If the incumbent has 10% error on that portion and the challenger has 11%, while the incumbent’s complete error is 20%, the extrapolated complete error for the challenger is 22%. The estimate supplies a value for deciding where to search next. A challenger that may become the incumbent continues through the corpus, since that role requires fully evaluated translations.

There is also a case in which two settings generate nearly the same output. A significance test that looks only for evidence of a worse result can keep comparing such settings until the entire corpus has been decoded. The paper adds a rule based on the range between the best and worst scores among randomized outputs. If that range is smaller than 0.1 BLEU point in these experiments, the procedure can discard one setting. When the comparison is with an incumbent, the challenger is dropped. This rule judges similarity from output, so it can identify similar behavior even when the underlying weights look different.

The two early stopping decisions address different stages of the search. Large parameter moves can produce translations that are plainly worse, making the significance test a way to save substantial decoding work. Near convergence, the optimizer tends to make smaller moves, and different settings may produce similar translations. The output-similarity rule is meant to save work in that case. Either decision means that the optimizer can receive a score based on less than complete decoding, even though its fully evaluated incumbent has a measured development score.

Reusing work inside the decoder

The other acceleration technique exploits repeated work on the same source sentences. Across nearby parameter settings, the decoder may build many of the same partial translations. A search graph records transitions used in constructing those translations. In phrase-based decoding the authors discuss lattices, with edges that store feature values for expansions. A later evaluation can reuse an expansion and its feature values, including costly values from the language model. The latest weights can still determine how that expansion is scored. The amount saved depends on how much of the earlier computation is reused.

The more restrictive variant decodes inside a previously built lattice. At the start, the decoder generates lattices with initial settings. During the ensuing round of direct search, it is allowed to follow only paths supported by those graphs. Feature values are already available for their edges. The decoder continues to apply the current settings when exploring them. If a candidate path requires a jump that exceeds the current distortion limit, the decoder excludes that path even if the earlier run was allowed to build it and placed it in the graph.

After a round of constrained optimization, the resulting weights and decoder settings are used in a fresh unconstrained decoding pass. The new lattices are merged with the old ones, so the next round has access to paths discovered on either pass. The outer loop can stop when the change in the parameter vector falls below a tolerance, or when the latest unconstrained pass yields graphs already covered by the accumulated graphs. In the first case, the search has found little reason to move its parameters further. In the second, opening the decoder’s search again has added no paths for the next constrained round to use.

This procedure still runs the decoder and can change how the decoder behaves within the graph. That is the distinction the paper draws from lattice-based MERT, where the tuning step optimizes over stored alternatives without another decoder run. The price of constraining the decoder is that its behavior is measured inside a graph built by earlier settings. The saved features make evaluations cheaper, while a promising path outside the graph must wait for an unconstrained pass to become available.

Experiments and results

Data, decoder, and evaluation

The experiments use a phrase-based decoder similar to Moses. Its features include four phrase-level and lexical translation scores, penalties that apply to phrase and word counts, a language-model score, a linear distortion feature, and six lexicalized reordering scores. Lexicalized reordering supplies evidence about ordering that depends on the phrases involved. Unless another value is specified, the decoder uses a stack size of 50 and retains 25 translation options per input phrase. These defaults describe the search inside which the tuned scoring and reordering rules operate.

Training uses parallel sentences from several sources, including news, web, and technical text. The Arabic training data also include United Nations material. The Arabic-to-English training corpus has 11.1M sentence pairs. Korean-to-English has 7.9M training pairs, and Farsi-to-English has 739K. Each language pair has 1000 development pairs for parameter tuning. The Arabic and Korean test sets each contain 6000 pairs, and the Farsi test set contains 2000. Development and test material mix news, web, and technical text.

All systems produce English output. The authors train a 5-gram English language model on roughly seven billion words. This collection includes the English side of the parallel training data and substantial web material. The cutoff counts, from unigrams through 5-grams, are 1, 1, 1, 2, 3. These settings are shared background for the tuning comparisons. The experiments vary how the decoder is tuned while using the phrase-based systems trained on the corresponding parallel data.

Test scores are case-insensitive BLEU-4 percentages using one reference translation per sentence. The tuning times are reported separately, in hours, and cover parameter optimization from start to finish. For MERT, that includes the grid over distortion limits. The time-sensitive experiment uses a development decoding target while choosing parameters, but its final score appears in the results as standard BLEU-4, like the scores of the other systems.

A baseline that tunes reordering as well as weights

The baseline runs MERT on the development data. Its optimizer starts from several points to reduce its dependence on any single initial setting. Each MERT iteration uses 19 random starting points, the converged points from earlier iterations, and a uniform weight vector. The first iteration therefore uses 20 starting points, and the second uses 21. These choices give the baseline a way to explore several regions of its objective even though each optimization works on stored candidate translations.

For the distortion limit, the baseline repeats MERT at eight limits spanning 3 to 10. The results of those runs are compared on the development set. The chosen limit is 5 for Arabic, 8 for Korean, and 6 for Farsi. Repeating weight tuning across the grid is important because a change in permitted movement can change the best weights for linear distortion and lexicalized reordering. The direct runs start with a distortion limit of 10 and can move the limit during optimization along with the scoring weights.

The comparison proceeds in stages. The simplex and Powell runs with the basic parameter set tune the same kinds of parameters as the grid-search baseline. The extended Powell run opens the nonlinear and future-cost parameters. A lattice-constrained Powell run tunes that extended set within the growing graphs. The time-sensitive Powell run also tunes beam size and the histogram and threshold pruning controls. The direct-search experiments use the statistical speedups.

Held-out translation scores

Arabic-to-English test BLEU-4 across tuning methods

Powell search with the extended parameters gives the highest score.

Arabic-to-English test BLEU-4 across tuning methodsMERT with distortion-limit grid: 29.12MERT with distortion-limit grid29.12Direct simplex with basic parameters: 29.07Direct simplex with basic parameters29.07Direct Powell with basic parameters: 29.20Direct Powell with basic parameters29.20Direct Powell with extended parameters (this paper): 29.39Direct Powell with extended parameters(this paper)29.39Lattice-constrained Powell with extended parameters: 29.27Lattice-constrained Powell with extendedparameters29.27Time-sensitive Powell with search controls: 29.31Time-sensitive Powell with searchcontrols29.31
The numbers
System or settingBLEU-4 %
MERT with distortion-limit grid29.12
Direct simplex with basic parameters29.07
Direct Powell with basic parameters29.20
Direct Powell with extended parameters (this paper)29.39
Lattice-constrained Powell with extended parameters29.27
Time-sensitive Powell with search controls29.31

For Arabic, the simplex setting falls slightly below MERT and the basic Powell setting comes out ahead. The largest improvement in the Arabic comparison comes after the nonlinear and future-cost parameters are opened to Powell search. The lattice-constrained and time-sensitive settings also exceed the MERT result, with the unconstrained extended run producing the best Arabic test score. The different outcomes for the two basic optimizers matter because they show that direct evaluation alone does not determine the final ranking of the systems.

Korean-to-English test BLEU-4 across tuning methods

The extended unconstrained Powell run leads the Korean comparison.

Korean-to-English test BLEU-4 across tuning methodsMERT with distortion-limit grid: 23.30MERT with distortion-limit grid23.30Direct simplex with basic parameters: 23.42Direct simplex with basic parameters23.42Direct Powell with basic parameters: 23.39Direct Powell with basic parameters23.39Direct Powell with extended parameters (this paper): 23.61Direct Powell with extended parameters(this paper)23.61Lattice-constrained Powell with extended parameters: 23.43Lattice-constrained Powell with extendedparameters23.43Time-sensitive Powell with search controls: 23.46Time-sensitive Powell with searchcontrols23.46
The numbers
System or settingBLEU-4 %
MERT with distortion-limit grid23.30
Direct simplex with basic parameters23.42
Direct Powell with basic parameters23.39
Direct Powell with extended parameters (this paper)23.61
Lattice-constrained Powell with extended parameters23.43
Time-sensitive Powell with search controls23.46

For Korean, both basic direct searches improve on the baseline, and simplex achieves the stronger score of the two. The extended Powell run is again the highest-scoring setting. Limiting the decoder to lattices preserves a score above MERT, while giving back much of the improvement seen with unconstrained extended search. The time-sensitive run, which also chooses how much work the decoder may spend exploring, falls between those extended Powell results.

Farsi-to-English test BLEU-4 across tuning methods

The time-sensitive run leads, with the extended direct run next.

Farsi-to-English test BLEU-4 across tuning methodsMERT with distortion-limit grid: 32.16MERT with distortion-limit grid32.16Direct simplex with basic parameters: 32.22Direct simplex with basic parameters32.22Direct Powell with basic parameters: 32.28Direct Powell with basic parameters32.28Direct Powell with extended parameters: 32.51Direct Powell with extended parameters32.51Lattice-constrained Powell with extended parameters: 32.42Lattice-constrained Powell with extendedparameters32.42Time-sensitive Powell with search controls (this paper): 32.62Time-sensitive Powell with searchcontrols (this paper)32.62
The numbers
System or settingBLEU-4 %
MERT with distortion-limit grid32.16
Direct simplex with basic parameters32.22
Direct Powell with basic parameters32.28
Direct Powell with extended parameters32.51
Lattice-constrained Powell with extended parameters32.42
Time-sensitive Powell with search controls (this paper)32.62

For Farsi, the basic direct searches are again close to the MERT baseline. The extended Powell comparison shows a clearer gain, and the lattice-constrained run retains a score above both basic runs. The time-sensitive configuration is strongest on this test set. That outcome differs from Arabic and Korean, where adding the time-sensitive search controls yields lower BLEU than the unconstrained extended run. Across the paper’s headline comparison, the authors report test gains of 0.27 to 0.35 BLEU points for the extended approach over MERT.

What the tuning times include

On Arabic, MERT and the distortion-limit grid take 14.6 hours end to end. Direct simplex with the basic set takes 1.2 hours, and basic Powell takes 2.3 hours. Extended Powell takes 4.4 hours. Its lattice-constrained counterpart takes 0.7 hours, and the time-sensitive Powell run takes 6.5 hours. For Korean, the corresponding tuning times are 20.8, 4.4, 5.6, 8.9, 1.3, and 9.7 hours. For Farsi they are 11.7, 1.3, 2.1, 4.9, 1.1, and 6.2 hours. These measurements cover the tuning run for each combination of optimizer and parameter set.

The distinction between the baseline as run and an individual MERT run is important. The grid baseline pays for MERT at each distortion limit. The paper says that MERT is generally faster when considered as a weight-tuning procedure on its own and that the speed difference remains reasonable for comparable parameter searches. The direct approach has the end-to-end advantage here when the job includes finding the distortion limit. It can change the limit along with the weights rather than repeating a separate weight optimization at each candidate limit.

The lattice-constrained run has the lowest tuning time for an extended parameter set on each language pair. The unconstrained time-sensitive run typically needs more tuning time than extended Powell because it also searches over parameters controlling how thoroughly the decoder explores. That longer tuning run is compatible with the intended outcome of matching a translation speed. Tuning time measures the work needed to select settings, while decoding time measures the work needed once those settings are selected.

The target for time-sensitive tuning comes from the development decoding time of the unconstrained extended Powell setting. The authors say the resulting development translation speeds are almost the same and that the speeds are roughly comparable on test data. They do not give test decoding times in the results. The table therefore supports a numerical comparison of tuning costs and BLEU, with the test-time comparison described qualitatively.

What the ablations show

Matching the parameters before extending them

The baseline, basic simplex, and basic Powell runs offer the clearest comparison of tuning procedures with a common scope. Each can choose the linear scoring weights and the distortion limit. The difference is that MERT uses a separate grid for the limit, while the direct optimizers evaluate changes to the weights and limit in the same search. The test scores cluster together. Basic Powell exceeds MERT across the three test sets. Simplex exceeds it for Korean and Farsi and trails it for Arabic. The paper’s case for the basic direct method rests mainly on obtaining comparable translation accuracy while removing the repeated grid search.

Even this comparison changes more than the way candidate translations are represented. The direct runs use different optimization procedures from the MERT baseline, and they start with a distortion limit of 10, while MERT evaluates a fixed range. Thus the results describe complete tuning procedures under broadly matched parameter sets. A reader can see how much each procedure costs and what score it ultimately obtains. The comparison does not, on its own, assign a separate BLEU contribution to evaluating actual decoder output.

Keeping Powell search and adding the extended parameter set gives a closer comparison for the effect of the additional controls. The unconstrained extended run is better than the basic Powell run for every language pair. The extension adds polynomial features and independent weights for future cost. These controls have a plausible connection to the decoder behavior the paper set out to change. One alters preferences among jumps of different lengths, while the other can affect which partial translations survive pruning. The consistent score pattern across the tested pairs supports the extended set as a package.

The authors identify the distortion limit, the polynomial distortion penalty, and the language-model future-cost weight as particularly useful in their experience. That judgment is less finely resolved than the main comparison. The distortion limit is already tuned in the basic runs, and the paper gives no individual test scores for removing the exponent or the separate future-cost weight from the extended configuration. The future-cost figure shows the overestimation that motivates independent weighting. It does not show how much of the extended configuration’s improvement comes from changing that weight.

What changes when decoding is constrained

The extended Powell runs with and without lattice constraints use the same broad set of adjustable parameters. Their difference is the search space supplied to the decoder during tuning. With lattice constraints, the decoder avoids generating most of the expansions it would otherwise need to score. Its path choices remain subject to the current weights and reordering settings, but they must also conform to the accumulated graph. Compared with the unconstrained run, every lattice-constrained run takes less time to tune and yields a lower test BLEU score.

The paper reports that the lattice constraints are augmented 2-5 times before convergence. The restarts with fresh decoding therefore do add useful possibilities or allow the optimizer another opportunity to find settings with the enlarged graphs. The comparison measures the combined effect of this staged procedure and its graph restrictions. It shows a practical exchange between tuning time and accuracy. In these runs, reusing a fixed set of expansions within each round saves considerable time even after accounting for the rounds needed to refresh the graphs.

The paper gives qualitative evidence for racing as well. The authors found that the statistical checks made tuning faster and that runs with and without those checks frequently arrived at identical settings. They do not report a separate timing and score breakdown that would quantify the contribution of the early rejection rule, the output-similarity rule, and expansion reuse individually. The lattice comparison has measured outcomes for both settings. The racing observation supports the view that acceleration can sometimes leave the optimization result unchanged, without measuring how often this happens or how expensive the disagreements are.

Tuning more search controls against a speed target

The time-sensitive comparison extends the unconstrained Powell run with beam size and both pruning controls. It also changes the tuning criterion, since plain BLEU would reward even a small accuracy gain from spending much more time in search. To put the settings on a similar footing at decoding time, the authors set the new objective’s target from the development decoding speed of the extended run. The comparison asks whether selecting these extra search controls under that target improves translation accuracy.

The scores go in different directions. Time-sensitive tuning gives higher test BLEU on Farsi and lower test BLEU on Arabic and Korean relative to the corresponding extended run. The authors interpret the overall result as little gain in accuracy from adjusting those controls at roughly the same speed. The procedure nonetheless demonstrates a different use for direct tuning. It can choose the beam and pruning settings to pursue a speed objective without requiring a person to choose one of those controls in advance as the way to meet it.

The authors exclude these extra search controls from the lattice-constrained comparison for a methodological reason. A fixed graph already restricts what hypotheses can compete for places in the beam. Increasing the beam inside that graph can appear inexpensive because there are few additional paths to explore under the constraint. Its cost under ordinary decoding could be quite different. The unconstrained time-sensitive run gives the search controls room to change actual decoding work, while the lattice experiment evaluates parameters for which the restricted search remains informative.

Limitations

Limits identified by the authors

The paper’s direct objective is expensive even though it removes a candidate-list approximation. A full evaluation asks the decoder to translate an entire development corpus at the current settings. The authors point out that a development set for error-rate tuning can contain a thousand sentences or more, making repeated full evaluations a serious cost. Batches can be translated in parallel, but MERT also benefits from parallelism. Racing and graph reuse are consequently central to practical performance in the reported setup.

Racing qualifies the claim that the optimizer sees the true error surface. When a challenger is halted ahead of schedule, its score for the full development set is estimated by extrapolating from how it performed relative to others on a subset of the data. A small range of scores among sampled randomized outputs can also lead to early dismissal. The authors design these decisions to save work predominantly on weak or redundant proposals, leaving full evaluations for promising ones. The current best setting has a measured development value, but some values that guided the optimizer’s route toward it are estimates. That route could differ under full evaluation of every point.

Lattice-constrained decoding introduces another approximation identified by the authors. Evaluations use the real decoder inside a previously explored graph. That decoder can respect a newly tightened restriction, but it cannot discover a translation that requires an edge outside the graph. Even as the lattices grow between rounds, constrained objective values can differ from what a fresh unconstrained run would produce. This is especially important when tuning how broadly the decoder explores. The paper restricts the use of forced decoding accordingly and reports the associated loss in BLEU against extended unconstrained search.

The authors also point out limits of particular optimization choices. A golden section line search is exact only under a condition that a bumpy translation objective need not satisfy. The paper’s solution seeks favorable settings through local comparisons, with no global guarantee. Timing creates a separate difficulty because raw decoding time can vary between runs. The deterministic work estimate addresses that variation for tuning. It still represents time indirectly through decoder operations.

Finally, the authors say that they do not present a full breakdown of the effects of individual nonlinear features and parameters. Their results are strongest at the level of parameter groups. They identify settings that seemed especially effective and provide an analysis motivating the independent future-cost weight. The paper does not put those individual mechanisms through separately reported held-out comparisons.

Limits visible in the experimental setup

All three translation tasks use the same target language and broadly the same phrase-based architecture. The work includes source languages with different reordering needs and uses mixed-domain data. Those choices provide variation within the setup. They leave open how well the optimization would behave with a different target language or decoding architecture. The discussion of hypergraphs indicates how reuse could apply to richer search structures, while the main evidence comes from the phrase-based system.

The reported metric is case-insensitive BLEU-4 with a single reference. That protocol answers whether the tested settings improve overlap with the designated references under standard automatic evaluation. The paper does not present human judgments or report the same experimental comparison using TER. It also gives aggregate scores over mixed-domain test sets. The results cannot locate the gains in a particular domain, sentence type, or kind of translation error. The reordering and future-cost examples explain mechanisms that could matter, but the metric values do not divide the final gains among them.

The statistical tests used to save tuning work also have a narrower role than a test of the final results. They compare two sets of development translations during an evaluation. The test tables give point estimates without a significance analysis of the held-out differences shown there. The small gaps between the basic optimizers should therefore be read as the observed ordering in these runs. The more consistent comparison is that opening the extended parameters raises the Powell test score across the three tasks.

Runtime evidence is specific to the job each procedure was given. The end-to-end times include the external grid for the baseline, which is appropriate when comparing ways to tune the distortion limit and the weights together. For a job that fixes the distortion limit in advance, the grid timings do not tell a reader the cost of a single MERT run. Likewise, the paper’s qualitative report of similar test decoding speed supports a broad comparison of the time-sensitive and extended settings. It cannot establish how closely each setting meets a deployment target on another collection of sentences.

Finally, “true error” refers to the metric obtained when the configured decoder actually translates the development data in a complete evaluation. A more exact search could deliver different outputs at the same weights. Direct tuning can favor a setting that works better with the search mistakes of this decoder, which is precisely part of its purpose. Its demonstrated advantage belongs to the interaction among the scoring rules, search procedure, and evaluation criterion in the tested system. That interaction is what would need to be measured again if a different decoder were put in its place.

What came after

The paper’s account ends with the reported phrase-based experiments. It contains no later studies that establish whether subsequent systems adopted racing, reused decoder lattices during tuning, or trained against the same time-sensitive objective. The results establish those techniques as tested options for the decoder and tasks studied here, leaving their later use undocumented.

Cite

Cite as Tagyoung Chung and Michel Galley. 2012. Direct Error Rate Minimization for Statistical Machine Translation. Proceedings of the Seventh Workshop on Statistical Machine Translation.

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

@inproceedings{chung2012direct,
  title = {{Direct Error Rate Minimization for Statistical Machine Translation}},
  author = {Tagyoung Chung and Michel Galley},
  booktitle = {Proceedings of the Seventh Workshop on Statistical Machine Translation},
  year = {2012},
  url = {https://aclanthology.org/W12-3159/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chung-2012-direct-error-rate-minimization-statistical/