← Latest papers
💬 NLP

EuroBERT: Scaling Multilingual Encoders for European Languages

This paper introduces EuroBERT, a family of multilingual encoders covering European and global languages that leverages recent generative model innovations to outperform existing alternatives across diverse tasks while natively supporting sequences up to 8,192 tokens.

Original authors: Nicolas Boizard, Hippolyte Gisserot-Boukhlef, Duarte M. Alves, André Martins, Ayoub Hammal, Caio Corro, Céline Hudelot, Emmanuel Malherbe, Etienne Malaboeuf, Fanny Jourdan, Gabriel Hautreux, João Alve
Published 2026-06-02
📖 5 min read🧠 Deep dive

Original authors: Nicolas Boizard, Hippolyte Gisserot-Boukhlef, Duarte M. Alves, André Martins, Ayoub Hammal, Caio Corro, Céline Hudelot, Emmanuel Malherbe, Etienne Malaboeuf, Fanny Jourdan, Gabriel Hautreux, João Alves, Kevin El Haddad, Manuel Faysse, Maxime Peyrard, Nuno M. Guerreiro, Patrick Fernandes, Ricardo Rei, Pierre Colombo

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a massive library of books written in dozens of different European languages, plus some code and math textbooks. For a long time, the "librarians" (AI models) who could read and understand all these books were getting a bit old-fashioned. Meanwhile, a new generation of "storytellers" (generative AI) has been getting all the attention because they can write new stories from scratch.

The authors of this paper asked a simple question: "Why are we ignoring the librarians? Can't we make them just as smart as the storytellers?"

They built a new family of librarians called EuroBERT. Here is how they did it, explained simply:

1. The New Librarian's Toolkit (Architecture)

Old librarians used a standard, slightly clunky way of organizing information. EuroBERT uses a brand-new toolkit borrowed from the most advanced storytellers.

  • The Analogy: Think of the old librarian as someone reading a book line-by-line with a magnifying glass. EuroBERT is like a librarian who can scan the whole page at once, understand the context instantly, and remember where everything is without getting confused. They removed unnecessary "clutter" (biases) and added super-fast memory tools (like Rotary Position Embeddings) to handle very long documents without losing their place.

2. The Training Diet (Data)

To make these librarians smart, you have to feed them the right food.

  • The Feast: They trained EuroBERT on a massive diet of 5 trillion words (tokens). This isn't just random internet chatter; it's a carefully curated mix of:
    • 15 Languages: Including major European languages (like French, German, Spanish) and widely spoken global ones (like Chinese, Arabic, Hindi).
    • Specialized Subjects: They didn't just feed them stories; they also fed them code (programming languages) and math.
    • The Result: Just like a student who studies history, math, and coding becomes a better problem-solver, EuroBERT became better at finding information across all these different topics.

3. The Two-Phase Training (The Recipe)

They didn't just dump all the books on the librarian at once. They used a two-step cooking method:

  • Phase 1: Pre-training (The Rough Draft): They fed the model a huge, diverse mix of data to learn the basics of language, code, and math. During this phase, they played a game where they hid 50% of the words and asked the model to guess them. This forced the model to really pay attention to context.
  • Phase 2: Annealing (The Polish): This is the "finishing touch." They took the model and gave it a second, more focused diet. They adjusted the mix to include more high-quality educational material and parallel translations (sentences in two languages side-by-side). Crucially, they changed the game: instead of hiding 50% of the words, they only hid 10%. This helped the model get better at understanding full sentences rather than just guessing missing words.

4. The Results: How Good Are They?

The authors tested EuroBERT against other famous librarians (like XLM-RoBERTa and mGTE) in a series of "exams":

  • The Search Test (Retrieval): If you ask, "Find me a document about renewable energy in French," EuroBERT is incredibly fast and accurate at finding the right page.
  • The Understanding Test (Classification): If you show it a sentence and ask, "Is this positive or negative?" or "Do these two sentences mean the same thing?", it gets the answer right more often than the competition.
  • The Niche Tests (Code & Math): This is where EuroBERT shines brightest. Because they fed it math and code, it is significantly better at understanding programming languages and mathematical formulas than other similar-sized models.
  • The Long-Document Test: EuroBERT can read documents up to 8,192 tokens long (roughly 6,000–8,000 words) without getting confused or forgetting the beginning of the text. Older models tend to "forget" the start of long stories, but EuroBERT remembers.

5. A Few Surprising Discoveries

While building EuroBERT, the team learned some counter-intuitive things:

  • Quality isn't everything: They thought that feeding the model only the highest-quality, most educational texts would make it smarter. It didn't. The model actually performed better when fed a broader mix of data, including things that weren't strictly "educational."
  • Less English is more: They reduced the amount of English data and increased the other languages. This made the model more balanced and better at understanding non-English languages.
  • Code helps everything: Including programming code in the training data didn't just help with coding tasks; it actually made the model better at finding information in regular text too.

The Bottom Line

The authors released EuroBERT as a free tool for everyone. It's a set of three models (small, medium, and large) that are currently the best "all-rounder" librarians for European and global languages. They prove that you don't need to be a "storyteller" (generative AI) to be powerful; a well-trained "understander" (encoder) can still be the best tool for searching, classifying, and analyzing text.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →