Beyond Induction Heads: In-Context Meta Learning Induces Multi-Phase Circuit Emergence

Tags
Meta
arxiv id
2505.16694
6 more properties

Abstract Summary

This research investigates how transformer-based language models acquire the ability to meta-learn tasks from context during training, a key aspect of In-Context Learning (ICL).
By analyzing the dynamics of the model's circuit during training, the study demonstrates the emergence of unique circuits in multiple phases for meta-learning, contrasting with the single-phased changes observed in induction heads.

Abstract

Transformer-based language models exhibit In-Context Learning (ICL), where predictions are made adaptively based on context. While prior work links induction heads to ICL through a sudden jump in accuracy, this can only account for ICL when the answer is included within the context. However, an important property of practical ICL in large language models is the ability to meta-learn how to solve tasks from context, rather than just copying answers from context; how such an ability is obtained during training is largely unexplored. In this paper, we experimentally clarify how such meta-learning ability is acquired by analyzing the dynamics of the model's circuit during training. Specifically, we extend the copy task from previous research into an In-Context Meta Learning setting, where models must infer a task from examples to answer queries. Interestingly, in this setting, we find that there are multiple phases in the process of acquiring such abilities, and that a unique circuit emerges in each phase, contrasting with the single-phases change in induction heads. The emergence of such circuits can be related to several phenomena known in large language models, and our analysis lead to a deeper understanding of the source of the transformer's ICL ability.