Response to Reviewer 2duX
We thank the reviewer for a detailed review of the paper and for appreciating the contributions like lower bounds and robustness results.
**W1: It’s unclear how well these controlled settings will transfer to real-world problems. This is a broader issue in the literature**
**Reply:**We would like to note that most of the results in the paper do not make the Gaussian assumption. In fact our matching upper and lower bounds consider arbitrary linear regression instances with bounded eigenvalues of the covariance. Moreover, our robustness result for looped models holds for a much broader class of distributions (that satisfy the “right-spread-out” assumption) rather than just a single Gaussian as in previous work.
**W2 The idea of “diversity” here might be somewhat questionable**
**Reply:**We model diversity as different instances that belong to the same learning task, here the learning task is linear regression. While not perfect, this already provides a reasonable test-bed for modeling in-context learning ability. Proving any theoretical result encompassing various learning tasks, although interesting as the reviewer has mentioned, is currently beyond our reach. We believe many fundamental questions about in-context learning of transformers first need to be addressed before that.
**W3: Choosing linear/ReLU activation on the self-attention matrix may not map well to reality.**
**Reply:** We point out that previous theoretical work on in-context learning mainly considered either linear attention, or at most Relu attention (what references are good?). We do acknowledge that the goal is to move to a stronger model, however proving lower bounds becomes even more difficult.
**W4: The authors mention that there is “signal” from linear attention for understanding non-linear attention (citing Ahn et al., 2024b). this is vague**
**Reply:** We acknowledge that indeed the behavior of linear transformers can be different, depending on the specific setting and instances, to that of non-linear attention. The reason behind citing the work of Ahn. et al is that they show linear transformers generalize as well as non-linear ones for many complex regimes, so theoretical understanding of linear transformers is also very valuable. Moreover we note that our lower bounds also apply to attentions with Relu activation. Thus theoretically we have shown that adding Relu non-linearity cannot qualitatively improve the performance of linear transformers, which aligns with the empirical observation of Ahn. et al.
**Q1: How do the authors justify that linear regression with different covariances sufficiently captures "task diversity"?**
**Reply:** The notion of diversity we consider (arbitrary covariances with bounded eigenvalues) is a significant improvement over the settings considered in prior work (unimodal Gaussians). Crucially, for the unimodal Gaussian distribution even a 1-layer model can almost perfectly solve the task. However for the diversity we consider, depth becomes necessary in terms of expressivity as per our results, which makes the setting more appealing.
**Q2: Can the authors clarify the signal that linear attention supposedly provides for non-linear tasks, and the feasibility of extending these findings from non-language to language models?**
**Reply:** For the first part of your query about linear and non-linear attention, please refer to our response to Q2. For the second part, we believe that a key challenge in proving in-context learning results for language problems lies in understanding how the structure of a given grammar aligns with the expressive power of self-attention. Specifically, this involves questions such as how compactly a verifier can represent a proof that a sentence belongs to a particular grammar.
**Q3:implications for practitioners from your work?**
**Reply:** This is certainly an important question that we are actively thinking about. There are few takeaways that may be of interest to practitioners
Depth matters: For Transformers to solve a diverse set of ICL problems (which language models do), depth plays a very important role. This could be a valuable insight for architecture design, if the focus is ICL abilities.
Non-robustness: It was interesting to learn from the theory that multilayer models, if too deep relative to training task diversity, can learn non-robust solutions. It does so by using different layers to solve different tasks seen during training. Thus if we are going deeper, we better make sure to have a more diverse training dataset.
Looped models: One fascinating finding is that looped models, although seemingly restrictive, can solve ICL with close to optimal depth in many cases. Furthermore they afford significantly higher robustness since they are forced to learn a more generalizable algorithmic solution, rather than the “shortcuts” mentioned above. This suggests that looped models should be given more attention if such algorithmic abilities are of interest