{
 "slug": "In-context_learning",
 "title": "In-context learning",
 "type": "concept",
 "short_desc": "The ability of large language models to perform a new task from instructions or examples in the prompt alone, without any weight update, demonstrated at scale by GPT-3 in 2020.",
 "categories": [
  "Concepts",
  "Inference"
 ],
 "infobox": {
  "Introduced": "Zero-shot framing in GPT-2 (2019); named and measured in GPT-3 (2020)",
  "Field": "Machine learning, prompting",
  "Used in": "All instruction-following LLMs; the basis of few-shot prompting",
  "Key papers": "arXiv:2005.14165, arXiv:2201.11903, arXiv:2209.11895"
 },
 "infobox_links": {
  "Introduced": [
   "GPT-2",
   "GPT-3"
  ],
  "Used in": [
   "Large_language_model"
  ]
 },
 "aliases": [
  "Few-shot learning (LLMs)"
 ],
 "family": "",
 "org": "",
 "registry_status": "stub",
 "words": 340,
 "references": 4,
 "outbound": [
  "Chain-of-thought_prompting",
  "Circuits_(interpretability)",
  "GPT-2",
  "GPT-3",
  "Large_language_model",
  "Mechanistic_interpretability",
  "Pretraining",
  "Test-time_compute"
 ],
 "inbound": [
  "Analytic_distillation",
  "Andrej_Karpathy",
  "Circuits_(interpretability)",
  "Compositional_generalization",
  "Diffusion_language_model",
  "François_Chollet",
  "GPT-3",
  "GPT_(model_family)",
  "Gemini_1.5",
  "Ilya_Sutskever",
  "Large_language_model",
  "Multi-head_attention",
  "Next-token_prediction",
  "OpenAI",
  "Simulators_(essay)",
  "The_Scaling_Hypothesis"
 ],
 "url": "wiki/In-context_learning.html",
 "built": "2026-07-24"
}
