Scientists Discover How AI Learns by Copying, Then Gets Creative
This could mean smarter AI that adapts to your needs without retraining.
In-context learning (ICL) allows language models to adapt their behavior from instructions and demonstrations in a prompt, but accuracy alone does not reveal how contextual information controls their predictions. We study the acquisition and trainability of ICL with a controlled diagnostic that separates copying a nearby demonstration from integrating information across the prompt.
Across 17 models, about a third prefer the copied answer, a few are undecided, and the rest prefer the rule-consistent answer, which goes with higher accuracy and with control by the requested value rather than the closest conflicting example. Checkpoint analyses show that models begin prioritizing task-relevant prompt tokens over conflicting examples long before their accuracy improves beyond chance level.
In matched training experiments, synthetic documents that define endings and then query them shift models toward compositional responses on the controlled diagnostic, whereas fine-tuning on definition exercises built from rewritten real documents improves accuracy when prompts reassign label meanings. The results suggest that ICL is not acquired as a single, uniform capability. Instead, prompt control, answer preference, construction without candidates, and transfer can develop along distinct trajectories.
- AI models learn in two stages: first by copying examples, then by composing new responses.
- This 'in-context learning' lets AI adapt to new tasks without retraining, but it can also lead to errors if examples are limited.
- Understanding this process could make AI more reliable for everyday tasks like writing, answering questions, and customer service.
Why It Matters
Better understanding of AI learning leads to more reliable AI tools, saving you time and reducing frustrating mistakes.