English

Optimal Dynamic Regret by Transformers for Non-Stationary Reinforcement Learning

Machine Learning 2025-10-24 v2 Machine Learning

Abstract

Transformers have demonstrated exceptional performance across a wide range of domains. While their ability to perform reinforcement learning in-context has been established both theoretically and empirically, their behavior in non-stationary environments remains less understood. In this study, we address this gap by showing that transformers can achieve nearly optimal dynamic regret bounds in non-stationary settings. We prove that transformers are capable of approximating strategies used to handle non-stationary environments and can learn the approximator in the in-context learning setup. Our experiments further show that transformers can match or even outperform existing expert algorithms in such environments.

Keywords

Cite

@article{arxiv.2508.16027,
  title  = {Optimal Dynamic Regret by Transformers for Non-Stationary Reinforcement Learning},
  author = {Baiyuan Chen and Shinji Ito and Masaaki Imaizumi},
  journal= {arXiv preprint arXiv:2508.16027},
  year   = {2025}
}

Comments

27 pages

R2 v1 2026-07-01T05:01:03.315Z