Transformers Can Learn Multiclass Classification In-Context: Isotropy Governs Generalization
Daehan Yoon, Chulhee Yun
HiLD @ ICML 2026
TL;DR. We study generalization bounds for multiclass in-context classification under label imbalance setting.
Abstract. In-context learning plays a central role in transformer-based large language models, yet its theoretical understanding remains limited. In this work, we study multiclass in-context classification under more realistic settings, including anisotropic class centers and label imbalance, by introducing a spectral data generation framework that constructs class-center matrices with a prescribed singular spectrum. We first show that the isotropy of class-center vectors, as quantified by the stable rank, improves ICL generalization performance. From a meta-learning perspective, our theorem shows that linear transformers can learn multiclass in-context classification with near-optimal per-label sample complexity, extending prior guarantees beyond the binary setting. In the test label imbalance regime, our analysis reveals that queries from majority classes are easier to classify, while those from minority classes are more error-prone; moreover, robustness to this bias improves with the stable rank. Finally, we empirically demonstrate that our theory is consistent with observations on transformers and pretrained large language models.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper studies in-context learning [1,2,3] in a multi-class setting where the prompt includes noisy samples from each class and each class-conditional distribution is an isotropic gaussian. Theorem B.2 shows under similar assumptions to [1] that the gradient descent procedure converges to the maximum margin solution, whilst Theorem 3.1 shows that the stable rank [5] of the covariance matrix of the class centers is a key quantity determining the speed of convergence.
The reviewers (and AC) generally agree that the paper is interesting, sound and well-written (XuLP: technically sound and well presented, GTX1: “meaningful problem”, “reasonably coherent”, Rev. Zw1M: “significantly extends”, “problem is very topical”…), though many reviewers (and AC) have concerns with the excessive assumptions and possible lack of novelty compared to [1,2,3].
Most important questions for the rebuttal:
- (AC+ Zw1M , GTX1 , MGoW ) Why are all the assumptions (especially linearity) required? Why does the analysis of [2] (which covers the presence of softmax) not work here?
- (AC) The current submission assumes that the value matrix is fixed to the identity. This is not the case in the most closely related work of [3]. Can the authors explain why such an assumption is strictly necessary?
- (AC) Ultimately, because of all these simplifications, the final prediction is made by the simple function in line 124, which doesn’t look very transformer-like at all. Can the authors (and reviewers!) comment on whether this may risk leading to a situation which is already covered by earlier spectral methods~[4,5] (or even kernel methods), independent of the transformer literature?
- (AC) [3] covers the non-isotropic case, why can’t it be done in this case?
- (Reviewer GTX1+AC) The empirical support and connection to the theory is weak. Why not also include experiments with linear transformers such as the one studied here? The experiments only show that higher stable rank increases performance: that is a fair point, but it is intuitively valid independently of the theoretical results, and some more quantitative results could help.
- (Rev. MGoW and AC) “The proofs follow mostly the arguments of [1,2,3]” . Can the authors elaborate on whether there is any significant technical novelty or difficulty in the techniques?
- (AC) Apologies for the possibly naïve question, but how can I interpret Theorem 3 in terms of the batch/sample complexity? To achieve the same misclassification probability, can you write out the required number of samples in notation? And explain the intuition as well.
Minor:
There is a lot of punctuation missing at the end of equations in the appendix (e.g. page 15)
Post Rebuttal
The authors have adequately addressed both the reviewers' and my concerns during the rebuttal, and one reviewer increased their score: the reviewers now unanimously recommend acceptance. In their conversation with me, the authors have clarified that the distinction with Ahn et al. is that this submission studies classification whilst that reference studies regression, they have also provided a detailed explanation of the sample complexity in terms of the prompt length and number of training tasks. This explanation should be included in the camera ready version, together with the new experiments with linear activations that I requested.
References
[1] Hrithik Ravi, Clayton Scott, Daniel Soudry, and Yutong Wang. The implicit bias of gradient descent on separable multiclass data. ICLR 2024.
[2] Roey Magen, Shuning Shang, Zhiwei Xu, Spencer Frei, Wei Hu, Gal Vardi. Benign Overfitting in Single-Head Attention. NeurIPS 2025.
[3]. Ahn et al. Transformers learn to implement preconditioned gradient descent for in-context learning. 2023.
[4] High dimensional probability. Vershynin.
[5] Koltchinskii and Lounici. Concentration Inequalities and Moment Bounds for Sample Covariance Operators.
Final justification
The reviewers are unanimous in supporting the paper, and I also believe the paper makes a meaningful contribution. The authors were active and thorough in the rebuttal and have successfully addressed all of our concerns. Although the final model remains a little simplistic due to the linearity of the activations, it is still an interesting step in the study of multi-class ICL.
Read meta-review
Meta-review
This paper studies in-context learning [1,2,3] in a multi-class setting where the prompt includes noisy samples from each class and each class-conditional distribution is an isotropic gaussian. Theorem B.2 shows under similar assumptions to [1] that the gradient descent procedure converges to the maximum margin solution, whilst Theorem 3.1 shows that the stable rank [5] of the covariance matrix of the class centers is a key quantity determining the speed of convergence.
The reviewers (and AC) generally agree that the paper is interesting, sound and well-written (XuLP: technically sound and well presented, GTX1: “meaningful problem”, “reasonably coherent”, Rev. Zw1M: “significantly extends”, “problem is very topical”…), though many reviewers (and AC) have concerns with the excessive assumptions and possible lack of novelty compared to [1,2,3].
Most important questions for the rebuttal:
- (AC+ Zw1M , GTX1 , MGoW ) Why are all the assumptions (especially linearity) required? Why does the analysis of [2] (which covers the presence of softmax) not work here?
- (AC) The current submission assumes that the value matrix is fixed to the identity. This is not the case in the most closely related work of [3]. Can the authors explain why such an assumption is strictly necessary?
- (AC) Ultimately, because of all these simplifications, the final prediction is made by the simple function in line 124, which doesn’t look very transformer-like at all. Can the authors (and reviewers!) comment on whether this may risk leading to a situation which is already covered by earlier spectral methods~[4,5] (or even kernel methods), independent of the transformer literature?
- (AC) [3] covers the non-isotropic case, why can’t it be done in this case?
- (Reviewer GTX1+AC) The empirical support and connection to the theory is weak. Why not also include experiments with linear transformers such as the one studied here? The experiments only show that higher stable rank increases performance: that is a fair point, but it is intuitively valid independently of the theoretical results, and some more quantitative results could help.
- (Rev. MGoW and AC) “The proofs follow mostly the arguments of [1,2,3]” . Can the authors elaborate on whether there is any significant technical novelty or difficulty in the techniques?
- (AC) Apologies for the possibly naïve question, but how can I interpret Theorem 3 in terms of the batch/sample complexity? To achieve the same misclassification probability, can you write out the required number of samples in notation? And explain the intuition as well.
Minor:
There is a lot of punctuation missing at the end of equations in the appendix (e.g. page 15)
Post Rebuttal
The authors have adequately addressed both the reviewers' and my concerns during the rebuttal, and one reviewer increased their score: the reviewers now unanimously recommend acceptance. In their conversation with me, the authors have clarified that the distinction with Ahn et al. is that this submission studies classification whilst that reference studies regression, they have also provided a detailed explanation of the sample complexity in terms of the prompt length and number of training tasks. This explanation should be included in the camera ready version, together with the new experiments with linear activations that I requested.
References
[1] Hrithik Ravi, Clayton Scott, Daniel Soudry, and Yutong Wang. The implicit bias of gradient descent on separable multiclass data. ICLR 2024.
[2] Roey Magen, Shuning Shang, Zhiwei Xu, Spencer Frei, Wei Hu, Gal Vardi. Benign Overfitting in Single-Head Attention. NeurIPS 2025.
[3]. Ahn et al. Transformers learn to implement preconditioned gradient descent for in-context learning. 2023.
[4] High dimensional probability. Vershynin.
[5] Koltchinskii and Lounici. Concentration Inequalities and Moment Bounds for Sample Covariance Operators.
Final justification
The reviewers are unanimous in supporting the paper, and I also believe the paper makes a meaningful contribution. The authors were active and thorough in the rebuttal and have successfully addressed all of our concerns. Although the final model remains a little simplistic due to the linearity of the activations, it is still an interesting step in the study of multi-class ICL.
5 comments
K=5, Linear
| Pattern | sr=1.5 | sr=2 | sr=2.5 | sr=3 | sr=3.5 |
|---|---|---|---|---|---|
P1 [6,6,6,6,6] |
0.805±0.006 | 0.941±0.007 | 0.976±0.005 | 0.987±0.004 | 0.991±0.003 |
P2 [8,7,6,5,4] |
0.661±0.019 | 0.847±0.015 | 0.917±0.009 | 0.943±0.005 | 0.955±0.006 |
P3 [10,8,5,4,3] |
0.537±0.011 | 0.707±0.013 | 0.793±0.012 | 0.845±0.013 | 0.867±0.007 |
P4 [12,8,4,3,3] |
0.474±0.012 | 0.616±0.018 | 0.700±0.015 | 0.764±0.013 | 0.787±0.010 |
P5 [14,8,4,2,2] |
0.377±0.021 | 0.494±0.022 | 0.578±0.014 | 0.625±0.014 | 0.652±0.015 |
K=10, Linear
| Pattern | sr=1.5 | sr=2 | sr=2.5 | sr=3 | sr=3.5 | sr=4 | sr=4.5 | sr=5 | sr=5.5 | sr=6 |
|---|---|---|---|---|---|---|---|---|---|---|
P1 [3,3,3,3,3,3,3,3,3,3] |
0.647±0.020 | 0.900±0.012 | 0.970±0.005 | 0.989±0.004 | 0.996±0.002 | 0.999±0.001 | 0.999±0.001 | 0.999±0.001 | 0.999±0.001 | 1.000±0.001 |
P2 [4,4,4,3,3,3,3,2,2,2] |
0.488±0.025 | 0.743±0.016 | 0.847±0.005 | 0.912±0.010 | 0.944±0.011 | 0.967±0.006 | 0.975±0.004 | 0.979±0.005 | 0.985±0.004 | 0.986±0.003 |
P3 [6,5,4,4,3,3,2,1,1,1] |
0.333±0.017 | 0.483±0.016 | 0.568±0.011 | 0.634±0.014 | 0.683±0.010 | 0.714±0.017 | 0.743±0.010 | 0.754±0.016 | 0.770±0.013 | 0.785±0.010 |
P4 [8,5,4,3,3,2,2,1,1,1] |
0.288±0.016 | 0.421±0.020 | 0.525±0.015 | 0.592±0.014 | 0.645±0.012 | 0.675±0.013 | 0.707±0.012 | 0.735±0.017 | 0.740±0.017 | 0.763±0.016 |
P5 [9,6,4,3,2,2,1,1,1,1] |
0.232±0.016 | 0.345±0.015 | 0.435±0.008 | 0.501±0.015 | 0.548±0.017 | 0.583±0.014 | 0.614±0.015 | 0.639±0.017 | 0.660±0.012 | 0.666±0.012 |
The trends in the linear setting are consistent with those reported in Section 5.1. During the rebuttal period, we also compared stable rank with classical GMM quantities (see our response to Q2 of XuLP).
Q6. About technical novelty
Our technical novelty lies in the Haar-measure-based analysis of the learned max-margin solution, which constitutes a nontrivial extension of prior analyses. For further details, see our response to W1 of Reviewer MGoW.
Q7. About sample complexity
The term is the prompt sample complexity required to achieve the constant misclassification probability. Its dependence on d reflects that higher-dimensional prompts require more demonstrations. provides a (tight) upper bound for , where denotes the minimum distance between class-centers. Consequently, our rate matches the lower bounds for classical GMM-based classification. The main result of [5] establishes that Transformers are nearly optimal meta-learners for binary classification; our result extends this guarantee to the multiclass setting. Further discussion is provided in Appendix A.
Reference
[1] Roey Magen, Shuning Shang, Zhiwei Xu, Spencer Frei, Wei Hu, Gal Vardi. Benign Overfitting in Single-Head Attention. NeurIPS 2025.
[2]. Ahn et al. Transformers learn to implement preconditioned gradient descent for in-context learning. 2023.
[3] High dimensional probability. Vershynin.
[4] Koltchinskii and Lounici. Concentration Inequalities and Moment Bounds for Sample Covariance Operators.
[5] Magen and Vardi. Transformers are almost optimal metalearners for linear classification. NeurIPS 2025
Dear Authors,
Thanks for the comments. I appreciate the extra experiments, which should be included in the revision.
Regarding the sample complexity question, I have some further questions: you mention that the sample complexity is , but from the formula, in the theorem, it would seem that you require , which expressed in terms of the sample size (number of demonstrations ) is . Can you explain further where I am getting this wrong? If confirmed, a dependence on would seem quite unnatural.
To improve the quality of the final published paper, could I trouble you to write a complete version of Theorem 3.1 in the form of a high-probability statement (a threshold on the number of samples ? Can you also confirm the intuition why the result doesn't depend on at all?
Best,
AC
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies multiclass in-context classification with (linear) transformers and studies what geometric property of the data governs generalization. The authors introduce a spectral data-generating procedure (Definition 1) that builds class-center matrices with a fixed spectrum, allowing control over both class-center anisotropy and label imbalance, settings prior binary-focused work could not capture. By analyzing a one-layer linear self-attention model trained by gradient descent, they show its parameters converge to a max-margin solution and derive per-class misclassification bounds. The main finding is that the isotropy (quantified by the stable rank of the class-center matrix) governs performance: higher stable rank improves generalization (Theorem 5) and increases robustness to majority-label bias under a test-time imbalance (Theorem 6). Experiments on synthetic-data transformers and pretrained LLMs (Llama, Qwen, Phi-3) for a WordNet classification task show stable rank correlates positively with ICL accuracy and negatively with the balanced-vs-imbalanced performance gap.
Strengths and weaknesses
Strengths
- Introducing a new data abstraction that cleanly captures multi-class data by segmenting out direction from magnitude, allowing for the study of the impact of isotropy on the class-center matrix via stable rank
- The dependence on the stable rank of \Lambda and the majority-label bias are new to this setting and connect nicely to the observed label bias resistance of larger models (from Gupta, et al)
- New technical machinery for the analysis of this problem: the use of the Hanson-wright inequality and the Haar averaging lemma is novel and could be of interest to future work
- Clear narrative demonstrating the extensions/delineation from prior work, especially Frei/Vardi
Weaknesses
- A lot of the proof structure and logical progression is taken from Frei/Vardi, Soudry et al, and Ravi et al
- The Appendices are pretty central to the full understanding of the paper and are tough to follow
Questions
- Do the empirical LLM experiments support theorem 3.2? Not sure I understand how they support theorem 3.1, considering the negative slopes for pattern 1
- I might be missing something here, but what is the purpose of the assumption B.2? Why not just directly apply theorem 7 from Soudry et al?
Limitations
- Curious to hear thoughts on what an analysis for finite-time training budget and on non-linear attention may look like
Formatting concerns
Nothing significant
4 comments
We appreciate Reviewer mGoW’s constructive questions.
AC6, W1. A lot of the proof structure and logical progression is taken from Frei/Vardi, Soudry et al, and Ravi et al (Technical novelty)
We address this point together with AC Question 6. We acknowledge that our proof builds on existing results and follows a related structure. Nevertheless, it constitutes a nontrivial extension to the multiclass ICL setting, requiring the following new technical components.
Why do we introduce Haar measure?
The use of Haar measure provides a natural multiclass extension of the random-direction model considered in the binary setting. In the binary case, the relevant class direction can be represented by a random vector sampled uniformly from the sphere. In the multiclass setting, however, the collection of class-center directions is represented by a matrix rather than a single vector. Sampling the singular-vector matrices and from the Haar measure on the orthogonal group is therefore the natural matrix-valued analogue of uniform sampling on the sphere.
We believe that the main technical novelty arising from this formulation consists of the following two components.
1. A bilinear extension of the Hanson–Wright-type inequality
A standard Hanson–Wright-type result [1] controls a quadratic form of the form
where is sampled uniformly from the unit sphere. Our analysis requires concentration for the more general bilinear form
where is Haar-distributed on the orthogonal group and and are potentially different deterministic vectors.
This expression cannot be handled by directly applying the standard quadratic-form inequality. The classical case is recovered only when . Thus, our result can be viewed as a bilinear generalization of the spherical Hanson–Wright inequality, which is necessary for controlling interactions between distinct class-center directions in the multiclass setting.
2. Concentration on the orthogonal group
Existing results, including those of Vershynin [2] and Meckes [3], establish concentration inequalities on the special orthogonal group
or separately on the coset
This distinction is important because the full orthogonal group is topologically disconnected: it consists of two connected components corresponding to determinants +1 and -1.
Since our construction originates from the singular value decomposition, the singular-vector matrices and are naturally supported on the full orthogonal group rather than only on . Therefore, to apply concentration results rigorously, one must condition on the two determinant components, establish concentration within each component, and then combine the resulting conditional probability bounds.
Consequently, extending the binary random-vector framework to the multiclass random-matrix setting is not merely a notational replacement. It requires generalized concentration inequality and a careful treatment of the disconnected topology of the orthogonal group.
W2. The Appendices are pretty central to the full understanding of the paper and are tough to follow
We thank the reviewer for this feedback. We will revise the appendices to improve their clarity and accessibility by refining the presentation of the proofs, adding proof outlines for the main technical results, and making the logical connections between intermediate lemmas and the main theorems more explicit.
Q1. About LLM experiments and Theorems
Theorem 3.2 shows that lower stable rank amplifies the effect of label imbalance on the error bound. Empirically, the accuracy gap between balanced and imbalanced prompts tends to decrease as stable rank increases, which is consistent with this prediction. We also conducted an additional analysis based on additional quantities, which provide further discussion of Theorems 3.1 and 3.2. Please see our response to Reviewer GTX1.
Q2. About gap between assumption B.2. and Theorem 7 of Soudry et al. [4]
Thank you for raising this point. Theorem 7 of Soudry et al. [4] cannot be applied directly because its parameterization differs from ours. Soudry et al. consider a standard -class linear classifier with independently parameterized class vectors . After concatenation, their parameter lies in , and the corresponding lifted constraint vector is . In contrast, our trainable parameter is a single shared attention matrix . Since the class- score is , vectorization gives and $\widetilde x_{\tau,k}= \operatorname{vec}\left( x_\tau^{(N+1)} (\widehat\mu_{\tau,k_\tau^\star}-\widehat\mu_{\tau,k})^\top \right) \in\mathbb R^{d^2}. $
Equivalently, the effective class weights depend on the task and its prompt, rather than being fixed class-specific parameters as in standard multiclass classification. Assumption B.2 is the analogue of Eq. (126) used in the proof of Theorem 7 of Soudry et al. [4]; it ensures that the asymptotic exponential weights of the gradient can be matched to the KKT multipliers of the max-margin solution. In their -dimensional standard multiclass setting, the existence of such a residual vector is established for almost every dataset and is therefore implicit in Theorem 7. However, this genericity argument does not transfer directly to our structured -dimensional vectors, which have a task-dependent Kronecker-product structure. We therefore state the corresponding existence condition explicitly and adapt their proof to our attention parameterization. Moreover, because , our residual vector has degrees of freedom while imposing one equality per support constraint; thus, the condition is dimensionally no more restrictive, and is substantially milder in the intended regime. The numerical experiments reported in our response to W3 of reviewer Zw1M provide empirical evidence that Assumption B.2 holds in the parameter regime of interest. Conditional on this assumption, we can then adapt the argument of Soudry et al. [4] to our -dimensional setting.
Reference
[1] Radoslaw Adamczak. A note on the Hanson-Wright inequality for random vectors with dependencies. In: Electronic Communications in Probability. 2015
[2] Vershynin. High dimensional probability.
[3] Meckes. The Random Matrix Theory of the Classical Compact Groups.
[4] Soudry et al. The implicit bias of gradient descent on separable data. JMLR 2018
I appreciate the authors' detailed responses to my questions. I think this is a great submission and I keep my positive score.
We thank Reviewer MGoW for the valuable comments. We sincerely appreciate the careful review and the opportunity to further clarify our work.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 1/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies multiclass in-context classification with transformers, focusing on how class-center geometry and label imbalance affect generalization.
Strengths and weaknesses
The paper is technically sound and well presented, and I appreciate the clean flow and careful discussion of related work. My main concern is originality. The central theoretical ingredients seem to be a synthesis of existing components: max-margin implicit bias for multiclass classification, separation-based generalization for Gaussian mixture models, and standard binary-to-multiclass margin-style extensions. The use of stable rank to quantify class-center isotropy is natural and useful, but I do not find that it yields a substantially new conceptual mechanism beyond known isotropy analyses. Similarly, the label-imbalance result formalizes an expected majority-label bias phenomenon rather than revealing a qualitatively new behavior. Therefore, while the paper is sound, I view its contribution as incremental unless the authors can more clearly articulate what is specific to transformers/ICL beyond adapting classical multiclass and GMM arguments to the linear-attention setting.
Questions
- Could the authors clarify which part of the main theoretical contribution is genuinely specific to transformers or ICL?
- The paper argues that stable rank captures class-center isotropy and governs both balanced generalization and robustness to majority-label bias. Could the authors explain why stable rank is the right explanatory quantity beyond more classical quantities? In particular, are there regimes where stable rank predicts transformer/ICL performance while these classical quantities do not, or where the proposed theory yields a qualitatively different prediction from standard multiclass GMM analyses?
Limitations
yes
Formatting concerns
n/a
4 comments
We thank Reviewer XuLP for their insightful questions.
About overall weakness
Thank you for your comment. We discuss the originality and novelty of our work in our response to W1 of Reviewer MGoW. Also, our label-imbalance result goes beyond the qualitative observation of majority-label bias by providing a precise mathematical characterization of when and how this behavior emerges. In particular, our analysis distinguishes the error behavior of majority-class and minority-class queries and identifies stable rank as the geometric quantity governing robustness to label imbalance. This establishes a concrete theoretical connection between class-center geometry and imbalance-induced majority bias, which, to our knowledge, has not been previously formalized in the ICL setting.
Q1. Could the authors clarify which part of the main theoretical contribution is genuinely specific to transformers or ICL?
We thank the reviewer for asking us to clarify this distinction. We agree that several technical ingredients in our analysis are classical, including multiclass max-margin implicit bias, Gaussian-mixture classification arguments. We do not intend to claim that these tools, or the bilinear form of the final prediction rule by itself, are unique to transformers.
The ICL-specific aspect of the problem is the separation between a task-shared parameter learned during pretraining and task-specific statistics constructed from a new prompt. In standard multiclass classification, the learned class parameters correspond to a fixed set of classes and are directly reused at test time. In our setting, the class centers, class identities, context examples, and query are resampled independently for each task. The matrix is therefore not a classifier for the training classes. It is a shared comparison rule learned across tasks, which is combined at test time with the prompt-dependent empirical class centers to form a new classifier for an unseen task.
Our theoretical contribution is thus not merely an error bound for a fixed Gaussian-mixture classifier. We first characterize which shared matrix is selected by gradient descent on the linear-attention training objective across multiple tasks, each corresponding to a distinct GMM classification problem. We then analyze how this learned parameter interacts with the empirical statistics of a new prompt and establish generalization to independently sampled test tasks. Standard GMM [1] or covariance-estimation analyses [2] do not consider this setting, where the model is trained across tasks and evaluated on a new prompt.
The label-imbalance result is also specific to the prompt-based setting. The class-wise counts in the context directly affect the aggregated class representations and hence the prediction scores, producing a majority-label bias. Our bound explicitly characterizes how this prompt-composition effect interacts with the stable rank of the new task’s class-center matrix.
We will revise the paper to make the boundary of the contribution more explicit. The multiclass classification tools are classical, whereas our concentration analysis is motivated from classical concentration and extended to the generalized setting such as Haar-measure concentration result. Our main contribution is their use in characterizing a learned, task-shared in-context rule and its generalization to new prompts with task-dependent geometry and label allocation. We will also avoid suggesting that the algebraic form of the predictor is uniquely transformer-specific.
Q2. Comparison to the classical GMM analysis
As described in Appendix A, the minimum pairwise class-center distance is a commonly used quantity in multiclass GMM analyses [1]. In our original softmax transformer experiments (Section 5.1), we fix the Frobenius norm of the class-center matrix, thereby controlling its overall magnitude while varying its spectral distribution. Since this does not necessarily fix the realized minimum pairwise distance, we conduct an additional experiment in which the class-center matrices are normalized to have the same minimum distance and examine whether the performance trend with stable rank persists.
Minimum distance-normalized Generation
First, following the original setting in Appendix G.1, we set the singular values for each target stable rank as follows.
For each task , we independently sample and and generate the raw class-center matrix as
Let denote the -th row of . We define the raw minimum pairwise class-center distance for task as
We choose a common target distance shared across all tasks and stable-rank settings. For each task , we define a task-specific correction factor as
The corrected class-center matrix for task is then defined as
Thus, the normalization is applied separately to every task, ensuring that the minimum pairwise distance is exactly for every task and every stable-rank setting:
Moreover, task-wise scalar normalization does not change the stable rank. Therefore, for every task ,
Finally, the -th input in task is generated in the same manner as in Appendix G.1:
Hence, each task is independently generated and individually normalized, while the target stable rank and the common minimum-distance scale are preserved across tasks.
| K | Pattern |
|---|---|
| 5 | [10, 8, 5, 4, 3] |
| 10 | [6, 5, 4, 4, 3, 3, 2, 1, 1, 1] |
The results correspond to the label-allocation patterns described above. Each configuration is evaluated on 1,000 examples and averaged over 10 random seeds.
K=5 — mean accuracy by Layer × stable rank
| L \ sr | 1.5 | 2.0 | 2.5 | 3.0 | 3.5 |
|---|---|---|---|---|---|
| L=1 | |||||
| L=3 | |||||
| L=5 |
K=10 — mean accuracy by Layer × stable rank
| L \ sr | 1.5 | 2.0 | 2.5 | 3.0 | 3.5 | 4.0 | 4.5 | 5.0 | 5.5 | 6.0 |
|---|---|---|---|---|---|---|---|---|---|---|
| L=1 | ||||||||||
| L=3 | ||||||||||
| L=5 |
Thus, we examine the relationship between stable rank and accuracy while holding the minimum pairwise distance fixed. Similar trends are observed across the other label-allocation patterns.
To sum up, classical error bounds for multiclass GMMs are commonly summarized in terms of the minimum separation . In contrast, Transformer attention constructs class scores by aggregating label-dependent bilinear interactions of the form between the demonstrations and the query. The concentration of these scores depends not only on the minimum distance but also on the full spectral geometry of the class-center matrix, from which stable rank naturally emerges. In our additional experiments with fixed, the relationship between stable rank and accuracy persists. While this does not imply that stable rank is the only relevant geometric quantity, it shows that the observed trend cannot be explained by the minimum pairwise distance alone.
Reference
[1] Christophe Giraud and Nicolas Verzelen. Partial recovery bounds for clustering with the relaxed k-means. Mathematical Statistics and Learning, 2019.
[2] Koltchinskii and Lounici. Concentration Inequalities and Moment Bounds for Sample Covariance Operators.
Official Comment
The rebuttal partially address my concern, so I maintain my score.
We thank Reviewer XuLP for the insightful comments. We greatly appreciate the careful review and the insightful observations, which have helped us further clarify our work.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies multiclass in-context classification with transformers, focusing on how the geometry of class centers and test-time label imbalance affect generalization. The authors propose a spectral data model where the stable rank of the class-center matrix controls the degree of isotropy. For a simplified linear self-attention model trained with cross-entropy, they characterize the implicit max-margin solution and derive generalization bounds showing that higher stable rank improves balanced multiclass ICL and helps reduce majority-label bias under imbalanced prompts. The empirical results on synthetic transformer experiments and WordNet-based LLM prompting tasks are reported to be broadly consistent with these theoretical predictions.
Strengths and weaknesses
Strengths:
- The paper studies a meaningful problem. It moves beyond binary in-context classification and considers multiclass prompts with anisotropic class-center geometry and test-time label imbalance, which are more realistic than the standard antipodal binary setting.
- The use of stable rank as a measure of class-center isotropy is a clean and interpretable modeling choice. It gives the paper a relatively clear way to connect representation geometry, prompt sample complexity, and generalization error.
- The theoretical development is reasonably coherent. The paper defines a spectral task-generation model, analyzes the max-margin implicit bias of a linear self-attention model, and then derives balanced and imbalanced test-prompt error bounds from this characterization.
Weaknesses:
- The main theory is still quite far from real transformers. It is proved for a simplified linear self-attention model with fixed components and only the matrix W optimized. This makes the link to multi-layer softmax transformers and pretrained LLMs indirect.
- The bridge from the theoretical stable rank to the LLM experiments is not fully justified. In theory, stable rank is defined for the class-center matrix in the spectral data model; in the LLM experiments, it is computed from class-averaged input-layer token embeddings. Treating the latter as a proxy for the former needs more argument.
- The empirical support for the central claim is rather weak. In the WordNet-based experiments, the correlations between stable rank and accuracy are small, and some balanced-pattern results are insignificant or even negative. Thus, the experiments look more like sanity checks than strong evidence that stable rank governs real LLM ICL behavior.
- Several assumptions behind the theory are strong and not sufficiently discussed in the main text. These include high stable rank in training tasks, large singular values, B = Ω(d) training tasks, and additional realizability or implicit-bias assumptions placed in the appendix. It is unclear how plausible these conditions are for real prompt embeddings.
- The paper gives limited discussion of failure regimes. Since the bounds depend heavily on stable rank, dimension, signal strength, and label allocation, it would be useful to clarify when the conclusions break down rather than only emphasizing the favorable regimes.
Questions
- The WordNet-based LLM results show only weak correlations between stable rank and accuracy, and some balanced-setting results are insignificant or negative. Could the authors provide stronger evidence, for example across more seeds, more class sets, different embedding layers, or additional models?
- Is stable rank really the main explanatory factor in the LLM experiments? It would be useful to compare it against simpler geometric quantities such as pairwise class-center distance, angular separation, condition number, or effective dimension, and to control for class frequency or semantic difficulty.
- Several assumptions appear strong, including high stable rank in training tasks, large singular values, B = Ω(d), and the realizability/implicit-bias assumptions in the appendix. How plausible are these assumptions for real prompt embeddings, and how sensitive are the conclusions when they are violated?
- The bounds appear to worsen with the ambient dimension d, whereas real LLM embeddings are high-dimensional. How should this dimension dependence be interpreted in the LLM setting? Is there an implicit normalization or effective-dimension argument that explains why the predicted stable-rank trend should still be visible?
Limitations
The authors discuss the main limitations (linear attention, max-margin limiting direction, no finite-time analysis) in Section 6. However, two points central to the paper's claims are not explicitly acknowledged: the theory-to-LLM bridge assumption and the weak LLM effect sizes.
Final justification
Thank you for the detailed response and for conducting additional analyses during the rebuttal period. The independent seed, the comparison against multiple geometric quantities, and the distinction between absolute accuracy and robustness to label imbalance materially address my main concerns. I would therefore lean toward a Borderline Accept.
Formatting concerns
I did not find any obvious formatting issues or anonymity concerns.
5 comments
We thank Reviewer GTX1 for the thoughtful questions.
W1. About linear self-attention
For further discussion of the linear self-attention model, please see our response to W2 of Reviewer Zw1M.
W2. About input-layer token embedding
We estimate each class center as follows. Consider, for example, the class animal. Its underlying representation is abstract and cannot be computed directly. Motivated by the mixture-model interpretation, we estimate this representation by averaging the input embeddings of samples belonging to the class, such as lion, tiger, and hippopotamus. We refer to this empirical mean as a "surrogate" class center. Accordingly, the stable rank of the matrix that collects these surrogate class centers can be interpreted as an empirical proxy for the theoretical stable rank, although not its exact counterpart.
W3, Q1, Q2. About LLM experiments
Thank you for this suggestion. we repeated the analysis with an independent seed and compared stable rank with pairwise distance, angular separation, condition number, and effective dimension. All metrics are computed from class centers. For each class , average the input embeddings of its WordNet words to get . Stack them as (), then center: with rows . Let be the singular values of .
Stable rank:
Pairwise distance (mean):
Angular separation (mean):
Condition number:
Effective dimension (spectral entropy):
The results distinguish predictors of absolute accuracy from those of robustness to imbalance. Parentheses report p-values. We focus on the positive correlation of pairwise distance with accuracy and the negative correlation of isotropy measures with performance gaps across patterns.
Llama-3.2-1B-Instruct
| Pattern | stable_rank | pairwise_dist | angular_sep | cond_number | eff_dim |
|---|---|---|---|---|---|
| Pattern 1 | -0.030 (0.496) | +0.457 (<<0.0001) | +0.274 (<<0.0001) | +0.141 (0.002) | +0.114 (0.011) |
| Pattern 2 | +0.022 (0.619) | +0.533 (<<0.0001) | +0.281 (<<0.0001) | +0.084 (0.061) | +0.225 (<<0.0001) |
| Pattern 3 | +0.072 (0.108) | +0.509 (<<0.0001) | +0.289 (<<0.0001) | +0.101 (0.024) | +0.219 (<<0.0001) |
| Pattern 1-2 | -0.079 (0.077) | -0.117 (0.009) | -0.032 (0.479) | +0.075 (0.093) | -0.161 (0.0003) |
| Pattern 1-3 | -0.098 (0.028) | -0.074 (0.098) | -0.012 (0.783) | +0.027 (0.542) | -0.131 (0.003) |
Qwen2.5-3B-Instruct
| Pattern | stable_rank | pairwise_dist | angular_sep | cond_number | eff_dim |
|---|---|---|---|---|---|
| Pattern 1 | +0.061 (0.173) | +0.508 (<<0.0001) | +0.125 (0.005) | +0.027 (0.542) | +0.156 (0.0004) |
| Pattern 2 | +0.278 (<<0.0001) | +0.556 (<<0.0001) | +0.111 (0.013) | -0.070 (0.120) | +0.400 (<<0.0001) |
| Pattern 3 | +0.250 (<<0.0001) | +0.555 (<<0.0001) | +0.103 (0.021) | -0.053 (0.241) | +0.380 (<<0.0001) |
| Pattern 1-2 | -0.257 (<<0.0001) | -0.065 (0.146) | +0.020 (0.659) | +0.108 (0.015) | -0.276 (<<0.0001) |
| Pattern 1-3 | -0.226 (<<0.0001) | -0.072 (0.105) | +0.029 (0.519) | +0.095 (0.034) | -0.268 (<<0.0001) |
1. Mean pairwise distance, balanced accuracy, and robustness to imbalance.
Recall the concentration of Theorem 3.2.
The mean squared pairwise distance satisfies
where . In the balanced setting, is constant, so label allocation has no effect. The strong correlation of accuracy with pairwise distance, compared with the weaker correlation with stable rank, suggests that the -dependent branch of term (b) is more dominant in the balanced cases, since increases the overall signal relative to Gaussian deviation and reduces the error bound.
Under severe label imbalance, however, the two geometric quantities scale differently. For example, when and ,
Under label imbalance, the factor makes term (a) relevant as well. This introduces a clearer dependence on stable rank, while the Frobenius norm dependence remains qualitatively similar.
2. Effective dimension and isotropy.
We also find that effective dimension explains both absolute accuracy and robustness to imbalance. This is consistent with the trends predicted by Theorems 3.1 and 3.2, since effective dimension, like stable rank, measures the effective dimensionality and isotropy of the class-center geometry rather than separation alone.
Overall, the additional experiments suggested by the reviewer help us interpret our theoretical results more clearly and avoid presenting stable rank as the unique explanatory quantity. We thank the reviewer for the suggestion and will incorporate this refined interpretation into the revised manuscript.
W4, Q3. About several assumptions
These assumptions are sufficient conditions for our proof and may not hold exactly for real-prompt embeddings. Nevertheless, experiments outside the formally covered regime show qualitatively similar trends, suggesting that the theory remains informative beyond these conditions.
1. Large stable rank and realizability of training dataset
First, the large stable rank condition is mainly used to guarantee that the training task is realizable with high probability, which is necessary for applying the implicit-bias characterization. In this sense, realizability is not an unrelated structural assumption, but rather a high-probability consequence of the geometric conditions imposed on the training task. Nonseparable logistic regression may still exhibit directional implicit bias [1], but extending this result to multiclass ICL is beyond our scope.
2. About the largest singular value
The condition holds for the suggested i.i.d. Gaussian construction and more generally when coordinates have comparable constant-order scales. It ensures that the class-center signal is not dominated by high-dimensional noise rather than imposing a restrictive geometry.
3. About data size
The condition is not essential to the implicit-bias derivation; it controls and ensures non-vacuous generalization bounds. We therefore view it as a natural high-dimensional sample-size regime. This scaling is also consistent with practice, where increases in model dimension are typically accompanied by increases in training data.
4. About implicit bias assumption (Assumption B.2.)
This assumption is commonly used in the implicit-bias literature [2,3]. During the rebuttal period, we numerically verified that it is consistently satisfied in the parameter regime of interest. Please see our response to W3 of Reviewer Zw1M.
W5. About failure regime
We agree that the current presentation focuses primarily on favorable regimes. Our bounds become uninformative under low stable rank or signal strength, insufficient training tasks relative to dimension, or severe label imbalance; we will explicitly state these failure regimes in the revision.
Q4. Worsening with ambient dimension
The apparent deterioration with holds only when other parameters are fixed. In practice, however, these quantities generally scale together: as increases, also grows, and a larger embedding dimension typically corresponds to a larger model trained on more data, leading to a larger . In particular, if grows sufficiently so that , increasing does not necessarily worsen the bound or the predicted performance.
Our analysis does not explicitly address the implicit normalization or effective-dimension interpretations mentioned. The stable-rank trend in our experiments does not rely on either interpretation: we fix and compare inputs with different stable ranks. Thus, the observed trend directly isolates the effect of stable rank rather than variation in the embedding dimension.
About Limitation.
Thank you for highlighting these limitations. We discuss the linear-attention limitation above; because implicit-bias theory characterizes only the asymptotic direction of gradient descent, extending our analysis to finite-time training remains open.
Reference
[1] Ziwei Ji, Matus Telgarsky. The implicit bias of gradient descent on nonseparable data. PMLR 2019
[2] Soudry et al. The implicit bias of gradient descent on separable data. JMLR 2018
[3] Ravi et al. The implicit bias of gradient descent on separable multiclass data. NeurIPS 2024
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this paper, the authors investigate the problem of multiclass in-context learning by leveraging the implicit bias. The authors provide the generalization bound based on the number of tasks, the number of samples in the test task, and the stable rank of , which captures the geometry of the problem. In addition, the authors also consider the generalization bound when the test task is imbalanced, which means the number of samples for each label is different in the test task. Their analysis shows that the misclassification probabilities for different labels are different. If a label has more samples, the misclassification probability will be lower, which matches the experimental findings. They also verify their theory results by running experiments and further do some experiments on softmax self-attention transformers.
Strengths and weaknesses
Strength:
This provides the first theoretical generalization bound of linear self-attention transformer for multiclass in-context learning, which significantly extends the previous results on binary classifications. This problem is very topical, and the understanding of this phenomenon is very elusive.
This work provides a theoretical explanation of the empirical phenomena of major-label bias in the multiclass in-context learning, which helps us to understand the empirical.
The experiments are extensive and provide solid support for their theoretical findings, and the experiments on the softmax self-attention transformer provide supportive evidence that their theoretical findings are compatible with the true scenarios.
Weakness:
The data generation process is very restricted. The analysis is fully based on a specific data generation process, which is even stronger than the work of Frei and Vardi 2025.
The analysis is on the simple linear self-attention transformer, which is much simpler than the softmax self-attention transformer.
Introducing a strong assumption (Assumption B.2) due to the usage of previous implicit bias results.
Questions
Is it possible to change the data generation procedure? Did the authors consider other possible data generation processes? For example, if the matrix is composed of entry-wise independent Gaussian random variables.
The noise part in your paper, i.e., is a random variable sampled from , which is different from the work of Frei and Vardi 2025. Is it possible to allow this noise term to be sampled from for ?
Limitations
Yes
Final justification
All my concerns have been addressed, and I will keep my positive assessment.
Formatting concerns
No
4 comments
We thank Reviewer Zw1M for the constructive questions.
W1, Q1. About data generation
Our main theorem adopts a more structured noise model than [1], primarily to keep the analysis tractable. As discussed in our response to Q2, the argument can be extended to a broader noise model. Moreover, our setting extends their binary classification framework to multiclass classification, so the two settings are not strictly comparable in terms of generality.
Thank you for suggesting the entry-wise independent Gaussian matrix as a natural alternative data-generation model. However, this model essentially captures only the nearly isotropic regime that is already included as a special case of our framework.
To see this, let
Its stable rank is
For an i.i.d. Gaussian matrix, standard random-matrix concentration gives
and
with high probability. Therefore,
Equivalently,
In the regime of primary interest in our work, where the ambient dimension is larger than (), we consequently have
Thus, an entry-wise i.i.d. Gaussian construction produces a class-center matrix whose stable rank is nearly maximal. It therefore allows one to study only the approximately isotropic regime, but not the full range of anisotropic geometries that our spectral construction is designed to capture. In particular, it does not provide a direct way to vary the stable rank while controlling the remaining problem parameters.
Moreover, the Gaussian model retains the same Haar structure used in our analysis. Indeed, if
is the singular value decomposition of an i.i.d. Gaussian matrix, rotational invariance implies that the singular-vector matrices and are Haar-distributed on the corresponding orthogonal groups, independently of the singular values, up to the usual non-uniqueness of the SVD.
Therefore, we expect that an analysis based on an entry-wise Gaussian matrix would lead to results similar to our current theorems after conditioning on its singular values. However, such an analysis would primarily recover the high stable rank, nearly isotropic case. Our spectral generation model retains the natural Haar-distributed singular directions while allowing us to systematically control the singular-value profile and stable rank.
W2. About linear attention
We acknowledge that linear attention is required to make an implicit-bias analysis of this form tractable, which is a weakness of our theoretical framework. Nevertheless, Appendix G.1.1. shows experimentally that an analogous implicit bias emerges in a softmax Transformer. Moreover, our theoretical predictions remain consistent with the behavior of the resulting solution, suggesting that the proposed analysis remains informative beyond the linear setting. We refer the reviewer to Appendix G.1.1. for further details.
More broadly, this is a common simplification in ICL theory: several recent works published at ICML, ICLR, and NeurIPS ([1]–[9]) employ linearized attention models to study ICL and Transformer optimization, demonstrating that such models can still provide meaningful and predictive theoretical insights.
W3. Introducing a strong assumption (Assumption B.2) due to the usage of previous implicit bias results.
This assumption is standard in the implicit-bias literature [10, 11]. Nevertheless, since it may not align perfectly with our data-generation model, we additionally provide numerical experiments to examine its validity in our setting.
Numerical Experiments
Let denote the set of support pairs of the max-margin solution, and let be the matrix obtained by stacking the corresponding vectors row-wise, where . Taking logarithms, Assumption B.2 is equivalent to
We verify existence using
indicates that the system of equation in Assumption B.2 is numerically feasible. We additionally examine , and the condition number . If , then has full row rank and the B.2 system is feasible for every positive support-multiplier vector. The condition number is related to the stability of the system. We empirically examine Assumption B.2 under , sr$(\Sigma)=0.6K$, , and , using five different random seeds and varing . These choices of stable rank and correspond to the regime of primary interest in our theoretical framework.
| Total constraints | Support constraints | |||||||
|---|---|---|---|---|---|---|---|---|
| 20 | 3 | 80 | 160 | 0 | ||||
| 20 | 5 | 80 | 320 | 0 | ||||
| 40 | 3 | 160 | 320 | 0 | ||||
| 40 | 5 | 160 | 640 | 0 | ||||
| 80 | 3 | 320 | 640 | 0 | ||||
| 80 | 5 | 320 | 1280 | 0 |
We establish the numerical existence of such a solution through the residual error . We further assess its stability under small perturbations by examining rank deficiency and the condition number.
Q2. Extension to anisotropic Gaussian noise
Thank you for your comment. Since is already used to denote the singular-value matrix, we use instead. This extension appears to be possible. For example, in Theorem 3.1, the term would become , while would become .
Reference
[1] Frei and Vardi. Trained transformer classifiers generalize and exhibit benign overfitting in-context. ICLR 2024
[2] Ahn et al. Transformers learn to implement preconditioned gradient descent for in-context learning NeurIPS 2023
[3] Mahankali et al. One step of gradient descent is provably the optimal in-context learner with one layer of linear self-attention. ICLR 2024
[4] von Oswald et al. Transformers Learn In-Context by Gradient Descent ICML 2023
[5] Ahn et al. Linear attention is (maybe) all you need (to understand Transformer optimization). ICLR 2024
[6] Kim et al. Transformers are minimax optimal nonparametric in-context learners. NeurIPS 2024
[7] Shen et al. On the training convergence of transformers for in-context classification of gaussian mixtures. ICML 2025
[8] Zhang et al. Training Dynamics of In-Context Learning in Linear Attention. ICML 2025
[9] Magen and Vardi. Transformers are almost optimal metalearners for linear classification. NeurIPS 2025
[10] Soudry et al. The implicit bias of gradient descent on separable data. JMLR 2018
[11] Ravi et al. The implicit bias of gradient descent on separable multiclass data. NeurIPS 2024
I appreciate the detailed responses provided by the author. My concerns have been fully addressed, and I will keep my positive assessments.
We thank Reviewer Zw1M for the thoughtful feedback and helpful suggestions. We will incorporate your suggestion to expand the discussion of Assumption A.2 in the next revision.
Comments on the paper
1 comment
Dear Reviewers,
As the author discussion phase is well underway, could I trouble you to read the rebuttal at your absolute earliest convenience and ask any follow up questions required?
Best,
AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the AC for their interest and questions.
Q1. About Assumptions (especially linearity)
Several reviewers raised related concerns about our assumptions. Although some may appear restrictive, they are either required by our current proof technique or represent mild conditions in the intended high-dimensional regime.
We discuss the linear-attention assumption in W2 of Reviewer Zw1M, numerically examine Assumption B.2 in W3 of Reviewer Zw1M, and address the remaining assumptions in W4, Q3 of Reviewer GTX1.
Q1-1. Comparison with Magen et al. 2025 ([1])
The AC pointed us to [1], which is relevant to our discussion of the linear-attention assumption, so we address it here as well. First, although [1] analyzes softmax attention, it does not study ICL: it considers standard binary supervised classification with fixed signals and analyzes whether attention selects signal or noise tokens. In contrast, our setting treats ICL as meta-learning, where W is learned across training tasks and used to construct a classifier from the demonstrations of a previously unseen task. More specifically, its learned vector p selects signal or noise tokens according to
The reduction from a key-query matrix to p=W⊤q relies on q being fixed. In ICL, however, q=xq is a task-dependent query, so the effective vector Wxq varies across tasks. Therefore, the model must learn a bilinear demonstration–query matching rule and aggregate the demonstration labels of a previously unseen task. Thus, linearity assumption is required for our analysis of the implicit-bias dynamics from a meta-learning perspective, and our setting is fundamentally different from that considered in the prior work [1].
Q2, Q4. Comparison with Ahn et al. [2]
Q2. About value matrix
The key difference from Ahn et al. [2] is that they study regression, whose objective admits a finite minimizer that can be directly characterized. In our separable classification setting, the cross-entropy loss has no finite minimizer, so we must instead analyze the directional convergence induced by implicit bias. Fixing WV reduces the problem to a single trainable matrix W, allowing us to apply existing max-margin implicit-bias techniques; jointly training WV and W would introduce a factorized two-variable parameterization beyond these results. Thus, this assumption is required for our current proof technique rather than for ICL itself.
To examine this assumption, we repeated the GMM experiment from Section 5.1 with linear attention, but trained the value matrix rather than fixing it to the identity. The learned value matrix converged close to the identity, suggesting that this parameterization captures the solution learned in this setting.
Q4. About non-isotropic case
The key distinction is that Ahn et al. [2] study in-context regression, whereas we study in-context multiclass classification. Moreover, “non-isotropic” refers to different objects in the two settings. Our within-class noise is isotropic, but the class means in the GMM are arranged non-isotropically through the spectrum of the class-center matrix M=UΣV⊤. We study how this spectrum affects classification and robustness to label imbalance. Thus, the non-isotropic regression analysis of [2] does not directly correspond to our classification setting or the spectral geometry of the class means. For the extension to non-isotropic within-class noise, please see our response to Reviewer Zw1M.
Q3. About the relation to spectral and kernel methods
We agree that the final predictor resembles a bilinear kernel or spectral rule, and we do not claim that its algebraic form is unique to transformers. The key distinction from classical fixed-task spectral or kernel analyses is the meta-learning structure. In our ICL setting, a shared W is meta-learned across tasks, rather than fitting a separate classifier for a fixed dataset. At test time, the model uses the learned W to construct a classifier from the demonstrations of a new task. To summarize, ICL differs from standard fixed-task classification in that it performs inference on a new task using only the demonstrations in the prompt, without additional parameter updates at test time.
Q5. About linear attention experiment
We thank the AC for suggesting the linear-attention experiment, which is closely related to our theory. We repeated the experiment in Section 5.1 (detailed in Appendix G.1), replacing only the softmax Transformer with the linear-attention model analyzed in our theory while keeping all other settings fixed. Each pattern specifies the label allocation within a prompt. For imbalanced patterns, the query label is selected from the minority classes to measure the performance degradation caused by label imbalance. We evaluate accuracy as a function of stable rank using an independent random seed.