Saved in:
Bibliographic Details
Main Authors: Singh, Aaditya K., Moskovitz, Ted, Dragutinovic, Sara, Hill, Felix, Chan, Stephanie C. Y., Saxe, Andrew M.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.05631
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929750635708416
author Singh, Aaditya K.
Moskovitz, Ted
Dragutinovic, Sara
Hill, Felix
Chan, Stephanie C. Y.
Saxe, Andrew M.
author_facet Singh, Aaditya K.
Moskovitz, Ted
Dragutinovic, Sara
Hill, Felix
Chan, Stephanie C. Y.
Saxe, Andrew M.
contents In-context learning (ICL) is a powerful ability that emerges in transformer models, enabling them to learn from context without weight updates. Recent work has established emergent ICL as a transient phenomenon that can sometimes disappear after long training times. In this work, we sought a mechanistic understanding of these transient dynamics. Firstly, we find that, after the disappearance of ICL, the asymptotic strategy is a remarkable hybrid between in-weights and in-context learning, which we term "context-constrained in-weights learning" (CIWL). CIWL is in competition with ICL, and eventually replaces it as the dominant strategy of the model (thus leading to ICL transience). However, we also find that the two competing strategies actually share sub-circuits, which gives rise to cooperative dynamics as well. For example, in our setup, ICL is unable to emerge quickly on its own, and can only be enabled through the simultaneous slow development of asymptotic CIWL. CIWL thus both cooperates and competes with ICL, a phenomenon we term "strategy coopetition." We propose a minimal mathematical model that reproduces these key dynamics and interactions. Informed by this model, we were able to identify a setup where ICL is truly emergent and persistent.
format Preprint
id arxiv_https___arxiv_org_abs_2503_05631
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Strategy Coopetition Explains the Emergence and Transience of In-Context Learning
Singh, Aaditya K.
Moskovitz, Ted
Dragutinovic, Sara
Hill, Felix
Chan, Stephanie C. Y.
Saxe, Andrew M.
Machine Learning
In-context learning (ICL) is a powerful ability that emerges in transformer models, enabling them to learn from context without weight updates. Recent work has established emergent ICL as a transient phenomenon that can sometimes disappear after long training times. In this work, we sought a mechanistic understanding of these transient dynamics. Firstly, we find that, after the disappearance of ICL, the asymptotic strategy is a remarkable hybrid between in-weights and in-context learning, which we term "context-constrained in-weights learning" (CIWL). CIWL is in competition with ICL, and eventually replaces it as the dominant strategy of the model (thus leading to ICL transience). However, we also find that the two competing strategies actually share sub-circuits, which gives rise to cooperative dynamics as well. For example, in our setup, ICL is unable to emerge quickly on its own, and can only be enabled through the simultaneous slow development of asymptotic CIWL. CIWL thus both cooperates and competes with ICL, a phenomenon we term "strategy coopetition." We propose a minimal mathematical model that reproduces these key dynamics and interactions. Informed by this model, we were able to identify a setup where ICL is truly emergent and persistent.
title Strategy Coopetition Explains the Emergence and Transience of In-Context Learning
topic Machine Learning
url https://arxiv.org/abs/2503.05631