Notes

XGLM

Most of the early evidence that a large model can pick up a task from examples in its prompt came from English, trained on corpora that were overwhelmingly English. XGLM is Meta AI's test of whether that ability survives when the training data is deliberately spread across many languages instead.

What it is

XGLM is a family of decoder-only autoregressive models released in 2021, at sizes from 564M up to 7.5B parameters. The training set is what distinguishes it:

  • a 500-billion-token corpus built from CommonCrawl covering 30 languages;
  • low-resource languages upsampled, and English held to a minority share, so that Hindi, Swahili or Tamil are not drowned out;
  • no instruction tuning and no preference training — these are pure pretrained base models, judged through in-context learning alone.
Why it mattered

The 7.5B model beat a comparably sized GPT-3 on multilingual few-shot benchmarks, and the work contributed translated evaluation sets, XStoryCloze among them, that made such comparisons possible in the first place. For production work XGLM has been overtaken by BLOOM and by the broadly multilingual Qwen and Gemma families, but it remains the reference point for a specific claim: cross-lingual few-shot ability comes from the data mixture, not from scale alone. The weights sit on the Hugging Face Hub and are small enough to run on a single GPU, which keeps them useful for research on languages the larger releases still treat as an afterthought.

XGLM is a family of decoder-only multilingual language models from Meta AI (564M–7.5B parameters), pretrained on a 500-billion-token CommonCrawl corpus spanning 30 languages with low-resource languages upsampled. Its 7.5B version outperformed a similarly sized GPT-3 on multilingual few-shot benchmarks, establishing that cross-lingual in-context learning depends on the data mixture rather than scale alone. The weights are openly available for research.

Most AI writing assistants learned their craft mainly from English text, and it shows — ask in Bengali or Swahili and the answers get thinner. XGLM was an experiment by Meta to see what changes if you deliberately feed a model a balanced diet of thirty languages instead, giving the smaller ones extra helpings so English cannot crowd them out. It worked. The model handled tasks in those languages from nothing more than a couple of examples in the request, beating a comparable English-heavy model of similar size. The lesson stuck: a model speaks the languages it was raised on, and that is a choice someone makes in advance.