Modelintro
Noisy channel model of translation
Also called source-channel translation model.
Find the target sentence e that maximizes P(e) P(f | e), a language model times a translation model, for the source sentence f.
The noisy channel model of translation treats a sentence in the source language as if it were a target sentence that went through a noisy channel and came out in another language. To translate is to guess the that most probably went in. By Bayes' theorem,
because does not depend on . The rule splits translation into three parts: a language model , which says how likely is as a sentence of the target language; a translation model , which says how well explains ; and a decoder, which searches for . Brown et al. (1990) proposed it for French to English, after the same rule had worked in speech recognition, and the IBM models are channel models for it. Statistical translation was built on this rule until the log-linear model took its place.
The machine
Variables. The input is a source sentence . The output is a target sentence , chosen from all strings over the target vocabulary. Translation runs from to , but the channel model runs the other way, from to . This is why the IBM papers, which translate French into English, write the translation model as .
The three parts.
- Source model : a language model of the target language, in practice an n-gram language model. It is trained on text in the target language only, which is plentiful.
- Channel model : a translation model, such as IBM Model 1, Model 2, Model 3, the HMM alignment model or the phrase-based model. It is trained on a parallel corpus. Most of these models sum over hidden word alignments: .
- Decoder: a search for over a space of candidates that grows exponentially with the length of , for example by stack decoding with pruning. In practice the decoder often maximizes over the alignment too, with in place of the sum.
Why the split helps. The direct model would have to give high probability only to target sentences that are both fluent and faithful. In the split, the two jobs go to two models. The channel model may give weight to target sentences that are not good sentences, as long as they contain the right words, because the language model gives such sentences a low score. And each model can be estimated from the data that suits it.
Example. Take = "la maison" and three candidates, with numbers made up for the illustration:
| candidate | |||
|---|---|---|---|
| the house | 0.004 | 0.20 | 0.0008 |
| house the | 0.00001 | 0.25 | 0.0000025 |
| the home | 0.002 | 0.05 | 0.0001 |
A word-for-word channel model scores "house the" a little higher than "the house", because it does not care about order. The language model gives that word order a very low probability, and the product picks "the house".
What it counts
The model assigns a score to each pair, and its output is the candidate with the highest score. One step is one arithmetic operation on real numbers or one table lookup, as on the real RAM. Two kinds of cost matter:
- Scoring one pair : for an n-gram language model, lookups; for the channel, under Models 1 and 2 and under the HMM model, by the algorithms of those pages.
- Decoding, the search over : the number of candidates of length is the vocabulary size to the power , so the search must be heuristic or restricted.
Errors are counted in two kinds. A search error is an output whose score is lower than that of another candidate the decoder missed. A model error is an output with the best score that is still a bad translation. Better search fixes only the first kind.
Relation to other models
- Noisy channel spelling correction. Spelling correction uses the same rule, with a model of words as the source and a model of typing errors as the channel.
- Source-channel speech recognition. In speech recognition the source is the word sequence and the channel produces the sound, with . The IBM translation work came from this group and this method.
- Log-linear model. The log-linear translation model of Och and Ney (2002) scores by with any feature functions . With the two features and and weights 1, it is the noisy channel rule. With other weights and more features, such as and a length penalty, it usually translates better, and the weights are tuned by minimum error rate training.
- Neural models. An encoder-decoder model models directly, without the split. The channel direction still appears, for example to rerank candidates or to make training data by back-translation.
Known results in the model
- Bayes decision rule (theorem). If and are the true distributions, the rule minimizes the probability that the output is not the reference sentence, because it picks the mode of the true posterior . With estimated models this guarantee does not hold, and nothing in the rule rewards outputs that are close to the reference without being equal to it.
- Decoding is NP-complete (theorem). For IBM Model 1 as the channel and a bigram language model, the decision version of decoding is NP-complete (Knight 1999). So no polynomial algorithm finds exactly unless P = NP, and decoders use beam search and other heuristics. For the higher IBM models even finding the best alignment of a fixed pair is NP-hard (Udupa and Maji 2006; see word alignment).
- Separate training. Because needs only target-language text, the language model can be trained on far more data than the parallel corpus has. A better language model improves the fluency of the output without any new parallel data.
References
- Brown et al. 1990, the decision rule with a language model and a translation model, and the first experiments from French to English
- Brown, Della Pietra, Della Pietra and Mercer 1993, the fundamental equation of statistical machine translation and the division into a language model, a translation model and a search
- Knight 1999, the NP-completeness of decoding with IBM Model 1 and a bigram language model
- Franz Josef Och and Hermann Ney, Discriminative training and maximum entropy models for statistical machine translation, ACL 2002, pages 295 to 302, the log-linear model that contains the source-channel model as a special case
- Philipp Koehn, Statistical Machine Translation, Cambridge University Press, 2010, Chapter 4 (word-based models and the noisy-channel model)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag BXSW8F Edit this page History Report an error Markdown