Interpreting Multi-layer Transformers for In-context Linear Regression with Varying Covariance
Import ICLR 2027 submission oGQqebMX4m: 21 notes
@openreview[bot] · 2026-11-22 21:41 UTC · ab78701f3276 ·
reviews/openreview/ogqqebmx4m/forms.json added
+++ b/reviews/openreview/ogqqebmx4m/forms.json@@ -0,0 +1,183 @@+{+ "schema": "forms/1",+ "forms": {+ "Meta_Review": {+ "label": "Meta-review",+ "fields": [+ {+ "key": "metareview",+ "label": "Meta-review",+ "type": "text"+ },+ {+ "key": "summary",+ "label": "Summary",+ "type": "text"+ },+ {+ "key": "additional_comments_on_reviewer_discussion",+ "label": "Reviewer discussion",+ "type": "text"+ },+ {+ "key": "recommendation",+ "label": "Recommendation",+ "type": "choice"+ }+ ]+ },+ "Decision": {+ "label": "Decision",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "hidden": true+ },+ {+ "key": "decision",+ "label": "Decision",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Official_Comment": {+ "label": "Comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Public_Comment": {+ "label": "Public comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Withdrawal": {+ "label": "Withdrawal",+ "fields": [+ {+ "key": "withdrawal_confirmation",+ "label": "Confirmation",+ "hidden": true+ }+ ]+ },+ "Desk_Rejection": {+ "label": "Desk rejection",+ "fields": [+ {+ "key": "desk_reject_comments",+ "label": "Reason",+ "type": "text"+ }+ ]+ },+ "Official_Review": {+ "label": "Official review",+ "summary": [+ "rating",+ "confidence",+ "soundness",+ "presentation",+ "informativeness"+ ],+ "fields": [+ {+ "key": "rating",+ "label": "Rating",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "confidence",+ "label": "Confidence",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "soundness",+ "label": "Soundness",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "presentation",+ "label": "Presentation",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "informativeness",+ "label": "Informativeness",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "paper_summary",+ "label": "Summary",+ "type": "text"+ },+ {+ "key": "critical_strengths",+ "label": "Strengths",+ "type": "text"+ },+ {+ "key": "critical_weaknesses",+ "label": "Weaknesses",+ "type": "text"+ },+ {+ "key": "questions_for_authors",+ "label": "Questions for the authors",+ "type": "text"+ },+ {+ "key": "flag_for_ethics_review",+ "label": "Flag for ethics review",+ "type": "choice",+ "omitWhen": [+ "No",+ "No ethics review needed."+ ]+ },+ {+ "key": "details_of_ethics_concerns",+ "label": "Ethics concerns",+ "type": "text"+ }+ ]+ }+ },+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/5qqte1hplw.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/5qqte1hplw.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "5qQtE1HpLW",+ "replyTo": "lKbHHCglur",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer DdDv",+ "content": {+ "comment": "Thank you for the detailed rebuttal and additional experiments. While the rebuttal responded to my questions, my main concern remains. Even the new non-zero mean experiment uses a constant mean for each covariate. It seems to me that the discovered pattern only occurs with highly curated training data or pipeline, and I'm not fully convinced how we can apply this knowledge to understand the behavior of transformer more generally. It is also unclear why this pattern emerges. Hence, I am inclined to keep the current score."+ },+ "createdAt": "2026-11-18T00:50:38.357Z",+ "modifiedAt": "2026-11-18T00:50:38.357Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=5qQtE1HpLW",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/5vnm3papi5.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/5vnm3papi5.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "5Vnm3paPI5",+ "replyTo": "5qQtE1HpLW",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We apperaciate for your reply. However, we still want to explain our work based on your main concerns.\n\n- For \"discovered pattern only occurs with highly curate training data or pipeline\", to the best of our knowledge, we **share the similar settings with most in-context linear regression studies** [1, 2, 3, 4, 5]: zero-mean covariate generation, embedding matrix $Z_{ebd}^0$ construction with $L$ training pairs and the test input $x_q$ and a placeholder zero, structure of the transformer, prefix mask implementing, and the training objective. **The only aspect of our setting that might be considered \"highly curated\" is the variation in covariance matrix across training sequences**. However, this makes the setting more challenging and general. We therefore **follow the general setting** for in-context linear regression rather than rely on a narrowly tailored setup when discovering the structured pattern. In the rebuttal, we also extend our analysis to non-zero-mean covariates and provide a similar algorithmic interpretation of the transformer.\n\n- For the application of the conclusion, we use IV regression as a case study to test whether transformers exhibit the same behavior under varying covariance across sequences. As discussed in our rebuttal, IV regression **naturally extends to an in-context setting** using two-stage least squares (2SLS), **a general approach** to solving IV problems. The second stage presents the same varying-covariance conditions as our main analysis. We observe the same transformer behavior, suggesting that our findings may extend to downstream tasks.\n\n- For training dynamics, we acknowledge that we only have the empirical conclusions at this stage. Theoretical analysis, potentially through a reduced or manifold-based characterization of the evolving parameters and distributions, is an important direction for future work.\n\n\n[1] Ahn, Kwangjun, et al. \"Transformers learn to implement preconditioned gradient descent for in-context learning.\"\n\n[2] Von Oswald, Johannes, et al. \"Transformers learn in-context by gradient descent.\"\n\n[3] Zhang, Ruiqi, Jingfeng Wu, and Peter Bartlett. \"In-context learning of a linear transformer block: benefits of the mlp component and one-step gd initialization.\"\n\n[4] Garg, Shivam, et al. \"What can transformers learn in-context? a case study of simple function classes.\"\n\n[5] He, Jianliang, et al. \"In-context linear regression demystified: Training dynamics and mechanistic interpretability of multi-head softmax attention.\""+ },+ "createdAt": "2026-11-18T10:27:44.927Z",+ "modifiedAt": "2026-11-18T10:27:44.927Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=5Vnm3paPI5",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/7m4hpkzwtz.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/7m4hpkzwtz.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "7m4HpkZWTz",+ "replyTo": "M8xUlbutEB",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "## Weaknesses\n\n### W1, Q1: About population identity for Corollary 1 and the error accumulation across layers.\n\nThank you for identifying this gap. We will separate the exact population result from its empirical-moment approximation, clarify the scope of the error analysis, and correct the description of the interpreted step sizes.\n\n**1. Population identity and Algorithm 1.**\n\nUnder the assumptions of Theorem 1, with zero population mean and the exact structure in Eq. (5), we will restate Corollary 1 as\n\n$$\nx\\_\\\\ell^{(t+1)}=x\\_\\\\ell^{(t)}+\\\\langle u\\_1,\\\\omega\\\\rangle\\\\Sigma\\_{11}^{(t)}x\\_\\\\ell^{(t)},\\\\qquad\ny\\_\\\\ell^{(t+1)}=y\\_\\\\ell^{(t)}+\\\\langle u\\_2,\\\\omega\\\\rangle(\\\\Sigma\\_{12}^{(t)})^\\\\top x\\_\\\\ell^{(t)},\n$$\n\nwhere $\\\\Sigma\\_{11}^{(t)}=[\\\\Sigma^{(t)}]\\_{1:d,1:d}$ and $\\\\Sigma\\_{12}^{(t)}=[\\\\Sigma^{(t)}]\\_{1:d,d+1}$ are the covariate-covariance and covariate-label cross-covariance blocks of the joint context-token covariance $\\\\Sigma^{(t)}$ propagated by Theorem 1.\nAlgorithm 1 replaces these quantities with empirical second moments computed from its own current context tokens. We will describe it as an empirical-moment approximation.\n\n**2. Error propagation across layers.**\n\nWe agree that the population identity and its finite-sample approximation should be distinguished. Below, we analyze **the single-layer approximation error** and **its propagation across layers**.\n\nLet $\\\\Sigma^{(t)}$ denote the population covariance of the complete token. Write $z\\_\\\\ell^{(t)}$ for the population token and $z\\_{\\\\ell,L}^{(t)}$ for the actual finite-sample token, initialized identically. With the learned pattern structure, the population update is\n\n$$\nz\\_\\\\ell^{(t+1)}=A^{(t)}z\\_\\\\ell^{(t)},\\\\qquad\nA^{(t)}=\n\\\\begin{pmatrix}\nI+\\\\eta\\_x\\\\Sigma\\_{11}^{(t)} & 0\\\\\\\\\n\\\\eta\\_y(\\\\Sigma\\_{12}^{(t)})^\\\\top & 1\n\\\\end{pmatrix}.\n$$\n\n**Single-layer error.** For a layer supplied with independent Gaussian context tokens and a fixed query, replacing the population attention integrals by finite-sample softmax produces an $O\\_p(L^{-1/2})$ error. This follows from the joint central limit theorem for the softmax numerator and denominator: their second moments are finite under Gaussian inputs, and the population denominator is positive. The error constant depends on the covariance, circuits, and query.\n\nSeparately, replacing population second moments by empirical moments also produces an $O\\_p(L^{-1/2})$ update error. Specifically,\n\n$$\n\\\\mathbb E\\\\left\\\\|\n\\\\frac1L\\\\sum\\_{\\\\ell=1}^L\nz\\_\\\\ell^{(t)}z\\_\\\\ell^{(t)\\\\top}\n-\\\\Sigma^{(t)}\n\\\\right\\\\|\\_F^2=\n\\\\frac{\n(\\\\operatorname{tr}\\\\Sigma^{(t)})^2+\n\\\\operatorname{tr}\\\\!\\\\left((\\\\Sigma^{(t)})^2\\\\right)\n}{L}.\n$$\n\nThus, on the same independent Gaussian inputs, **the single-layer softmax update and empirical-moment update differ by $O\\_p(L^{-1/2})$**."+ },+ "createdAt": "2026-11-17T09:49:55.564Z",+ "modifiedAt": "2026-11-17T09:49:55.564Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=7m4HpkZWTz",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/bdibfyzgt3.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/bdibfyzgt3.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "BDibfYZgt3",+ "replyTo": "UU9s8lQQbo",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "## Questions\n\n### Q1: Presentation of Algorithm 1:\n\nWe thank the reviewer for suggesting the standard regression notation and the spectral interpretation. We agree that both improve the presentation, however, we would add two slight modifications based on your comments as belows.\n- The algorithm can be written as $X_{t+1}=X_t(I_d-\\alpha X_t^\\top M X_t)$ and $y_{t+1}=(I_n+\\beta X_tX_t^\\top M)y_t$, where $M=\\operatorname{diag}(I_{n-1},0)$ is the fixed prefix mask, and the prediction is the last entry of $y_T$. The mask is necessary and aligns with our interpreted algorithm because the query receives updates but does not contribute to the keys/values or empirical moments.\n- Accounting for the prefix mask $M=\\operatorname{diag}(I_{n-1},0)$, the interpreted algorithm is $X_{t+1}=X_t(I_d-\\alpha X_t^\\top M X_t),~~ y_{t+1}=(I_n+\\beta X_tX_t^\\top M)y_t$, with $e_n^\\top y_0=0$. Its exact finite-depth prediction admits the spectral representation\n$y_q^{(T)}=e_n^\\top\\left[I_n+\\sum_{i=1}^{r}(g_{i,T}-1)P_i\\right]y_0,$ where $P_i=\\frac{X_0v_iv_i^\\top X_0^\\top M}{\\lambda_{i,0}}$ and $g_{i,T}=\\prod_{t=0}^{T-1}(1+\\beta\\lambda_{i,t})$.\nWe examine scaled-OLS interpretation at $T=3$, we extracted the scalar coefficients from a trained three-layer, two-head transformer. For a preselected context with $L=350$ and $d=5$, the gains $g_{i,T}$ at $T=3$ are $(g_{1,3},\\ldots,g_{5,3})\\approx(2.001,2.031,2.037,2.039,2.041)$. These gains are close, supporting scaled OLS as a useful finite-depth approximation. For this approximation, we can choose the context-dependent common gain $c_T=\\frac{1}{r}\\sum_{i=1}^{r}g_{i,T}$, i.e., $c_3\\approx2.030$. Therefore, with $T=3$, the transformer output on $y_q^{T}$ can be interpreted as $\\hat y_q^{T}=(c_3-1) \\hat y_{OLS}$. We have tested the mse error between the prediction of the transformer and prediction of the interpreted algorithm from this perspective, and the results support our interpretation:\n\n| Prompt Length $L$ | 50 | 100 | 150 | 200 | 250 | 300 | 350 | 400 |\n|---|---|---|---|---|---|---|---|---|\n| error | 0.1478 | 0.0265 | 0.0136 | 0.0098 | 0.0077 | 0.0065 | 0.0057 | 0.0051 |\n\n\nSince the $\\alpha$ and $\\beta$ depend on the number of transformer layers $T$, we have not tried a very large $T$, but we think the same conclusion can be obtained.\n\n### Minor points:\n\nThanks for your correction. We will fix the typo and add the reference in our revised paper in introduction on failure with a varying input covariance setting.\n\nFor describing the parameter matrices as 'projection' matrices, we will replace \"projection matrices\" with \"learnable matrices\" to avoid ambiguity. For the meaning of unroll, in Figure 3(a), \"unrolled twice\" means **repeating the entire trained three-layer computation twice**, resulting in six applications of the shared attention layer."+ },+ "createdAt": "2026-11-17T09:20:01.428Z",+ "modifiedAt": "2026-11-17T09:21:26.072Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=BDibfYZgt3",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/ftx7lcpd6s.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/ftx7lcpd6s.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "fTX7lcPd6S",+ "replyTo": "tGRbCNPHWz",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "### W2: Non-zero-mean settings\n\nThank you for pointing out this ambiguity. The aim of the Theorem 1 is to characterizes **the population dynamics** of a transformer with fixed weights under a general Gaussian context distribution. With the zero-mean settings in our experiments (also widely applied in related literatures), we have the empirical results for the learned patterns of transformer (Figure 2). With this pattern and the data settings, we then have the Corollary 1 and the interpreted algorithm. Therefore, our aim is not to show that model trained on zero-mean covariates generalizes to non-zero-mean settings, and this generalization is not guaranteed by the Theorem 1. **We actually use a general theorem to interpret a specific algorithm case.**\n\nFollowing the your suggestion, we train a **three-layer, two-head transformer** on covariates with a non-zero-mean setting (mean is set to $0.5\\\\mathbf{1}\\_d$), keeping all other settings unchanged. The learned KQ and OV circuits exhibit approximately the same diagonal structure as in Figure 2. Combining this observation with Theorem 1 motivates the following corollary.\n\n**Corollary.** Under the assumptions of Theorem 1 and the idealized circuit structure in Equation (5), let $\\\\mu\\_x^{(t)}$ and $\\\\mu\\_y^{(t)}$ denote the feature and label components of $\\\\mu^{(t)}$. Define\n\n$$\n\\\\bar{x}\\_\\\\ell^{(t)}=x\\_\\\\ell^{(t)}-\\\\mu\\_x^{(t)},\\\\qquad\n\\\\bar{y}\\_\\\\ell^{(t)}=y\\_\\\\ell^{(t)}-\\\\mu\\_y^{(t)}.\n$$\n\nWith the population approximation, for every $\\\\ell\\\\in[L]\\\\cup\\\\{q\\\\}$, we have\n\n$$\n\\\\begin{aligned}\n\\\\bar{x}\\_\\\\ell^{(t+1)}\n&=\\\\bar{x}\\_\\\\ell^{(t)}+\\\\frac{\\\\langle u\\_1,\\\\omega\\\\rangle}{L}\\\\sum\\_{\\\\ell'=1}^L {\\\\bar{x}^{(t)}\\_{\\\\ell'}} {\\\\bar{x}^{(t)}\\_{\\\\ell'}}^\\\\top\\\\cdot \\\\bar{x}\\_\\\\ell^{(t)},\\\\\\\\\n\\\\bar{y}\\_\\\\ell^{(t+1)}\n&=\\\\bar{y}\\_\\\\ell^{(t)}+\\\\frac{\\\\langle u\\_2,\\\\omega\\\\rangle}{L}\\\\sum\\_{\\\\ell'=1}^L\\\\bar{y}^{(t)}\\_{\\\\ell'}{\\\\bar{x}^{(t)}\\_{\\\\ell'}}^\\\\top\\\\cdot \\\\bar{x}\\_\\\\ell^{(t)},\n\\\\end{aligned}\n$$\n\nwith the mean $\\\\mu\\_x$ and $\\\\mu\\_y$ updated by\n\n$$\n\\\\begin{aligned}\n\\\\mu\\_x^{(t+1)}\n&=\\\\left(1+\\\\sum\\_{h=1}^{H}u\\_1^{(h)}\\\\right)\\\\mu\\_x^{(t)}+\\\\frac{\\\\langle u\\_1,\\\\omega\\\\rangle}{L}\\\\sum\\_{\\\\ell'=1}^{L}\\\\bar x\\_{\\\\ell'}^{(t)}\\\\bigl(\\\\bar x\\_{\\\\ell'}^{(t)}\\\\bigr)^\\\\top\\\\mu\\_x^{(t)},\\\\\\\\\n\\\\mu\\_y^{(t+1)}\n&=\\\\left(1+\\\\sum\\_{h=1}^{H}u\\_2^{(h)}\\\\right)\\\\mu\\_y^{(t)}+\\\\frac{\\\\langle u\\_2,\\\\omega\\\\rangle}{L}\\\\sum\\_{\\\\ell'=1}^{L}\\\\bar y\\_{\\\\ell'}^{(t)}\\\\bigl(\\\\bar x\\_{\\\\ell'}^{(t)}\\\\bigr)^\\\\top\\\\mu\\_x^{(t)}.\n\\\\end{aligned}\n$$\n\n**Interpreted algorithm.** Replace $\\\\eta\\_x=\\\\langle u\\_1,\\\\omega\\\\rangle$, $\\\\eta\\_y=\\\\langle u\\_2,\\\\omega\\\\rangle$, $a\\_x=\\\\sum\\_{h=1}^{H}u\\_1^{(h)}$,and $a\\_y=\\\\sum\\_{h=1}^{H}u\\_2^{(h)}$, the interpreted algorithm is:\n\n$$\n\\\\begin{aligned}\n\\\\bar{x}\\_\\\\ell^{(t+1)}\n&\\\\gets \\\\bar{x}\\_\\\\ell^{(t)} + \\\\eta\\_x/L\\\\cdot \\\\sum\\_{\\\\ell'=1}^L\\\\bar{x}\\_{\\\\ell'}^{(t)} \\\\bar{x}\\_{\\\\ell'}^{(t)^\\\\top}\\\\cdot \\\\bar{x}\\_\\\\ell^{(t)},\\\\\\\\\n\\\\bar{y}\\_\\\\ell^{(t+1)}\n&\\\\gets \\\\bar{y}\\_\\\\ell^{(t)} + \\\\eta\\_y/L\\\\cdot\\\\sum\\_{\\\\ell'=1}^L\\\\bar{y}\\_{\\\\ell'}^{(t)} \\\\bar{x}\\_{\\\\ell'}^{(t)^\\\\top} \\\\cdot \\\\bar{x}\\_\\\\ell^{(t)},\\\\\\\\\n\\\\mu\\_x^{(t+1)}\n&\\\\gets(1+a\\_x)\\\\mu\\_x^{(t)}+\\\\frac{\\\\eta\\_x}{L}\\\\sum\\_{\\\\ell'=1}^{L}\\\\bar x\\_{\\\\ell'}^{(t)}\\\\bigl(\\\\bar x\\_{\\\\ell'}^{(t)}\\\\bigr)^\\\\top\\\\mu\\_x^{(t)},\\\\\\\\\n\\\\mu\\_y^{(t+1)}\n&\\\\gets(1+a\\_y)\\\\mu\\_y^{(t)}+\\\\frac{\\\\eta\\_y}{L}\\\\sum\\_{\\\\ell'=1}^{L}\\\\bar y\\_{\\\\ell'}^{(t)}\\\\bigl(\\\\bar x\\_{\\\\ell'}^{(t)}\\\\bigr)^\\\\top\\\\mu\\_x^{(t)},\\\\\\\\\n\\\\hat{y}\\_q^{(T)}\n&=\\\\bar{y}\\_q^{(T)}+\\\\mu\\_y^{(T)},\n\\\\end{aligned}\n$$\n\nwhere $\\\\hat{y}\\_q^{(T)}$ is the final output.\n\nThe algorithm therefore consists of two parts: applying Algorithm 1 to centered covariates $\\\\bar{x}\\_\\\\ell$ and labels $\\\\bar{y}\\_\\\\ell$, and propagating the context mean according to Theorem 1. The final prediction restores the propagated label mean. This gives an approximate interpretation of the finite-context transformer under its approximately diagonal circuit structure.\n\nWe test the performance of the transformer and the interpreted algorithm. The prediction errors (measured by mse) of these two models with different sequence lengths are:\n\n| Prompt Length $L$ | 50 | 100 | 150 | 200 | 250 | 300 | 350 | 400 |\n|---|---|---|---|---|---|---|---|---|\n| Error of 3-layer TF | 0.27256 | 0.06454 | 0.03722 | 0.02737 | 0.02151 | 0.01748 | 0.01545 | 0.01426 |\n| Error of Interpreted algorithm | 0.27998 | 0.07227 | 0.03757 | 0.02748 | 0.02182 | 0.01742 | 0.01574 | 0.01442 |\n\nThis shows that the behavior of the interpreted algorithm is nearly indistinguishable from the actual transformer, which evaluate the correctness of our interpretation."+ },+ "createdAt": "2026-11-17T09:38:28.763Z",+ "modifiedAt": "2026-11-17T09:38:28.763Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=fTX7lcPd6S",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/hqkg5vjk5i.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/hqkg5vjk5i.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "HQKG5VjK5i",+ "replyTo": "PBAodQ2Klc",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "### W2, Q2: Unclear novelty related to GD++ and new aspects of the proposed algorithm.\n\nThank you for comments.\n\n**1. Relationship to GD++.**\n\nIn [1], GD++ is expressed as\n\n$$\n\\\\begin{aligned}\n&\\\\begin{pmatrix}x\\_j\\\\\\\\ y\\_j\\\\end{pmatrix}\n\\\\leftarrow\n\\\\begin{pmatrix}x\\_j\\\\\\\\ y\\_j\\\\end{pmatrix}\n+\n\\\\begin{pmatrix}-\\\\gamma XX^\\\\top x\\_j\\\\\\\\-\\\\Delta W x\\_j\\\\end{pmatrix},\n\\\\\\\\\n&\\\\Delta W=-\\\\frac{\\\\eta}{N}\\\\sum\\_{i=1}^{N}(Wx\\_i-y\\_i)x\\_i^\\\\top.\n\\\\end{aligned}\n$$\n\nHere, $X=[x\\_1,\\\\ldots,x\\_N]$ contains the context covariates, $N$ is the context length, $W$ is the reference linear model, $\\\\eta$ is the GD step size, and $\\\\gamma$ controls the covariate transformation. The update applies to both context and query tokens.\n\nFor scalar labels and the zero-initialized residual-token construction ($W=0$), this becomes, in our notation,\n\n$$\n\\\\begin{aligned}\nx\\_\\\\ell^{(t+1)}&=x\\_\\\\ell^{(t)}-\\\\gamma\\\\sum\\_{\\\\ell'=1}^{L}x\\_{\\\\ell'}^{(t)}x\\_{\\\\ell'}^{(t)\\\\top}x\\_\\\\ell^{(t)},\\\\\\\\\ny\\_\\\\ell^{(t+1)}&=y\\_\\\\ell^{(t)}-\\\\frac{\\\\eta}{L}\\\\sum\\_{\\\\ell'=1}^{L}y\\_{\\\\ell'}^{(t)}x\\_{\\\\ell'}^{(t)\\\\top}x\\_\\\\ell^{(t)},\n\\\\\\\\\n\\\\hat y\\_q&=-y\\_q^{(T)}.\n\\\\end{aligned}\n$$\n\nBy comparison, Algorithm 1 uses\n\n$$\n\\\\begin{aligned}\nx\\_\\\\ell^{(t+1)}&=x\\_\\\\ell^{(t)}+\\\\frac{\\\\eta\\_x}{L}\\\\sum\\_{\\\\ell'=1}^{L}x\\_{\\\\ell'}^{(t)}x\\_{\\\\ell'}^{(t)\\\\top}x\\_\\\\ell^{(t)},\\\\\\\\\ny\\_\\\\ell^{(t+1)}&=y\\_\\\\ell^{(t)}+\\\\frac{\\\\eta\\_y}{L}\\\\sum\\_{\\\\ell'=1}^{L}y\\_{\\\\ell'}^{(t)}x\\_{\\\\ell'}^{(t)\\\\top}x\\_\\\\ell^{(t)},\n\\\\\\\\\n\\\\hat y\\_q&=y\\_q^{(T)}.\n\\\\end{aligned}\n$$\n\nAlthough with the similar formulation, the algorithm learned by GD++ is **based on the setting that covariance is the same across sequences**. Under this setting, the covariance matrix will be encoded into the transformer weights as the pre-condition. In GD++, they assume the covariance matrix is identity so the learned transformer patterns is diagonal. However, in some other studies [2] and our experiments in Appendix C.3, training with a fixed anisotropic covariance produces covariance-dependent preconditioning in the KQ circuits. Consequencely, the condition for the gradient-like update algorithm in prior work is the training and testing sequences share the same covariance matrix $\\\\Sigma$ for the covariates since **$\\\\Sigma^{-1}$ appears as a pre-condition** in their interpreted algorithm, which can be formulated with our notation as:\n\n$$\n\\\\begin{aligned}\nx\\_\\\\ell^{(t+1)}&=x\\_\\\\ell^{(t)}+\\\\frac{\\\\eta\\_x}{L}\\\\sum\\_{\\\\ell'=1}^{L}x\\_{\\\\ell'}^{(t)}x\\_{\\\\ell'}^{(t)\\\\top}\\\\Sigma^{-1}x\\_\\\\ell^{(t)},\\\\\\\\\ny\\_\\\\ell^{(t+1)}&=y\\_\\\\ell^{(t)}+\\\\frac{\\\\eta\\_y}{L}\\\\sum\\_{\\\\ell'=1}^{L}y\\_{\\\\ell'}^{(t)}x\\_{\\\\ell'}^{(t)\\\\top}\\\\Sigma^{-1}x\\_\\\\ell^{(t)},\n\\\\end{aligned}\n$$\n\nIf the covariance matrix varies across sequences, this algorithm does not exist anymore because the $\\\\Sigma^{-1}$ can not be learned during the training.\n\n**2. What is new under varying covariances.**\n\nWith multi-layer softmax transformers trained on the in-context linear regression with varying covariance, we ontain the observed structure in Eq. (5), which suggests that **the learned parameters do not encode a particular task-specific $\\\\Sigma$** and the scalar coefficients are shared across tasks with different covariance matrix for covariates. This implies that we discover a new gradient-based algorithm under the new training setting. Compared to the algorithm in [1, 2], this algorithm does not related to any task-specific $\\\\Sigma$ and does not have the $\\\\Sigma^{-1}$ as a component in the formulation. Consequenctly, our new observation under varying covariance setting is that transformer learns a new GD-based algorithm that does not take $\\\\Sigma^{-1}$ as a pre-condition as that in the prior work."+ },+ "createdAt": "2026-11-17T09:53:47.355Z",+ "modifiedAt": "2026-11-17T09:53:47.355Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=HQKG5VjK5i",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/ifkz2poqvd.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/ifkz2poqvd.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "IfkZ2pOqVD",+ "replyTo": "BDibfYZgt3",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer p8jG",+ "content": {+ "comment": "Thanks for the response. That all makes sense. It's interesting to see the low error already with T=3."+ },+ "createdAt": "2026-11-17T18:54:34.750Z",+ "modifiedAt": "2026-11-17T18:54:34.750Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=IfkZ2pOqVD",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/jsajnlv6ok.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/jsajnlv6ok.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "JSAjNLV6OK",+ "replyTo": "HQKG5VjK5i",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "### W3, Q3: Direct regression of y on z as a useful control.\n\nThanks for your comments. We add experiments with a transformer trained to regress y on z to provide a reference for the two-stage model. The tested transformer has the same depth (4 layers in total) as the one used in the IV experiments. Other training protocols are the same as those in Section 5. In this experiment, the prediction loss of the single-stage model is **around 0.41 when the sequence length is 450**, indicating inferior performance compared to the two-stage model. We will revise Figure 6(a) to include this setting as a control for evaluating the two-stage model.\n\nRegarding the structural-parameter error, we are unable to include it in the evaluation because our transformer is trained to predict $y_q$. In related studies [1, 2, 3], structural-parameter error likewise cannot be included in the evaluation because of the same reason.\n\n## W4: Unnecessary of the depth in the model.\n\nThanks for your comments. We need to clarify why depth is essential for the model prediction error here. The algorithm shows that a one-layer model learns a one-step GD estimator, i.e., $y_q=\\frac{\\eta}{L}\\sum_{\\ell=1}^L y_\\ell x_\\ell\\cdot x_q$. However, the covariance matrix $\\Sigma$ of our test sequence **is not the identity matrix** (i.e., $\\Sigma\\ne I$), which leads to inferior performance compared to multi-step GD or a multi-layer transformer. This inferior performance can also be observed when directly using a one-step GD estimator with the **optimal learning rate** found through search on this task (Figure 1, the green dotted line). This can be interpreted as follows: with the **one-step GD estimator**, there **does not exist a learning rate** that allows the estimator to achieve **performance comparable to that of multi-layer estimators**. Therefore, we think optimization, finite-sample softmax effects, and training budgets for the one-layer transformer are not the major reasons for this gap. This gap is caused by the **one-step algorithm learned by the one-layer transformer**.\n\nIf we want to use a one-step approach to solve the task with anisotropic covariates, one-step pre-conditioned GD should be used with the inverse covariance matrix $\\Sigma^{-1}$ as a pre-conditioner. However, in our settings, $\\Sigma$ varies across sequences during training, and $\\Sigma$ at the test stage may not even appear during training. Therefore, the transformer is not able to encode $\\Sigma$ into its learned parameters and **needs to use another algorithm (Algorithm 1) to solve this problem without using $\\Sigma$ as a pre-conditioner**. In this algorithm, we claim that depth is closely related to performance because, theoretically, the one-step algorithm cannot achieve performance comparable to that of the multi-step algorithm. Therefore, we state this in the paper.\n\n### Reference\n[1] Von Oswald, Johannes, et al. \"Transformers learn in-context by gradient descent.\"\n\n[2] He, Jianliang, et al. \"In-context linear regression demystified: Training dynamics and mechanistic interpretability of multi-head softmax attention.\"\n\n[3] Garg, Shivam, et al. \"What can transformers learn in-context? a case study of simple function classes.\""+ },+ "createdAt": "2026-11-17T09:54:40.097Z",+ "modifiedAt": "2026-11-17T09:54:40.097Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=JSAjNLV6OK",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/k32bzat1fo.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/k32bzat1fo.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "k32BZaT1fo",+ "replyTo": "YVwNM8t2wa",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thanks for your time and effort throughout the review and rebuttal process, and we greatly appreciate your comments and constructive suggestions for improving our paper."+ },+ "createdAt": "2026-11-19T09:22:36.580Z",+ "modifiedAt": "2026-11-19T09:22:36.580Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=k32BZaT1fo",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/lkbhhcglur.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/lkbhhcglur.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "lKbHHCglur",+ "replyTo": "wVHeVhmdsS",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Summary",+ "comment": "### Summary for Reviewer DdDv\n\nWe appreciate your constructive feedback and comments.\n\nFor your first concern, we first add the empirical study on training dynamics of a two-layer transformer, and empirically reveal that the transformer first establish a diagonal structure early in training, and subsequently finetune the coefficients.\n\nFor your second concern, we clarify the aim of the theorem 1 and the connection between theorem 1 and corollary 1. **We actually use a general theorem to interpret a specific algorithm case.**. Based on your suggestions, we add the extension of how transformer behaves on non-zero-mean data. Through the learned similar pattern in the main part and the theorem 1, we interpret an algorithm and evaluate its alignment to the transformer. The algorithm can be describe as two parts: applying Algorithm 1 to centered covariates $\\bar{x}\\_\\ell$ and labels $\\bar{y}\\_\\ell$, and propagating the context mean according to Theorem 1. The final prediction restores the propagated label mean.\n\nFor your third concern, we claim the motivation of the IV experiments design and the connection between IV part and the main part in the paper. 2SLS is a natural solution for IV problems, and its can be naturally derived to in-context learning through replacing 2 stage linear regression by in-context linear regression. We use IV regression as **a case study** to show **our analysis can be naturally applied to downstream tasks that share this setting**. We also conduct the experiments to train the transformer using only the final prediction loss. However, we observe that the model **does not learn an accurate solution to the IV task**, and we can not find a structured pattern in learned KQ and OV circuits. This suggests the importance of intermediate supervision in guiding the model toward an effective IV solution."+ },+ "createdAt": "2026-11-17T11:18:26.877Z",+ "modifiedAt": "2026-11-17T11:19:11.760Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=lKbHHCglur",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/m8xulbuteb.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/m8xulbuteb.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "M8xUlbutEB",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer 2SBe",+ "content": {+ "paper_summary": "This paper studies attention-only transformers, primarily with tied weights, trained on linear-regression sequences with covariances that vary across tasks. It identifies structured KQ and OV circuits and uses Gaussian exponential tilting to derive an affine recursion in the population limit. Under the observed circuit structure, this analysis motivates a two-parameter iterative algorithm that transforms both covariates and labels. The experiments compare this algorithm with the trained networks, examine depth extrapolation, and extend the architecture to a supervised two-stage instrumental-variable (IV) regression setting.",+ "presentation": 2,+ "informativeness": 2,+ "soundness": 2,+ "critical_strengths": "- Varying the covariance across tasks provides a useful test of algorithmic interpretations, since a fixed-covariance setting can allow the model to encode a single covariance matrix in its weights.\n\n- The paper examines agreement between the proposed algorithm and the trained networks through both prediction error and input sensitivity. The appendix also considers higher dimensions, a broader eigenvalue range, linear-attention controls, and untied models. These are relevant checks of the interpretation's scope.\n\n- The Gaussian population-limit calculation gives a compact description of repeated attention updates. The deterioration under additional unrolling is also an interesting observation about the learned finite-depth procedure.",+ "critical_weaknesses": "- The connection between the population theorem and Algorithm 1 is not fully established. The finite-sample softmax update is treated as an empirical-moment update, but the resulting approximation error and its accumulation across layers are not controlled.\n\n- The novelty relative to GD++ remains unclear. Prior work already combines gradient-like updates with covariance-dependent transformations of the covariates. A direct comparison would help identify which aspects of the proposed algorithm are new.\n\n- The IV experiment evaluates prediction of the conditional mean given the instrument, which does not establish recovery of the structural effect. Direct regression of y on z would provide a useful control for assessing the benefit of the two-stage model.\n\n- The performance gap for the one-layer model does not by itself establish that depth is necessary. Algorithm 1 can already represent one-step GD, leaving optimization, finite-sample softmax effects, and differences in training budgets as possible explanations for the gap.",+ "questions_for_authors": "- Could Corollary 1 be stated as a population identity, with the finite-sample approximation presented separately? What controls the approximation error across layers? Also, are the interpreted step sizes extracted from the trained circuits or independently optimized for each comparison?\n\n- What is the precise relationship between the proposed algorithm and GD++, including the covariate transformation and the signs in the label updates and readout? Which new conclusion specifically depends on allowing the covariance to vary across tasks?\n\n- How does the IV model compare with direct in-context regression of y on z under the same query-generation protocol? Does the evaluation include structural-parameter error?",+ "flag_for_ethics_review": "No",+ "rating": 3,+ "confidence": 3+ },+ "createdAt": "2026-10-21T01:59:15.122Z",+ "modifiedAt": "2026-11-19T07:55:57.004Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=M8xUlbutEB",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/og6xcwhjo0.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/og6xcwhjo0.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "og6Xcwhjo0",+ "replyTo": "M8xUlbutEB",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Summary",+ "comment": "### Summary for Reviewer 2SBe\n\nWe appreciate your constructive feedback and comments.\n\nFor your first concern, we state the Corollary 1 as a population identity, and **add the analyze of the error accumulation and control across layers**. We establishes an $o_p(1)$ discrepancy between the actual transformer and Algorithm 1 across layers at fixed depth, which suggests the $z_{\\ell,L}^{T}$ approximation error remains **bounded in probability and vanishes as $L$ increases for every fixed $T$**. We also conduct experiments on measuring the error across layers for a 3-layer transformer, which evaluate our conclusion.\n\nFor your second concern, we first compare the formulation between GD++ and our interpreted algorithm. We claim that the core different finding under our training setting is that our interpreted algorithm **does not rely on the specific covariance matrix in the weight**, which is quite different compared to the related literature [1, 2].\n\nFor your third concern, thanks for your suggestion and we add the experiments in the revised paper. The prediction performance of the model applying direct regression y on z is inferior compared to the two-stage model.\n\nFor your forth concern, we claim that depth is essential. Because **original one-step GD estimator can not solve the regression task well when the covariance matrix is not identity in the test sequence**. Under our settings, covariance matrix in the test sequence is unknown during training, pushing the model to learn a new algorithm that does not rely on the specific covariance matrix in the weight."+ },+ "createdAt": "2026-11-17T11:17:40.555Z",+ "modifiedAt": "2026-11-17T11:17:40.555Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=og6Xcwhjo0",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/pbaodq2klc.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/pbaodq2klc.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "PBAodQ2Klc",+ "replyTo": "7m4HpkZWTz",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "**Propagation across layers.** Fix the model parameters, depth $T$, and token index $\\\\ell$. Let $z\\_{\\\\ell,L}^{(t)}$ and $z\\_\\\\ell^{(t)}$ denote the finite-sample and population states, initialized identically. The accumulated error is the difference $z\\_{\\\\ell,L}^{(t)}-z\\_\\\\ell^{(t)}$ after $t$ updates. Writing the actual update as $z\\_{\\\\ell,L}^{(t+1)}=A^{(t)}z\\_{\\\\ell,L}^{(t)}+r\\_\\\\ell^{(t)}(L)$, we obtain the exact decomposition\n\n$$\nz\\_{\\\\ell,L}^{(t+1)}-z\\_\\\\ell^{(t+1)}=A^{(t)}\\\\left(z\\_{\\\\ell,L}^{(t)}-z\\_\\\\ell^{(t)}\\\\right)+\nr\\_\\\\ell^{(t)}(L).\n$$\n\nThe **first term preserves convergence to zero**: since $A^{(t)}$ is finite and independent of $L$, an $o\\_p(1)$ error at layer $t$ remains $o\\_p(1)$ after multiplication by $A^{(t)}$. It therefore remains to establish $r\\_\\\\ell^{(t)}(L)=o\\_p(1)$.\n\nTo control the residual, we first propagate exponential-square moment bounds $\\\\frac{1}{L}\\\\sum\\_{\\\\ell'=1}^L e^{\\\\alpha\\_t\\\\|z\\_{\\\\ell',L}^{(t)}\\\\|^2}\\\\le C\\_t$.\nHere $\\\\alpha\\_t>0$ and $C\\_t<\\\\infty$ are auxiliary tail-control constants that can be chosen independently of $L$ at any prescribed confidence level and fixed depth. At $t=0$, the bound follows from Gaussian exponential moments and Markov's inequality, choosing $0<\\\\alpha\\_0<1/(2\\\\|\\\\Sigma^{(0)}\\\\|)$. For any query vector $q$, the exponential-tilting inequality bounds the norm of each head's softmax-weighted context mean by $\\\\sqrt{\\\\frac{\\\\log C\\_t}{\\\\alpha\\_t}}+\\\\frac{\\\\|\\\\Phi^{(h)}q\\\\|}{\\\\alpha\\_t}$.\nThus, the complete layer update grows at most linearly in $\\\\|q\\\\|$, allowing the moment bound to propagate to the next layer by choosing a sufficiently small positive $\\\\alpha\\_{t+1}$. These moment bounds control the tails; convergence is supplied by a separate induction. The initial context empirical distribution converges to $\\\\mathcal N(0,\\\\Sigma^{(0)})$ by the law of large numbers. Suppose it converges to $\\\\mathcal N(0,\\\\Sigma^{(t)})$ at layer $t$. On bounded token sets, weak convergence gives convergence of the attention numerators and denominators, uniformly over bounded query sets. The exponential-square moment bound makes their discarded tails uniformly small. Since the Gaussian population denominator is at least $1$, taking the ratio is valid. If $F\\_L^{(t)}(q)$ denotes the complete actual layer update using the current context, then for every fixed radius $R>0$, $\\\\sup\\_{\\\\|q\\\\|\\\\le R}\\\\|F\\_L^{(t)}(q)-A^{(t)}q\\\\|\\\\xrightarrow{p}0$. Applying these updates to the context tokens, with the same tail control, shows that the next-layer empirical distribution converges to $\\\\mathcal N(0,A^{(t)}\\\\Sigma^{(t)}A^{(t)\\\\top})=\\\\mathcal N(0,\\\\Sigma^{(t+1)})$. This closes the induction without assuming independence at intermediate layers.\nFor each fixed $\\\\ell$, the Gaussian initial state and the linear-growth bound imply $z\\_{\\\\ell,L}^{(t)}=O\\_p(1)$ at fixed depth. The locally uniform approximation can therefore be evaluated at this data-dependent token: \n\n$$\nr\\_\\\\ell^{(t)}(L)=F\\_L^{(t)}(z\\_{\\\\ell,L}^{(t)})-A^{(t)}z\\_{\\\\ell,L}^{(t)}=o\\_p(1).\n$$\n\nSince the initial accumulated error is zero, both terms in the error recursion consequently vanish by induction. Equivalently, expanding the recursion gives\n\n$$\n\\\\|z\\_{\\\\ell,L}^{(T)}-z\\_\\\\ell^{(T)}\\\\|\\\\le\\\\sum\\_{t=0}^{T-1}\\\\left(\\\\prod\\_{s=t+1}^{T-1}\\\\|A^{(s)}\\\\|\\\\right)\\\\|r\\_\\\\ell^{(t)}(L)\\\\|=o\\_p(1),\n$$\n\nwhere the empty product equals $1$. For fixed $T$, this is a finite sum with amplification factors independent of $L$. Hence\n\n$$\n\\\\max\\_{t\\\\le T}\n\\\\|z\\_{\\\\ell,L}^{(t)}-z\\_\\\\ell^{(t)}\\\\|\n=o\\_p(1)\n$$\n\nConsequently, we **establishes an $o\\_p(1)$ discrepancy between the actual transformer and Algorithm 1 across layers at fixed depth**. Thus, the $z\\_{\\\\ell,L}^{T}$ approximation error remains **bounded in probability and vanishes as $L$ increases for every fixed $T$**.\n\nWe also conduct the experiments to empirically see the error of the finite sample across layers. We test on a three-layer two-head transformer. The mse between the transformer output and the algorithm are:\n\n| Prompt Length $L$ | 50 | 100 | 150 | 200 | 250 | 300 | 350 | 400 |\n|---|---|---|---|---|---|---|---|---|\n| Layer 1 error | 0.0194 | 0.0084 | 0.0073 | 0.0055 | 0.0043 | 0.0037 | 0.0036 | 0.0033 |\n| Layer 2 error | 0.0208 | 0.0092 | 0.0077 | 0.0063 | 0.0055 | 0.0045 | 0.0041 | 0.0039 |\n| Layer 3 error | 0.0264 | 0.0124 | 0.0083 | 0.0071 | 0.0066 | 0.0051 | 0.0047 | 0.0044 |\n\n**3. Source of the interpreted step sizes.**\n\nIn all transformer-interpreted-algorithm comparisons, the step sizes are extracted directly from the corresponding trained circuits:$\\\\eta\\_x=\\\\langle u\\_1,\\\\omega\\\\rangle,\\\\qquad \\\\eta\\_y=\\\\langle u\\_2,\\\\omega\\\\rangle.$ No independent optimization of these step sizes is performed for Algorithm 1."+ },+ "createdAt": "2026-11-17T09:50:43.749Z",+ "modifiedAt": "2026-11-17T09:50:43.749Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=PBAodQ2Klc",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/s0engmiobn.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/s0engmiobn.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "S0enGmiOBN",+ "replyTo": "IfkZ2pOqVD",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thanks for your time and effort throughout the review and rebuttal process, and we greatly appreciate your comments and constructive suggestions for improving our paper."+ },+ "createdAt": "2026-11-19T09:23:25.146Z",+ "modifiedAt": "2026-11-19T09:23:25.146Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=S0enGmiOBN",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/tgrbcnphwz.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/tgrbcnphwz.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "tGRbCNPHWz",+ "replyTo": "wVHeVhmdsS",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "## Weaknesses\n\n### W1: Training dynamics\n\nThank you for this suggestion. We tracked the training dynamics of a two-layer, two-head looped softmax transformer with the same settings in Section 4. We visualize KQ and OV heatmaps to examine the evolution of the matrix structure, training and validation prediction errors to track performance, coefficient trajectories ($\\omega, u_1, u_2$) to characterize parameter changes, and effective step sizes ($\\eta_x, \\eta_y$) to summarize the corresponding update strengths. Approximately diagonal patterns become visible within the early training steps (around 10,000 in our experiment, 1/15 of the entire training stage), alongside a substantial reduction in prediction error. During subsequent training, these patterns become more pronounced while their coefficients continue to evolve. Prediction error decreases more gradually, and the effective step sizes become comparatively stable despite continued changes in individual coefficients. With these empirical observations, we will have a empirical conclusion that **in the training trajectory, an approximately diagonal structure gradually emerges early in training. Subsequently, the model continues to refine this structure and adjust its coefficients, while the prediction error and effective step sizes gradually stabilize.** We add these experiments **(Figure 7 and Figure 8 in Appendix B.1)** in the appendix of our revised version of paper as the complementary studies on the training dynamics.\n\nA complete training-dynamics theory would additionally need to track gradients through this coupled recursion and prove that optimization approaches the diagonal-circuit structure. We do not establish this result and will state the limitation clearly. Extending the analysis to these training dynamics, potentially through a reduced or manifold-based characterization of the evolving parameters and distributions, is an important direction for future work."+ },+ "createdAt": "2026-11-17T09:23:38.159Z",+ "modifiedAt": "2026-11-17T09:23:38.159Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=tGRbCNPHWz",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/trmvxxqyex.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/trmvxxqyex.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "trMVxXQYEX",+ "replyTo": "5Vnm3paPI5",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer DdDv",+ "content": {+ "comment": "Thanks for the clarifications. After reading authors' response, I think the settings they study indeed make sense, and the extension to in-context IV regression is more like a testbed to see whether the pattern occurs with this two-stage supervision design. My only remaining concern is the lack of training dynamics analysis, which the authors acknowledge as limitations. I am willing to increase my score to 3."+ },+ "createdAt": "2026-11-19T06:20:56.159Z",+ "modifiedAt": "2026-11-19T06:26:09.638Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=trMVxXQYEX",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/uu9s8lqqbo.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/uu9s8lqqbo.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "UU9s8lQQbo",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer p8jG",+ "content": {+ "paper_summary": "Considers in-context linear regression using multi-layer, multi-head attention networks with a residual structure and with parameters shared between layers.\n\nFour contributions:\n\nFirst, an empirical study demonstrating structural features of the KQ and OV matrices that emerge.\n\nSecond, a result that replaces sample averages by expectations in the transformer model and computes an explicit idealized recursion in this case for the sequence of layer outputs and their distribution for Gaussian inputs.\n\nThird, plugging in the observed transformer parameters gives an algorithmic interpretation of the regression algorithm. (This is a beautiful discovery. I think there is a more intuitive way to write the algorithm that gives some indication of why it works - I'll share it below.)\n\nFourth, it considers an intrumental variables regression problem and observes that the attention network learns the same algorithmic structure observed earlier.",+ "presentation": 3,+ "informativeness": 2,+ "soundness": 3,+ "critical_strengths": "The paper identifies a fascinating algorithmic structure to the linear regression approach discovered by transformer models.",+ "critical_weaknesses": "None",+ "questions_for_authors": "These are more suggestions:\n\nPresentation of Algorithm 1:\n\nWhy not write it in the usual linear regression notation as covariate data in an nxd matrix X_0 and response n-vector y_0 with last entry zero, then the algorithm is the recurrence X_{t+1}=X_t(I-alpha X_t^\\top X_t); y_{t+1}=(I+beta X_t X_t^\\top)y_t. (From your Figure 2, the coefficients alpha and beta are both positive, that is, the sign in the X recurrence seems to be negative.)\n\nIt's an interesting family of prediction methods.\n\nThe Gram matrix K_t= X_t X_t^\\top evolves according to K_{t+1} = K_t(I-alpha K_t)^2. Clearly, its eigenvectors stay constant, so this is a polynomial recurrence that gives a trajectory for the eigenvalues, and for small alpha they'll decrease like lambda_t ~ 1/(2 alpha t + lambda_0).\n \nFor an eigenvector v_i with eigenvalue lambda_{i,0}=0, v_i^\\top y_T = v_i^\\top y_0 prod_t (1 + beta lambda_{i,t}) = v_i^\\top y_0\n\nFor an eigenvector v_i with eigenvalue lambda_{i,0}>0, v_i^\\top y_T = v_i^\\top y_0 prod_t (1 + beta lambda_{i,t}) ~ v_i^\\top y_0 T^{beta/(2 alpha)}.\n\nSo y_T is close to (I+(c-1)P)y_0 where c is a constant and P is the projection onto the column space of X_0. And then e_n^T (I+(c-1)P)y_0 is a constant times the OLS estimate of the last response.\n\n(But it's not clear why this should be approximately true for T=3.)\n\nMinor points:\n\nThroughout, the equation references have a latex typo (\"Equation equation 6\" instead of \"Equation (6)\").\n\nSections 1 and 2:\n\nMissing reference. Trained Transformers Learn Linear Models In-Context, Ruiqi Zhang, Spencer Frei, Peter L. Bartlett, arXiv:2306.09927. Beyond showing that 'linear transformers can implement optimization algorithms', that paper shows how gradient methods lead to parameters that solve the fixed covariance linear regression problem. And it gives a proof of the failure mode in the linear case with a varying input covariance.\n\nl173: Why are the parameter matrices described as 'projection' matrices?\n\nl256-262: What does 'unrolled more than once' mean? In particular, a 3-layer network is unrolled 3 times, since there are 3 layers with identical parameters. So in the 3-layer looped transformer of Fig 3(a), does 'unrolled twice' mean a 6-layer transformer?",+ "flag_for_ethics_review": "No",+ "rating": 4,+ "confidence": 4+ },+ "createdAt": "2026-10-22T02:57:17.470Z",+ "modifiedAt": "2026-11-06T12:33:21.591Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=UU9s8lQQbo",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/vjc1g9xhat.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/vjc1g9xhat.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "vjC1G9xHat",+ "replyTo": "fTX7lcPd6S",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "## W3: Highly tailored training settings for IV tasks and unclear connections to main part.\n\nThank you for raising these concerns. We will clarify the rationale for the two-stage design and its connection to our main mechanistic findings.\n\n**1. Rationale for the two-stage design.**\nTwo-stage least squares (2SLS) [1] and the minimax estimator [2] are two major, widely used approaches to solving linear IV problems. The 2SLS procedure consists of two linear regression stages: in the first stage, it regresses the endogenous covariate $x_i$ on an instrument $z_i$ to obtain fitted values $\\hat{x}_i$; in the second stage, it regresses the outcome $y_i$ on $\\hat{x}_i$. This procedure **can be naturally adapted to the in-context learning setting** [3] by implementing both stages as in-context linear regressions. Building on this idea, we propose a natural extension of in-context regression to 2SLS and design a multilayer transformer that mirrors this decomposition: an initial block predicts $\\hat{x}_i$, and a deeper block regresses $y_i$ on $\\hat{x}_i$.\n\n**2. Connection to the main experiments.**\nWe use IV regression as **a case study** to investigate whether the conclusions and the interpreted algorithm from the main part of the paper extend to other downstream tasks. For in-context IV regression, following the 2SLS procedure, a natural approach to IV problems, allows us to formulate **two in-context linear regression stages**. The second stage **naturally gives rise to the same challenging setting considered in the main part**: the covariance matrix varies across sequences. Specifically, under Eq. (8), the ideal population first-stage regression satisfies $\\mathbb{E}[x_i\\mid z_i,\\theta]=\\theta^\\top z_i$, and $\\operatorname{Cov}\\left(\\mathbb{E}[x_i\\mid z_i,\\theta]\\mid\\theta\\right)=\\theta^\\top\\theta$. Thus, the covariance of the fitted covariates depends on the sequence-specific task. Based on the conclusions of the main analysis, we expect the transformer to **exhibit the same pattern and learn the same algorithm**. This expectation is supported by conducting the experiments on IV tasks and observing the matching KQ/OV structure in Figure 12, the close agreement in prediction errors between the second-stage transformer and the interpreted algorithm in Figure 6(b), and the aligned input sensitivities in Figure 6(c). Consequently, our main part analysis provides an interpretation of the transformer behavior and learned algorithm when covariance varies across sequences, a setting that **differs from** those considered in prior work [4]. The IV regression experiments demonstrate that **our analysis can be naturally applied to downstream tasks that share this setting**.\n\nWe will add some descriptions for clarify the connection between the IV part and the main part in the introduction clearly in our revised paper.\n\n## Questions\n\n### Q1: \n\nThank you for this suggestion. We conducted an additional ablation using a one-layer transformer for the first stage and a three-layer transformer for the second stage. We removed the stop-gradient operation between the stages and trained both transformers jointly using only the final prediction loss, i.e., the second term of Eq. (10).\n\nUnder this setting, the model does not learn an accurate solution to the IV task within the tested training budget. After training, the final prediction mse error is approximately **5.4 for predicting $y_q$** and **4.7 for the intermediate prediction $\\hat{x}_q$ relative to $x_q$** with sequence length $L$ at $450$, compared with 0.246 for 2SLS and **0.279 for transformer trained on Eq. (10) on the same tasks**. Moreover, we can not find a clear pattern structure for the learned KQ and OV matrices for both two stages.\n\nThese results suggest that explicit first-stage supervision plays an important role in learning the intended two-stage decomposition under the tested architecture and training budget. Without this intermediate target, the first stage does not recover accurate fitted regressors in the original coordinates, therefore, we do not observe the second stage reliably recovering the regression mechanism identified in the main part of the paper. This ablation therefore **supports the importance of intermediate supervision** in guiding the model toward an effective IV solution.\n\n### References\n[1] Basmann, Robert L. \"A generalized classical method of linear estimation of coefficients in a structural equation.\"\n\n[2] Dikkala, Nishanth, et al. \"Minimax estimation of conditional moment models.\"\n\n[3] Liang, Haodong, Krishna Balasubramanian, and Lifeng Lai. \"Transformers handle endogeneity in in-context linear regression.\"\n\n[4] He, Jianliang, et al. \"In-context linear regression demystified: Training dynamics and mechanistic interpretability of multi-head softmax attention.\""+ },+ "createdAt": "2026-11-17T09:39:59.383Z",+ "modifiedAt": "2026-11-17T09:39:59.383Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=vjC1G9xHat",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/wvhevhmdss.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/wvhevhmdss.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "wVHeVhmdsS",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer DdDv",+ "content": {+ "paper_summary": "This paper studies transformers' behavior on in-context linear regression tasks with zero-mean covariates whose covariance varies across sequences. The major empirical finding is a parameter pattern that emerges in multi-layer looped transformers. This pattern can be interpreted as a concrete update rule in the population limit.",+ "presentation": 3,+ "informativeness": 2,+ "soundness": 2,+ "critical_strengths": "This paper is generally clear and well-written. The pattern that emerges during training is an interesting finding. Theorem 1 and Corollary 1 interpret this pattern by showing a concrete update rule in the population limit, which is a non-trivial finding.",+ "critical_weaknesses": "1. The paper only analyzes the parameter pattern of the trained transformer. I feel it would be more interesting if the authors could show how training leads to such a pattern, as this would explain why the pattern emerges.\n2. The transformer is trained on zero-mean covariates, while Theorem 1 allows non-zero means and corollary 1 then returns to the zero-mean setting, which is kind of distracting. If the aim is to show that a transformer trained on zero-mean covariates generalizes to non-zero-mean settings, it would be more convincing if the authors can provide empirical evidence that the model still performs well in this setting.\n3. The training setting for the IV transformer seems highly tailored and is not a general approach. The connection of this experiment to the main part is also not fully clear.",+ "questions_for_authors": "1. Please see weakness part.\n2. The IV regression training objective (10) supervises both the intermediate prediction $\\hat{x}$ and the final prediction $\\hat{y}$. How much does the model's performance depend on explicit first-stage supervision? What happens if the same two-stage model is trained using only the final prediction error on $y$ with gradients flowing through both stages (as this is the training setting in the main part)?",+ "flag_for_ethics_review": "No",+ "rating": 3,+ "confidence": 4+ },+ "createdAt": "2026-10-21T21:48:11.837Z",+ "modifiedAt": "2026-11-19T06:21:33.692Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=wVHeVhmdsS",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/xpnhhmwg0q.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/xpnhhmwg0q.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "xpNhHmwg0Q",+ "replyTo": "trMVxXQYEX",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thanks for your time and effort throughout the review and rebuttal process, and we greatly appreciate your comments and constructive suggestions for improving our paper."+ },+ "createdAt": "2026-11-19T09:22:02.846Z",+ "modifiedAt": "2026-11-19T09:22:02.846Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=xpNhHmwg0Q",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/notes/yvwnm8t2wa.json added
+++ b/reviews/openreview/ogqqebmx4m/notes/yvwnm8t2wa.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "YVwNM8t2wa",+ "replyTo": "M8xUlbutEB",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer 2SBe",+ "content": {+ "comment": "Thank you for the author's response. I will raise my score to 3."+ },+ "createdAt": "2026-11-19T07:55:33.890Z",+ "modifiedAt": "2026-11-19T07:55:33.890Z",+ "url": "https://openreview.net/forum?id=oGQqebMX4m¬eId=YVwNM8t2wa",+ "license": "CC-BY-4.0"+}
reviews/openreview/ogqqebmx4m/submission.json added
+++ b/reviews/openreview/ogqqebmx4m/submission.json@@ -0,0 +1,16 @@+{+ "schema": "submission/1",+ "id": "oGQqebMX4m",+ "venue": {+ "id": "ICLR.cc/2027/Conference",+ "name": "ICLR 2027",+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference"+ },+ "number": 42759,+ "keywords": [+ "In-context Learning",+ "Looped Transformer"+ ],+ "url": "https://openreview.net/forum?id=oGQqebMX4m",+ "license": "CC-BY-4.0"+}
versions/v_egpikaqb.json modified
+++ b/versions/v_egpikaqb.json@@ -5,9 +5,14 @@"submissions": [{"venue": "ICLR 2027","status": "under_review",- "url": "https://openreview.net/forum?id=oGQqebMX4m"+ "url": "https://openreview.net/forum?id=oGQqebMX4m",+ "number": 42759,+ "reviews": "openreview/ogqqebmx4m",+ "evidence": [+ "https://openreview.net/forum?id=oGQqebMX4m"+ ]}],"title": "Interpreting Multi-layer Transformers for In-context Linear Regression with Varying Covariance","url": "https://openreview.net/forum?id=oGQqebMX4m",