Learning without training: The implicit dynamics of in-context learning

Dherin, Benoit, Munn, Michael, Mazzawi, Hanna, Wunder, Michael, Gonzalvo, Javier

–arXiv.org Artificial Intelligence 

Large language models (LLMs), powered by the transformer architecture (Vaswani et al., 2017), have revolutionized modern machine learning, with wide-ranging applications in science, industry, and art (Dong et al., 2024; Liu et al., 2023). Despite this impact, the mechanisms behind their impressive emergent properties (Bubeck et al., 2023; Wei et al., 2022) are still not fully understood. One of the most fascinating and compelling of these properties is the ability of LLMs to perform in-context learning (ICL) wherein the model is able to adapt based on information provided in the input prompt, without any changes or modifications to the model's underlying weights. Our work is focused on better understanding the mechanisms which enable this advantageous behavior. Historically, in machine learning, the ability to extract patterns from data has been understood as a dynamical process in which model weights are updated through an optimization procedure (Goodfellow et al., 2016). However, in the case of ICL, the model weights remain unchanged. Instead, LLMs appear to re-organize or reconfigure their internal representations depending on the prompt and this dynamic adjustment allows them to make predictions that are significantly more accurate. This mysterious and extremely helpful property of LLMs has led researchers to conjecture an implicit form of weight updates taking place at inference time when a prompt is consumed (Akyürek et al., 2023; Dai et al., 2023; Garg et al., 2022; Huang et al., 2025; von Oswald et al., 2023; Zhang et al., 2024).