arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.26137cs.LG
收藏

在在线强化学习中加速Transformer

Accelerating Transformers in Online RL

Cognitive AI Lab(认知人工智能实验室)

Daniil Zelezetsky, Alexey K. Kovalev, Aleksandr I. Panov

AI总结:

针对Transformer在无模型在线强化学习中训练不稳定、难以适配现有算法的问题,提出用稳定的Accelerator策略先通过行为克隆预训练Transformer再上线的方法,实现稳定训练并大幅降低训练时间与计算需求。

摘要:

基于Transformer的模型出现在强化学习(RL)领域后,拓宽了机器人任务的可能性边界,但同时也在落地过程中带来了诸多挑战,在无模型在线RL场景下尤为突出。由于Transformer模型的不稳定性,部分现有学习算法难以与这类模型适配实现。本文提出一种将Accelerator策略用作Transformer训练器的方法。Accelerator是一种更简单、更稳定的模型,在算法的第一阶段,它独立与环境交互,同时通过行为克隆训练Transformer。在第二阶段,预训练完成的Transformer开始在完全在线的设置下与环境交互。最终,这种无模型算法提升了Transformer的性能表现,帮助它以更稳定、更快速的方式完成在线训练。我们在基于状态和基于图像的ManiSkill环境,以及MDP和POMDP设置下的MuJoCo任务上开展了实验,结果表明,应用我们的算法不仅能实现Transformer的稳定训练,还能将基于图像的环境下的训练时间最多缩短二分之一。此外,它将离策略方法所需的回放缓冲区大小降至1万-2万,显著降低了整体计算需求。

英文摘要:

The appearance of transformer-based models in Reinforcement Learning (RL) has expanded the horizons of possibilities in robotics tasks, but it has simultaneously brought a wide range of challenges during its implementation, especially in model-free online RL. Some of the existing learning algorithms cannot be easily implemented with transformer-based models due to the instability of the latter. In this paper, we propose a method that uses the Accelerator policy as a transformer's trainer. The Accelerator, a simpler and more stable model, interacts with the environment independently while simultaneously training the transformer through behavior cloning during the first stage of the proposed algorithm. In the second stage, the pretrained transformer starts to interact with the environment in a fully online setting. As a result, this model-free algorithm accelerates the transformer in terms of its performance and helps it to train online in a more stable and faster way. By conducting experiments on both state-based and image-based ManiSkill environments, as well as on MuJoCo tasks in MDP and POMDP settings, we show that applying our algorithm not only enables stable training of transformers but also reduces training time on image-based environments by up to a factor of two. Moreover, it decreases the required replay buffer size in off-policy methods to 10-20 thousand, which significantly lowers the overall computational demands.

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

↑