Statistical Machine Translation Foundations › The Language Model as a Fluency Judge

Michael BrenndoerferNovember 26, 20261 min read
Language AI HandbookAll chapters
Part 27 of 67Machine Translation and Speech Translation
Chapter 190Statistical Machine Translation Foundations › The Language Model as a Fluency Judge
Reading section 5 of 12 · The Language Model as a Fluency Judge · 1 minSection 5 of 12 · 1 min

Section 5 of 12 · 1 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Target-side language model scores can distinguish translation candidates with identical phrase scores and also contribute when those scores differ.

The exact chain rule conditions each token on the entire preceding prefix. The nn-gram model from Part II approximates that history with a window of at most n−1n-1 tokens:

PLM(e)=∏k=1KPLM(ek∣ek−1,…,ek−n+1),P_{\mathrm{LM}}(\mathbf{e}) = \prod_{k=1}^{K} P_{\mathrm{LM}}(e_k \mid e_{k-1}, \dots, e_{k-n+1}),

Estimate these bounded-history conditionals from target-side text, use smoothing for unseen nn-grams, and evaluate the model with perplexity. Its memory footprint depends on the vocabulary, retained nn-grams, and storage format.

Two details are specific to the MT setting.

First, a decoder queries the model as it extends a partial hypothesis. For each added word it needs the log probability conditioned on the preceding n−1n-1 words. A wider beam and more phrase choices create more such lookups.

Second, a target-only language model can assign a high score to a fluent string that mistranslates the input. For example, “Take this with food” and “Do not take this with food” can both sound natural. The channel or other source-conditioned scores supply evidence about which instruction the input expresses.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy