paper-with-me

홈 › Papers

Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvement

2026-05-07 · Haodong Liang, Lifeng Lai arxiv

We investigate the ability of transformers to perform in-context reinforcement learning (ICRL), where a model must infer and execute learning algorithms from trajectory data without parameter updates. We show that a linear self-attention transformer block can provably implement policy-improvement methods, including semi-gradient SARSA and actor-critic, via explicit parameter constructions. Beyond existence, we design a teacher-mimicking training procedure, analyze its gradient-flow dynamics, and establish the first convergence guarantee in the ICRL literature: under suitable richness conditions on the training MDP distribution, gradient flow converges locally and exponentially to an optimal parameter manifold corresponding to the desired RL update. Empirically, training transformers on randomly generated tabular MDPs confirms these predictions: the learned models recover the parameter structure of our explicit constructions and, when deployed on unseen MDPs, deliver strong in-context control performance. Together, these results illuminate how transformer architectures internalize and execute classical reinforcement learning algorithms in context, bridging mechanistic understanding and training dynamics in ICRL.

📄 PDF Abstract BibTeX arXiv:2605.05755

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

Transformers Learn Temporal Difference Methods for In-Context Reinforcement Learning

2024-05-22 · Jiuqi Wang, Ethan Blaser, Hadi Daneshmand, Shangtong Zhang

In-context learning refers to the learning ability of a model during inference time without adapting its parameters. The input (i.e., prompt) to the model (e.g., transformers) consists of both a context (i.e., instance-l…

In-Context LearningIn-Context Reinforcement Learningreinforcement-learningReinforcement Learning

Agentic Transformers Provably Learn to Search via Reinforcement Learning

2026-05-29 · Tong Yang, Yu Huang, Yingbin Liang, Yuejie Chi arxiv

Tree search is a central abstraction behind many language-agent reasoning and decision-making tasks: agents must explore actions, remember failures, and backtrack toward promising alternatives. Yet, we lack a theoretical…

Reinforcement Learning

Supervised Pretraining Can Learn In-Context Reinforcement Learning

2023-06-26 · NeurIPS 2023 11

Large transformer models trained on diverse datasets have shown a remarkable ability to learn in-context, achieving high few-shot performance on tasks they were not explicitly trained to solve. In this paper, we study th…

Decision MakingIn-Context LearningIn-Context Reinforcement Learningreinforcement-learning+2

Successive Convex Approximation Based Off-Policy Optimization for Constrained Reinforcement Learning

2021-05-26 · Chang Tian, An Liu, Guang Huang, Wu Luo

We propose a successive convex approximation based off-policy optimization (SCAOPO) algorithm to solve the general constrained reinforcement learning problem, which is formulated as a constrained Markov decision process …

reinforcement-learningReinforcement Learning (RL)

A New Policy Iteration Algorithm For Reinforcement Learning in Zero-Sum Markov Games

2023-03-17 · Anna Winnicki, R. Srikant

Optimal policies in standard MDPs can be obtained using either value iteration or policy iteration. However, in the case of zero-sum Markov games, there is no efficient policy iteration algorithm; e.g., it has been shown…

Model-based Reinforcement LearningMulti-agent Reinforcement Learningreinforcement-learningReinforcement Learning (RL)