Neural Machine Translation › Summary

Michael BrenndoerferNovember 26, 20262 min read
Language AI HandbookAll chapters
Part 27 of 67Machine Translation and Speech Translation
Chapter 191Neural Machine Translation › Summary
Reading section 11 of 12 · Summary · 2 minSection 11 of 12 · 2 min

Section 11 of 12 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments
  • Conditional generation. Train a model for P(y∣x)=∏tP(yt∣y<t,x)P(y \mid x) = \prod_t P(y_t \mid y_{<t}, x) and use the translation loss to update its components jointly.
  • Source representations. A fixed-vector encoder compresses the source into one decoder input. Attention lets the decoder form a different weighted sum of source states at each step.
  • Attention diagnostics. Compare attention with known correspondences and use controlled tests for causal conclusions.
  • An encoder-decoder Transformer. Global source self-attention gives distant tokens a short path within a layer. Cross-attention lets target positions read the encoded source.
  • Likelihood and label smoothing. The baseline trains on reference tokens. Smoothing mixes gold and uniform cross-entropy and moves the logit-gradient zero to the smoothed distribution. State your tokenization and scoring convention when reporting perplexity.
  • Training data. Evaluate filtering, deduplication, domain fit, and back-translation against a fixed baseline.
  • Tokenization. Compare shared and separate vocabularies while tracking sequence lengths and coverage in each language.
  • Decoding. Compare beam width and scoring settings against a greedy baseline. Report model scores computed with a common scoring rule alongside the evaluation metric.
  • Failure analysis. Track hallucination, wrong target language, omitted or repeated content, and document-level coherence on cases designed to reveal them.

The next chapter, Parallel Data Mining and Quality Control, examines how to find and clean the parallel text used to train these systems.

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