On Adaptive Step Sizes for Eligibility Traces in Deep Reinforcement Learning
Abstract
Many deep reinforcement learning (RL) algorithms store agent-environment interactions in a replay buffer and later learn by sampling transitions from it. However, this approach can be memory-inefficient and can delay learning because the agent can learn from a transition only when the buffer samples it. Additionally, most of these methods use one-step or short multi-step temporal-difference (TD) updates, which are slow at credit assignment. An alternative approach is to learn from the stream of observations as they arrive without relying on a buffer. Eligibility-trace algorithms allow these incremental updates and can also assign credit over many steps. These algorithms were common with linear function approximation but have only recently been used in deep RL. Basic questions, such as how to use vector step sizes with eligibility traces in the deep RL setting, remain open. In this work, we first show that adaptive vector step sizes must be part of the eligibility trace to keep the equivalence between the forward and backward views. We then show that the step sizes of common optimizers, such as Adam, do not have an online backward view. We introduce a new optimizer, Function-Space Distance (FSD), that maintains the forward-backward equivalence. We test four eligibility-trace algorithms covering semi-gradient and gradient TD updates, as well as value-based and actor-critic methods. We show that FSD performs better than SGD or naively applied Adam. The resulting algorithms outperform or match other streaming methods and are comparable to or better than PPO, which uses a buffer, in most environments. Code available at https://github.com/esraaelelimy/adatraces
Create a lesson
Related papers
ARC: Adaptive Rollout Control for Efficient Synchronous LLM Reinforcement Learning
Shared title terminology · Yihui Zhang, Tianyu Wo, Jinghao Wang et al.
VeriLogic: Reinforcement Learning over Verifiable Logical Reasoning Traces
Shared title terminology · ZeLiang Chen, Yunyao Zhang, Xinglang Zhang et al.
When Can a Rewiring Control Test LLM Weight Readers? C2 and an Eligibility Protocol
Shared title terminology · Vaishak Girish Kumar, Sanika Vilas Najan
S^2LMR: Supervised Sequential Long-Context Multi-Step Retriever
Shared title terminology · Qiang Hu, Kaiyi Ji
CLAIR: Consistent LLM Adaptation via Index-free Reprogramming
Shared title terminology · Dongkuk Kim, Jungkyu Shin, Yoonhyuk Choi et al.
Action-Conditioned Transition Irreversibility for Out-of-Distribution Detection in Reinforcement Learning
Shared title terminology · Emil Mittag, Richard Dazeley, Peter Vamplew