In-Context Learning
Normally, teaching a model something new means changing its weights. In-context learning is the discovery that a large enough language model does not need that: show it two or three worked examples inside the prompt and it will carry the pattern over to a new input, every parameter untouched.
Learning that is not trainingNothing is learned in the usual sense. The examples sit in the context window, are processed as ordinary tokens, and the behaviour vanishes when the conversation ends. What they do is locate the task — they tell the model which of the countless patterns absorbed during pretraining is wanted right now. The GPT-3 paper made this the headline capability, and it is why one deployed model can classify sentiment, pull fields out of an invoice and translate, with no task-specific training run.
What it is sensitive to- The format of the examples, the label words chosen, and their order all move the result — sometimes more than the content does.
- Correct labels matter surprisingly little; demonstrations with shuffled labels still work, because they convey the shape of the task rather than its answers.
- A long list of demonstrations competes with everything else in the context window, and is re-sent — and paid for — on every call.
In-context learning is the right tool when the task is easy to show and the volume is low: you change the prompt and see the result immediately, with no training infrastructure at all. Once the same task runs thousands of times a day, or needs behaviour the model cannot be coaxed into by example, fine-tuning moves that knowledge into the weights and takes it off the per-request token bill.
In-context learning is a large model's ability to perform a task from examples supplied in the prompt, with no weight update. The demonstrations identify which pretrained pattern to apply, and the effect lasts only for that request. It matters because it collapses the cost of a new task from a training run to an edit of the prompt, and it is the reason one deployed model serves many jobs — at the price of re-sending those examples on every call.
Imagine a new colleague who cannot be sent on a training course, but who is extraordinarily quick on the uptake. You show her three emails you have already sorted into urgent and routine, and she sorts the rest the same way. You taught her nothing permanent — tomorrow she will have forgotten, and you will show her the three examples again. In-context learning is exactly this. The examples you type into the chat change nothing lasting about the AI. They simply make clear which job you want done right now, and the model picks it up from the pattern.