- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper conducted a theoretical analysis of one-layer, single-head linear and softmax self-attention trained on a copy task. The method is calculating the Bayesian posterior with a given training set size. The conceptual finding is a phase transition from uniform attention to concentrated attention on the token being copied. The broader implication is intended for understanding and monitoring LLM training.
Strengths and weaknesses
Strength
- The writing of this paper is polished and mostly clear. The paper makes it relatively explicit which assumptions are required for which parts of the results to hold, which helps readers both understand the analysis and interpret the implications of the theory accurately.
- The reduction to two scalar order parameters due to symmetry makes the problem intuitive to understand despite the dense expressions from the analytical calculations. That is, the main mechanism is the competition between uniform attention prior and concentrated attention on the copied token, which is mediated by the sample size.
- Experiments with Adam match the Bayesian results surprisingly well, despite that the Bayesian results do not model the optimization trajectories.
Weakness
One of the primary empirical observations that serves as the motivation of this theoretical analysis is the "In-context Learning and Induction Heads" blog by Olsson et al. In their original observationin (Argument 1 in their blog), they found that "models with more than one layer have a sudden improvement in in-context learning." Could the authors explain why their one-layer, single-head model exhibits a phase transition, while the prior empirical work found phase transitions only in models with more than one layer? And what does this difference imply about to what extent can we use the mechanism derived in the idealized model to explain the phase transitions observed in practical settings?
Questions
It is kind of surprising that the results from the Bayesian analysis, which don't model the training dynamics aspect of the problem, match the training dynamics of Adam. Does SGD dynamics also match the results?
Could the authors clarify what they mean by the sentence at line 23 "if capabilities are acquired without prior signal, models may move between different risk classes abruptly without giving the opportunity to prepare appropriately."? It is unclear to me what we are preparing for, and thus I also didn't fully understand the implications on designing monitoring strategy mentioned at the end of the paper at line 280.
At line 33, the authors state that out of two tasks of the in-context regression and in-context bigram, the latter exhibits an abrupt evolution. But arguably, the former also exhibits abrupt evolutions (Chen et al., 2024; Zhang et al., 2025).
At line 146, is the notation supposed to be ?
Limitations
Could the authors discuss whether or how their results might change when using multi-head instead of single-head attention?
Paper formatting concerns
N/A
Final justification
Please see my Official Comment reply to the authors' rebuttal.
We thank the reviewer for their helpful review and for highlighting the intuition behind the two-order-parameter reduction and the accessibility of the resulting mechanistic picture. We address the raised points below.
This is correct in the regard that a single attention layer cannot implement induction on its own as it requires composing a copy operation with a previous-token operation across two layers. So our single-layer model is not a candidate for exhibiting the composite ICL score Olsson et al. measure, and there is no tension with their finding regarding the necessity of more than one layer. Instead, we isolate the copy (shift-by-one) subcircuit that Olsson et al. themselves identify as the first layer of a two-layer induction head, which is thus learnable by a single-layer, single-head model.
We hypothesize that the first-order emergence of this subcircuit is one plausible mechanistic contributor to the abrupt ICL jumps observed in deeper models, but our single-subcircuit equilibrium analysis does not by itself establish this for the full multi-layer, next-token-prediction setting. In the rebuttal, we generated results for a two-layer model (building on App. J for two-layer theory) that is trained on sequences containing context-dependent bigrams. We observe the emergence of induction heads proper in this setting, in particular the copy attention pattern in the first layer; the order parameters capture the copy pattern albeit with differences in the last two positions due to the specific task structure including the trigger and follower token. We are, however, still investigating the phase transition behavior in this setting; a full characterization will be a subject of future work.
This is a good point and worth separating two things: SGLD's agreement is expected by construction, since its stationary distribution is the Bayesian posterior, whereas Adam and SGD converge to a single point estimate rather than sampling a distribution. Their match to theory follows from a separate argument we give in App. K, where we show that the large χ limit implies a zero-temperature limit, and the posterior action yields the same objective as gradient flow with weight decay. To answer the reviewer's question more fully, we repeated the experiments presented in the paper with (S)GD (in practice, since P is small the whole dataset fits in a single batch). The results are very similar to those for Adam that we presented in the paper, and we will add them to an appendix in our manuscript. We can already share them via an anonymized link here if that would be useful to the reviewer.
We thank the reviewer for prompting us to sharpen this point. One of the main approaches to AI safety defines risk and sets policies to mitigate the risk based on the capabilities of the model [8]. Accordingly, the ability to predict the emergence of new capabilities is crucial to implementing such policies in the most effective way.
Our model studies a much simpler capability than those such policies typically target: the ability to copy the previous token. This subcircuit is nonetheless a component of induction heads, which have themselves been linked to capabilities such as chain-of-thought reasoning; if a capability relying on this mechanism emerges via a first-order transition, with no precursor in the training dynamics, the network could leave a given safety class without prior opportunity for detection. Within our mathematically precise and simple setting, we ask: when can we predict the emergence of a new capability in a model that is trained on P datapoints from a model that was trained on p<P datapoints? We find the answer is nuanced: the learning curves for both softmax attention and linear attention are non-smooth and have a sharp transition; that is, there exists P∗ such that for every P<P∗ the capability is not learned and for P>P∗ the capability is learned. Now, based on the classification of these points into first-order and second-order phase transitions, respectively, we deduce that the former is not predictable from the observables tracked in this framework, while the latter is predictable if we track the correct observables (which is the monitoring strategy referenced at line 280).
The unpredictability conclusion follows from general statistical physics/probability arguments: Denoting the limit of a large system by M→∞ (in our context that would mean the scaling limit defined in Section 2 d,P,L,χ,σ2→∞) for P<P∗ the local minimum where the capability appears, is statistically unobservable outside of a vanishingly narrow window around P∗. The probability mass of any competing minimum is exponentially suppressed by M, scaling as e−MΔS where ΔS is the difference in the value of the action between the competing minimum. Consequently, strictly outside a window of O(1/M) away from the critical point P∗, the posterior mass of this minimum is vanishingly small. From the perspective of local sampling or optimization within the dominant minimum, the competing state is therefore practically unobservable.
As this statement may appear overly strong, we note that:
We will add these points and develop the discussion in the main text to make this point clear.
We thank the reviewer for pointing out that the phrasing in l. 33 is misleading; we did not mean to imply that the former exhibits no abrupt evolution. We will correct the sentence in the revision and will cite Chen et al. (2024) and Zhang et al. (2025) alongside it as further examples of abrupt evolution in in-context regression:
Zhang et al. (2025) and Chen et al. (2024) investigate gradient flow in single layer attention layers trained on in-context regression. Both find a training dynamics that transitions rapidly as a function of training time from the initial, untrained, to the final state where the task has been learned. Chen et al. (2024) identified different temporal phases, while Zhang et al. (2025) analyzed the fixed-point structure, which depends on whether or not key and query are combined. From their analysis it is not straightforward to identify whether this is a phase transition in the physical sense, because they do not define an ensemble and also because the control parameter of the transition (e.g. number of training samples) is neither made explicit, nor is the dynamics studied as a function of such a control parameter.
Thank you for pointing this out. The notation is correct as written: F=(fαa) is the network's output, appearing in the first term of the exponential, while f~ is the conjugate variable introduced via the Fourier representation and integrated out. We will make sure this distinction is unambiguous in the revision.
Thanks to the reviewer's question, we extended the Bayesian posterior derivation to multi-head attention; the order-parameter reduction transfers as well, yielding two order parameters per head, using the same machinery as in the main text. This reveals a richer symmetry structure than in the single-head case: for linear attention the relevant branch reduces to an effective two-parameter structure, while for softmax attention the continuous symmetry over heads breaks down to a discrete permutation symmetry across the NH heads. In principle this allows for solutions in which different heads specialize into different states, i.e. some settling into copy attention while others remain uniform, rather than every head independently repeating the single-head transition. Characterizing which of these configurations dominate the posterior is the natural next step of this analysis, which we are actively pursuing and hope to discuss further with the reviewer. This indicates that the single-head setting studied in the paper is not a limiting special case but a foundation that extends naturally to the richer, more realistic multi-head regime, and we will comment on this extension in the revision.
We hope this resolves the reviewer's question and and are glad to elaborate on any of these points during the discussion period.