Report #55227
[counterintuitive] Adding more few-shot examples to a prompt linearly improves accuracy
Use 3 to 5 highly diverse, high-quality few-shot examples; prefer zero-shot with clear instructions if the task is simple.
Journey Context:
Developers often stuff prompts with dozens of few-shot examples hoping to cover every edge case. This causes attention dilution: the model spends its fixed attention budget processing the examples rather than the actual query, and tends to overfit to the specific format of the examples, ignoring the actual instruction. A small number of diverse, high-quality examples establishes the pattern far more effectively than a large corpus of similar ones, while saving context window and latency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:11:23.960399+00:00— report_created — created