← Latest papers
💬 NLP

An Empirical Study of Many-Shot In-Context Learning for Machine Translation of Low-Resource Languages

This paper empirically demonstrates that many-shot in-context learning significantly improves machine translation for low-resource languages, with BM25-based example retrieval offering substantial data efficiency gains by matching the performance of much larger non-retrieved example sets.

Original authors: Yinhan Lu, Gaganpreet Jhajj, Chen Zhang, Anietie Andy, David Ifeoluwa Adelani

Published 2026-04-06
📖 4 min read☕ Coffee break read

Original authors: Yinhan Lu, Gaganpreet Jhajj, Chen Zhang, Anietie Andy, David Ifeoluwa Adelani

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 are trying to teach a brilliant but inexperienced chef (a Large Language Model) how to cook a specific, rare dish from a remote village that the chef has never seen before. This village speaks a language the chef doesn't know, and there are no cookbooks written in that language.

This paper is about how to teach this chef using examples instead of a full textbook. The researchers wanted to see if giving the chef more and more examples (like showing them 1,000 different recipes) would help them cook better, and how to do this without burning a fortune on electricity.

Here is the breakdown of their findings using simple analogies:

1. The Problem: The "Empty Kitchen"

Most AI models are trained on the "internet," which is full of English, French, and Chinese, but very poor in languages like Anaang, Efik, or Tamazight. It's like the chef has a massive library of French cookbooks but zero books on how to make Nigerian or Quechua dishes. When you ask the chef to translate these languages, they usually guess poorly.

2. The Solution: "Many-Shot" Learning

Instead of just showing the chef one or two examples (which is called "few-shot"), the researchers tried showing them hundreds or even thousands of examples right before asking for the translation.

  • The Analogy: Imagine you are trying to learn a new dialect. If someone whispers one sentence to you, you might get it wrong. But if you sit in a room with 1,000 people speaking that dialect, you start to pick up the rhythm, the slang, and the grammar naturally.
  • The Result: The paper found that more examples = better cooking. As they increased the number of examples from 1 to 1,000, the AI's translation quality got significantly better, sometimes doubling in accuracy.

3. The Catch: The "Expensive Buffet"

There is a problem with showing 1,000 examples: it's expensive and slow.

  • The Analogy: Imagine the chef has to read 1,000 recipe cards before cooking a single meal. It takes a long time, and the paper costs a lot of money. For small communities, this "buffet" is too pricey to afford.

4. The Magic Trick: The "Smart Librarian" (BM25)

The researchers asked: Do we really need to show the chef 1,000 random recipes? Or can we just show them the 50 best ones?

They used a simple search tool called BM25 (think of it as a Smart Librarian). Instead of handing the chef a random pile of 1,000 cards, the librarian looks at the specific dish you want to cook and finds the 50 most similar recipes from the pile.

  • The Finding: This was a game-changer.
    • 50 Smartly Chosen Examples worked just as well as 250 Random Examples.
    • 250 Smartly Chosen Examples worked just as well as 1,000 Random Examples.
  • Why it matters: You get the same high-quality translation but use 4x to 10x less computing power. It's like getting a gourmet meal without having to read the entire library.

5. The "Foreign Cookbook" Test (Domain Mismatch)

The researchers also tested if the type of example mattered. They used examples from Wikipedia (everyday topics) versus examples from the Bible (religious texts).

  • The Analogy: If you want to learn how to order food at a restaurant, reading a cookbook is good. Reading a religious text might help with some words, but it won't teach you how to order a burger.
  • The Result: Generally, Wikipedia examples were better because they matched the "everyday" nature of the test. However, for some languages, the Bible examples were still surprisingly helpful. It's like saying, "If you don't have a restaurant menu, a religious text is better than nothing!"

6. The "Order of the Cards" (Curriculum Learning)

They wondered if the order of the examples mattered. Should you show the chef the easiest recipes first, then the hard ones? Or the hard ones first?

  • The Result: It didn't really matter. Whether the examples were sorted by length or shuffled randomly, the chef performed the same. The content of the examples mattered much more than the order.

The Big Takeaway

This paper proves that for languages that AI usually ignores, giving the AI a massive amount of context helps it learn.

However, you don't need to feed it everything. If you use a simple search tool to pick the most relevant examples, you can get the same great results with a fraction of the cost. This makes it possible for low-resource communities to use advanced AI without needing a supercomputer budget.

In short: To teach AI a rare language, don't just throw a thousand random books at it. Hire a smart librarian to pick the best 50, and the AI will cook up a perfect translation.

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 →