Learning without training: The implicit dynamics of in-context learning
2025/07/21 by Benoit Dherin, Benoît Dherin, Dherin, Benoit +9 · 10 voices · 16 citations
Psychology · #Innovative Teaching and Learning Methods
paper · pdf · doi:10.48550/arxiv.2507.16003
Abstract
One of the most striking features of Large Language Models (LLMs) is their ability to learn in-context. Namely at inference time an LLM is able to learn new patterns without any additional weight update when these patterns are presented in the form of examples in the prompt, even if these patterns were not seen during training. The mechanisms through which this can happen are still largely unknown. In this work, we show that the stacking of a self-attention layer with an MLP allows the transformer block to implicitly modify the weights of the MLP layer according to the context. We argue through theoretical analysis and experimentation that this simple mechanism may help explain why LLMs demonstrate capabilities of in-context learning, beyond what is captured during training. Specifically, we show that a standard forward pass with context is mathematically equivalent to a forward pass without context but with the MLP weights updated by a minimal low-rank update representing the context.
Citations
Cited by
Discussions
- Interesting paper suggesting a mechanism for why in-context learning happens in LLMs. They show that LLMs implicitly apply an internal low-rank weight update adjusted by the context. It’s cheap (due t [bsky, 59 points, 1 comments]
- Self-attention transforms a prompt into a low-rank weight-update [hn, 17 points, 1 comments]
- You may find this paper interesting: "... we show that a standard forward pass with context is mathematically equivalent to a forward pass without context but with the MLP weights updated by a minimal [bsky, 6 points, 1 comments]
- Finally getting around to reading this paper: arxiv.org/abs/2507.16003 The authors propose that instead of adding attention to the residual stream, it's possible to apply it as a low-rank adaptation t [bsky, 4 points, 1 comments]
- Learning without training: The implicit dynamics of in-context learning [hn, 2 points, 0 comments]
- The paper you are likely referring to is "Learning without training: The implicit dynamics of in-context learning" by Dherin et al. from Google Research, published in July 2025. It can be found on arX [bsky, 2 points, 1 comments]
- The Implicit Dynamics of In-Context Learning [hn, 1 points, 0 comments]
- Learning without training: The implicit dynamics of in-context learning [hn, 1 points, 0 comments]
- Interesting paper in this context arxiv.org/pdf/2507.16003 [bsky, 0 points, 1 comments]
- Learning without training: The implicit dynamics of in-context learning arxiv.org/pdf/2507.16003 [bsky, 0 points, 0 comments]
Related