Back to search

UCL (University College London)

Learning dynamics of emergent in-context learning in transformers

Abstract

dc:description.abstract

Transformer neural networks demonstrate a remarkable capacity for in-context learning (ICL). Typically contrasted with in-weights learning (IWL), in-context learning is the ability of a neural network to generalize to a new inputs and tasks at test time, without any weight updates. This emergent ability, first seen in large language models (LLMs) trained at internet scale, has led to much of the utility of LLMs in modern society, through chatbots and coding assistants. Despite its importance, this ability was remarkably poorly understood, likely due to the scale needed to achieve it. In this thesis, I study emergent in-context learning by first identifying a smaller-scale setup where ICL emerges, despite not being explicitly trained for. I find that non-uniform data distributional properties are crucial for ICL emergence. Even with these properties however, overtraining (as is common with modern LLMs) can lead to ICL fading away. In other words, emergent ICL is a transient phenomenon, which emphasizes the need for a better understanding of dynamics and begs the question: Why does ICL emerge if only to give way to in-weights strategies? To tackle these dynamics, I developed optogenetics-inspired methods to causally intervene on dynamics. These methods enabled a deeper understanding of the abrupt induction circuit emergence (the key driver of ICL abilities) as the simultaneous learning of three smoothly evolving sub-circuits. Equipped with this better understanding, I found that the transient emergence of ICL arises due to co operative interactions with asymptotic, largely in-weights strategies, which share two of the three sub-circuits. The transience is caused by competitive interactions: asymptotic strategies “crowd out” the earlier ICL. In sum, these findings indicate that ICL abilities should rather be thought of as existing on a spectrum with competitive and cooperative interactions governing their tradeoff through learning.

Degree

thesis:*
Level dc:type.qualificationlevel
Doctoral
Grantor dc:publisher.institution
UCL (University College London)
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Singh, Aaditya K

Rights

Language dc:language
en, eng

Identifiers

dc:identifier.*
Repository record dc:identifier.uri
https://discovery.ucl.ac.uk/id/eprint/10222775/

Chain of custody

source
Harvested from
University College London
Base URL
discovery.ucl.ac.uk/cgi/oai2
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
related terms
citation

Singh, Aaditya K. Learning dynamics of emergent in-context learning in transformers. Doctoral thesis, UCL (University College London), 2026. https://discovery.ucl.ac.uk/id/eprint/10222775/