Multilingual Pre-training and Data Balancing

Michael BrenndoerferNovember 26, 20263 min read
Language AI HandbookAll chapters
Part 26 of 67Multilingual Language Models and Cross-Lingual Transfer
Chapter 185Multilingual Pre-training and Data Balancing
Reading section 1 of 11 · Multilingual Pre-training and Data Balancing · 3 minSection 1 of 11 · 3 min

Section 1 of 11 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Multilingual language models can share some or all weights across languages. One shared model can cover training and deployment that might otherwise use several language-specific artifacts. Sharing can also help lower-resource languages. The XLM-R experiments found that adding languages improved performance for some low-resource languages in their initial comparisons. Conneau et al. (2020), section 5

When you pool languages, the model can see recurring patterns in the combined data. Whether these patterns help depends on the task and the training mixture. Test candidate donor languages under the same evaluation protocol before treating relatedness as a benefit.

The shared setup gives you several budgets to write down: parameters, vocabulary entries, optimizer updates, context tokens, and tokens per unit of text. When shares of a fixed training budget sum to one, raising one share lowers the combined share of the others. The effect on language quality requires a measurement.

This chapter is about how that allocation is done. We focus on two levers:

  • Data allocation: how often each language is sampled during pre-training. The canonical mechanism is temperature-based sampling, a one-parameter reweighting of the natural corpus distribution.
  • Capacity allocation: which parameters and vocabulary entries are shared or specialized. Model size and architecture are levers here. Multilingual Tokenization and Vocabulary Allocation covers the vocabulary choice.

These two levers are not interchangeable. They operate on different bottlenecks and their costs are paid at different times:

  • A sampler change can keep the architecture and inference cost fixed while changing the fitted weights.
  • Adding a language-specific module changes the model artifact. If you select a module per request, include that selection in the serving design.

Knowing which problem you have is therefore worth more than knowing the formulas.

These choices affect where languages can share useful patterns and where their objectives can conflict.

  • Transfer. A shared model can learn patterns from one language that help another.
  • Interference. When languages prefer different parameter values, one shared fit can move closer to one language and farther from another. Test exposure, capacity, and tokenization separately before deciding which to change.

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