Notes

Machine Translation

Translation looks like substitution until you try it. Word order moves, one language marks gender where another does not, and a pronoun's referent may sit three sentences back. Machine translation is the task of producing text in a target language that preserves a source text's meaning — and it has been the field's proving ground for sixty years.

Three eras, one task
Rule-based systems encoded grammars and dictionaries by hand. Statistical machine translation replaced them with probabilities learned from parallel corpora such as Europarl, aligning words with the IBM models and assembling output from scored phrase pairs. Neural translation then made the whole thing one model: an encoder reads the source into a representation, a decoder emits the target token by token, and attention lets each output step look wherever it needs in the input. Current systems are transformers over subword units, with MarianMT and mBART as the checkpoints you would actually load.

What makes it hard

  • Ambiguity resolves differently per language: "bank" must become one word or another, and the source may not say which.
  • Low-resource pairs lack parallel text, pushing systems toward multilingual models and back-translation.
  • Fluency and adequacy come apart — output can read beautifully and omit a clause.

Why it matters
Machine translation is where sequence-to-sequence modelling, attention and subword tokenisation were invented or first made to pay, so much of what the rest of the field uses arrived here first. It also keeps evaluation honest: output can be scored against a human reference, which is why BLEU, chrF and TER all began here — and the gap between a good score and a translation a reader trusts remains the most instructive problem in the subject.

Machine translation is the task of rendering text from a source language into a target language while preserving its meaning. Modern systems are neural encoder-decoder transformers trained on parallel corpora, having displaced phrase-based statistical and hand-written rule systems. It is harder than word substitution because word order, morphology and ambiguity differ across languages, and it is scored against human references with metrics such as BLEU and chrF.

Ask a bilingual friend to translate a sentence and they do not swap each word for its dictionary equivalent. They work out what the sentence means, then say that in the other language — rearranging, choosing a phrasing, deciding whether "bank" is the river or the money.

Machine translation is software doing the same job. It learns from enormous collections of sentences that people have already translated, picking up patterns in how meaning moves between two languages. That is why it reads fluently and can still slip: a smooth sentence that quietly drops a detail is much harder to spot than clumsy wording.