Glossary

What is In-context learning?

In Turkish: Kendiliğinden öğrenme (in-context learning) · Topic: Models and training

The ability of a large language model to pick up a new task from a few examples or instructions in the prompt, without any change to its weights. The learning happens while the model generates a response, not during training.

How does it work?

The user places a few input-output examples in the prompt and then adds a new input. The model notices the pattern in the context and shapes its answer to match it. Its weights do not change; the examples only matter for that conversation and are forgotten once they leave the context window. Depending on how many examples are given, people speak of zero-shot, one-shot or few-shot prompting. Exactly how this ability emerges is still debated in research.

Why does it matter?

It lets a model be adapted to new jobs without retraining, which saves time and cost, especially for small teams. Many news reports about learning from only a few examples are describing this behavior.

Example

Someone who wants customer reviews labeled positive or negative shows three labeled sample reviews in the prompt, and the model labels the fourth the same way.

FAQ

How is in-context learning different from fine-tuning?

Fine-tuning permanently updates a model's weights using extra data. In-context learning leaves the weights alone; the examples live only in the prompt and affect only that conversation.

How many examples does a model need?

There is no fixed number; it depends on the task and the model. A few examples are often enough for simple tasks, but too many will fill up the context window.

All terms