Notes

mT5

English is a small slice of the world's text, yet it dominated the training data of early language models. mT5 was Google's answer: take the T5 recipe and run it over 101 languages at once.

What it is

mT5 is a multilingual encoder-decoder transformer that treats every task as text in, text out. It was pretrained on mC4, a 101-language extension of the C4 Common Crawl corpus, using span corruption: stretches of text are masked and the decoder reconstructs them. A shared 250,000-piece SentencePiece vocabulary covers all those languages in one embedding table, and languages are sampled with an exponent that boosts low-resource ones so Hindi and Swahili are not drowned out by English. Published sizes run from 300 million to 13 billion parameters.

Why it mattered
  • Cross-lingual transfer: fine-tune it on an English task and it performs that task in languages for which it never saw a labelled example.
  • Unlike T5 it was pretrained purely on the unsupervised objective, so it does not follow instructions out of the box and must be fine-tuned — which is why derivatives such as mT0 and ByT5 exist.
  • Its signature failure, accidental translation — replying in the wrong language during zero-shot generation — is a concrete illustration of how shared multilingual representations leak into each other.

Decoder-only chat models have overtaken it for open-ended generation, but mT5 checkpoints remain a sensible starting point for translation, multilingual summarisation and classification, where a tuned one-billion-parameter encoder-decoder beats prompting something far larger. They are still served through Hugging Face Transformers.

mT5 is Google's multilingual version of T5: an encoder-decoder transformer pretrained with span corruption on mC4, a Common Crawl corpus covering 101 languages, in sizes from 300 million to 13 billion parameters. It matters as a base for cross-lingual work, since fine-tuning it on one language transfers to others. Because pretraining was purely unsupervised, it must be fine-tuned before it is useful on any task.

Most early AI language systems read mainly English, so they were far better at English than at anything else. mT5 is a model deliberately raised on text from 101 languages at once, from Hindi and Arabic to Swahili. Because it learned them side by side, teaching it a job in one language often leaves it able to do that job in the others — rather like someone who grew up multilingual picking up a new skill and immediately being able to explain it in any of their languages. It is used mostly for translating, summarising and sorting text rather than for open-ended chat.