In-Context Learning

Also known as: ICL

Category: Generative AI / LLM

The ability of large language models to learn and perform new tasks from examples provided in the prompt, without any parameter updates.

Full Explanation

In-context learning (ICL) is a remarkable capability of large language models where they can perform tasks by conditioning on a few examples or instructions provided in the input prompt, without any gradient updates or fine-tuning. Demonstrated famously in GPT-3, ICL allows a model to adapt to new tasks at inference time simply by processing task demonstrations. For example, providing a few English-French translation pairs in the prompt enables the model to translate new sentences. ICL includes zero-shot learning (task description only), one-shot learning (one example), and few-shot learning (several examples). The mechanism behind ICL is not fully understood but likely involves the model implicitly implementing learning algorithms within its forward pass. ICL has made language models extremely versatile and accessible, as users can define new tasks through natural language rather than requiring specialized training.

Related Terms

More in Generative AI / LLM

Explore More