Language Models not just for Pre-training: Fast Online Neural Noisy Channel Modeling
Paper · 2020 · Shruti Bhosale, Kyra Yee, Sergey Edunov et al.
Summary
A translation can read naturally and still say something the source never said. In machine translation, a separate language model can help a system produce fluent sentences by scoring how plausible they are in the target language. That score leaves open a different question about whether the sentence fits the input. Bhosale and colleagues study a way to ask both questions as a translation takes shape. Their system proposes translations in the usual direction, then uses a reverse translator to ask how well each proposal predicts the source. This reverse check is the central ingredient of noisy channel decoding. The paper’s contribution is to make the check cheap enough to use during search.
The cost comes from the work the reverse translator must repeat. Ordinary decoding extends a partial translation by a token. The reverse translator takes that changing partial translation as its input and scores the entire source sentence against it. Doing this for several possible continuations at every step creates a large computation, much of it spent on vocabulary entries that do not occur in the source. The authors make the reverse translator smaller, restrict its scoring vocabulary to the source tokens in the current batch and commonly occurring tokens, and send it fewer continuations to check. The forward translator and the target-language scorer still take part in each decision.
On WMT German-to-English, fast noisy channel decoding with a shallow reverse translator reaches 40.5 BLEU, a measure of agreement with reference translations. That matches the earlier, slower noisy channel result at about six times the inference speed. A smaller version gets 40.2 BLEU against 39.5 for an ensemble of three forward translators, with generation times of 56 and 59 seconds respectively in the paper’s timing test. The methods can also be combined. Adding the reverse check to the configuration with three forward translators and a target-language scorer brings the average to 41.0 BLEU.
The Romanian–English experiments show why the amount of search matters. With parallel training data and no back-translation, noisy channel decoding at beam size 50 reaches 39.1 BLEU in each direction under its respective evaluation convention, compared with 38.5 for multilingual denoising pretraining. With back-translated data, the fast Romanian-to-English system records 40.3 BLEU at that beam size. At beam size 5 it scores 39.8 BLEU and takes 82 seconds on the timing split, close to the pretrained system’s 39.9 BLEU and 93 seconds. The results show how a target-language score learned from monolingual text can remain useful at inference time, particularly when the search keeps enough alternatives for the reverse check to distinguish among them.
Deep dive: Language Models not just for Pre-training: Fast Online Neural Noisy Channel Modeling
Fast online noisy channel decoding checks translations against their source during search, improving accuracy at speeds comparable to strong ensembles. · about 31 minutes to read
The problem and its context
Using text that has no translation attached
A collection of sentences in the target language can tell a translation system a great deal about how people write in that language. Each sentence, taken by itself, gives no example of how a particular foreign sentence should be translated. The paper starts from the question of how to get value from this unpaired text. The answer matters both where genuine translation pairs are scarce and where a translator has already learned from a large collection of them. A system can have plenty of examples of translation and still benefit from more examples of the language it is expected to produce.
The authors describe several ways that earlier work used unlabeled text. Back-translation starts with a sentence in the target language and creates a synthetic source sentence, producing another pair for training. The original target sentence is still the target of the training example. Self-training also uses a system’s predictions to create training material. Pretraining learns parameters from unlabeled text before those parameters are adapted to the task. The paper cites BERT as an example of the wider success of pretraining across language tasks. In the Romanian experiments, the specific comparison is with a system that first learns to reconstruct sentences from corrupted versions in multiple languages, then adapts to translation using paired text. BERT · Improving Neural Machine Translation with Monolingual Data · Multilingual Denoising Pre-training for Neural Machine Translation
The authors motivate a further use of monolingual text by pointing to earlier work on the returns to pretraining. In their account, pretraining had been particularly effective when the downstream task had limited labeled data. They cite research that reported modest improvements where labeled data was abundant, as well as controlled experiments in which the return from pretrained representations fell as more supervised training data became available. This is the background to their question about decoding. Even after training a forward translator on paired text, could a separately trained target-language scorer influence the output in a useful way? Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
Why the direction of scoring matters
The usual forward formulation asks how likely a given translation is once the source sentence is known. A forward translator can start its answer, score possible continuations, and use the strongest ones to advance the search. Adding a separate target-language scorer is a straightforward extension of this procedure. The forward translator still scores the relationship between the source and the translation. A second score rewards continuations that read plausibly in the target language. The paper discusses this combination as an established way of using monolingual information during decoding. On Using Monolingual Corpora in Neural Machine Translation
Fluency and source fidelity can pull the ranking in different directions. In a forward translator, words already generated are themselves a rich source of information about what might come next. A familiar continuation can receive strong support from the preceding words, even when the source calls for something less predictable. The paper discusses this problem under the term explaining away. Here the concern is that the generated history can account for a continuation so well that the score pays too little attention to what the input says. A target-language score can independently favor the same fluent continuation. Fluency therefore provides limited evidence about whether a particular source sentence supports the output.
Noisy channel scoring gives the input a different role. It treats a translation candidate as a possible explanation for the observed source. A candidate gets credit for being plausible target-language text, and it also gets credit if the source is probable given that candidate. An unrelated sentence can do well on the first question and poorly on the second. The word channel refers to the conditional relationship from the proposed target back to the observed source. The method uses that relationship for scoring, with the original direction of the translation task left as it was.
The paper places this idea in the tradition of statistical translation, including phrase-based work, and credits earlier neural research with bringing it back to sequence generation. The authors point to its use in competitive systems for both well-resourced and low-resource settings. In the WMT 2019 case they discuss, the existing systems already drew on 500M back-translated sentences. That example motivates treating the use of monolingual text during training and its use during decoding as separate opportunities. A system can draw on both. Statistical Phrase-Based Translation · Facebook FAIR’s WMT19 News Translation Task Submission
Why doing the check during search is expensive
Earlier neural noisy channel work supplied the authors with a practical starting point. A forward translator could narrow down the possible next steps before a reverse translator assessed them. That reduced the number of hypotheses the expensive scorer had to see. It still left a substantial difference between the work done by each component. To evaluate the next step, the forward translator produces a distribution over possible target tokens. For each continuation it sends onward, the reverse translator has to work with the new target prefix and evaluate the known source sentence. A single forward decoding decision can therefore trigger a series of full source evaluations. Simple and Effective Noisy Channel Modeling for Neural Machine Translation
The timing of the check is part of its appeal. When a system scores completed translations, it can only choose among the sentences that have already survived generation. An online check participates in deciding which partial translations survive in the first place. A candidate favored by the forward translator can lose its place before completion if the reverse score is weak. A candidate with stronger combined evidence can stay in the search. Taking that decision repeatedly is what makes online scoring valuable and what gives rise to the cost that the paper addresses.
There is also a memory problem. The reverse translator must assign probabilities to the source tokens, whose identities are already known. The usual output calculation still produces a score for every vocabulary entry at each source position. These scores must fit alongside the computations for other candidate prefixes and for other sentences being translated together. When memory becomes the constraint, a batch must be made smaller. The authors explain that this can leave the GPU with less parallel work, so the cost shows up both in the scoring itself and in how many sentences the hardware can process at once.
The method, step by step
How a partial translation earns a place in the search
The search starts with a source sentence and extends possible translations token by token. At any point it retains a set of partial translations called the beam. The width of the beam controls how many prefixes can remain in contention. For each surviving prefix, the forward translator ranks possible next tokens and supplies a shortlist. Appending a shortlisted token creates a new prefix that can be assessed by the whole system. The shortlist size is a separate choice from the width of the beam. It controls how many branches leave each surviving prefix before the combined score decides which branches to keep.
Each candidate receives several kinds of evidence. Its forward score reflects how likely the proposed translation is given the source. Its language score reflects how plausible the proposed text is on its own. Its reverse score reflects the probability assigned to the source sentence by a translator that takes the proposed prefix as input. For German-to-English, the forward translator reads German and generates English, the language scorer reads English, and the reverse translator takes a partial English translation and scores the German sentence. The reverse computation is repeated when another English token changes the candidate prefix.
A weighted score brings these judgments together. The beam then keeps the strongest candidates according to that score, and the next step works from those survivors. Since the direct translator supplies the shortlist before the other scores are applied, a continuation outside that shortlist cannot get into the beam through a high channel score at that step. The search thus uses the direct translator to control the amount of work while letting the other components influence survival within the area the direct translator has opened up.
One step of fast online noisy channel decoding
The steps in order.
From Bayes’ rule to the decoding score
Bayes’ rule relates the forward probability to the reverse probability and the prior on the translation:
p(y|x) = p(x|y)p(y) / p(x)
Here x is the input sequence and y is a possible output sequence. The symbol p denotes a probability, and the vertical bar means “given.” Thus p(y|x) is the probability of the translation given the source, while p(x|y) is the probability of the source given that translation. The factor p(y) is the prior probability of the target sentence, estimated by the language scorer. The denominator p(x) is the probability of the source itself. The source stays fixed while alternative translations are compared, so the denominator has the same value for each candidate and can be dropped from that ranking. Juxtaposition in the numerator means multiplication, and the slash indicates division.
The paper follows earlier neural noisy channel work in keeping a separately estimated forward score as part of the actual search rule. It takes logarithms, applies length normalization, and weights the language and reverse terms. Written with the denominators next to their respective terms, the score is:
(1/t) log p(y|x) + (λ₁/s) log p(x|y) + (λ₂/s) log p(y)
In this search rule, x is the source sentence and y is the target prefix under consideration. The probabilities retain their forward, reverse, and target-only meanings. The function log takes their logarithms. The length t counts the tokens in the target prefix, and s counts the tokens in the source sequence. The factor 1/t scales the forward log probability by the prefix length. The weights λ₁ and λ₂ control the contribution of the reverse translator and the language scorer respectively. Each of those weights is divided by the source length s. The plus signs add the resulting terms into the score used to rank candidates.
The normalization matters for understanding the score as written. The language term describes the target prefix, yet it shares the source-length denominator with the channel term. During search on a given source, that denominator is fixed. The prefix length in the forward term changes as generation proceeds. Taking logs also turns the combination into a sum of contributions that can be weighted. The expression is a decoding rule built from separately trained components and tuned weights. Bayes’ rule explains the relation between the reverse conditional and the target prior, while the actual rule adds the forward probability as another source of evidence.
Where the scoring cost comes from
The paper describes the cost using the width of the beam, the number of continuations proposed per prefix, the source length, and the vocabulary size. For the direct translator and the language scorer, the number of output scores computed by each at a decoding step is described as:
k₁ × V
The symbol k₁ is the beam width, V is the vocabulary size, and × denotes multiplication. Each of these components produces scores over the vocabulary for the next target token for each surviving prefix. The paper assumes similar vocabulary sizes on the source and target sides when using V to compare their costs.
The reverse component has a larger set of output scores to compute:
k₁ × k₂ × S × V
Here k₁ again counts surviving prefixes, k₂ is the number of continuations shortlisted per prefix, S is the maximum source sequence length in the cost description, and V is the vocabulary size for the source tokens the reverse translator predicts. The multiplication accounts for a distribution over vocabulary entries at each source position for each candidate. The expression counts output scores. The encoding of the changing target prefix and the rest of the reverse network also contribute to the runtime.
This is why the paper treats candidate pruning and vocabulary reduction as distinct changes. Cutting k₂ reduces the number of prefixes that pass through the reverse translator. Restricting the output vocabulary reduces the number of entries scored for every source position in every prefix that does pass through it. Changing the reverse architecture reduces the work within each evaluation. The same candidate can benefit from both a smaller network and a smaller output vocabulary.
Making the reverse translator smaller
The translation components are based on the Transformer. Its encoder builds a representation of what the component reads. Its decoder predicts tokens using that representation and the token history on its output side. In the usual forward direction, the input sentence is fixed. Its encoder representation can remain available while the decoder successively generates more words. In the reverse direction, the target prefix being proposed is the encoder’s input. That input changes at each forward search step, so the authors recompute the reverse encoder and decoder. They can batch calculations across tokens because the candidate prefix and the source it is supposed to predict are both already available. Attention Is All You Need
Earlier neural noisy channel systems used a reverse translator of the same size as the forward one. Bhosale and colleagues ask how much capacity the reverse translator needs for the job it performs during search. It has to judge how well a known source follows from a candidate. The authors’ hypothesis is that rejecting an unrelated proposal may demand less capacity than producing a high-quality reverse translation on its own. Their experiments reduce capacity in two ways. They narrow the internal representations and feed-forward layers, and they shorten the stacks of encoder and decoder blocks.
For width, the paper gives the example of going from a model dimension of 512 to 256 and from a feed-forward dimension of 2048 to 1024 in the configuration it calls half. Its 16th configuration uses a model dimension of 32 and a feed-forward dimension of 128. For depth, the standard variants have six encoder blocks and six decoder blocks. A name ending in 1 1 denotes one block on each side. The base 1 1 and 16th 1 1 variants therefore use the same shallow layout at different widths. The latter has 2.7M parameters in the architecture comparison. It is the reverse component alone that is being made this small.
The authors distinguish this case from work on shallow decoders for forward translation. In a forward translator, decoder depth is a natural target for reducing the cost of generating tokens one after another. Here, encoding each changing candidate is also part of the repeated operation. Reducing either side can save work. Testing width and depth separately also makes it possible to see whether a wide but shallow reverse translator offers a different balance from a narrow one with the usual stack of blocks.
Scoring a smaller source vocabulary
The system knows which source tokens the reverse translator will be asked to predict. It gathers the distinct source tokens across the sentences in the current batch, then includes the 500 most frequent types as well. A type is a distinct vocabulary entry, so repeated occurrences in a batch need only one entry in the subset. The reverse translator calculates output probabilities over the resulting vocabulary. When the batch changes, its source tokens can change, so the selected set can change with it.
Every observed source token is included. The approximation concerns the set of possible alternatives against which that token is scored. A token’s probability depends in part on how much competing probability mass the vocabulary contains. Restricting that vocabulary therefore changes more than the amount of memory allocated to the output. It can change the relative scores of candidate prefixes. Keeping frequent types gives the scorer common alternatives in addition to the tokens that must be evaluated. The paper presents this as a practical choice informed by earlier work on vocabulary reduction.
This restriction is on the output side of the reverse translator. For German-to-English search, it is the distribution over German tokens that is reduced. The forward translator still proposes English continuations, and the target-language component still assesses English. The two forms of pruning consequently act on different objects. The shortlist prunes possible English continuations before they reach the reverse scorer. The vocabulary subset limits the possible German outputs considered when that scorer evaluates the known German sentence.
Preparing and training the components
The German-to-English setup uses WMT’19 paired text. The authors apply language identification following earlier WMT work, discard sentences longer than 250 tokens, and discard pairs whose source-to-target length ratio exceeds 1.5. After filtering, the training set contains 26.8M pairs. The authors use Moses tokenization, normalize punctuation, and remove non-printing characters. The forward translator reads a German representation learned from the source part of the paired training data. English uses the vocabulary of the separate language scorer. langid.py
The vocabulary construction uses byte pair encoding, or BPE, a form of subword tokenization. It gives the components shared units for representing text without having to treat every written word as a single vocabulary item. The German source vocabulary is described as 24K BPE, and the English language scorer also uses 24K BPE types learned from its own training corpus. Sharing the English segmentation lets the forward translator and the language scorer score the same token extension during search. Sharing that side of the vocabulary still leaves the forward translator with different German and English vocabularies, so its encoder and decoder embeddings are separate. Neural Machine Translation of Rare Words with Subword Units
The German-to-English forward translator uses Transformer-Big. The reverse variants learn the opposite translation direction from paired text. The English language scorer is trained separately, at sentence level, with 16 Transformer layers and the Big architecture. Its training text comes from deduplicated English Newscrawl covering 2007-2018. After normalization and tokenization, the paper describes that corpus as 186 million sentences or 4.5B words. The forward and reverse translators learn from paired examples, while the language scorer can draw on this English text without requiring German counterparts for its sentences.
The Romanian–English setup starts from WMT’16 and 612K training pairs. The authors learn a joint vocabulary of 18K BPE types on the paired text, which allows the translators to share their encoder and decoder embeddings. They report that sharing worked better in preliminary experiments for this setting. They use Moses tokenization and Romanian-specific normalization. The English language scorer for Romanian-to-English uses the vocabulary learned on the Romanian–English pairs, so its English token scores can be combined with those of the translator. Edinburgh Neural Machine Translation Systems for WMT 16
English-to-Romanian needs a Romanian language score. The authors train a sentence-level Transformer-Big scorer with 16 layers on deduplicated Romanian CommonCrawl text. They report 623M sentences or 21.7B words after the text is normalized and tokenized. In the translation experiments that use only genuine pairs for translator training, the forward and reverse translators are Transformer-Base. The Romanian-to-English experiments augmented with back-translation use Transformer-Big on both sides. The additional English sentences for back-translation come from the monolingual data used in earlier WMT work, and the synthetic translations are generated with unrestricted sampling. CCNet · Improving Neural Machine Translation with Monolingual Data
Tuning before evaluation
The search weights are selected by evaluating random configurations on development data. The paper gives the sampling interval as [0, 2]. For the forward-only condition, the search considers ten random values for the length penalty. With a target-language score added, it considers 100 combinations of the length penalty and the language weight. With the reverse score added as well, it considers 1000 configurations spanning the length penalty and both score weights. This tuning decision is separate from the training of the underlying translation and language components.
The online decoding setup uses 16-bit floating point. For timing, the authors sweep over possible batch sizes and choose the fastest one that fits in memory for each configuration. That choice is important because a configuration that generates fewer intermediate scores may be able to process more sentences together. The usual beam size is 5. The general decoding setup gives k₂ = 10 as the default per-prefix shortlist size, and the headline fast comparison sets k₂ = 3 with the reduced vocabulary. The ablations distinguish that fast setting from experiments that deliberately retain the larger shortlist. Scaling Neural Machine Translation · fairseq
Experiments and results
What is measured and where
The German-to-English experiments ask whether the fast system keeps the quality of noisy channel decoding while bringing its generation time closer to a forward ensemble. A forward ensemble combines scores from multiple forward translators. The comparisons include a single forward translator, ensembles, versions that add a target-language scorer, and versions that also use a reverse score. They also include the earlier noisy channel setup, with its large reverse translator and without the speed approximations. The design lets the reader compare the benefits of adding different kinds of evidence with those of using more forward translators.
For German-to-English the authors tune on newstest2016 and report translation quality on newstest2014, newstest2015, newstest2017, and newstest2018. They use sacreBLEU and average scores over those test sets and 3 random seeds for weight initialization. BLEU assesses agreement with a reference through matching token sequences, and its reporting convention matters for comparisons. In this experiment, generation time is measured on newstest2016. Times are averaged over 3 trials on a 32GB Volta V100 GPU. The quality and timing numbers in a system comparison therefore summarize different sets of sentences. A Call for Clarity in Reporting BLEU Scores
For Romanian–English, newsdev2016 is the development data and newstest2016 is the quality test. The Romanian-to-English results use sacreBLEU. English-to-Romanian uses tokenized BLEU after applying Moses tokenization and normalizing Romanian diacritics, following the mBART comparison. The directions are evaluated under their respective conventions, so each comparison is meaningful within its direction. The Romanian-to-English timing comparison with back-translation uses newsdev2016. That split distinction matters for reading the result in seconds alongside the BLEU result.
German-to-English at the standard beam size
At beam size 5, forward ensembling improves German-to-English BLEU over a single forward translator. The scores are 38.8 for the single translator, 39.3 for two, and 39.5 for three. Their generation times on newstest2016 are 20, 40, and 59 seconds respectively. The target-language scorer improves each of these configurations. With the scorer, the single-translator setup records 39.7 BLEU in 44 seconds, the two-translator setup records 40.2 in 65 seconds, and the three-translator setup records 40.3 in 84 seconds. This establishes that the standalone target-language score adds value before the reverse translator enters the comparison.
WMT German-to-English average test BLEU at beam size 5
The highest score comes from combining the forward ensemble with target-language and reverse scores.
The numbers
| System or setting | BLEU |
|---|---|
| One forward translator | 38.8 |
| Two forward translators | 39.3 |
| Three forward translators | 39.5 |
| One forward translator and language scorer | 39.7 |
| Three forward translators and language scorer | 40.3 |
| Earlier noisy channel system with big reverse translator | 40.5 |
| Fast noisy channel with 16th 1 1 (this paper) | 40.2 |
| Fast noisy channel with base 1 1 | 40.5 |
| Three forward translators with language scorer and base 1 1 | 41.0 |
The fast configuration with 16th 1 1 reaches 40.2 BLEU in 56 seconds. Against the ensemble of three forward translators, this is the paper’s reported gain of 0.7 BLEU at a similar generation time. The comparison is between different uses of the inference budget. One system uses several predictors that all score translation in the forward direction. The other devotes part of its work to target-language plausibility and to the ability of a partial translation to predict the source. The single-forward fast configuration also reports 542 million total parameters, compared with 848 million for the ensemble of three. Those totals refer to the full scoring systems.
Using base 1 1 as the reverse translator brings the single-forward fast system to 40.5 BLEU in 92 seconds. It matches the earlier noisy channel system’s reported 40.5 BLEU, and the authors describe the fast configuration as about six times faster at inference. The small and shallow choices make different tradeoffs here. The 16th 1 1 version is the one that sits close to the forward ensemble in time. The base 1 1 version is the one that matches the earlier noisy channel score in this comparison. Both results support the value of improving the reverse evaluation, with the appropriate configuration depending on the comparison.
The result with a forward ensemble also shows that the reverse score can be useful when the forward proposal mechanism is already strong. With two forward translators and the language scorer, adding base 1 1 gives 40.8 BLEU at 111 seconds. With three forward translators and the language scorer, it gives 41.0 BLEU at 131 seconds. The authors report a gain of 0.7 BLEU for that last comparison against the same three forward translators and language scorer. Ensembling and reverse scoring can contribute to the same system, and the combined configuration also takes longer to run.
Why test a wider beam?
A narrow beam places a tight limit on the alternatives that survive long enough to compete. A wider one gives the scoring rule more prefixes to choose from, while increasing the amount of work at each step. The German-to-English curves show that beam width affects the systems differently. In these experiments, the standalone forward translator and the forward ensembles do not benefit from larger beams. Noisy channel decoding has more to gain. As the beam widens, the choice of reverse translator also starts to matter more for BLEU.
At beam size 5, the fast channel variants give broadly similar scores. In the wider-beam comparisons, larger reverse translators tend to do better. The paper finds no difference between the wide, shallow big 1 1 variant and its six-layer big counterpart in the reported fast comparison. That observation suggests depth can be reduced even under conditions in which retaining width helps. The comparison is specific to the tested architectures. A small change in quality at beam size 5 offers limited information about the same choice at a much wider beam.
The authors also compare the fast and earlier noisy channel procedures over beam widths. The fast procedure grows less costly as the beam expands. For the big and big 1 1 reverse translators, the fast approximation gives average BLEU drops of 0.3 and 0.2 respectively relative to the earlier procedure. With smaller reverse translators, the difference between the fast and earlier scoring procedures is generally smaller. These comparisons show two effects that can coexist. Wider search can improve the result under the noisy channel score, and approximating that score can give up some of the improvement available to a large channel.
Romanian–English with parallel training data
The Romanian–English results test noisy channel decoding in a setting with substantially less paired text. They also compare its use of monolingual text with mBART, a denoising system pretrained in multiple languages and then adapted to translation. Here “parallel training data” describes the training of the translators in the bitext-only condition. The noisy channel system can still use monolingual text through its separate language scorer, and mBART still uses monolingual text during pretraining. The distinction is between how that text enters the system and whether synthetic translation pairs are added.
On English-to-Romanian newstest2016, the forward translator records 34.6 tokenized BLEU. Adding the Romanian language scorer gives 35.4. The noisy channel configuration with the large reverse translator records 37.3 in the standard comparison and 39.1 at beam size 50. The mBART comparison is 38.5. The ordering across these settings shows how the result changes when the language score, the reverse score, and then the search width are added in turn. The strongest noisy channel result in this direction relies on the wider search.
Romanian-to-English follows a similar progression on newstest2016 under sacreBLEU. The forward translator gets 34.6, the addition of the English language scorer gives 35.9, and the noisy channel setup records 37.7 at the standard beam size. At beam size 50 it reaches 39.1, compared with 38.5 for mBART. The authors describe the two wide-beam gains over the respective forward translators as 4.5 BLEU in each direction. Both directions therefore put the noisy channel system ahead of the pretrained comparison under wide search. At the standard beam, the mBART score is higher.
Romanian-to-English with back-translation
The back-translation condition starts from a stronger forward baseline. It scores 38.4 BLEU on Romanian-to-English newstest2016. Adding the language scorer gives 38.7, and the earlier noisy channel configuration with big reaches 39.6 at beam size 5 and 40.4 at beam size 50. The mBART02 comparison is 39.9 at both beam sizes. The paper reports a 0.5 BLEU improvement for the 40.4 result over that pretrained comparison. It also reports a similar number of parameters in the systems being compared. For monolingual data, its comparison identifies 4.5B tokens used to train the English language scorer and 66B tokens of English and Romanian used by mBART02.
WMT Romanian-to-English newstest2016 BLEU with back-translation
The fast noisy channel system approaches the best earlier channel score with wide search and gains from widening its beam.
The numbers
| System or setting | BLEU |
|---|---|
| Forward translator | 38.4 |
| Forward translator and language scorer | 38.7 |
| mBART02 at beam 5 | 39.9 |
| mBART02 at beam 50 | 39.9 |
| Earlier noisy channel with big at beam 5 | 39.6 |
| Earlier noisy channel with big at beam 50 | 40.4 |
| Fast noisy channel with base 1 1 at beam 5 (this paper) | 39.8 |
| Fast noisy channel with base 1 1 at beam 50 | 40.3 |
The generation times explain the value of retaining nearly the same quality with base 1 1. At beam size 5, the fast noisy channel system takes 82 seconds on newsdev2016, mBART02 takes 93 seconds, and the earlier noisy channel system takes 1178 seconds. At beam size 50, the corresponding times are 631 seconds, 754 seconds, and 12,554 seconds. Wider search still incurs a substantial cost. The fast procedure makes that choice feasible at a very different cost from the earlier channel implementation.
There are two distinct Romanian-to-English outcomes in these results. The fast system at beam size 5 gives close quality and a slightly shorter measured generation time than mBART02 at the same width. At beam size 50, the fast system reaches 40.3 BLEU, close to the earlier channel’s 40.4, and its generation time remains below the time reported for mBART02 at that width. The unchanged mBART02 score across those settings is particularly informative. An increase in the number of retained alternatives helps when the scoring procedure can use the alternatives to make better choices. In this comparison the noisy channel systems make better use of them.
What the ablations show
Standalone translation and reverse scoring are different tests
The authors measure how well the reverse translators translate on their own before comparing how well the full system works with them. On the German–English development data, the standalone reverse big variant has 282.7 million parameters and gets 38.0 BLEU. The standalone base 1 1 has 23.6 million parameters and gets 31.2. The smallest 16th 1 1 has 2.7 million parameters and gets 10.0. These standalone scores are averaged over 3 seeds. They evaluate the reverse translator’s ability to generate a translation in its own direction, which is a more demanding job than supplying one score in the forward search.
With fast noisy channel decoding at beam size 5, the gap between the same architectural choices is much smaller in end-to-end German-to-English BLEU. The big reverse translator is associated with 40.3 and a generation time of 472 seconds. Base 1 1 gives 40.5 in 92 seconds, and 16th 1 1 gives 40.2 in 56 seconds. The size comparison and the standalone comparison therefore rank the role of capacity differently. A reverse translator can be poor at generating its own output while still providing information that helps decide among prefixes supplied by a much stronger forward translator.
Depth comparisons give a more specific view of the cost. The base variant with the standard depth gives 40.4 BLEU in 202 seconds in the fast system, while the shallower base 1 1 gives 40.5 in 92 seconds. The full-depth half gives 40.5 in 132 seconds, and half 1 1 gives 40.4 in 72 seconds. Here the generation times are measured on German-to-English newstest2016 and the BLEU scores average the German-to-English test sets. Lower depth pays off in runtime for both widths, with very small observed changes in final quality.
The authors interpret these results as consistent with the hypothesis that the reverse component mainly anchors fluent target proposals to the input. The distinction between generation and scoring helps explain why. Generating a reverse translation requires finding a good source sentence among many possibilities. During forward decoding, the reverse translator is handed the real source. Its task is to assign that sentence a useful score relative to the scores obtained from other candidate prefixes. Wider beams qualify the result by exposing more alternatives. There, stronger reverse translators generally have more room to affect quality, even though a wide, shallow one can remain competitive with its deeper counterpart.
Restricting the vocabulary saves time with small quality changes
The vocabulary ablation compares the full reverse output vocabulary with the subset comprising observed source types in a batch and the 500 most frequent types. The authors keep k₂ = 10 so that each vocabulary condition handles the same number of proposals. For each setting, they again choose the fastest feasible batch size. The paper reports a reduced vocabulary of around 1050 entries on average, against 28,048 in the full source vocabulary for this ablation. Since each source position requires output scores, this substantially changes how much memory the reverse evaluations occupy.
The German-to-English base 1 1 configuration scores 40.5 BLEU with either vocabulary. Its generation time on newstest2016 falls from 336 seconds with the full vocabulary to 169 seconds with the smaller one. With big 1 1, the corresponding BLEU scores are 40.7 and 40.5, with times of 543 and 339 seconds. With 16th 1 1, both conditions give 40.2 BLEU, and the time goes from 209 to 74 seconds. These comparisons keep the reverse architecture and shortlist setting fixed while changing the vocabulary used for scoring.
The direction of the quality change varies with the configuration. For the full-depth base, BLEU moves from 40.7 to 40.4 as the time goes from 854 to 516 seconds. For the shallow half 1 1, BLEU moves from 40.3 to 40.4 as generation time goes from 264 to 117 seconds. Across the comparison, the paper describes the degradation where present as up to 0.3 BLEU. It reports speed improvements of 40-65% for the shallow variants and 20-55% for the other variants. The measured outcome includes the effect of using the batch sizes that the two memory footprints permit.
The finding is especially relevant to a small reverse translator. Reducing its network capacity can make the output scores a more conspicuous part of the remaining cost. Leaving the vocabulary wide would still require scores for many source alternatives at every position. The batch-specific subset serves the different purpose of avoiding that repeated output work. The measurements show that source tokens and common alternatives are enough for similar aggregate BLEU in these settings, even though restricting the competing vocabulary changes the probabilities used in candidate scoring.
Rescoring fewer continuations keeps the narrow beam competitive
The shortlist experiment changes the number of next-token candidates sent from each prefix to the reverse scorer. It uses base 1 1 at beam size 5. With a shortlist size of 2, the system gets 40.4 BLEU and takes 76 seconds. With a shortlist of 3, it gets 40.5 in 88 seconds. A shortlist of 5 gives 40.4 in 124 seconds, and a shortlist of 10 gives 40.5 in 168 seconds. Quality is measured across the German-to-English test sets and time on newstest2016. These times belong to the shortlist sweep. The headline comparison reports its own time for the fast system.
Shortlisting measures how good the direct translator is at proposing continuations for the combined score. If a necessary token fails to make the shortlist, adding a more accurate reverse translator cannot retrieve it at that step. In the tested narrow-beam setting, the extra options beyond a small shortlist give very little change in BLEU, even though each extra option incurs a reverse evaluation. A shortlist of 3 matches the score obtained with 10 in this sweep. The controlled comparison supports the authors’ choice to spend most of the reverse-scoring effort on a small set of plausible continuations.
The wider-beam findings put this result in perspective. Beam width and shortlist size affect different parts of search. Widening the beam retains more histories across steps. Increasing the shortlist fans out more continuations from each history at a particular step. The paper finds gains from the former for noisy channel scoring and little benefit from the latter under its narrow-beam ablation. Together, the comparisons explain how a system can benefit from considering more partial translations overall while still saving work by checking relatively few extensions of each one.
Limitations
Limits reported by the authors
The authors observe a condition under which shrinking the reverse translator comes with a clearer quality cost. At the standard German-to-English beam size, even very small versions remain close to the larger ones. With wider beams, larger reverse translators tend to score better. The paper’s evidence for aggressive shrinking is therefore strongest for the standard beam. When the purpose of widening search is to pursue the best BLEU available, the capacity of the reverse scorer plays a greater role in the result.
The authors also report that the fast approximations can lose accuracy against the earlier procedure. The loss is visible in the wider-beam comparisons with the large channels, and some vocabulary ablations give lower BLEU than their full-vocabulary counterparts. Romanian-to-English with back-translation gives an example of the overall tradeoff. The wide-beam fast configuration gets 40.3, while the earlier channel configuration gets 40.4. The headline 0.5 BLEU gain over mBART02 belongs to the earlier, more expensive noisy channel configuration. The fast system is close to it, and its operating point at beam size 5 is close to mBART02 in both BLEU and measured generation time.
The paper’s efficiency claims are also tied to the protocol it reports. The authors choose a batch size for each configuration, and the German-to-English timing is measured in reduced floating-point precision on a particular GPU. They explicitly motivate the vocabulary subset by the batch sizes made possible through reduced memory use. Thus their speed comparisons describe a complete generation run under tuned batch conditions. That measurement is appropriate for the throughput question they ask.
Limits of what the experiments establish
The paper motivates reverse scoring with failures of source fidelity. The evaluations mainly measure BLEU against reference translations. Those results establish better aggregate reference agreement in the reported comparisons. They do not quantify how frequently translations contain fluent but unsupported material, or which kinds of source-content errors were removed. The architecture and capacity analyses support the idea that the reverse scorer helps tie the output to the source. A change in the observed BLEU leaves open how much of that gain comes specifically from preventing the failure that motivated the method.
The search also has an intrinsic dependency on the forward translator. Its shortlist defines which continuations the combined scorer can evaluate. The vocabulary approximation retains all observed tokens, but alters the competing alternatives used to score them. A small BLEU change after either approximation is evidence about the tested distribution of sentences and settings. It supplies no guarantee that the same candidate will survive for every sentence. The narrow-beam shortlist sweep also leaves open how large a shortlist is appropriate under wider search or for a different forward translator.
The study tests news translation on the German-to-English and Romanian–English setups. German-to-English provides the detailed comparison across architectures and approximations. Romanian–English provides the comparison with multilingual pretraining and the extra setting with back-translation. The authors frame noisy channel scoring as a general approach to text generation, but the reported measurements concern translation. In a different generation task, estimating the probability of the full input given a partial output could present a different computational burden. The reported architecture choices and vocabulary restriction have been evaluated for the source sequences and translation components in this study.
The monolingual data comparison likewise concerns the systems as trained and tested. The paper contrasts the token count for its English language scorer with the English and Romanian tokens used in mBART02 pretraining. The corpora, training objectives, and uses of the resulting parameters differ. The back-translation condition also uses monolingual material to create synthetic pairs. The evidence shows that the noisy channel system reaches the reported quality with a smaller count in the authors’ comparison. Establishing how much monolingual text each approach needs under matched conditions would require varying the amount while controlling the other differences.
Generation time under tuned batching answers a different question from the waiting time for an individual sentence. A batch that fits more examples may improve throughput even when each sentence still requires many rounds of reverse scoring. The paper reports complete-set generation times and explicitly benefits from batching. These measurements give a basis for comparing the systems in the reported setup. They leave individual-request latency, other hardware, and the cost of training and maintaining separate components outside the measured comparison.
Finally, the systems receive different development-search budgets because they have different score weights to tune. The full channel system has more settings to evaluate than the forward-only baseline. Its reported quality reflects the scoring rule and the authors’ procedure for selecting the weights. This is a practical comparison between tuned systems. It leaves open how the ranking might change with a different development set or a smaller tuning budget. Likewise, the averages over seeds and test sets describe overall results, while the small differences between particular channel variants should be read at the level of precision the paper reports.
What came after
Facebook AI’s WMT21 News Translation Task Submission cites the fast noisy channel paper. The later work is a news translation shared-task submission. The citation establishes a connection to this approach in that setting, but does not establish which channel architecture, vocabulary restriction, or candidate-pruning setting the submission used. It also gives no basis for attributing a translation or speed result from the submission to any of those individual choices.
Cite
Cite as Shruti Bhosale, Kyra Yee, Sergey Edunov and Michael Auli. 2020. Language Models not just for Pre-training: Fast Online Neural Noisy Channel Modeling. Proceedings of the Fifth Conference on Machine Translation.
@inproceedings{bhosale2020language,
title = {{Language Models not just for Pre-training: Fast Online Neural Noisy Channel Modeling}},
author = {Shruti Bhosale, Kyra Yee, Sergey Edunov and Michael Auli},
booktitle = {Proceedings of the Fifth Conference on Machine Translation},
year = {2020},
doi = {10.18653/v1/2020.wmt-1.69},
url = {https://doi.org/10.18653/v1/2020.wmt-1.69}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bhosale-2020-language-models-not-just-pre/