Many-shot prompting gives LLMs a wider path to better answers
Researchers from Google, DeepMind, and other institutions found that LLMs can perform better when prompts include hundreds or thousands of examples. The approach, called Many-Shot In-Context Learning (ICL), improved results on translation, summarizing, planning, and question answering, though example order and hallucinations remain concerns.
A new study points to a simple but powerful shift in how people may use large language models: give the model many examples in the prompt, not just a few. Researchers from Google, DeepMind, and other institutions found that this approach can lift performance across several common tasks, while also making prompt design more demanding.
“The story is mainly about a prompting technique improving LLM performance, with only mild concerns about hallucinations and dependence on better prompt design.”Why it scores Neutral
What many-shot prompting changes
The technique studied is called Many-Shot In-Context Learning (ICL). In-context learning means the model receives examples directly inside the prompt. The model is not retrained, and its parameters are not adjusted as they would be in fine-tuning.
That distinction matters because fine-tuning is described as much more time consuming and expensive. Many-Shot ICL instead uses the prompt itself as the learning space. The model sees a large collection of task examples and then applies the pattern to a new request.
Earlier prompting methods usually relied on one example or a small set of examples. That was partly because models could not handle very long inputs and outputs. With larger context windows, described as a kind of short-term memory, prompts can now contain hundreds or thousands of examples.
The study tested this idea with Google's Gemini 1.5 Pro language model. Gemini 1.5 Pro can process up to one million tokens, or about 700,000 words, in context. That capacity makes it possible to place many task demonstrations directly in front of the model at once.
Where the gains appeared
The researchers compared many-shot prompts with few-shot prompts on several types of work. Many-shot prompting performed significantly better on tasks such as translating, summarizing, planning, and answering questions.
The translation results were especially notable. With about 1000 translation examples, Gemini 1.5 outperformed Google Translate in Kurdish and Tamil. The source describes these as the target languages with the largest reported gap between LLMs and Google Translate to date.
For news summarization, the result was more mixed. The model nearly matched specialized programs, but it still sometimes produced hallucinations. The source specifically mentions incorrect data and times that were not present in the learning examples.
There was also an unexpected limit in the summarization setting. Performance dropped after more than 50 examples, and the researchers do not yet know why. That finding shows that more examples can help, but it does not make prompt building automatic or risk-free.
Models can also generate examples
The study also examined harder logical tasks, including mathematical or scientific problems. For these tasks, the researchers had the model create its own solutions and then used those outputs as additional examples.
This method is called Reinforced ICL. According to the source, it worked more reliably than human-created solutions in that setting. The finding suggests that examples do not always have to come from people, as long as they are useful for the task.
The researchers also tested a version called Unsupervised ICL. In that experiment, the model received problems without solutions. For some logical tasks, this still worked better than a small number of complete examples, though it usually did not match the results from Reinforced ICL.
Another result was that examples could help the model correct earlier mistakes from pre-training. The source says the model could unlearn errors through examples and recognize abstract mathematical patterns when shown enough of them.
Prompt quality becomes the bottleneck
The broader implication is that long-context models can use prompts as a much richer teaching channel. If a task can be demonstrated clearly through many examples, the model may not need a separate round of task-specific training.
That does not make the process simple. The order of examples affected performance, which means prompt construction becomes more complex as the prompt grows. Prompt writers need to decide not only which examples to include, but also how to arrange them.
The study also leaves open questions. One is why performance can decline when even more examples are added. Another is how to reduce hallucinations when the model is asked to summarize or reason from a large prompt.
For people working with LLMs, the practical lesson is direct:
- Many examples can improve model behavior across different tasks.
- Long context windows make Many-Shot ICL possible at a larger scale.
- Example quality, example order, and task fit still matter.
- More examples are not guaranteed to keep improving results.
Many-shot prompting therefore looks less like a prompt trick and more like a new workflow for using LLMs. It shifts some effort away from training and toward building high-quality example sets that match the task. If future research explains the remaining limits, this approach could become an important alternative to more expensive task-specific training.
Read next