arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.14892cs.LGcs.AI
收藏

监督预训练能够学习上下文强化学习

Supervised Pretraining Can Learn In-Context Reinforcement Learning

Stanford University(斯坦福大学);Microsoft Research(微软研究院);Google DeepMind(谷歌DeepMind)

Jonathan N. Lee, Annie Xie, Aldo Pacchiano, Yash Chandak, Chelsea Finn, Ofir Nachum, Emma Brunskill

AI总结:

本文提出Decision-Pretrained Transformer (DPT),通过监督预训练让模型根据查询状态和交互数据预测最优动作,使其具备上下文强化学习能力,实现贝叶斯后验采样并保证更快的收敛速度。

摘要:

在多样化数据集上训练的大型transformer模型展现出了卓越的上下文学习能力,在未经过显式训练的任务上实现了很高的少样本性能。在本文中,我们研究了transformer在决策问题中的上下文学习能力,即多臂老虎机和马尔可夫决策过程的强化学习(RL)。为此,我们引入并研究了Decision-Pretrained Transformer(DPT),这是一种监督预训练方法,其中transformer在多种任务中,根据查询状态和上下文交互数据集来预测最优动作。这一过程虽然简单,却产生了一个具有多项惊人能力的模型。我们发现,预训练的transformer可用于解决一系列上下文RL问题,展现出在线探索和离线保守性,尽管它并未被显式训练去这样做。该模型还能泛化到预训练分布之外的新任务,并自动调整其决策策略以适应未知结构。在理论上,我们表明DPT可以被视为贝叶斯后验采样(一种可证明样本高效的RL算法)的高效实现。我们进一步利用这一联系为DPT产生的上下文算法的遗憾值提供保证,并证明其学习速度可以快于用于生成预训练数据的算法。这些结果指明了一条有前景且简单的路径,以在transformer中注入强大的上下文决策能力。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑