In-Context Learning
Also known as: ICL
In-context learning is the ability of LLMs to adapt to a task from examples or instructions inside the prompt, without updating weights. Zero-shot, one-shot, and few-shot prompting are forms of ICL.
Strengths
- Fast iteration: change demos or instructions without training
- Task switching in one session via prompt engineering
- Works surprisingly well on format mimicry and simple classification
Brittleness
Example order, label wording, and delimiters can swing accuracy. Long demos burn context window. Hard domain tasks often still need fine-tuning or RAG.
Treat ICL as a product surface: version prompts, A/B test, and keep a fixed eval suite—do not rely on anecdotal single-prompt wins.