How Language Models Learn Without Changing Their Weights

Give a language model a few worked examples inside the prompt, and it will do a new task it was never explicitly trained to do. Show it three English sentences translated into French, then an English sentence with no translation, and it produces the French. Show it a few movie reviews labeled positive or negative, then an unlabeled one, and it classifies it. No weights change. No gradient step runs. The model simply reads the examples and adapts, on the spot, in a single forward pass. This is in-context learning, and it is the capability that turned language models from text predictors into general-purpose tools. It is also genuinely strange. Learning, in machine learning, has always meant
…