You hand a language model three examples — "cat → feline, dog → canine, eagle → ?" — and it completes the pattern. No training loop ran. No gradient updated a single weight. The model never even saw this mapping during pretraining. Yet it gets it right.
This is in-context learning (ICL): the ability of a large language model to adapt to a new task at inference time, guided only by examples embedded in the prompt. The weights are frozen; all the "learning" happens inside the context window.
ICL is strange enough to deserve a closer look. Classical machine learning separates training from inference sharply: you train once, then you predict. ICL blurs that line. The same forward pass that produces the answer is also, somehow, the act of picking up the pattern. Understanding why that is possible turns out to reveal something deep about what transformer attention is actually doing.
Comments
Loading comments...