arXiv:2601.20116cs.LG2026-01ICML被引 2

用历史差数据训练模型,让AI自己学会更好决策。

In-Context Reinforcement Learning From Suboptimal Historical Data

  • 用Transformer模拟强化学习中的策略-价值机制
  • 在低质量数据上仍能超越传统方法,提升决策效果
  • 适合缺乏优质训练数据的智能体部署场景

Transformer模型因具备上下文学习能力而表现卓越。受此启发,我们探索使用自回归Transformer实现上下文强化学习(ICRL)。首先在包含多个强化学习任务轨迹的离线数据集上训练Transformer,随后固定该模型以生成新任务的动作策略。特别地,我们考虑数据来自次优行为策略的情形。此时标准自回归训练等同于模仿学习,导致性能不佳。为此,我们提出决策重要性Transformer(DIT)框架,以在上下文中模拟演员-评论家算法。具体而言,先训练一个基于Transformer的价值函数,估计生成次优轨迹的行为策略的优势函数;再通过基于该价值函数构建权重的加权最大似然损失,训练策略Transformer,引导次优策略向最优策略收敛。我们在多臂赌博机与马尔可夫决策过程问题上进行了广泛实验,结果表明DIT在含次优历史数据时表现更优。

原文摘要 · Abstract (English)

Transformer models have achieved remarkable empirical successes, largely due to their in-context learning capabilities. Inspired by this, we explore training an autoregressive transformer for in-context reinforcement learning (ICRL). In this setting, we initially train a transformer on an offline dataset consisting of trajectories collected from various RL tasks, and then fix and use this transformer to create an action policy for new RL tasks. Notably, we consider the setting where the offline dataset contains trajectories sampled from suboptimal behavioral policies. In this case, standard autoregressive training corresponds to imitation learning and results in suboptimal performance. To address this, we propose the Decision Importance Transformer(DIT) framework, which emulates the actor-critic algorithm in an in-context manner. In particular, we first train a transformer-based value function that estimates the advantage functions of the behavior policies that collected the suboptimal trajectories. Then we train a transformer-based policy via a weighted maximum likelihood estimation loss, where the weights are constructed based on the trained value function to steer the suboptimal policies to the optimal ones. We conduct extensive experiments to test the performance of DIT on both bandit and Markov Decision Process problems. Our results show that DIT achieves superior performance, particularly when the offline dataset contains suboptimal historical data.

强化学习Transformer次优数据

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。