Report #35769
[counterintuitive] Do few-shot examples always improve LLM accuracy
Use zero-shot first. Only add few-shot examples if the task format is highly unusual or ambiguous. Ensure few-shot examples are diverse and unbiased, or they will skew the model's output distribution.
Journey Context:
It is standard practice to add examples to a prompt. However, few-shot examples can anchor the model to the specific examples, causing it to repeat the examples rather than generalizing. If examples are too similar, the model overfits to that specific sub-case. If they contain subtle formatting errors, the model learns the errors. Modern instruction-tuned models often perform equally well or better with zero-shot instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:31:05.345845+00:00— report_created — created