Menu

1 / 5

How does a model learn from examples it was never trained on?

DEV Community: datascience·Adele Chinda·12 days ago
#4gY5mvMa
#devtodatascience#science#devto#dev#model
Long article (3128 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on Medium .

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 updating parameters. Here there are no updates, and yet the behavior changes as if the model had learned something.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.