Definition
In-context learning is the ability of LLMs to learn from demonstrations provided within the input prompt.
Key Insight: The model learns the pattern from examples without any gradient updates - it's all inference-time learning.
How It Works: 1. Include task demonstrations in prompt 2. Model recognizes the pattern 3. Applies pattern to new input
Factors Affecting Performance: - Example quality and relevance - Example ordering - Format consistency - Model size (emergent in large models)
Research Findings: - Label correctness matters less than format - More examples generally help - Example diversity important
Examples
Including example Q&A pairs before your actual question to guide the model's response format.
Related Terms
Want more AI knowledge?
Get bite-sized AI concepts delivered to your inbox.
Free intelligence briefs. No spam, unsubscribe anytime.