Neural Machine Translation › Summary
Michael BrenndoerferNovember 26, 20262 min read
Language AI HandbookAll chapters - Conditional generation. Train a model for 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!