Language Models not just for Pre-training: Fast Online Neural Noisy Channel Modeling

Shruti Bhosale, Kyra Yee, Sergey Edunov, Michael Auli

Introduction

In Neural Machine Translation (NMT), the standard approach is to train a "direct model" to predict a target sentence given a source ($p(y|x)$). While effective, these models can suffer from "explaining away," producing fluent but unfaithful translations. Noisy Channel Modeling (NCM) addresses this by using Bayes' rule to combine a channel model ($p(x|y)$) and a language model ($p(y)$), ensuring outputs are both fluent and faithful to the input. However, NCM has traditionally been computationally prohibitive, often an order of magnitude slower than standard decoding.

Making Noisy Channel Modeling Practical

This paper introduces "Fast Online Noisy Channel Modeling" through three key efficiency optimizations:

  1. Reduced Channel Model Size: The authors found that the channel model acts primarily as a "sanity check" rather than a primary translator. Consequently, even extremely small Transformer architectures (e.g., 1/100th the size of a standard "Big" model) can provide significant accuracy gains.
  2. Pruned Output Vocabulary: Instead of scoring the entire vocabulary at each step, the model only considers tokens present in the source sentence plus the 500 most frequent words.
  3. Candidate Filtering ($k_2$): During beam search, the channel model only re-scores a small subset ($k_2 \approx 3$) of the top candidates proposed by the direct model.
Comparison of generation time between naive and fast noisy channel decoding implementations.

As shown in the figure above, these optimizations lead to a dramatic reduction in generation time, making NCM inference speeds comparable to standard model ensembles.

Results and Analysis

The researchers evaluated their approach on WMT’19 German-English (De-En) and WMT’16 Romanian-English (Ro-En) benchmarks.

Quality vs. Beam Size

A significant advantage of NCM is its behavior with large beam sizes. While standard NMT models often plateau or degrade with larger beams, Noisy Channel models continue to improve. The channel model effectively filters out the low-quality "garbage" that typically populates large beams in direct models.

BLEU scores for various fast noisy channel models (e.g., 'fast big' in red, 'fast base' in green) compared to direct model baselines ('dir' in purple, '3 dir' ensemble in black) across different beam sizes.

Performance Highlights

  • Speed: The "Fast" NCM implementation is approximately 6x faster than the naive version.
  • Accuracy: On De-En, the fast approach achieved 41.0 BLEU, significantly outperforming a strong 3-model ensemble (39.5 BLEU).
  • State-of-the-Art: On Romanian-English, the method reached 40.4 BLEU, setting a new SOTA and outperforming massive pre-trained models like mBART.

Conclusion

By applying targeted approximations, this work demonstrates that Noisy Channel Modeling can be made practical for online use without sacrificing its substantial quality benefits. The approach is complementary to ensembling and particularly effective at leveraging large-scale monolingual data through the language model component.

Summary updated

BibTeX
@inproceedings{bhosale2020language,
  author = {Shruti Bhosale and Kyra Yee and Sergey Edunov and Michael Auli},
  title = {{Language Models not just for Pre-training: Fast Online Neural Noisy Channel Modeling}},
  booktitle = {WMT @ EMNLP},
  year = {2020},
  url = {https://openreview.net/forum?id=QvUGTBIITSc},
}
Figure