Early Prompting Showdown: Zero-Shot vs. Few-Shot
The earliest LLM interactions established two core methods: Zero-shot prompting, which relies solely on instructions without examples, and Few-shot prompting, which provides 2-5 input-output examples directly within the prompt to guide the model's behavior for improved accuracy.
The top 3
- Few-Shot's Early Accuracy Edge: In the initial explorations of LLM prompting, few-shot prompting consistently delivered higher accuracy on complex tasks compared to zero-shot, which often struggled without examples to clarify task requirements and format.
- Prompting's Hidden Cost: Few-Shot's Token Tax: While few-shot prompting improves accuracy by providing examples, it significantly increases token consumption and computational cost compared to zero-shot, which relies solely on the model's pre-trained knowledge without any in-context examples.
- Brown et al. 2020: The Few-Shot Foundation: The 2020 paper "Language Models are Few-Shot Learners" by Brown et al. from OpenAI is widely recognized as a seminal work that demonstrated and popularized few-shot prompting, showcasing how sufficiently large language models could learn new tasks from minimal examples.
Sources
Open the full topic