paper-with-me

홈 › Papers

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 the in-context learning capabilities of transformers in decision-making problems, i.e., reinforcement learning (RL) for bandits and Markov decision processes. To do so, we introduce and study Decision-Pretrained Transformer (DPT), a supervised pretraining method where the transformer predicts an optimal action given a query state and an in-context dataset of interactions, across a diverse set of tasks. This procedure, while simple, produces a model with several surprising capabilities. We find that the pretrained transformer can be used to solve a range of RL problems in-context, exhibiting both exploration online and conservatism offline, despite not being explicitly trained to do so. The model also generalizes beyond the pretraining distribution to new tasks and automatically adapts its decision-making strategies to unknown structure. Theoretically, we show DPT can be viewed as an efficient implementation of Bayesian posterior sampling, a provably sample-efficient RL algorithm. We further leverage this connection to provide guarantees on the regret of the in-context algorithm yielded by DPT, and prove that it can learn faster than algorithms used to generate the pretraining data. These results suggest a promising yet simple path towards instilling strong in-context decision-making abilities in transformers.

📄 PDF Abstract BibTeX arXiv:2306.14892

Code (0)

등록된 구현이 없습니다.

Tasks

Decision MakingIn-Context LearningIn-Context Reinforcement Learningreinforcement-learningReinforcement LearningReinforcement Learning (RL)

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Convolution A convolution is a type of matrix operation, consisting of a kernel, a small matrix of weights, that slides over input data performing element-wise multiplication with the…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretraining

2023-10-12 · Licong Lin, Yu Bai, Song Mei

Large transformer models pretrained on offline reinforcement learning datasets have demonstrated remarkable in-context reinforcement learning (ICRL) capabilities, where they can make good decisions when prompted with int…

In-Context Reinforcement Learningreinforcement-learningReinforcement LearningThompson Sampling

Random Policy Enables In-Context Reinforcement Learning within Trust Horizons

2024-10-25 · Weiqin Chen, Santiago Paternain

Pretrained foundation models have exhibited extraordinary in-context learning performance, allowing zero-shot generalization to new tasks not encountered during pretraining. In the case of reinforcement learning (RL), in…

In-Context LearningIn-Context Reinforcement Learningreinforcement-learningReinforcement Learning+2

Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformers

2026-02-09 · Juncheng Dong, Bowen He, Moyang Guo, Ethan X. Fang 외 arxiv

In-context reinforcement learning (ICRL) leverages the in-context learning capabilities of transformer models (TMs) to efficiently generalize to unseen sequential decision-making tasks without parameter updates. However,…

Reinforcement LearningContinuous Control

RLP: Reinforcement as a Pretraining Objective

2025-09-26 · Ali Hatamizadeh, Syeda Nahida Akter, Shrimai Prabhumoye, Jan Kautz 외 arxiv

The dominant paradigm for training large reasoning models starts with pre-training using next-token prediction loss on vast amounts of data. Reinforcement learning, while powerful in scaling reasoning, is introduced only…

Reinforcement Learning

Future-conditioned Unsupervised Pretraining for Decision Transformer

2023-05-26 · Zhihui Xie, Zichuan Lin, Deheng Ye, Qiang Fu 외

Recent research in offline reinforcement learning (RL) has demonstrated that return-conditioned supervised learning is a powerful paradigm for decision-making problems. While promising, return conditioning is limited to …

Decision MakingReinforcement Learning (RL)