atlas

Research map / Learning theory and algorithms / Sample complexity

In-context Learning of Linear Dynamical Systems with Transformers: Approximation Bounds and Depth-separation

NeurIPS 2025 · Learning theory and algorithms › Sample complexity · approach: Neural network approximation theory · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that deep linear transformers with O(log T) depth can in-context approximate least-squares prediction for noisy 1D/d-dim linear dynamical systems with error O(log T / T), while single-layer linear transformers suffer a non-vanishing lower bound, indicating depth separation.

Problem

Approximation power of transformers for in-context learning of noisy linear dynamical systems (non-IID data), including how depth affects the uniform L2 test loss as sequence length T grows.

Approach

Construct a deep linear transformer that unrolls modified Richardson iteration to solve the sample-covariance linear system, yielding the least-squares one-step predictor; and prove a non-vanishing lower bound for single-layer linear attention on 1D systems via limiting loss computation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a deep linear transformer with depth O(log(T)) instead of a single-layer transformerIn-context learning of noisy linear dynamical systems · Noisy linear dynamical systemsL² test loss: O\left(\frac{\log(T)}{T} \right)Helped
Use a single-layer linear attention blockIn-context learning of 1D noisy linear dynamical systems · 1D noisy linear dynamical systemsL² test loss: C(\sigma^2,w_{\min},w_{\max}) > 0Hurt
Increase softmax transformer depth beyond L =2Softmax transformers learning noisy 1D linear dynamical systems · Noisy 1D linear dynamical systems (T = 500)test errorHelped
Increase linear transformer depth from L = 2 to L = 3, 4, or 5Linear transformers learning noisy 1D linear dynamical systems · Noisy 1D linear dynamical systems (T = 500)test errorNo clear effect
Use a single-layer linear attention transformer rather than a deeper transformerTransformers learning noisy 1D linear dynamical systems · Noisy 1D linear dynamical systems (T = 500)test errorHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic noisy linear dynamical systems

Benchmarks: synthetic 1D linear dynamical systems (T=500, w in [0,0.8])

Metrics: L2 test loss test error vs epochs

Baselines: softmax transformers least-squares estimator

Builds on: mesa-optimization hypothesis linear transformers implement gradient descent Richardson iteration

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy