In-Context Learning
Task adaptation at inference time by conditioning a language model on instructions or demonstrations in its context.
Method
Place task instructions and optionally example input-output pairs in the prompt, then predict the query response without updating model weights.
Applications
Rapid task adaptation, low-resource NLP, interactive AI assistants, prototyping new capabilities, educational tools, any setting where fine-tuning is impractical.
Advantages
Task conditioning without per-task parameter updates.
Limitations
Sensitive to prompt wording, demonstration selection and order, context budget, and pretrained capabilities; demonstrations do not constitute gradient-based training.
Alternatives
Fine-tuning (full or PEFT), retrieval-augmented generation, tool use / agents, classical supervised learning.
Editorial clarification
Primary method selected from the source bundle; related approaches are alternatives, not aliases.
Sources
Educational reference only, not professional advice.
All algorithms