Elamur Research

Learning Coupled Policies for Simultaneous Machine Translation using Imitation Learning

Paper · 2021 · Philip Arthur, Trevor Cohn and Gholamreza Haffari

Summary

A simultaneous translator has to start working before the speaker finishes. In machine translation, that means deciding, throughout a sentence, whether to ask for more of the source or to commit to the next part of the translation. Waiting can resolve uncertainties about a verb, its negation, or the order of words. Waiting too long defeats the purpose of translating as the input arrives. Arthur and colleagues train two policies to make these decisions together. The programmer decides when to read another source token and when to write. The interpreter supplies the target token on every write. What the interpreter has already written can influence what the programmer does next.

The training data contain source sentences and reference translations, so the authors can use both sides to work out when a target token could reasonably have been written. They start with automatic word alignments, which connect corresponding pieces of the source and target sentences. If a target token has several source links, a training schedule waits until the last linked source token is available. If the relevant source material has already been read, the schedule can write immediately. This alignment-based procedure creates an oracle, meaning a source of example read and write decisions that the programmer can learn to imitate. The reference is available for creating those examples. In ordinary testing, the programmer has to choose its own actions as the source arrives.

Training on clean examples alone leaves both policies unprepared for one another’s mistakes. The authors therefore train with altered action histories, altered target histories, and reordered reading and writing schedules that still consume the entire source and produce the required number of target tokens. On the six translation directions into English, the fully perturbed recurrent system improved the BLEU score over the same system trained on clean trajectories. On the IWSLT German-to-English test set, those scores were 22.38 and 17.53, respectively. The fully perturbed system’s average lagging was 1.80, versus 2.22 for the fixed wait-1 baseline, which scored 14.40 BLEU. The authors also report favorable quality–delay comparisons against fixed schedules when they deliberately train the programmer to wait longer. Experiments with a different architecture and a larger German-to-English corpus preserve the benefit of training the policies together on perturbed trajectories, though the gain on the larger corpus is smaller. A separate test that supplies a reference-derived schedule still scores substantially higher, showing how much depends on the timing decisions the learned programmer can recover by itself.

Deep dive: Learning Coupled Policies for Simultaneous Machine Translation using Imitation Learning

Arthur and colleagues train simultaneous translation systems to decide when to read and when to write by learning from word alignments. · about 35 minutes to read

The problem and its context

Deciding what to do with an unfinished sentence

In the setting the authors study, the input arrives in order and the output must also be built in order. At any moment the translator has a source prefix, meaning the stretch of source tokens it has already read. It also has a target prefix, the stretch of its own translation it has already produced. It can extend the source prefix by reading, or extend the target prefix by writing. Once it writes, the new target token becomes part of the context for later decisions. Choosing when to write can therefore affect the rest of the translation as well as its first few words.

The amount of input needed can change within a sentence. An opening expression may already support an English equivalent, while the next English word may depend on material much farther into the source. A translator that always advances at a prescribed pace has the same timing rule in both situations. The challenge for an adaptive policy is to tell the situations apart from the information it currently has. If the system writes early and gets a word wrong, a later decision has to proceed from that word. If it reads early, the immediate cost is extra delay, and the next write takes place with a different body of source evidence. The two kinds of decisions change the future in different ways.

The paper treats delay and quality as joint concerns. A translation that starts after the full sentence has arrived can use all the source evidence for every target word. A simultaneous system has to make use of shorter stretches of input, sometimes even when it has the capacity to produce an excellent translation of the whole sentence. The authors argue that the interpreter needs practice translating from incomplete input in its own right. The scheduling policy alone cannot turn a translator trained on complete sentences into one that knows how to work with the particular source prefixes it will see in use.

Fixed schedules, adaptive schedules, and revisions

Earlier work gave the authors several ways of framing the problem. One was to fix the schedule and train the translator under it. In wait-k, the system reads an initial number of source tokens, set by k, and then follows a regular alternation of writing and reading while both are possible. Choosing k changes how much the translator sees before it begins. Because the timing rule is known in advance, the interpreter can be trained for those conditions. The paper associates fixed-policy training with work on incremental decoding and with STACL.

Another approach was to learn the scheduling policy around a translator that had already been trained. In this formulation, an agent takes read and write actions and interacts with the underlying translation system. Reinforcement learning trains the agent through a reward that reflects the consequences of its choices. Arthur and colleagues describe sparse rewards as a source of instability in this line of work. They also point out that a fixed interpreter has limited opportunity to adapt to the schedules the agent explores. The paper discusses this approach in connection with Learning to Translate in Real-time and Prediction Improves Simultaneous Neural Machine Translation.

Adaptive scheduling and joint training had also appeared together. The authors discuss Monotonic Infinite Lookback Attention as a system that learns an adaptive policy and retrains the translator. Their related-work discussion also describes approaches that obtain example actions using a pretrained translator. In these approaches, decoding the training corpus can be part of constructing supervision for the agent. Arthur and colleagues identify a different source of supervision in the word links of an already translated sentence pair. The algorithm can work through those links without first asking a translator to generate translations across the corpus.

The paper also considers previous work that allows the system to revise output. Under retranslation, another read can trigger a fresh translation from the newly available source prefix. That makes it possible to correct wording produced with too little evidence, at the cost of potentially changing an ending the reader has already seen. The previous work described in the paper tracks stability through those revisions and uses wait-k inference to constrain how much output is exposed at each stage. Arthur and colleagues study the alternative in which writing extends an existing translation. In that setting, waiting is one of the ways to avoid a commitment that would later need to be revised.

Where the training examples come from

Imitation learning uses examples of what an action policy should do. For this problem, a bilingual training pair directly provides the sequence of target tokens. It does not tell the programmer how to interleave reads with writes. A sentence pair admits many such schedules, including ones that finish reading before the first write and ones that ask the translator to write with very little evidence. An imitation approach needs a way to choose useful schedules from these possibilities.

The paper uses alignments to turn that missing part of the training record into something calculable. A word connection suggests where the evidence for a target token may lie, and the order of the reference determines when that token is due. The resulting schedule combines a fixed requirement, the target must be written in its own order, with a sentence-specific one, the evidence for different target tokens lies in different positions. The training demonstration therefore contains both a translation and a proposed allocation of time for producing it.

The other problem is what happens after a policy deviates from the demonstration. A programmer that has always seen correct translation prefixes during training can encounter unfamiliar prefixes once the interpreter starts producing its own output. An interpreter that has always written on the oracle’s schedule can encounter unfamiliar source prefixes once the programmer chooses when to write. The paper calls this coupled exposure bias. The learning problem bears on the states in which each policy has to act, since those states are partly produced by the other policy. That is the reason for training with several kinds of perturbation rather than changing the action labels alone.

The method, step by step

Two policies share the translation history

The authors call their approach neural programmer–interpreter simultaneous machine translation, or NPI-SiMT. The programmer chooses between two actions. A READ takes the next source token and updates the source representation. A WRITE asks the interpreter for the next target token and updates the target representation. The programmer gets information from both of those representations at its next decision. The term program refers to the ordered sequence of READ and WRITE actions for a sentence.

The two actions advance different counters. A run of READ actions exposes a larger piece of the source while leaving the target unchanged. A run of WRITE actions extends the translation from the same available source prefix. This asymmetry is how the schedule can respond to the sentence. For instance, delaying a write can give the interpreter access to a needed verb. Once that verb is available, several successive target tokens may have enough evidence in what has already been read.

In the recurrent implementation, the source encoder computes a hidden state for every token it consumes. A hidden state is a vector that carries information forward through the sequence. The interpreter’s decoder has its own hidden state for the output produced so far. The programmer also carries a recurrent state, so its next action can reflect the history of the schedule in addition to the current source and target representations. The paper implements both policies with unidirectional long short-term memory networks, abbreviated LSTMs, whose states advance in sequence order. The interpreter uses attention to draw information from the available source states as it writes.

How aligned sentence pairs train both translation policies

The steps in order.

How aligned sentence pairs train both translation policiesStep 1: Segment the source and reference into tokens1. Segment the source and reference into tokensStep 2: Align tokens across the two sentences2. Align tokens across the two sentencesStep 3: Derive a read and write oracle3. Derive a read and write oracleStep 4: Perturb target histories and action histories4. Perturb target histories and action historiesStep 5: Permute the oracle into a valid alternate schedule5. Permute the oracle into a valid alternate scheduleStep 6: Execute the schedule with the interpreter6. Execute the schedule with the interpreterStep 7: Fit both policies to the original targets7. Fit both policies to the original targets

The generation process and its probabilities

The paper’s generation algorithm counts completed reads and writes before selecting another action. The current step count is defined as follows.

t = i + j

Here t is the number of actions completed, i is the number of source tokens read, and j is the number of target tokens written. Both counters start at 0. Counting this way keeps the action history distinct from either sentence’s token positions. A reader can advance through several positions in the program while staying at the same position in the target.

The programmer updates its recurrent state using the previous action and the latest states from the source encoder and target decoder.

sₜ₊₁ = f_prog(sₜ, [aₜ, gⱼ, hᵢ])

The value sₜ is the current programmer state and sₜ₊₁ is the state used for the next action. The function f_prog is the programmer’s recurrent update. The brackets group aₜ, the preceding action, gⱼ, the latest target state, and hᵢ, the latest source state. The indices i and j refer to the counters before the next action. The programmer turns its updated state into action probabilities.

P_prog = softmax(dense_prog(sₜ₊₁))

Here dense_prog maps the programmer state sₜ₊₁ to scores for the available actions. The softmax operation turns those scores into the probability distribution P_prog over READ and WRITE. The generative description selects the next action from that distribution. The reported testing procedure uses search over hypotheses.

If the next action is a READ, the source counter advances and the source encoder makes a new state.

hᵢ = f_enc(hᵢ₋₁, xᵢ)

In this equation i is the source counter after the read, xᵢ is the newly available source token, and hᵢ₋₁ is the encoder state before that token. The function f_enc combines them to produce the new encoder state hᵢ. The target counter stays where it was, so reading changes the context for future writing without extending the translation.

If the action is a WRITE, the target counter advances and the interpreter makes a new decoder state.

gⱼ = f_intp(gⱼ₋₁, yⱼ₋₁, h≤ᵢ)

Here j is the position being written, gⱼ₋₁ is the preceding decoder state, and yⱼ₋₁ is the preceding target token. The notation h≤ᵢ denotes the encoder states through the latest available source position i. The function f_intp is the decoder update, and gⱼ is the state from which it predicts the target token at position j.

P_intp = softmax(dense_intp(gⱼ))

The function dense_intp turns gⱼ into scores for candidate target tokens, and softmax converts those scores to the distribution P_intp. A target token yⱼ selected using that distribution can affect the next decoder update. Moreover, the programmer receives the latest decoder state when it makes another timing decision. An unexpected target token can thus matter for both the wording and the schedule.

The paper’s joint probability combines action decisions and token decisions. The following notation makes the item predicted at each step explicit. Here the counters describe the prefixes available just before that step, so the next token on a WRITE has index jₜ + 1.

P_SiMT(y, a ∣ x) = [∏ₜ₌₁…|x|+|y| P_prog(aₜ ∣ a<t, x≤iₜ, y≤jₜ)] × [∏ₜ:aₜ=WRITE P_intp(yⱼₜ₊₁ ∣ a≤t, x≤iₜ, y≤jₜ)]

The sequence x is the source, y is the target, and a is the full action sequence. Vertical bars around a sequence indicate its length, and the conditioning bar separates an item to be predicted from the information available to the predictor. The index t now labels the action being scored. The expressions a<t and a≤t denote the actions before t and the actions through t, respectively. The terms x≤iₜ and y≤jₜ are the available source and target prefixes before that action. The first product, indicated by ∏, includes the programmer probability for each aₜ in the schedule. The second includes an interpreter probability only when aₜ is WRITE. The multiplication combines all those factors into the conditional probability P_SiMT. Although the interpreter term can be written with the action history in its conditioning information, the effect of that history in the implementation is through the source and target states made available by executing the schedule.

This factorization explains what is coupled in the system. A READ affects which source evidence will be available when the interpreter next has to predict a token. A WRITE affects what the programmer will see in the target state at its next decision. The two products score different decisions, but the conditions in those products come from the same unfolding translation.

Turning alignments into an oracle schedule

For oracle construction, the authors begin with the source and reference after subword tokenization. A sub-word token can be a whole word or a piece of one. The segmentation unit matters because the alignments connect these tokens, and READ and WRITE advance by those same units. The authors use SentencePiece to segment the text and fast_align to obtain symmetrized links between source and target tokens. Symmetrization combines alignment information from the two translation directions into a common set of links. The schedules used for learning are built from that set. The authors release their oracle implementation in the arthur-eacl2021 repository.

The oracle works through the reference in target order. For each next target token it examines the source positions connected to that token. When there are several links, it chooses the rightmost source position. That choice covers the other linked positions as well, because reading the source through the rightmost one necessarily reveals everything before it.

δⱼ = max {i ∣ (i, j) ∈ A}

The set A contains the aligned source–target position pairs. Inside the braces, i is a source position and j is the target position currently being processed. The symbol ∈ means that the pair belongs to the alignment set. The operation max chooses the largest eligible i, and δⱼ is that rightmost source position. When the set for a target token is empty, the oracle requests no extra read for that token. That rule treats the read prefix and target history as sufficient for the demonstration at that point.

For a target token with a link, the amount of reading to do depends on the most recent source position already reached.

rⱼ = max(0, δⱼ − δ_READ)

Here rⱼ counts the READ actions to insert before writing the token at position j. The value δ_READ records the last source position reached. The subtraction gives the distance from that position to δⱼ, and max with 0 makes the number of new reads zero when the linked position is already available. The oracle starts δ_READ at −1 because source indexing in its algorithm begins at 0. After any required reads, it records how far it has reached and emits a WRITE. Target positions whose alignment set is empty insert a WRITE directly.

The source frontier never moves back. When an early target token links to a late source token, the oracle must read through the intervening material, even if that material aligns to words that will be written later. Those later targets can use what is now in the prefix. This is how the scheme handles crossings in an alignment. It can defer the first output of a reordered phrase until enough source material arrives, then write several parts of the phrase in target order. A schedule may therefore contain runs of consecutive reads and runs of consecutive writes even when the full sentences have roughly comparable lengths.

The authors require the oracle schedule to consume the whole source and cover the entire target. They also require an opening READ and an ending WRITE. They describe enforcing the boundary behavior by linking the first tokens of the parallel sentences and doing the same at the last positions. The opening link gives the first target token a source dependency. The final link ensures that by the time the oracle writes the last target token, the source has been consumed. These boundary conditions make the oracle usable as a program for the sentence pair.

Learning from the demonstration

With an oracle in hand, the simplest procedure is behavioral cloning. The programmer learns to predict the oracle action from the state that precedes it. The interpreter learns to predict the reference token at each oracle WRITE. The source sentence, target sentence, and action sequence together specify the decisions and the histories on which to train. The objective takes the logarithm of the probability factors and adds them over the training examples.

(θ*prog, θ*intp) = arg max_(θprog, θintp) ∑_(x,y,a)∈D [∑ₜ₌₁…|x|+|y| log P_prog(aₜ ∣ a<t, x≤iₜ, y≤jₜ; θprog) + ∑ₜ:aₜ=WRITE log P_intp(yⱼₜ₊₁ ∣ x≤iₜ, y≤jₜ; θintp)]

The set D is the collection of source sentences x, references y, and their oracle schedules a. The programmer parameters are θprog and the interpreter parameters are θintp. The stars identify the parameters selected by the objective, and arg max asks for the parameter values that maximize it. Each ∑ is a sum, and log is the logarithm. As in the joint probability, t indexes an action. The counters iₜ and jₜ describe the source and target prefixes at that step, and a<t is the schedule history before it. The programmer contributes a log probability for each oracle action. The interpreter contributes a log probability for the next reference token yⱼₜ₊₁ at each oracle WRITE. In this training objective, the source prefix given to the interpreter already incorporates the effect of the oracle schedule.

This procedure teaches the policies to act on clean histories. At test time they can enter states that these training examples rarely represent. For example, if a programmer writes early, the interpreter may have to choose a word with less source evidence than it had on the example schedule. Its choice then feeds the programmer’s next decision. A late read can also matter, since the interpreter may enter the next write with a longer source prefix than it usually saw at the corresponding point in training. The perturbation procedure gives both policies some practice on such departures.

Three kinds of altered training context

The first two perturbations are forms of scheduled sampling. The authors take the reference target history and replace some tokens with draws from the interpreter’s predictive distribution. They denote that altered history by y′. They also replace some oracle actions with draws from the programmer’s predictive distribution, creating an altered action history a′. The histories are inputs to the respective recurrent computations. The reference tokens and oracle actions still determine what those computations are trained to predict.

The authors distinguish the action history a′ from an action sequence that can actually be executed on the sentence pair. A sequence obtained by replacing individual actions can have the wrong number of READs or WRITEs. Executing it might ask for more source tokens than exist or fail to provide a prediction position for every target token. That is a separate issue from whether such a sequence is useful as a noisy input history. The paper imposes a count condition on schedules passed to the interpreter.

(#READ(a″), #WRITE(a″)) = (|x|, |y|)

Here a″ is a perturbed program intended for execution. The expressions #READ(a″) and #WRITE(a″) count the respective actions in it, while |x| and |y| are the source and reference lengths. The two ordered pairs must agree in both components. The authors also preserve the domain conditions on the beginning and end of a valid program.

To create a″, the algorithm uses Bernoulli sampling to select actions for perturbation and permutes actions from the oracle. A Bernoulli draw makes a yes-or-no selection with a specified probability. Permuting preserves the counts while changing when some reads and writes happen. The effect on a write is concrete. In the altered schedule, the interpreter may see a different source frontier at the same target position. Since the number of writes stays fixed, the prediction at each write still has a corresponding reference token.

The paper’s programmer objective uses the sampled action history and interpreter context obtained from the altered execution. In the expression below, the schedule that supplies the prefix states is a″.

θ*prog = arg max_θprog ∑_(x,y′,a,a′,a″) ∑ₜ₌₁…|x|+|y′| log P_prog(aₜ ∣ a′<t, x≤iₜ, y′≤jₜ; θprog)

The outer sum ranges over the training sentence pairs and their perturbations. The original oracle is a, and its action aₜ is the prediction target at position t. The term a′<t is the sampled action history before t. The prefix x≤iₜ contains the source tokens visible at the state supplied to the programmer, and y′≤jₜ supplies the perturbed target context for that state. The counts iₜ and jₜ reflect the execution used to produce those states. The value |y′| is the length of the altered target history, which has a position for each reference token. The symbols θprog and θ*prog denote the programmer’s parameters and the values sought by maximizing the summed log probabilities.

The interpreter is trained at the write positions of the executable schedule. Its own sampled target history can be altered independently of that schedule.

θ*intp = arg max_θintp ∑_(x,y,y′,a″) ∑ₜ:a″ₜ=WRITE log P_intp(yⱼₜ₊₁ ∣ x≤iₜ, y′≤jₜ; θintp)

In this expression x and y are the source and reference. The sequence y′ contains sampled replacements in the target history, and a″ is the executable perturbation. The inner sum visits steps t where a″ₜ is WRITE. The index jₜ counts the earlier writes in that execution, so yⱼₜ₊₁ is the corresponding next reference token. The term y′≤jₜ is the altered prefix available before that write, and x≤iₜ is the source prefix that the perturbed timing has made available. The interpreter parameters θintp are optimized to find θ*intp by maximizing these log probabilities over the training examples.

In the training algorithm, the interpreter runs first with x, y′, and a″. This produces token predictions, the source encodings, and the sequence of decoder states. The programmer then predicts actions using the source and decoder states together with a′. The interpreter update compares its token predictions with y, and the programmer update compares its predicted actions with a. Keeping the two target sequences fixed gives each prediction position a training label while allowing the histories and timing around that position to vary.

Architectures, optimization, and decoding

For the main recurrent experiments, the programmer and interpreter each use a single LSTM layer with 512 hidden units. The paper follows the earlier recurrent translation architecture associated with Luong and colleagues and uses the multilayer perceptron attention associated with Bahdanau and colleagues. The hidden units are the dimensions of the recurrent representation. Dropout, which randomly suppresses activations during training, is 20% at the network output and 10% on the embedding vectors that represent individual input symbols.

The authors use Adam to update the parameters. The programmer and interpreter have separately tracked learning rates, starting at 0.001. The rate is halved when development-set perplexity rises. Perplexity reflects how much probability the system assigns to the observed sequence, with a rise indicating a worse score. The authors stop at the fourth learning-rate decay. The recurrent runs use fixed perturbation probabilities of 5% for y′, 15% for a′, and 15% for a″.

At test time the authors use beam search with a beam size of 5. Beam search keeps a limited collection of partial hypotheses in contention as generation proceeds. The search uses length normalization, dividing the hypothesis score by its length. That decoding procedure is distinct from the choice of training schedule. In the ordinary learned-policy condition, the reference-derived program is no longer supplied when translating the test sentence.

The architecture experiments replace recurrence with a Transformer. The interpreter has a 6-layer encoder–decoder architecture, and the programmer uses a 6-layer encoder with a binary classifier for the action. Attention is restricted to the available time history. The program additionally masks source tokens the interpreter has yet to read, so the interpreter cannot use their contents for the current write. The difference in architecture preserves the restriction that defines the simultaneous task.

The Transformer runs use 30% dropout in the networks and 10% in the embeddings, a 16k vocabulary, and an average batch size of 4k. They warm up the learning rate for 8k steps and train for 200k steps, with a 50-token maximum per sentence during training. A single pass of parallel scheduled sampling supplies a′ and y′. For these runs the perturbation rates are 10% for y′, 15% for a′, and 25% for a″. Using one V100 GPU, training took no more than 20 hours, according to the report. The settings differ from the recurrent runs in several respects, so a comparison across architectures measures the resulting configurations as a whole.

Experiments and results

Corpora and test conditions

All six translation directions in the main quantitative evaluation have English as their target. The source languages German, Czech, and Arabic come from IWSLT 2016. The authors keep the supplied training and development partitions and concatenate the available test sets to make their test partition. The IWSLT material is the paper’s speech-oriented, carefully edited evaluation setting. It gives the authors parallel sentences suited to studying source and target prefixes with fixed references.

The remaining directions use SETIMES, with Hungarian, Bulgarian, and Romanian as sources. Because that corpus comes without the partitions needed for the experiment, the authors make their own. They hold out 2000 randomly chosen sentence pairs for development and another 2000 for testing, using the remaining majority for learning. Those samples have different roles. The development set is used during training decisions such as learning-rate adjustment, while the test set supplies the final comparison. For the main corpora the segmenter uses a 16k vocabulary, and alignment and oracle construction follow segmentation.

The Transformer experiments use German-to-English data in both conditions. One changes the architecture on IWSLT, leaving the authors with an architectural comparison on that corpus. The other uses WMT 2015, with 4.5 million German–English parallel sentences. The WMT experiment tests whether the oracle and perturbed training are usable at a larger scale. It also changes the kind of text being translated. The authors characterize WMT as a crawled collection of matched texts and distinguish it from the speech-oriented material used in the main experiment.

Measuring quality and waiting

The quality measure is case-sensitive BLEU, computed with sacrebleu. BLEU evaluates overlap between system translations and their references at the corpus level. This lets the authors compare output under different timing conditions with the same scoring procedure. The qualitative example also matters because the aggregate score cannot locate the timing decision responsible for a particular mistranslation.

The paper reports three ways of summarizing delay in the main experiment. Average proportion (AP) measures the share of the total source length already read, averaged over the points when the translation produces tokens. Average lagging, or AL, measures a delay in source-token terms and averages up to the point when the input has been fully read. Differentiable average lagging, or DAL, extends the accounting to include the cost of target outputs produced after all source tokens have been read. The measures can respond differently to the same schedule. For example, a change that mainly affects the last stretch of writing can have a different effect on DAL than on AL.

The comparisons therefore have two axes. A higher BLEU score indicates greater agreement with the references under the scoring procedure. A lower delay value indicates earlier output according to the corresponding measure. A fixed policy can frequently buy higher BLEU by starting later. The question for an adaptive policy is what quality it reaches for the amount of waiting it incurs. A BLEU-only figure can show how much quality changes, but the accompanying delay identifies whether the comparison is between systems in a similar operating region.

Fixed waits and learned timing

The recurrent wait-k baselines cover values from k = 1 through k = 7, together with the offline wait-∞ condition. After the initial k READ actions, the fixed policy alternates a WRITE with a READ while there is source left and the translation has yet to end. When it has exhausted the input, it continues writing until it emits the end-of-sentence symbol. The offline configuration reads the entire sentence before writing. It supplies a useful quality comparison at a much higher delay.

On the IWSLT German-to-English test set, the fully perturbed recurrent system obtains 22.38 BLEU. Its delay scores are 4.04 DAL, 1.80 AL, and 0.57 AP. Wait-1 gives 14.40 BLEU at 3.74 DAL, 2.22 AL, and 0.61 AP. Under AL and AP, the learned system combines higher quality with less waiting in that comparison. Under DAL, wait-1 has the lower value. Wait-2 has 4.01 DAL, close to the learned system’s 4.04, and gives 18.67 BLEU. Wait-3 exceeds the learned system’s delay on all three measures in this test and scores 21.13 BLEU. Wait-4 reaches 24.21 BLEU at 5.03 DAL and 4.32 AL, illustrating the higher-quality region reached by providing more source context at the outset.

Recurrent systems on IWSLT German-to-English test BLEU

The coupled system scores above the shorter fixed waits and below the longer wait shown.

Recurrent systems on IWSLT German-to-English test BLEUWait-1: 14.40Wait-114.40Wait-2: 18.67Wait-218.67Wait-3: 21.13Wait-321.13Coupled scheduled sampling (this paper): 22.38Coupled scheduled sampling (this paper)22.38Wait-4: 24.21Wait-424.21
The numbers
System or settingBLEU
Wait-114.40
Wait-218.67
Wait-321.13
Coupled scheduled sampling (this paper)22.38
Wait-424.21

The Czech-to-English IWSLT result shows the same need to read the score together with the delay. The fully perturbed system scores 18.97 BLEU, with 3.24 DAL, 1.32 AL, and 0.56 AP. Wait-2 scores 15.90 BLEU at 4.21 DAL, 3.20 AL, and 0.66 AP. Wait-4 comes closer in quality at 18.54 BLEU, while its AL is 4.72. On Arabic-to-English, the learned system reaches 20.47 BLEU and 1.15 AL. The wait-2 result is 19.46 BLEU and 3.44 AL. Wait-3 obtains 22.11 BLEU and 4.21 AL. These rows locate the learned configurations among different fixed-wait choices instead of treating all fixed waits as a single performance point.

The SETIMES results extend the comparison. On Hungarian-to-English, full perturbation obtains 35.38 BLEU with 3.96 DAL, 1.84 AL, and 0.56 AP. Wait-2 has a similar DAL of 3.99 and scores 28.50 BLEU. On Bulgarian-to-English, the learned system scores 34.67 BLEU at 4.72 DAL and 1.84 AL. Wait-3 reaches 26.79 BLEU with 4.90 DAL and 3.35 AL. On Romanian-to-English, the learned system produces 37.92 BLEU with 4.98 DAL, 2.38 AL, and 0.57 AP. Wait-4 records 34.74 BLEU at 5.12 DAL, 3.83 AL, and 0.64 AP. These comparisons are particularly informative for a translator operating under a delay budget, because the fixed wait with the closest delay can differ by direction and metric.

Changing how much the oracle waits

The authors also test the adaptive approach over a range of intended delays. They take the last READ in each oracle program and move it to the start. Repeating the operation yields programs with more initial reading. The number of source tokens stays the same, and the order in which the source is read stays the same. What changes is the interleaving of the source reads with the target writes. The paper plots separately trained systems using oracle settings with added delays of 0–5.

These are training conditions. The programmer learns from a different schedule at each setting, so the experiment tracks what happens when it is taught to use more context. The resulting systems trace a quality–delay curve across the plotted configurations. The authors report that the systems trained from the delayed oracles compare favorably with the wait-k curves for all six directions. That evidence is broader than a comparison with the fastest fixed schedule, because the learned method is evaluated after deliberately giving it room to spend more time on translation.

What a supplied oracle reveals

In the oracle-at-test condition, the interpreter receives the schedule derived from the test sentence and its reference. The reference target words themselves still have to be predicted by the interpreter. The schedule has access to reference-dependent alignment information, however, which lets it signal when to finish reading a useful stretch of source and begin writing. This is a diagnostic of translation with the oracle’s timing and a reference point for the quality that the learned programmer leaves unrealized.

On IWSLT German-to-English, oracle-at-test reaches 30.53 BLEU at 3.66 DAL and 1.72 AL. The recurrent offline wait-∞ system gives 28.05 BLEU at 21.67 AL. On Czech-to-English, oracle-at-test scores 23.17 BLEU at 1.50 AL, while the offline baseline scores 20.85 BLEU at 20.91 AL. The analogous Arabic-to-English scores are 25.63 BLEU at 1.49 AL for the supplied oracle and 23.54 BLEU at 19.98 AL offline. In those comparisons the oracle provides something beyond a count of the source tokens seen so far. Its sentence-specific timing can act as a signal about where a useful unit of translation is available.

On the SETIMES test sets, oracle-at-test scores 44.98 BLEU for Hungarian, 46.68 for Bulgarian, and 50.31 for Romanian. The corresponding AL values are 1.84, 1.92, and 2.10. The Bulgarian case illustrates the distinction between aggregate delay and the usefulness of a schedule. The learned full-perturbation system has 1.84 AL, while the oracle-at-test run has 1.92 AL and considerably higher BLEU. The oracle’s advantage under this comparison concerns which tokens it waits for and how that wait lines up with the target sequence. A corpus-average delay alone cannot represent those decisions.

The Transformer and the larger corpus

On the IWSLT German-to-English test set, the fully perturbed Transformer scores 24.54 BLEU, at 1.78 AL and 0.57 AP. The recurrent version scores 22.38 BLEU at 1.80 AL and 0.57 AP. The two full systems thus occupy similar regions under the reported delay measures, with higher BLEU for the Transformer configuration. Within the Transformer runs, wait-4 gives 21.14 BLEU at 4.10 AL, and wait-6 gives 24.16 BLEU at 5.68 AL. The Transformer oracle-at-test condition reaches 30.68 BLEU at 1.79 AL. It retains a quality advantage over the learned programmer even with the near match in their aggregate AL values.

On WMT German-to-English, the plain NPI system scores 17.57 BLEU at 3.25 AL and 0.59 AP. Full perturbation gives 19.07 BLEU, 3.27 AL, and 0.59 AP. Wait-3 records 18.30 BLEU at 2.95 AL, while wait-4 gives 19.09 BLEU at 3.66 AL. The full system on this corpus falls between those fixed waits on AL and comes close to the quality of wait-4. The supplied oracle reaches 27.09 BLEU at 2.75 AL, and the offline Transformer gives 22.51 BLEU at 29.49 AL. The larger experiment thus reproduces the improvement over clean imitation and the gap to reference-guided timing. The placement among wait-k settings is less favorable than in the IWSLT Transformer experiment.

Transformer systems on WMT German-to-English test BLEU

Coupled scheduled sampling improves on clean imitation and nearly matches the longer fixed wait shown.

Transformer systems on WMT German-to-English test BLEUNPI with clean imitation: 17.57NPI with clean imitation17.57Wait-3: 18.30Wait-318.30Coupled scheduled sampling (this paper): 19.07Coupled scheduled sampling (this paper)19.07Wait-4: 19.09Wait-419.09
The numbers
System or settingBLEU
NPI with clean imitation17.57
Wait-318.30
Coupled scheduled sampling (this paper)19.07
Wait-419.09

The authors associate the higher delay of the learned WMT system with a higher-delay oracle. In the Transformer experiments, oracle-at-test AL is 2.75 for WMT and 1.79 for IWSLT. WMT contains longer parallel sentences and was constructed by matching offline, post-edited texts. The paper offers this difference in data as an explanation for why the associated schedules tend to wait more, while the experiment itself changes several properties of the corpus together.

What the ablations show

Altering the action history versus altering execution

The recurrent ablations distinguish two ways to expose the programmer and interpreter to imperfect timing. Perturbing the programmer’s action history with a′ changes the actions it sees as inputs to its recurrence. Executing a″ changes what source evidence the interpreter has when it writes and the states that the programmer subsequently receives. The settings begin with clean imitation and add each action perturbation separately, then combine them. A final setting adds the perturbed target history y′ to the combined action perturbations.

On Romanian-to-English in SETIMES, clean imitation gives 24.60 BLEU. Perturbing the action history alone gives 30.47, and the valid schedule perturbation alone gives 34.05. Combining those two action perturbations reaches 35.97, and adding the target history perturbation reaches 37.92. The pattern supports a role for training the interpreter on altered timing. Its advantage in quality comes with a change in waiting in the isolated a″ condition. The valid schedule perturbation alone has 7.45 DAL and 3.43 AL, compared with 5.81 DAL and 2.46 AL for clean imitation. With both action perturbations and y′, those delays are 4.98 DAL and 2.38 AL. The setting with every perturbation performs better on both quality and the reported lag measures than the setting that uses only altered execution.

Scheduled sampling ablation on SETIMES Romanian-to-English test BLEU

Both action perturbations contribute to the strongest combination, and perturbing the target history adds a further gain.

Scheduled sampling ablation on SETIMES Romanian-to-English test BLEUClean imitation: 24.60Clean imitation24.60Perturbed action history only: 30.47Perturbed action history only30.47Valid schedule perturbation only: 34.05Valid schedule perturbation only34.05Both action perturbations: 35.97Both action perturbations35.97Both action perturbations and perturbed target history (this paper): 37.92Both action perturbations and perturbedtarget history (this paper)37.92
The numbers
System or settingBLEU
Clean imitation24.60
Perturbed action history only30.47
Valid schedule perturbation only34.05
Both action perturbations35.97
Both action perturbations and perturbed target history (this paper)37.92

The contrast between a′ and a″ varies by direction. On Bulgarian-to-English, the action history perturbation yields 30.73 BLEU and the valid schedule perturbation yields 32.97 BLEU. Their DAL values are 4.25 and 6.80, respectively. With both perturbations, BLEU reaches 33.78 at 4.69 DAL. On Hungarian-to-English, the individual scores are 30.66 BLEU for a′ and 33.45 for a″, and the combination reaches 33.69. In the German-to-English recurrent run, a′ alone scores 20.89 and a″ alone scores 20.83. The combination scores 22.37. The authors’ interpretation that altered execution is especially important is supported by several directions, while the German result illustrates the closeness of the two individual perturbations in one setting.

The clean-imitation rows also explain why the timing and translation metrics need to be examined together. On IWSLT Arabic-to-English, clean imitation has 1.34 AL and 15.78 BLEU. The full setting improves to 20.47 BLEU and records 1.15 AL. In this case the trained programmer already gets a low aggregate delay without perturbation, yet the translation suffers. The gain from learning under perturbed contexts is consistent with recovery from errors in deciding exactly when to write, rather than with learning to wait much longer on average.

Changing the target history

The addition of y′ improves recurrent BLEU in each of the six directions when compared with the setting that already has both action perturbations. The gain varies markedly. On German-to-English, those settings score 22.37 and 22.38 BLEU. On Arabic-to-English, they score 19.33 and 20.47. On Hungarian-to-English, they score 33.69 and 35.38. The result supports training the interpreter on some of its own predicted wording, especially where clean target prefixes would leave it poorly prepared for its earlier choices during decoding.

The latency changes are more mixed than the BLEU changes. Bulgarian-to-English goes from 4.69 DAL and 2.18 AL with the action perturbations to 4.72 DAL and 2.26 AL after y′ is added. AP is 0.56 in both settings. Hungarian-to-English goes from 4.23 DAL and 2.00 AL to 3.96 DAL and 1.84 AL. These rows show why the paper’s general description of improved accuracy at slightly reduced delay is best read as a tendency. The consistent recurrent observation is the direction of the BLEU change. Whether a particular delay measure also falls depends on the language direction and the configuration.

The Transformer runs add a check on whether these effects survive a change of architecture. On IWSLT German-to-English, clean imitation gives 22.06 BLEU and a′ alone gives 21.40. The valid program perturbation yields 23.28, the combined action perturbations give 23.82, and adding y′ results in 24.54. The action history perturbation can therefore participate in a higher-scoring combination even when its isolated setting has a lower BLEU score than clean imitation. The controls show the performance of each tested configuration. They leave open how the value of each perturbation changes when its probability is tuned separately or when the target history is also perturbed in other combinations.

Training jointly from the start versus adapting a fixed-wait system

Another comparison starts from translators already trained with wait-k. The authors then fine-tune them with the oracle programs and scheduled sampling. This warm start is attractive because the authors report convergence in few iterations when a pretrained wait-k system is available. Both the interpreter and programmer are allowed to adapt. The paper reports poor BLEU when the interpreter is held fixed during this process.

Starting from different wait-k settings produces similar fine-tuned outcomes in the plotted comparison. These runs give worse quality and delay than the main coupled system trained from scratch without additional oracle delay. The authors suggest that the interpreter may have settled into behavior suited to the original fixed timing and have difficulty changing it during fine-tuning. That is an explanation for the observed result. The comparison itself establishes that the tested warm starts fall short of the jointly trained system, and the authors report that removing scheduled sampling from fine-tuning makes the outcome worse still.

The warm-start experiment addresses a practical question that a comparison against wait-k alone leaves open. One might already have an interpreter accustomed to translating prefixes and want to learn a better schedule for it. The result suggests that prior prefix training gives a usable starting point, while the particular prefixes and timing of that prior training still matter. A system adapted from a clock-like schedule has a different training history from one that learns translation and timing from the same sentence-specific oracle throughout.

Following the action trace in an individual sentence

The German example in the paper shows why a similar overall delay can produce different translations. The authors compare wait-2, the coupled system, and oracle timing on a sentence with a verb and its negation late in the relevant source stretch. The settings are described as having AL roughly 2 and DAL roughly 4. The table groups consecutive reads and writes so a reader can see the source frontier when a problematic target word is chosen.

In the wait-2 trace, the latest source content at an important decision is the German word for composition. The system produces the English verb look from that prefix. The intended meaning involves changing the composition of the soil, with a negation that occurs near the source verb. The predictive problem therefore concerns both the event and its polarity. A fixed read–write alternation can land at a point where neither is adequately supported.

The oracle schedule holds back output until the source provides enough of the phrase, and the coupled system in this example waits long enough to produce the verb and negation correctly. The learned trajectory is more conservative than the oracle’s at one point. That behavior clarifies what imitation means in this setting. The programmer can achieve the useful effect of the demonstration, obtaining evidence before committing, even when its sequence of actions differs. The example identifies a plausible mechanism for better quality at low average delay. One sentence cannot establish how frequently the same mechanism accounts for the aggregate results.

The English-to-Dutch illustration isolates another alignment pattern. The source auxiliary have supports writing heb early. The target participle gewerkt comes later, by which point the English worked can already be in the read prefix. The oracle can then write the Dutch participle without another read. In the German example, reordering holds back a stretch of output. In the Dutch illustration, some of the reordered evidence can be read in advance of the moment it is needed. Together the examples show how the same rightmost-link rule creates different schedules from different alignments.

Limitations

Limits identified by the authors

The authors leave the effect of alignment quality open. The oracle depends on the links provided by the aligner, and automatic links can be missing or wrong. A missing link may let the oracle write while useful source evidence is still unavailable. A spurious link to a later source position can make the demonstration wait longer than needed. Either error changes the states from which the interpreter learns to produce reference tokens. The authors discuss these consequences qualitatively and call for work comparing different alignment procedures and methods of symmetrizing their links.

The paper’s headline comparison uses wait-k. The authors identify monotonic infinite lookback attention as a stronger approach and leave a direct comparison for future work. At the time of their study, they report that open-source code for that approach was unavailable, and they point to its different end-to-end formulation. The results establish the behavior of the proposed method against the fixed waits tested in the paper. Its relative performance against the stronger adaptive alternative remains an open comparison.

The authors also distinguish the experimental task from translation directly from speech. Their policies receive segmented sequences and take actions at token boundaries. A deployment on live audio would have to contend with how verbal input becomes available to the translator. The paper proposes real speech input as future work. Even in the text-based experiments, the authors note that WMT provides a different approximation of simultaneous input. The sentence pairs are longer and drawn from offline and post-edited material. This makes the larger corpus evidence for running the training approach at scale, with a limited connection to live interpretation conditions.

Computational resources also constrained the Transformer experiment. The authors trained on a single GPU and explain that this prevented the use of the larger batches they could have used with multiple devices. They note that a smaller batch can reduce Transformer performance. The reported WMT comparison consequently describes the tested training regime. It leaves open how the various systems would compare under different computational budgets.

Limits visible in the experimental setup

An oracle built from alignments defines a sufficient prefix according to a specific rule. A link locates a correspondence, and the latest linked source position tells the algorithm how far to read. The rule does not establish how little evidence an interpreter truly needs to produce a correct word. A translator might infer a target token before its linked source arrives. Conversely, relevant information about the token’s sense, role, or polarity might lie outside the sources directly linked to it. The schedule is therefore best understood as a demonstration grounded in available alignments. A claim that it is the minimal correct schedule for every sentence would require evidence beyond that rule and the reported experiments.

Oracle-at-test must likewise be interpreted according to its information access. The schedule reflects alignments to a translation that is known in advance. Even when the interpreter has to generate its own tokens, the timing can convey where the reference calls for a change of segment or a burst of output. The oracle-at-test score is a diagnostic for the tested interpreter with that guidance. A general upper bound over every possible simultaneous strategy would require a different argument. An above-offline oracle score is consistent with reference-derived scheduling signals and does not establish that a learned streaming system can routinely exceed a full-sentence translator.

The language coverage is broad on the source side of the main evaluation, while every measured direction ends in English. The English-to-Dutch example shows that the oracle construction can be illustrated when the target places a verb late. A single illustrative alignment provides no corpus-level quality or delay comparison for that direction. Claims about translation into languages with substantially different target ordering therefore remain open. Because different source directions also use different corpora, the results alone cannot isolate how much of a cross-language performance difference comes from syntax and how much comes from the data.

The latency measures count the progress of tokens through a schedule. They show how early or late output appears relative to input consumption under the tested representation. The study gives no measure of elapsed listening time for a human audience or of latency added by speech recognition and system response. Moreover, case-sensitive BLEU measures reference agreement over a corpus. The German trace illustrates the importance of a local error such as a wrong verb or lost negation, but the aggregate experiments do not give its frequency or the frequency of other specific error types. Good scores on the reported axes support comparisons under those axes, leaving user-facing timing and adequacy to further evaluation.

Finally, the training perturbations are approximations to the contexts encountered at test time. An executable permutation can show the interpreter what it is like to write at a different source frontier. Sampled action and target histories expose the policies to some of their own predictions. The resulting examples do not constitute a full joint rollout in which the programmer and interpreter repeatedly react to each other’s evolving mistakes under the learned policy. A richer form of imitation learning based on trajectories generated by both policies is one of the extensions the authors propose. The gap between learned and oracle-at-test performance gives that open problem a concrete form. Similar average delays can coexist with large differences in the quality of the sentences the system produces.

What came after

No later citing work is identified, so subsequent adoption or extension of the alignment oracle and coupled training procedure cannot be assessed.

Cite

Cite as Philip Arthur, Trevor Cohn and Gholamreza Haffari. 2021. Learning Coupled Policies for Simultaneous Machine Translation using Imitation Learning. Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.eacl-main.233

@inproceedings{arthur2021learning,
  title = {{Learning Coupled Policies for Simultaneous Machine Translation using Imitation Learning}},
  author = {Philip Arthur, Trevor Cohn and Gholamreza Haffari},
  booktitle = {Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume},
  year = {2021},
  doi = {10.18653/v1/2021.eacl-main.233},
  url = {https://doi.org/10.18653/v1/2021.eacl-main.233}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/arthur-2021-learning-coupled-policies-simultaneous-machine/