Report #87111
[counterintuitive] Adding more few-shot examples always improves in-context learning performance
Start with 2-5 well-chosen, mutually consistent examples. If performance degrades with more examples, suspect context interference rather than insufficient demonstration. Prioritize example quality, diversity, and format consistency over quantity. Test performance as you add examples rather than assuming more is better.
Journey Context:
The intuition that more examples = better learning comes from supervised learning, where more training data generally helps. But in-context learning is fundamentally different: the model is doing pattern completion conditioned on the prompt, not gradient-based learning. More examples consume context window, dilute attention across the demonstration set, and can introduce subtle contradictions or style shifts that confuse the model. Research \(Zhao et al. 2021; the original GPT-3 paper Brown et al. 2020\) shows few-shot performance often peaks at 3-5 examples and can decline after that. The model is sensitive to the format, ordering, and content of demonstrations—a badly chosen 6th example can override the signal from 5 good ones. The mental model: in-context examples are not training data, they are a specification of the output distribution. A precise specification with few examples beats a noisy one with many.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:48:28.876587+00:00— report_created — created