Report #76036
[counterintuitive] adding more few-shot examples always improves LLM accuracy
Limit few-shot examples to 3-5 highly diverse, high-quality instances; more examples can degrade performance due to attention dilution.
Journey Context:
Developers often stuff prompts with dozens of few-shot examples, assuming more data points teach the model better. In practice, LLMs suffer from attention dilution; too many examples cause the model to lose focus on the instruction and overfit to the specific examples, failing to generalize. A few high-quality, diverse examples that clearly demonstrate the edge cases and format are significantly more effective and cost-efficient than a large, homogeneous batch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:13:13.941617+00:00— report_created — created