Multilingual model

A multilingual model is an AI language model trained on text in many languages so that one model can understand or generate all of them.

A multilingual model is trained on a mix of languages with a single shared vocabulary and a single set of parameters, rather than one model per language. Because the parameters are shared, patterns learned in one language can help in another. Researchers call this cross-lingual transfer, and it matters most for languages with little text available online.

The hard part is balance. Google's multilingual BERT covers 104 languages and was trained on Wikipedia, using the 100 languages with the largest Wikipedias. English Wikipedia is so much bigger than, say, Icelandic that English would have been sampled about 1,000 times as often. The team smoothed the sampling so English was drawn only about 100 times as often, deliberately under-sampling large languages and over-sampling small ones.

XLM-R, described in November 2019 by Alexis Conneau and colleagues, scaled the idea to 100 languages and more than two terabytes of filtered web text from Common Crawl. It beat multilingual BERT by 14.6% in average accuracy on the XNLI cross-lingual benchmark, and improved on earlier models by 15.7% for Swahili and 11.4% for Urdu. The authors also described the trade-off at the heart of these models: adding languages brings more transfer, but a model of fixed size has to spread its capacity more thinly, and high-resource and low-resource languages compete.

Larger efforts followed. BLOOM, published in November 2022 by the BigScience collaboration of hundreds of researchers, has 176 billion parameters and was trained on 46 natural languages and 13 programming languages. The Aya model, described in February 2024, follows instructions in 101 languages, more than half of them classed as lower-resourced.

For users, the headline language count says little about quality in any one language. Performance tends to follow the amount of training text a language had, so a model that writes excellent English may be clumsy in Yoruba or Welsh. Check evaluations for the specific language before relying on a model for it.

Common questions

What is a multilingual language model?

It is a single model trained on text in many languages, sharing one vocabulary and one set of parameters across them. It can work in any of those languages and often translate between them, without a separate model for each.

Are multilingual models worse than single-language models?

Not necessarily. The XLM-R authors found their 100-language model was very competitive with strong single-language models on the GLUE and XNLI benchmarks. But a fixed-size model shares its capacity across all its languages, so quality usually varies, and smaller languages often lag.

How do multilingual models handle low-resource languages?

They rely on transfer from languages with more data, and builders often over-sample small languages during training so they are not swamped. Results still tend to be weaker for languages with little text online.

What are examples of multilingual models?

Well-known research examples include Google's multilingual BERT with 104 languages, XLM-R with 100, BLOOM with 46 natural languages and Aya with 101.

Finding more

Search for "multilingual language model", "cross-lingual transfer" or "low-resource languages LLM" together with the language you care about. Reliable sources include papers on arXiv and in the ACL Anthology, model cards that list training languages, and multilingual benchmarks that report results language by language. Treat a vendor's count of supported languages as a statement of coverage, not of quality.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.