scimeatlas

Research map / Reinforcement learning / Offline RL

Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvement

Haodong Liang, Lifeng LAI

NeurIPS 2026Reinforcement learning › Offline RLapproach: Decision Transformer sequence modelsopen problems in this approach4 citations (OpenAlex)

UC Davis · University of California, Davis

Read the paperPlace an idea next to itCheck your own paper ↗

In one sentence

Shows a one-layer linear-attention block can implement batch semi-gradient SARSA and actor-critic updates via explicit constructions, and proves local exponential convergence of gradient flow to the optimal parameter manifold under richness assumptions, validated on random tabular MDPs.

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.

Problem

Whether transformers can implement policy-improvement RL algorithms (SARSA, actor-critic) in context, and whether gradient training provably reaches the parameters that realize them, not just the existence of such parameters.

Approach

Extends prior policy-evaluation (TD) analysis of linear attention to policy improvement by having the block directly output updated critic (and actor) parameters, then proves a local Polyak-Lojasiewicz inequality on a tube around the scaling-symmetric optimal manifold, giving exponential convergence of gradient flow under richness assumptions on training MDPs.

Key results

Surprising findings

  • The remaining gap to the oracle is attributed to linear function approximation, since the analytical teacher shows the same gap.

Limitations

  • Richness assumptions on training MDPs (Assumption on excitation and no destructive cancellation) are hard to verify and only argued generically; verification deferred.
  • Convergence is local, requiring initialization near the optimal manifold; global landscape not analyzed.
  • Analysis is for deterministic gradient flow in a single linear-attention block, not stochastic optimization or softmax/multi-layer architectures.

Open problems this paper states

Open problems in decision Transformer sequence models

Do sequence-model offline RL methods hold up with pixel inputs, larger models and weaker theoretical assumptions?

All 4 open problems and what was already tried →

Experimental setup

Datasets: randomly generated tabular MDPs (Dirichlet transitions, uniform rewards)

Benchmarks: 100 held-out random tabular MDPs

Metrics: discounted return parameter structure recovery (learned P and V blocks) training loss decay

Baselines: analytical SARSA teacher analytical actor-critic teacher oracle greedy policy (value iteration) uniform random policy

Builds on: Adam Transformers learn in-context by gradient descent linear attention policy evaluation via TD (prior ICRL theory) Algorithm distillation

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