Interpreting Multi-layer Transformers for In-context Linear Regression with Varying Covariance
Import the versions from OpenReview: the same title at other venues
@openreview[bot] · 2026-11-22 19:28 UTC · b7734664f33a ·
versions/v_egpikaqb.json added
+++ b/versions/v_egpikaqb.json@@ -0,0 +1,18 @@+{+ "date": "2026-09-18",+ "kind": "submitted",+ "label": "ICLR 2027",+ "submissions": [+ {+ "venue": "ICLR 2027",+ "status": "under_review",+ "url": "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",+ "evidence": [+ "https://openreview.net/forum?id=oGQqebMX4m"+ ],+ "abstract": "We study how multi-layer softmax-attention transformers perform in-context linear regression in the challenging regime where the covariate distribution varies across sequences, in contrast to the fixed-distribution setting considered in prior work. We first show that conclusions from prior work break down in this regime, and that transformer depth becomes essential for achieving low in-context error. Through a population-limit interpretation of the trained transformer, we reveal that it solves linear regression by implementing a variant of gradient descent whose parameters depend strongly on model depth, corresponding to a consistent structure in the learned weight matrices. We also discover the non-convergent property of the learned algorithm. Building on this insight, we show that with a chain-of-thought-style intermediate step, the transformer can solve in-context instrumental variable (IV) regression, applying the same algorithm whenever the same regime studied here appears in the IV regression. Our findings provide new evidence that multi-layer transformers learn distinct in-context algorithms under more complex regression scenarios, bridging the gap between empirical performance and interpretable algorithmic behavior."+}
versions/v_n6cvhtmy.json added
+++ b/versions/v_n6cvhtmy.json@@ -0,0 +1,18 @@+{+ "date": "2025-09-19",+ "kind": "submitted",+ "label": "ICLR 2026",+ "submissions": [+ {+ "venue": "ICLR 2026",+ "status": "rejected",+ "url": "https://openreview.net/forum?id=7CAvzaRUkH"+ }+ ],+ "title": "Interpreting Multi-Layer Transformers for In-Context Linear Regression with Varying Covariance",+ "url": "https://openreview.net/forum?id=7CAvzaRUkH",+ "evidence": [+ "https://openreview.net/forum?id=7CAvzaRUkH"+ ],+ "abstract": "We study how multi-layer softmax-attention transformers perform in-context linear regression, focusing on the challenging setting where the covariate distribution varies across sequences. We show that multi-layer transformers substantially outperform single-layer models, demonstrating that depth is critical for sufficient expressivity. Through a novel probing methodology using Gaussian test data, we reveal that the transformer approximates linear regression by implementing a variant of the gradient descent algorithm. The parameters of this algorithm are dependent on model depth and data distribution, but insensitive to number of attention heads or sequence length, corresponding to a consistent diagonal structure in the learned weight matrices. Building on this insight, we show that by incorporating a chain-of-thought-style intermediate step, the transformer can solve in-context instrumental variable (IV) regression, achieving performance comparable to a two-stage least squares estimator. Our findings provide new evidence that depth enables transformers to learn sophisticated in-context algorithms, bridging the gap between empirical performance and interpretable algorithmic behavior."+}