Interpreting Multi-layer Transformers for In-context Linear Regression with Varying Covariance
Add the PDF
@openreview[bot] · 2026-11-22 21:34 UTC · fe29e9d01958 ·
versions/v_egpikaqb.json modified
+++ b/versions/v_egpikaqb.json@@ -10,8 +10,12 @@}],"title": "Interpreting Multi-layer Transformers for In-context Linear Regression with Varying Covariance","url": "https://openreview.net/forum?id=oGQqebMX4m",+ "pdf": {+ "source": "https://openreview.net/forum?id=oGQqebMX4m",+ "license": "CC-BY-4.0"+ },"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_egpikaqb.pdf added
+++ b/versions/v_egpikaqb.pdf@@ -0,0 +1,3 @@+version https://git-lfs.github.com/spec/v1+oid sha256:60e3f64d276aedec4d96714feb091e758ba4aadd298a6c969ff3fa8b4da113b3+size 9178996