Elamur Research

Online Multitask Learning for Machine Translation Quality Estimation

Paper · 2015 · José G. C. de Souza, Matteo Negri, Elisa Ricci et al.

Summary

A translator who receives a machine-generated draft has to decide whether it is worth correcting or whether starting over would be quicker. A quality estimator can inform that choice by predicting how much editing a draft will need before anyone corrects it. The difficulty is that drafts arrive from different jobs, and the feedback from one job may be more useful to some jobs than to others. The paper studies how an estimator for machine translation can learn from this mixed stream while keeping its predictions specific to each domain.

The authors combine online learning, which updates a predictor as feedback arrives, with multitask learning, which lets related tasks share what they learn. A task in the experiments is a translation domain. Each domain has its own predictor, and an interaction matrix governs how a correction from one domain affects the others. Initially, the predictors learn independently. Once they have seen enough examples to establish useful weights, the procedure starts updating the interaction matrix as well. The target is human-targeted translation edit rate, or HTER, a measure of how many changes separate the draft from its human-edited version relative to the length of that version.

The experiments use English-to-French translations of talk subtitles, educational material, and manuals from different providers. On held-out sentences, both versions of the multitask method achieve lower mean absolute error averaged across domains than a fixed training-set mean, a shared online predictor, or independently trained online predictors. The largest reported advantage over the strongest baseline is +1.3 MAE with 60% of the training data. In the per-domain comparison, the multitask method using 140 training instances from each domain reaches errors comparable to those of independent predictors using 560 in-domain instances. The multitask run also sees 560 instances overall. Its advantage in that comparison is that it can use feedback from elsewhere in place of some feedback from the domain being predicted.

The gains vary by domain and by the amount of training data. With 100% of the available training split, the independent predictors reach comparable performance in most domains. Educational material remains an exception, and its learned weights show the strongest correlations with the other domains. The experiments support sharing feedback selectively in a mixed stream and show where the resulting gains are visible. They measure prediction error on recorded edits, leaving the effect on translators’ decisions and working time open.

Deep dive: Online Multitask Learning for Machine Translation Quality Estimation

Online multitask learning estimates how much editing a machine translation will need and learns which translation jobs can benefit from shared feedback. · about 36 minutes to read

The problem and its context

A quality estimate arrives before the correction

In computer-assisted translation, a translator works through source segments and may receive suggestions from different sources. A translation memory can offer a previously translated segment that resembles the current source. A translation engine can generate a new draft. In either case, the translator has to judge how much of the suggestion is worth keeping. The paper describes fuzzy matching as an established way of scoring suggestions from translation memory. A newly generated draft poses a different problem. The system needs to estimate its usefulness while the corrected version is still unavailable.

Sentence-level quality estimation assigns a score to a particular source sentence and its translation. The authors describe several possible targets for that score. An assessment can ask a person to rate how much of the output needs correction. A study can record the time taken to edit. It can also use the changes between a suggestion and the version the translator actually produces. These targets capture different observations about the work. The paper chooses the last one and treats the score as a real-valued prediction, so the learning problem is regression.

The feedback used for training is available after a translator has worked on a suggestion. This ordering makes the application especially suitable for a procedure that alternates prediction and learning. The current draft gets an estimate based on the feedback available so far. Once a post-edit exists, the difference between the prediction and the observed score can inform subsequent estimates. The intended improvement is in the estimator that accompanies the translation engine. The paper does not use the feedback to change the engine that produced the draft.

The distinction between prediction and feedback also explains what it means for this to be a reference-free estimate. The predictor has the source text and the proposed translation when it issues a score. The later post-edit is needed to calculate the training target or to evaluate the prediction. The availability of that target during learning does not make the estimate itself dependent on having a reference at prediction time.

A service used by several jobs

The authors identify a mismatch between a conventional evaluation setup and the work that an estimator would have to support. Shared tasks at the Workshop on Statistical Machine Translation gave researchers labeled training material and new items to score. Training and evaluation happened as distinct phases. The training material was generally homogeneous, frequently because it came from the same domain and the suggested translations came from the same engine. The paper uses these evaluations to describe the prevailing setup for evaluation and benchmarks. It cites the WMT shared-task findings for 2012, 2013, and 2014.

In the application the authors have in mind, translation jobs can be active at the same time. A stream of segments might therefore contain material with different vocabularies and styles, produced by different translation engines and corrected by people with different preferences. Periodic batch retraining could incorporate the accumulated feedback, but the paper argues that rerunning training on the growing collection is impractical for a service operating on tight translation schedules. It instead seeks an update that can act on each new labeled segment.

Incremental updates address the timing of learning. The remaining question is where each update should go. A single set of weights offers an economical way of using all available feedback, but every update to those weights affects predictions in every domain. Separate predictors can preserve different relationships between the input features and editing effort, but feedback stays in the domain where it was collected. The authors want a predictor to benefit from another domain when the two support similar estimates, and to retain its own behavior when the evidence they provide differs.

A domain label is the practical means of identifying a task in the paper. In principle, the application motivates distinctions among jobs, genres, engines and users. In the experiments, the identifier denotes a dataset with its own production and editing conditions. The algorithm knows that identifier when it receives a segment. The research question concerns the interactions among those identified tasks, so the procedure does not have to infer from the sentence which task it belongs to.

That choice also clarifies the meaning of shared learning. The estimator still issues an answer using the weights for the specified domain. Sharing takes place when feedback changes those weights. A domain may benefit from observations made elsewhere without being required to issue the same estimate another domain would give to an identical feature vector. This distinction matters in a service whose users see a single quality-estimation component but whose jobs need different behavior.

The approaches the paper brings together

Earlier quality-estimation research supplied the feature-based sentence scoring setup. The paper draws its input features from work on sentence-level translation quality estimation. Each example connects measurable properties of the source and draft to a label describing the translation or its editing effort. That arrangement gives the present work a common representation across domains. The new question is how to keep learning the relationship between those features and the score once heterogeneous examples start to arrive.

Huang and colleagues approached adaptation at the document level. They trained a document-specific quality estimator in batch mode. In the present paper’s account, that can tailor an estimator to the document at hand, with a retraining step for each document. The alternative investigated in Adaptive Quality Estimation for Machine Translation used online updates to learn from human feedback as it arrived. It could respond to changing conditions by correcting prediction errors. Its update had no explicit representation of which jobs, domains or users were related.

A separate line of work used multitask learning to represent differences and commonalities directly. The study on annotator bias with multitask Gaussian processes used the joint learning problem to handle judgments from people with different levels of expertise and reliability. The present paper also describes earlier work by de Souza and colleagues that used multitask learning when little training data was available and the available domains or genres differed from the eventual test domain. Both examples learned jointly in batch. A preliminary comparison of online and multitask learning suggested they might complement each other. The authors frame the present study as a test of that combination.

The paper distinguishes several ways of representing relationships in general multitask learning. Some approaches encourage tasks to share parameters across the board. Others form groups and allow sharing within a group, which can give atypical tasks some separation. Approaches that learn relationships from task weights can represent agreement, opposition, and weak or absent interaction. The authors want the last kind of flexibility because the useful relationships need to be learned from the examples and can include pairs whose responses to the same evidence should differ.

Work on lifelong learning also provided relevant ideas. As the authors describe it, the learner in those studies received examples for a task together, used them to learn that task, and could reuse what it learned when a new task appeared. The translation scenario calls for something different in the ordering of examples. Feedback from an educational job may be followed by feedback from a manual and then by more feedback from the educational job. No task needs to end before another can contribute information.

The closest algorithmic starting point was work by Saha and colleagues on learning task relationships from individual examples. That procedure addressed classification, where predictions are discrete. The quality score used here requires a continuous output and an update driven by the direction and size of a numerical error. The authors adapt the approach around passive-aggressive regression. This gives them a common online rule for both the proposed method and its principal baselines, so the empirical comparisons can focus on what happens when tasks share feedback.

The method, step by step

From a draft to supervised feedback

Each round starts with a sentence, its automatic translation, and a known task identifier. A feature extractor turns the source and draft into a vector of numbers. The input representation is common to all tasks, so a position in the feature vector has the same meaning across domains. The task identifier determines which set of weights will be used to read those numbers. A feature can therefore have different predictive importance for a manual and for a talk subtitle even though the extractor measures the same property in both.

The resulting score estimates HTER. In the paper’s definition, HTER is based on the minimum number of word edits needed to reach the human post-edit. The edit operations include inserting, deleting, substituting and shifting words. The denominator is the word count of the post-edit. The authors describe HTER in the [0,1] interval. Within that interpretation, a larger value means the draft underwent more editing relative to the length of the corrected segment.

HTER = minimum edit count ÷ post-edit word count

HTER is the human-targeted translation edit rate. The minimum edit count is the number of operations in a shortest permitted edit sequence from the draft to the post-edit. The post-edit word count is the length of that edited translation in words. The division makes the count relative to segment length. The estimator receives the resulting score as a training label after it has made its prediction.

A post-edit gives the procedure a concrete observed target for each training sentence. It also ties the label to the editing choices in that example. If different translators make different changes to the same draft, the labels can reflect those choices. The regression objective concerns the observed editing trace. It does not ask the learner to identify which edit was made or reconstruct the corrected translation.

How a translation and its post-edit update the estimator

The steps in order.

How a translation and its post-edit update the estimatorStep 1: Receive the source, draft and task identifier1. Receive the source, draft and task identifierStep 2: Extract features from the source and draft2. Extract features from the source and draftStep 3: Predict editing effort with the task weights3. Predict editing effort with the task weightsStep 4: Compute observed HTER from the human post-edit4. Compute observed HTER from the human post-editStep 5: Measure error beyond the tolerance5. Measure error beyond the toleranceStep 6: Update weights using the current task interactions6. Update weights using the current task interactionsStep 7: Learn task interactions after the initial independent phase7. Learn task interactions after the initial independent phase

The update for a single task

The starting point is passive-aggressive learning, abbreviated PA. The predictor calculates a weighted sum of the input features. After issuing its estimate, it receives the score calculated from the post-edit. An error within a chosen tolerance calls for no weight change. Outside that tolerance, the procedure adjusts the weights in the direction that would have brought the estimate closer to the observed score. The size of the adjustment is capped.

ŷₜ = wₜ₋₁ · xₜ

Here t is the current round. The vector xₜ contains the d real-valued features for the current source and draft, where d is the number of features. The vector wₜ₋₁ holds the weights available before the round’s update. The dot denotes the sum of the products of corresponding feature values and weights. The scalar ŷₜ is the current HTER prediction. Indexing the weights by the completed round makes their availability explicit when distinguishing prediction from the update that follows.

ℓε(w; x, y) = max(0, |y − w · x| − ε)

The symbol ℓε denotes the ε-insensitive loss. The candidate weight vector is w, the input features are x, and the observed label is y. The bars around the prediction error give its absolute magnitude. The parameter ε is the tolerance. The maximum selects 0 when the difference lies within that tolerance and returns only the excess when the difference lies outside it. Thus the rule distinguishes how far the prediction misses its target from how much of that miss matters for training.

For a prediction that underestimates HTER, the positive error calls for a higher estimate on this input. When it overestimates HTER, the direction of the correction reverses. The absolute loss supplies the magnitude used to scale the step, and a separate sign term supplies the direction. The same treatment applies on either side of the tolerance. In particular, the procedure does not give underestimates a higher cost on the grounds that they might induce a translator to accept a difficult draft.

The PA objective balances fitting the observation against preserving weights that have already been learned. Preservation is measured by the squared distance from the previous weights. The objective allows some residual loss, with a cost controlled by the aggressiveness parameter.

wₜ = argmin over w and ξ of [½ ‖w − wₜ₋₁‖² + Cξ], subject to ℓε(w; xₜ, yₜ) ≤ ξ and ξ ≥ 0

The expression chooses the weight vector wₜ for the end of round t by searching over a candidate vector w and a scalar slack variable ξ. The argmin gives the minimizing choice of weights, with ξ also optimized. The squared norm ‖w − wₜ₋₁‖² measures the Euclidean distance from the prior weights in squared units, and ½ scales that term. The positive parameter C weights the cost of slack. The condition involving ℓε keeps the remaining loss on xₜ with observed label yₜ within the slack amount, and ξ ≥ 0 requires that amount to be non-negative.

A larger C allows the update to respond more strongly to a substantial miss. The authors emphasize that editing labels can be noisy, so reacting strongly to any individual miss can move the weights in an unhelpful direction. A smaller C limits the influence of an isolated observation. The tolerance and the cap act at different points. The tolerance determines whether the error is large enough to matter. The cap limits the response once the error matters.

τₜ = min(C, ℓₜ ÷ ‖xₜ‖²)

The scalar τₜ is the step size for round t. The scalar ℓₜ is the ε-insensitive loss of the current prediction on the current example, evaluated before changing the weights. The squared norm ‖xₜ‖² is the sum of the squared feature values. The min operation takes the smaller of the loss scaled by that quantity and the cap C.

wₜ = wₜ₋₁ + sgn(yₜ − ŷₜ) τₜ xₜ

The vector wₜ is the updated single-task weight vector and wₜ₋₁ is its predecessor. The function sgn supplies the sign of the difference between observed HTER yₜ and predicted HTER ŷₜ. The step size τₜ determines how far to move along the feature direction xₜ. Because the loss vanishes within the tolerance, those rounds leave the weights unchanged. This is the sense in which the algorithm is passive on some observations and aggressive on others, subject to the cap.

The update depends on the incoming example and the current weights. There is no separate refitting step over all prior examples. This is the part of the method that fits the timing of feedback in the proposed application. Both online baselines use this rule, differing in whether the stream goes to a common vector or is routed to an independent vector for its own domain.

Domain-specific predictions with a shared update

Passive Aggressive Multitask Learning, or PAMTL, keeps a separate weight vector for every task. To apply a joint update, it places those vectors next to one another in one longer vector. It also represents the incoming feature vector in that longer space by putting the features in the block for the current task. All of the remaining feature blocks are zero. This representation makes it possible to write both the domain-specific prediction and the joint update using the same vector.

w̃ₜ = [w̃ₜ,₁; …; w̃ₜ,ₖ; …; w̃ₜ,ₖ₌Κ]

The vector w̃ₜ concatenates the task weights after round t. The semicolons indicate the boundaries between blocks. The dots indicate omitted intermediate blocks, k denotes a generic task index, and Κ denotes the fixed number of tasks. The last block, written w̃ₜ,ₖ₌Κ, is the vector for the final task. Every block contains d feature weights, so the compound vector has Κd entries. The paper uses K for the number of tasks, and the following expressions use that notation.

φₜ = [0; …; xₜ; …; 0], with xₜ in block iₜ

The vector φₜ is the expanded feature vector at round t. The index iₜ identifies the task attached to the current example. The block at that index contains xₜ, the original d features. Each 0 represents an entire zero block of the same length, and the dots stand for the other blocks in their task order. The expanded features occupy the same Kd-dimensional space as the compound weights.

ŷₜ = w̃ₜ₋₁ · φₜ

The predicted HTER at round t is ŷₜ. The vector w̃ₜ₋₁ contains the weights available before feedback for that round, and φₜ is the expanded input. The dot product pairs corresponding entries. All blocks other than the block for task iₜ contribute zero, so the prediction reads only that task’s feature weights. Other tasks can affect the estimate through past updates that reached this block.

The interaction matrix Ω has a row and a column for every task. A diagonal matrix gives each task an update confined to its own block. With off-diagonal interactions, the algorithm can instead use a mistake on the current task to change other tasks’ weights too. The matrix is shared across feature positions. Its role is to determine which tasks are affected by the feature-wise update, while the features themselves specify the direction of the adjustment within a block.

The authors motivate this structure using three types of relationships. For tasks that behave similarly, shared learning should allow compatible changes to their weights. For tasks that behave differently, the updates should allow their weights to move apart. Where there is little relationship, there should be little transfer. A small off-diagonal effect and an effect in the opposite direction are both meaningful possibilities in this formulation. Sharing here is a property of the joint update, and it can differ from one task pair to another.

The joint objective

In the multitask objective, the ordinary penalty for moving away from the previous weights is replaced by a penalty that depends on the interaction matrix. A second term charges for the slack as in PA. A third term discourages moving the matrix too far from the one already learned. The two versions of the method differ in how they measure that last change.

(w̃ₜ, Ωₜ) = argmin over w, ξ and Ω ≻ 0 of [CMTL(w, Ω) + Cξ + D(Ω, Ωₜ₋₁)], subject to ℓε(w; φₜ, yₜ) ≤ ξ and ξ ≥ 0

Here w̃ₜ and Ωₜ are the compound weights and task matrix after round t. The candidate compound weight vector is w and the candidate task matrix is Ω. The condition Ω ≻ 0 specifies a positive definite matrix in the optimization, consistent with using an inverse and a matrix logarithm in the updates. The term CMTL measures weight movement under the task matrix, C is the aggressiveness parameter, and ξ is the non-negative slack variable. The divergence D measures a change from the preceding matrix Ωₜ₋₁ to the candidate Ω. The loss is evaluated on the expanded features φₜ and the current observed label yₜ.

CMTL(w, Ω) = ½ (w − w̃ₜ₋₁)ᵀ (Ω ⊗ I_d) (w − w̃ₜ₋₁)

The quantity CMTL is the joint weight-movement penalty. The compound vector w is the candidate and w̃ₜ₋₁ is the starting vector for the update. The superscript ᵀ transposes a column into a row so the expression evaluates to a scalar, and ½ is the scale factor. The symbol ⊗ means the Kronecker product. Here it replaces each entry of Ω with that entry multiplied by I_d, the identity matrix over the d feature coordinates. The resulting matrix acts on all task blocks in the compound space. The penalty measures the change in those weights with the task interactions included in the measurement.

The optimization alternates between weights and interactions. The weight step uses the task matrix already available, so it can process the current error immediately. The matrix step uses the task weights to revise the interaction structure. The published algorithm delays this latter step until the task weights have had an initial period of independent learning.

τₜ = min(C, ℓₜ ÷ ‖φₜ‖²)

This is the step-size expression in the PAMTL procedure. The scalar τₜ is the step size, C is its cap, and ℓₜ is the ε-insensitive loss on the current example before updating. The squared norm ‖φₜ‖² measures the size of the expanded input. Its active features are those in xₜ, with zero blocks for the other tasks.

w̃ₜ = w̃ₜ₋₁ + sgn(yₜ − ŷₜ) τₜ (Ωₜ₋₁ ⊗ I_d)⁻¹ φₜ

The starting compound weights are w̃ₜ₋₁ and the updated weights are w̃ₜ. As in single-task PA, sgn gives the sign of the difference between observed HTER yₜ and predicted HTER ŷₜ, and τₜ scales the response. The prior task matrix Ωₜ₋₁ is expanded with the feature identity I_d using the Kronecker product. The superscript ⁻¹ denotes its inverse. That inverse acts on φₜ before the resulting update is added to the compound weights.

The inverse matters when interpreting the interaction matrix. The block of φₜ belonging to the observed task is the only non-zero input to this multiplication. The column of the inverse task matrix for that task determines how much of the feature direction reaches each output block. A diagonal structure keeps it local. A nondiagonal structure can send it to other blocks, and the coefficients determine its direction and magnitude there. Thus the matrix governs the transfer through its inverse in the weight update. A correlation computed separately from the final task weights is a different quantity.

Learning how the tasks interact

To learn the interactions, the procedure compares the task weight vectors by putting them into a matrix with one column per task. Multiplying its transpose by the matrix itself gives a square array of pairwise dot products. These summarize which task vectors point in compatible directions in feature space and which have different directions, along with the magnitudes of the vectors. The algorithm uses this array to revise its task matrix. It does not calculate similarity by comparing the raw sentences or their topic labels directly.

sym(A) = (A + Aᵀ) ÷ 2

The function sym returns the symmetric part of a square matrix A. The transpose Aᵀ exchanges its rows and columns. The division by 2 averages the matrix with its transpose. The paper applies this operation to the array calculated from the task weights in both versions of the matrix update.

The divergence in the joint objective provides a way to control movement between positive definite matrices. The paper gives a LogDet form and a Von Neumann form and uses a distinct update rule for each.

D_LD(X, Y) = tr(XY⁻¹) − log |XY⁻¹| − n

The function D_LD is the LogDet divergence between X and Y, square positive definite matrices with n rows and n columns. The inverse of Y is Y⁻¹. The function tr sums the diagonal of its matrix argument. The vertical bars in the logarithm denote a determinant, and log in this expression is the scalar logarithm. The product XY⁻¹ expresses the comparison with Y, and the subtraction of n is part of the stated formula.

D_VN(X, Y) = tr(X log X − Y log Y − X + Y)

This is the expression the paper prints for D_VN, its Von Neumann divergence. X and Y are the two positive definite matrices being compared. Here log X and log Y are matrix logarithms, and the products and sums inside tr are matrix operations. The trace tr converts the resulting square matrix to a scalar. The expression identifies what the paper states for the objective. The update below is given separately as the paper’s rule for the Von Neumann version.

Ωₜ = (Ωₜ₋₁ + η sym(W̃ₜ₋₁ᵀ W̃ₜ₋₁))⁻¹

This is the paper’s LogDet update for Ωₜ, the interaction matrix at the end of round t when matrix learning is active. The preceding matrix is Ωₜ₋₁. The matrix W̃ₜ₋₁ arranges the compound weights indexed by t − 1 as d rows and K columns, putting one task’s d weights in each column. Its transpose W̃ₜ₋₁ᵀ times W̃ₜ₋₁ gives the square matrix of task dot products. The function sym takes the symmetric part of this product, η is the learning rate for the task matrix, and the outer superscript ⁻¹ denotes inversion of the sum. The paper calls the resulting variant PAMTL-ld.

Ωₜ = exp(log Ωₜ₋₁ − η sym(W̃ₜ₋₁ᵀ W̃ₜ₋₁))

This is the paper’s Von Neumann update for Ωₜ. The logarithm of the previous matrix Ωₜ₋₁ is a matrix operation. The symmetric task-weight product is constructed from W̃ₜ₋₁ and its transpose as in the LogDet rule, and η controls the size of its contribution. The function exp is the matrix exponential applied to the entire difference. This variant is PAMTL-vn. Both variants use the same prediction and weight-update rules, which makes their comparison a test of the matrix update choice within this procedure.

When sharing starts

The algorithm begins with zero task weights. It initializes the interaction matrix to a scaled identity. The scale is common across tasks and the off-diagonal entries are zero. This means that the predictors initially receive corrections only from their own observations. As they accumulate feedback, their weights begin to describe how the input features relate to HTER in each task.

Ωinitial = K × I_K

The matrix Ωinitial is the initial interaction matrix. K is the number of tasks and I_K is the identity matrix of that size. Multiplication by K scales the diagonal entries. The off-diagonal entries remain zero, which keeps the initial weight updates confined to the observed task.

The warm-up parameter R controls when the matrix starts learning. The weight-update rule is applied from the beginning. The algorithm’s condition for matrix updates is that round t has passed R. Waiting allows the initial task vectors to reflect some in-domain evidence. Waiting also leaves fewer training examples on which to use the learned interactions. The validation experiment varies this threshold to assess that tradeoff before comparing the methods on test data.

For a concrete sequence, consider what happens when a manual segment supplies feedback during the initial phase. Its source and draft give the features, and the manual task determines the active block. After the post-edit yields a label, any correction outside the tolerance changes that block. The weights for educational material are untouched by that observation. After the matrix can learn, feedback from a later manual segment follows the same prediction and loss calculation. Its update may now reach the educational task if the interaction coefficients direct part of the change there. The estimator will still use the educational task’s own weights when the next segment from that task arrives.

The experiments supply the labels from recorded post-edits. Examples from the training domains are mixed and presented sequentially, with the label used for an update after that example’s prediction. This recreates the order in which a score and feedback would become available for a segment. Held-out examples serve a separate purpose. They measure how well the weights learned from different amounts of feedback generalize to unseen sentences.

Experiments and results

What the translation jobs contained

The experiments draw on four English-to-French domains. The source text is in English and both the automatic draft and the post-edit are in French. Each domain contains 1,000 examples. They have the same structure for learning, with a source segment, a draft and a real-valued HTER label derived from the human correction. The authors calculate the labels with TERCpp. The datasets vary in subject, style, translation engine and editing arrangements, so a common language direction still leaves considerable variation among tasks.

The TED material comes from the Trace corpus. The source segments are subtitles from talks on different topics. Drafts came from a phrase-based statistical engine and a commercial rule-based engine. Four translators supplied the edits. As a consequence, an example’s membership in the TED task identifies the type and source of the material without specifying one translator or one translation engine for the entire task.

One manual domain, IT LSP 1, comes from a language service provider. It consists of material from a software manual. The drafts were generated by a statistical translation system trained with Moses. One professional translator produced the post-edits. The other manual domain, IT LSP 2, consists of a software manual from the automotive industry. An adaptive proprietary engine generated its drafts, and several professional translators supplied post-edits.

The educational material, EM, also comes from the provider responsible for IT LSP 2. Its content includes courseware and assessments, and the authors describe it as containing different styles of text. Its drafts and corrections were produced under the same kind of arrangement as the automotive manual. Both datasets are drawn from the Autodesk Post-Editing Data corpus. These connections are useful when interpreting the experiment because tasks can share a provider and production setup while differing in subject matter and style.

The paper’s descriptive statistics give a sense of the text that the estimator handles. The average source sentence length is 13 in each IT domain. The corresponding source vocabulary sizes are 2,013 for IT LSP 1 and 2,105 for IT LSP 2. For EM, the average source length is 15 and the source vocabulary size is 3,200. The TED source segments have an average length of 20 and a source vocabulary size of 3,452. These counts concern the data in each domain. The authors use them to suggest similarities between the manuals and greater lexical variety in the other material. The counts describe the input distributions, whereas useful transfer ultimately depends on how features relate to observed edits.

Inputs, splits and baselines

The estimator uses 17 features calculated by the online version of QuEst. The paper describes source-side measurements such as sentence length in tokens and the number of translations available per source word. It also mentions fluency-related measurements, including probabilities assigned to the draft by a language predictor. These are proxies for aspects of the source’s difficulty and the draft’s fluency. None requires the human post-edit at prediction time. Every method receives the same representation, which helps separate the effect of changing the learning arrangement from the effect of supplying different predictors with different inputs.

The authors uniformly sample 700 instances per domain for training and reserve the remaining 300 per domain for testing. They concatenate and shuffle the training portions to make an interleaved stream. To study learning with different amounts of feedback, they create ten training subsets covering 10 to 100% of the training data. Those percentages refer to the training split. The held-out examples are used to compare predictions after learning from the selected quantities of training data.

Hyper-parameters are chosen by grid search using 5-fold cross-validation on the training data. The procedure is repeated for 30 different train/test splits. The curves are presented with 95% confidence bands, which the authors use to assess whether the observed performance differences are statistically significant. The design therefore asks about generalization across repeated random splits and shuffled training streams from these domains.

The simplest baseline predicts the mean HTER of the pooled training data for every test item. It has no sentence-specific response. Its role is to establish how much the predictions gain from using the input features at all, given that the overall level of editing can already provide a sensible estimate in the aggregate. The paper notes that a mean predictor can be difficult to beat in regression with heterogeneous data.

The pooled online baseline, STL pool, uses a single PA predictor for all domains. It sees the full mixture and updates that predictor as examples arrive. Pooling allows it to use feedback from every job, but feedback changes the same weights regardless of where it came from. The in-domain baseline, STL in, uses PA independently in each domain. It preserves each task’s separate weights and learns only from that task’s portion of the training data. These baselines let the authors compare PAMTL with both unrestricted pooling and full separation while retaining a common family of online weight updates.

That comparison tests a practical distinction. If the pooled predictor had performed as well as PAMTL, a shared vector would have been sufficient under the tested conditions. If the independent predictors had performed as well throughout, sharing would have offered little measured advantage. An improvement over both makes a stronger case for retaining separate predictions while learning how to route the effect of feedback.

Measuring prediction error

The evaluation metric is mean absolute error, or MAE. The difference between a prediction and the observed HTER is taken in absolute value before averaging. Underestimates and overestimates of the same magnitude contribute the same amount. Lower MAE indicates closer estimates on average.

eᵢ = |ŷᵢ − yᵢ|

The scalar eᵢ is the absolute error for evaluated instance i. The symbol ŷᵢ denotes predicted HTER and yᵢ denotes the HTER calculated from the post-edit. The vertical bars take the absolute value of their difference.

MAE = (Σᵢ eᵢ) ÷ N

MAE is the mean absolute error on the evaluated set. The sum Σᵢ runs over its instances and adds their individual errors eᵢ. The denominator N is the number of instances in that set. The evaluation first obtains MAE on each domain’s test data. The global learning curves average those domain-level errors, and the per-domain curves show the behavior that the average can obscure.

The paper’s tolerance belongs to the training loss. MAE applies to the full absolute difference at evaluation. A small prediction error can therefore count in the reported metric even when it would have been within the tolerance used to decide whether to update the weights. The distinction also makes the fixed mean and the online methods comparable under the same evaluation criterion.

Aggregate performance on held-out sentences

PAMTL-ld and PAMTL-vn follow similar learning curves. The authors report that both outperform the baselines by a statistically significant margin in the average across domains at every training-set size they tested. The strongest baseline is STL in, the online method with separate domain predictors. The largest reported improvement over that baseline is +1.3 MAE for PAMTL-vn with 60% of the training data, measured on the aggregate test comparison. It is a reported gap in MAE, rather than an absolute error value for either method.

The pooled online predictor is the weakest baseline in the aggregate discussion. The paper describes its gap from the best PAMTL variant as around 2 MAE points for almost all training-set sizes. With additional examples, its curve approaches the error of the fixed training-set mean. The comparison makes the effect of the learning arrangement visible. The pooled predictor has access to feedback from all domains and can use sentence features, yet a common set of weights brings little advantage over ignoring those features in this particular mixture. PAMTL has access to the same mixture and can keep the response to features domain-specific.

The aggregate and in-domain comparisons answer different questions about the strength of the result. The aggregate ranking gives the average effect across the four tasks. It can favor multitask learning even if the gain in a particular domain becomes small as that predictor receives more local examples. Conversely, a visible gap on an individual domain need not characterize the others. The authors present both views because the proposed service would have to support each job as well as perform well across the full stream.

How much in-domain feedback buys comparable accuracy

For the per-domain curves, the authors compare the two PAMTL variants with STL in. Both variants behave almost identically within each domain. The paper reports statistically significant gains over the in-domain method when training uses more than 30% of the training data, and gives 210 instances as the count corresponding to 30% in a domain. The high-data portion of the curves qualifies that general pattern. With 100% of the training split, performance converges to comparable levels in the domains other than EM.

The paper also compares methods at different quantities of training data to see how much local feedback is needed for comparable held-out error. With 20% of the training data, PAMTL has 140 examples from the domain being evaluated and 560 examples across all domains. At that setting, the error rates for individual domains are similar to those of the STL baseline trained on 80% of the data, which includes 560 examples from the domain being evaluated. The chart shows the in-domain training count at those reported points of comparable test MAE.

In-domain training instances at comparable per-domain test MAE across the translation datasets

The multitask estimator reaches comparable held-out error with fewer examples from the domain it predicts.

In-domain training instances at comparable per-domain test MAE across the translation datasetsIn-domain online PA at 80% training data: 560In-domain online PA at 80% training data560Online multitask PA at 20% training data (this paper): 140Online multitask PA at 20% training data(this paper)140
The numbers
System or settingin-domain training instances
In-domain online PA at 80% training data560
Online multitask PA at 20% training data (this paper)140

The distinction between local and total feedback is central to this result. The multitask method has informative examples available outside the target domain. Its advantage here is using those examples to reduce the amount of feedback needed from the target job. The total for the multitask stream matches the count the independent predictor receives for the domain being evaluated. The comparison does not establish a reduction in the total number of training labels needed for this particular level of performance.

Educational material shows the clearest lasting separation between the curves. The authors suggest that the variety of writing and topics in EM may make its feature weights useful to other domains and make weights learned elsewhere useful to it. TED also covers multiple topics, yet shows a smaller improvement. The paper follows up on that difference by calculating correlations between the learned task weights, a diagnostic of what the estimator has learned about the tasks.

What the ablations show

Starting to share after independent learning

The timing comparison varies R, the threshold that determines when the interaction matrix starts changing. During cross-validation on the training data, the authors test nine values expressed as percentages of the available training material. The plotted quantity is the advantage of each PAMTL variant over the independent online baseline in MAE. This keeps the analysis focused on when learning interactions helps beyond the base ability to update online.

The two divergence choices behave similarly for most R settings. The paper locates the visible difference between their validation curves at values below 20. It reports that R = 20, with the threshold expressed as 20% of training data, gives the task vectors enough time to settle into a useful starting configuration. The authors use that observation to set R for the final test experiment. The setting governs the start of matrix learning. It is distinct from the percentage of training data used to produce any one point on a test learning curve.

Performance declines at larger R values. Starting late leaves fewer observations on which the estimator can learn interactions and use those interactions to update the task weights. The validation experiment supports both parts of the design within the tested stream. There is value in letting the task vectors develop independently at first, and there is value in making the interaction matrix active early enough to learn from a substantial part of the stream. The experiment selects a setting for these data. It does not establish a universal point at which task weights become ready to share.

There is also a distinction between this timing comparison and removing matrix learning altogether. The independent baseline shows what happens when feedback always stays in its own domain. The R sweep changes when learned transfer starts inside PAMTL. It does not compare the learned matrix with a fixed nondiagonal matrix chosen in advance. The evidence therefore addresses the timing of the proposed transfer mechanism and the difference from isolated training, while leaving the value of learning over particular fixed sharing rules unmeasured.

Changing the divergence

Comparing PAMTL-ld and PAMTL-vn changes the matrix update while keeping the feature representation, task assignments, regression loss and compound weight rule in common. Their similar trends on validation data and their nearly identical per-domain test behavior indicate that the advantage observed in this experiment does not depend strongly on which of the two matrix updates is used. The distinction below 20 in the validation analysis shows where changing that choice had a visible effect.

The +1.3 MAE result at 60% of the training data is attributed to PAMTL-vn. That identifies the method and setting that yielded the reported largest margin. The broader curves support the value of learning with task interactions across both variants. They provide little basis for claiming that one divergence is generally preferable. The comparison concerns prediction error under the experimental conditions and does not establish equivalence in computational cost or in other streams.

The shared PA baselines add another control. The independent baseline can already behave differently across domains and react to each observed label. Comparing it with PAMTL asks whether those two abilities are enough by themselves. The pooled online baseline can already use all the feedback and adapt after each example. Comparing it with PAMTL asks whether simply giving a single predictor more observations is enough. The observed rankings support the combination of task-specific prediction and structured transfer.

Reading the learned task weights

The authors calculate a matrix of correlations between the task weight vectors produced by PAMTL-vn using all the training data. In that diagnostic, EM has the highest correlations with the other domains. TED and IT LSP 2 are less correlated with the rest of the group, although IT LSP 2 is close to the other IT domain. This gives a more specific picture than a division between technical and nontechnical text. A task can have a close partner without being broadly similar to the rest.

The authors connect EM’s pattern of broad correlation to its larger improvement, and TED’s weaker correlations to its smaller gain. The vocabulary statistics make an explanation based on variety alone incomplete. TED subtitles and educational materials both draw on varied topics, yet the correlations of the predictor weights differ. For these experiments, sharing is more directly tied to the relationships among feature weights than to a broad description of a corpus as diverse.

The correlation matrix describes the weights learned after joint training. The trained weights already reflect any transfer that took place. Nor is this diagnostic the matrix Ω or its inverse, which the algorithm uses during training. A high final correlation therefore shows that task predictors ended up emphasizing features in similar ways. Establishing how much a particular source domain caused the reduction in another domain’s test error would require a comparison that changes or removes that source of feedback. The paper does not report such a pairwise intervention.

The same distinction applies to negative transfer. The update permits different signs and allows task relationships to reduce or reverse sharing. The experiments show a benefit for the complete procedure and patterns in the final weights. They do not separately measure how much of the gain comes from carrying compatible updates across tasks, from attenuating incompatible updates, or from allowing weight changes in opposing directions. The reported comparisons locate the advantage at the level of the multitask procedure as a whole.

Limitations

Limits the authors identify

The authors identify a larger collection of domains as the next test of their approach. Their experiments involve four domains, and they explain that finding sufficiently large collections of post-edited examples for more domains was difficult. A broader evaluation would let the estimator encounter a wider range of task relationships. It would also test the initialization and transfer procedure when the collection of known tasks is larger than the one used here.

The paper also notes that there is no canonical way to measure domain correlation. Its discussion uses descriptive text statistics and correlations among the learned weights to interpret the observed gains. Those quantities address different properties. Vocabulary size and sentence length describe the source and target data, while weight correlations describe the regression outcome. Neither independently establishes the transfer value of a domain or supplies a ground-truth relationship against which to score the interaction matrix.

The authors call attention to the shrinking advantage over the in-domain baseline when training data is plentiful. At 100% of the available training data, the per-domain curves become comparable except for EM. Their argument for the independent baseline being less suitable to the application also depends on the cost of collecting more labeled examples and maintaining separate estimation components. The paper evaluates accuracy under different training sizes. The architectural argument and the expense of acquiring feedback are part of its rationale for preferring shared learning.

Limits of the experimental setup

The datasets represent different translation settings, but all use English-to-French examples. The measurements show how joint learning works within that direction and assortment of jobs. A job can differ from another in its subject, engine, provider, translator population and style at the same time. Those factors were not assigned independently. For example, an association between the manual domains can reflect technical style or several other shared properties. The experiment does not isolate a rule for transfer across languages, engines or individual translators.

The task identifier is supplied with the example, and the algorithm begins with a fixed set of tasks. Its ability to adapt continuously concerns weights and relationships within that set. Estimates for a entirely new task with no assigned block, automatically identifying an unlabeled job, and adding tasks to the matrix as a service runs are outside the evaluated procedure. The in-domain data efficiency comparison includes local feedback for every task represented in the estimator.

The shuffled stream is a way of making examples from distinct domains arrive together. It is constructed from recorded data with known labels. That ordering tests online updates under interleaving, but it does not reproduce a particular work schedule or establish performance under extended runs from one domain, delays before feedback arrives, or changes in editing practice over time. A random split also evaluates new sentences drawn from the available domains. The paper does not present a split built to test prediction for an entirely unseen domain or future job.

All tasks contribute the same number of examples to the original training split. The experiment consequently gives each task regular opportunities to develop its weights before and during joint learning. A service in which one domain produces most of the feedback and another produces very little presents a different distribution of updates. The curves comparing training-set sizes show the value of extra-domain feedback under the mixture the authors constructed. They cannot determine how strongly a much larger task would influence a smaller one.

HTER records the changes that were made to a draft and normalizes them by the edited segment’s length. It leaves open how difficult those changes were for the editor, how long they took, and whether accepting the draft was preferable to translating the segment afresh. The estimator is judged by average error on HTER, with symmetric treatment of overestimates and underestimates. The paper does not measure whether its errors would lead to different editing choices, whether quality scores would improve total working time, or how the user interface would affect those decisions.

The authors motivate PA in part through its reported tradeoff between accuracy and computation in earlier work. The experiments here compare prediction errors and the quantity of feedback used. They do not report the speed of updates in a live computer-assisted translation deployment or the scaling of the interaction updates as the number of domains grows. The results bear on the feasibility of the learning design. Deployment performance would also depend on feature extraction, matrix operations and the arrival of user feedback.

Finally, the experiment evaluates the proposed procedure with a specific shared set of features and with online PA comparators. That common setup is valuable for attributing the observed differences to the way the methods use feedback. It leaves open how much the result depends on those features and how large the gain would be with a different regression procedure. Similarly, the text reports selected gaps and thresholds from the learning curves. Those figures support comparisons at the stated settings, while exact absolute errors at arbitrary plotted points are not supplied as numerical results.

What came after

The paper closes by proposing to extend the evaluation to streams involving more domains. That direction follows from the difference between EM, which retained a benefit from joint learning at the largest training size, and the other domains, where the independent predictors caught up in the per-domain comparison. A broader stream would make it possible to examine whether immediate feedback sharing still helps when each domain has more potential partners and the useful ones may represent a smaller part of the stream.

To support replication, the authors made the extracted features, computed labels and PAMTL source code available. The features and labels give later investigators the inputs and target values used for quality estimation. The code gives them the implementation of the training rules. These materials support checking the original comparison and provide a starting point for the larger evaluation the authors propose.

No subsequent studies are documented here, so the record ends with that proposed extension and the materials the authors released.

Cite

Cite as José G. C. de Souza, Matteo Negri, Elisa Ricci and Marco Turchi. 2015. Online Multitask Learning for Machine Translation Quality Estimation. Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/v1/p15-1022

@inproceedings{souza2015online,
  title = {{Online Multitask Learning for Machine Translation Quality Estimation}},
  author = {José G. C. {de Souza}, Matteo Negri, Elisa Ricci and Marco Turchi},
  booktitle = {Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2015},
  doi = {10.3115/v1/p15-1022},
  url = {https://doi.org/10.3115/v1/p15-1022}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/souza-2015-online-multitask-learning-machine-translation/