Apply to my task
arXiv:2510.16809 ★ 78 Oct 19, 2025

The Many-Shot Paradox: When More Examples = Worse Results

Key result

100 examples in a prompt give worse results than 10 — that's not a bug, it's how LLMs behave on complex tasks. The method keeps quality at its peak without degradation when you use few-shot prompting. The trick: with 5-25 examples the model grasps the essence of the task; with 125+ it starts copying surface patterns. Peak accuracy of 61-62% at 5-25 examples, dropping to 54-58% at 125-625 examples — tested on 90 thousand code-translation tests.

01

TL;DR

Many-Shot Paradox — the phenomenon where an LLM performs best with 5-25 examples in the prompt, and as you scale up to hundreds of examples, quality drops. The researchers tested this on code translation (90,000 tests, Gemini models), but the principle holds for any task that demands precision.

Intuition says: the more examples you give a model, the better it understands the task. But for complex tasks that's not true. With 5-25 examples the model grasps the essence and gives accurate answers. With 125-625 examples it starts copying surface patterns from the examples while ignoring the task's deeper logic. In code translation, it looks like this: the output resembles code (static metrics go up), but it doesn't compile and doesn't work (functionality drops 5-10%).

The mechanics: a model with lots of examples learns to imitate the formrather than reproduce the substance. Too much context = too much noise and too many conflicting signals. The model loses focus on what matters most — correctness and precision.


Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.

02

The Paradox Blueprint

ZERO-SHOT (0 examples)
→ Baseline: ~54-57% success

FEW-SHOT (5-25 examples)  
→ PEAK performance: ~61-62% success
→ The model grasps the essence of the task

MANY-SHOT (125-625 examples)
→ DEGRADATION: back to ~54-58% success
→ The model copies surface patterns
→ Functional errors go up

Tipping point: after 25 examples, every additional 100 examples lower accuracy by 1-3%, even though the text may look better.


03

Example in Practice

Task: You're a marketer at an online retailer. You write Amazon-style product listings — persuasive and emotional, but precise on the specs. You need to describe a new collection of winter jackets (50 models).

⚠️ DON'T do this: Copy 100 ready-made descriptions from the catalog → "Here are examples, now describe the new jackets in the same style"

✅ Do this:

Prompt:

You are a copywriter for Amazon product listings. Here are 8 descriptions of winter jackets from our catalog that sell well:

[Example 1: Alaska down jacket — focus on cold resistance]
Handles an Arctic -40°C, no joke. 90/10 down, windproof, extended cut — you stay warm even if you left your hat at home...

[Example 2: Urban parka — focus on style + practicality]
Looks like a million bucks, costs like... well, a lot less. 10K membrane, removable fur, power bank pockets...

[Examples 3-8 with different USPs: lightness, packability, durability, etc.]

---

Now describe the new model:
- Name: Alaska Luxe
- Features: 95/5 goose down, 15K waterproofing, carbon elbow panels, -50°C
- Target audience: men 30-45, active lifestyle, willing to pay for quality

Keep the Amazon style (emotion + precision), but adapt it to this model's specs.

Result: The model produces a description that keeps the style's DNA (emotion, concrete numbers, conversational phrasing), but accurately reflects the new model's USP. Give it 100 examples and the model starts mechanically mixing phrases from different listings, losing focus on what makes the product unique.


04

Why It Works

LLM weakness: The model doesn't "understand" the task — it looks for patterns in the examples. With 5-25 examples the pattern is clear and concentrated. With 100+ examples the patterns clash — some examples say "write short," others "write long," others "be serious," still others "be emotional."

LLM strength: Models generalize great from a small set of high-quality examples. 5-8 examples are enough to extract the essence of a style, tone and structure. It's like explaining a task to a person — 3-5 good examples beat 100 mediocre ones.

The paradox mechanics: Lots of examples = surface-level copying instead of deep understanding. The model starts imitating the form (sentence length, word frequency, syntax) but loses the substance (logic, correctness, uniqueness). The result: text that looks plausible but performs poorly.

Control levers:

  • Number of examples (5-25 is the sweet spot) → fewer = saves tokens but may miss the style; more = noise and degradation
  • Example quality → pick diverseexamples, all within one pattern (different USPs, same tone)
  • Explicit instruction ("keep the style, but adapt it to the new context") → helps the model avoid blind copying

05

Prompt Template

You are a {role}. Here are {5-25} examples of {content type} that work well:

[Example 1: {context}]
{example text}

[Example 2: {different context}]
{example text}

...

[Example {N}: {another context}]
{example text}

---

Now create {content type} for a new context:
- {key information 1}
- {key information 2}
- {key information 3}

Keep {what matters to preserve from the examples}, but adapt it to {new context}.

How to fill it in:

  • {role} — who you are for the model (copywriter, analyst, translator)
  • {5-25} — keep it in the 5-25 example range, no more
  • {content type} — what you're creating (product description, customer email, data analysis)
  • {context} for each example — show a variety of scenarios
  • {what matters to preserve} — spell out what the model should take from the examples (style, structure, tone)

🚀 Quick start — paste into the chat:

Here is a few-shot template of the optimal size. Adapt it to my task: {your task}. 
Ask me questions to fill in the fields.

[paste the template above]

The LLM will ask what examples you have, what result you need and what style to preserve — because it needs to understand what to extract from the examples and how to apply it to the new context. It will take the prompt structure and build a working version for your task.


06

Limitations

⚠️ Simple tasks: For obvious tasks (translating a word, a country's capital), even 5 examples are overkill. Zero-shot works great.

⚠️ Examples that are too different: If your 10 examples come in different styles/tones/formats, the model gets confused. Better 5 examples in one style than 20 mismatched ones.

⚠️ Subjective criteria: If the task is about "creativity" or "originality," examples can limit the model's imagination. For creative work, go zero-shot or 2-3 examples "for inspiration."

⚠️ Tokens and money: 625 examples = 20-30x more expensive than 25 examples. If the result is worse and the price is higher, it's simply a bad deal.


07

How They Studied It

The team took 90,000 code translations between 6 programming languages (C, C++, C#, Java, Go, Python) and ran them through 3 Gemini models with different numbers of examples: 0 (zero-shot), 5, 25, 125, 625. The key move: they measured not only "text similarity" (BLEU, CodeBLEU) but also functional correctness: does the code compile, does it run, does it produce the right result.

Here's what they found: static metrics (text similarity) grew or held steady as examples increased, but functionality dropped. With 25 examples, 61.8% of the code compiled successfully; with 625 examples, only 56-58% — almost zero-shot level. What's more, as examples grew, so did functional and runtime errors — the code looked right but worked wrong.

Why? With 625 examples the model learned to copy syntactic patterns (code structure, keywords) but lost semantic understanding (logic, correct behavior). It's like a student who memorized 100 worked solutions but never got the underlying principle — on a new problem they'll apply the wrong formula.

The economics: A prompt with 625 examples cost 21 times more than one with 25 examples (in tokens), yet gave a worse result. This isn't just an academic paradox — it's real lost money and quality.

Robustness of the finding: The paradox showed up in all 30 language pairs, including easy ones (Java → C#) and hard ones (Python → Go). Regardless of translation difficulty, the peak was always in the 5-25 example zone.


08

Resources

When Many-Shot Prompting Fails: An Empirical Study of LLM Code Translation — Amirkia Rafiei Oskooei, Kaan Baturalp Cosdan, Husamettin Isiktas, Mehmet S. Aktas (Yildiz Technical University, Intellica Business Intelligence, 2025)


Research digest

Key result

100 examples in a prompt give worse results than 10 — that's not a bug, it's how LLMs behave on complex tasks. The method keeps quality at its peak without degradation when you use few-shot prompting. The trick: with 5-25 examples the model grasps the essence of the task; with 125+ it starts copying surface patterns. Peak accuracy of 61-62% at 5-25 examples, dropping to 54-58% at 125-625 examples — tested on 90 thousand code-translation tests.

Principle

Don't stuff every example you found into the prompt — pick the 5-25 most representative ones. Too much context = too much noise. The model starts imitating the form (sentence length, syntax, word frequency) but loses the substance — logic and correctness. Tipping point: after 25 examples, every additional 100 examples lower accuracy by 1-3%, even though the text may look more convincing.

Why it works

The model doesn't understand the task — it looks for patterns in the examples. With 5-25 examples the pattern is clear and concentrated. With 100+ examples the patterns clash: some say "write short," others "write long," others "be serious," still others "be emotional." The model loses focus on what matters most — correctness — and starts mixing surface features. In code translation: the text resembles code (static metrics go up), but doesn't compile or work (functionality drops 5-10%).

When to apply

For tasks that demand precision and logical consistency → code translation, generating structured texts (product listings, templated emails, technical documents), especially when you're tempted to show the model "the whole example archive at once." NOT a fit for creative tasks that need originality — there, examples actually limit the model's imagination.

Mini recipe

1. Pick 5-25 examples: Not everything you have, but the most representative ones — different scenarios, but one consistent style/tone/structure 2. Show a range of contexts: Each example should demonstrate one aspect of the task (different product features, different types of emails) 3. Add an explicit instruction: `Keep [what matters from the examples], but adapt it to [new context]` — this helps the model avoid blind copying 4. Check for degradation: If the result drifts, cut the examples to 10, then to 5, and find the minimum at which quality holds

Examples

[BAD]: `Here are 150 ready-made product listings from our Amazon catalog. Describe the new jacket collection in the same style` [GOOD]: `Here are 8 winter jacket listings that sell well: [Example 1: focus on cold resistance -40°C] [Example 2: focus on style + practicality] ... [Example 8: focus on packability] Now describe the "Alaska Luxe" model: 95/5 goose down, -50°C, carbon elbow panels. Keep the Amazon style (emotion + precision), but adapt it to this model's specs`

In plain words

Here's the deal: models have their own "saturation point," which the researchers called the Many-Shot Paradox. We're used to thinking that the more examples you give a model, the smarter it gets, but in reality it works differently. When you dump hundreds of examples into a prompt, the model doesn't learn better — it just loses focus. Instead of grasping the essence of the task, it starts drowning in informational noise where different examples contradict each other, and ends up giving a worse result than if you'd handed it just ten samples.

It's like trying to teach someone to make chili by showing them five hundred different recipes from five hundred different grandmas at once. They're all about the same thing, sort of, but one uses ground beef, another uses brisket, and a third throws in beans. The poor cook's head hits cognitive overload, and what comes out isn't a culinary masterpiece but an inedible mess. The model is no different: with 5–25 examples it sees a clear pattern, but with 100+ it starts bouncing between options and ends up tripping over its own feet.

The study ran this on code translation with Gemini models, across a whopping 90,000 tests. It turns out there's a "sweet spot": 5 to 25 examples is peak performance. As soon as you go past that number, accuracy starts sliding downhill. The model stops understanding what exactly to anchor on and starts inventing its own rules or just copying random chunks of context that have nothing to do with the task.

Although it was tested on code, the principle is universal for any content work. Whether you're writing product listings for marketplaces, creating ad creatives or drafting legal documents — the overload rule works the same everywhere. If you make the model read your entire social media post history so it "catches your style," it's more likely to spit out mush than lively text. Give it a few perfect hits instead of dumping your whole five-year archive on it.

The main takeaway is simple: more doesn't mean better. If your task demands surgical precision, don't try to bury the model under a mass of examples, or you'll get a game of telephone. Stick to a couple dozen top-quality samples that perfectly reflect the result you want. In the LLM world, brevity beats volume, and if you don't get that, you'll be endlessly rewriting prompts, wondering why the model suddenly started fumbling the basics.

AI lab assistant

Apply this study to your task

Describe what you're working on. AI takes the method and the measured results from this paper and adapts them to your case, or writes a ready prompt built on them.

Based on The Many-Shot Paradox: When More Examples = Worse Results arXiv:2510.16809

Sign in to apply this study New accounts get 50 free credits.