In-Context Learning

Technical

In-context learning is the simplest form of AI agent adaptation, where the model adapts its behavior based on information in its current context window -- the conversation history, task instructions, retrieved documents, and tool outputs -- without changing its underlying model weights. When an...

Detailed Explanation

In-context learning is the simplest form of AI agent adaptation, where the model adapts its behavior based on information in its current context window -- the conversation history, task instructions, retrieved documents, and tool outputs -- without changing its underlying model weights. When an agent retrieves a customer's previous interactions and personalizes its response, or adjusts its tone after receiving feedback that its first draft was too formal, it is learning in context. In-context learning is ephemeral: when the session ends, the learning disappears. This makes it the least risky form of adaptation, but it still creates governance considerations: context contamination (inaccurate information in context causes inappropriate actions), prompt injection (malicious content in retrieved documents manipulates behavior), and context window limitations (important instructions pushed out as conversations grow long).

Why It Matters

Understanding In-Context Learning is essential for organizations pursuing responsible AI transformation. In the context of enterprise AI governance, this concept directly impacts how organizations design, deploy, and oversee AI systems particularly within the Technology pillar. Without a clear grasp of In-Context Learning, organizations risk creating governance gaps that undermine trust, compliance, and long-term value realization. For AI leaders and practitioners, In-Context Learning provides the conceptual foundation needed to make informed decisions about AI strategy, risk management, and stakeholder engagement. As regulatory frameworks such as the EU AI Act and standards like ISO 42001 mature, proficiency in concepts like In-Context Learning becomes not merely advantageous but operationally necessary for any organization deploying AI at scale.

COMPEL-Specific Usage

Technical concepts map to the Technology pillar of the COMPEL framework. They are most relevant during the Model stage (designing AI system architecture and governance controls) and the Produce stage (building, testing, and deploying AI solutions). COMPEL ensures that technical decisions are never made in isolation but are governed by the broader organizational context of People, Process, and Governance pillars. The concept of In-Context Learning is most directly applied during the Model and Produce stages of the COMPEL operating cycle. Practitioners preparing for COMPEL certification will encounter In-Context Learning in coursework aligned with the Technology pillar, and should be prepared to demonstrate applied understanding during assessment activities.

Related Standards & Frameworks

  • ISO/IEC 42001:2023 Annex A.5 (AI System Inventory)
  • NIST AI RMF MAP and MEASURE functions
  • IEEE 7000-2021