- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 4
- Significance
- 3
Read review
Summary
The authors study how generalized induction-head-like circuits (associative recall of facts of length k) emerge in transformers. They observed, under permutation-symmetric data settings, that learning proceeds in step-like improvement, in which each of the input layer attention heads learns to attend to a specific relative position. Motivated by the patterns/order-parameter they see in these experiments, they move to a simplified model containing k^2 + k parameters all related to the attention patterns. These constitute position-based attention scores for the preceding k tokens, for each head, as well as k attention factors controlling the comparison of the k query-part tokens with history tokens. The resulting equations reveal k conservation laws coupling the two transformer layers. Also when using controlled initialization, a separation of time scales emerges between the heads, allowing the authors to make predictions on the dynamics of each head.
Strengths and weaknesses
The main strength of this work is in distilling a tractable mech. interp. inspired toy model for the formation of associative recall. They furthermore provide some qualitative insights on their model (e.g. conservation laws) and test the robustness of when relaxing model assumptions (e.g. permutation symmetry, gaussian init, real QK attention).
There are some weaknesses, but these are expected in any time of work in this field aspiring to make quantitative theoretical predictions. In particular
- The assumption of fully symmetric data, which may become huge for large k.
- The simplifying assumptions such as the removal of MLPs, the ansatz for the 2nd layer attention pattern, and the reduction of the first layer attention to essentially a position-based linear module.
- Gradient flow training.
Another issue is that staged learning in transformers appears to be a well-trodden area, but the paper appears to be novel in its prediction of the time-scale and the 2-layer conservation law.
Finally, I did not fully understand how the authors verified their conservation law when relaxing the models assumptions. They appear to show that the quantities that mimic \alpha_1 and \beta_1 evolve together, but that is perhaps expected. Are they relating this to Taylor expansion of the conservation law, for small \alpha? It'll be good to see a more quantitative verification.
Questions
Could the authors relate their conservation law to some symmetry of the model?
Can they show that the non-linear relations implied by the conservation law are approximately obeyed?
Limitations
See questions and weaknesses
Paper formatting concerns
None
Final justification
Same as above, the author's response was useful but did not merit further increase in score in my mind.
Meta-review
This paper seeks to understand how induction-head-like circuits emerge in transformers. To do so, authors provide an analytical study of gradient-flow in a simplified two-layer attention-only transformer for a specific task. The main strength of the paper is in its fully analytical treatment. Its main weakness is the assumptions that allowed this treatment.
All reviewers appreciated the contributions of the paper and voted for acceptance, but they also raised some technical questions. Authors should respond to those. Reviewer TRe2 brings up some extra experiments authors could do to demonstrate the broader domain of validity of their theory. That would certainly make the paper much stronger.
Final meta-review edit: Authors responded satisfactorily to reviewer comments and promised to add more experiments in the revised manuscript. All reviewers recommend acceptance. I recommend acceptance.