Saved in:
Bibliographic Details
Main Authors: Zelezetsky, Daniil, Kovalev, Alexey K., Panov, Aleksandr I.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.26137
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918151616200704
author Zelezetsky, Daniil
Kovalev, Alexey K.
Panov, Aleksandr I.
author_facet Zelezetsky, Daniil
Kovalev, Alexey K.
Panov, Aleksandr I.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_26137
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Accelerating Transformers in Online RL
Zelezetsky, Daniil
Kovalev, Alexey K.
Panov, Aleksandr I.
Machine Learning
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.
title Accelerating Transformers in Online RL
topic Machine Learning
url https://arxiv.org/abs/2509.26137