Lune

NeurIPS2024Top-tier venue

Adam on Local Time: Addressing Nonstationarity in RL with Relative Adam Timesteps

Benjamin Ellis, Matthew Thomas Jackson, Andrei Lupu, Alexander David Goldie, Mattie Fellows, Shimon Whiteson, Jakob N. Foerster

Abstract

In reinforcement learning (RL), it is common to apply techniques used broadly in machine learning such as neural network function approximators and momentum-based optimizers. However, such tools were largely developed for supervised learning rather than nonstationary RL, leading practitioners to adopt target networks, clipped policy updates, and other RL-specific implementation tricks to combat this mismatch, rather than directly adapting this toolchain for use in RL. In this paper, we take a different approach and instead address the effect of nonstationarity by adapting the widely used Adam optimiser. We first analyse the impact of nonstationary gradient magnitude -- such as that caused by a change in target network -- on Adam's update size, demonstrating that such a change can lead to large updates and hence sub-optimal performance. To address this, we introduce Adam-Rel. Rather than using the global timestep in the Adam update, Adam-Rel uses the local timestep within an epoch, essentially resetting Adam's timestep to 0 after target changes. We demonstrate that this avoids large updates and reduces to learning rate annealing in the absence of such increases in gradient magnitude. Evaluating Adam-Rel in both on-policy and off-policy RL, we demonstrate improved performance in both Atari and Craftax. We then show that increases in gradient norm occur in RL in practice, and examine the differences between our theoretical model and the observed data.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Mitigating Plasticity Loss in Continual Reinforcement Learning by Reducing Churn cites The Primacy Bias in Deep Reinforcement Learning
  • Mitigating Plasticity Loss in Continual Reinforcement Learning by Reducing Churn cites On Warm-Starting Neural Network Training
  • Mitigating Plasticity Loss in Continual Reinforcement Learning by Reducing Churn cites Deep Reinforcement Learning at the Edge of the Statistical Precipice
  • The Rank and Gradient Lost in Non-stationarity: Sample Weight Decay for Mitigating Plasticity Loss in Reinforcement Learning cites The Primacy Bias in Deep Reinforcement Learning
  • The Rank and Gradient Lost in Non-stationarity: Sample Weight Decay for Mitigating Plasticity Loss in Reinforcement Learning cites On Warm-Starting Neural Network Training
  • Stable Gradients for Stable Learning at Scale in Deep Reinforcement Learning cites Deep Reinforcement Learning at the Edge of the Statistical Precipice
  • The Primacy Bias in Deep Reinforcement Learning cites Deep Reinforcement Learning at the Edge of the Statistical Precipice
  • A Physics-Inspired Optimizer: Velocity Regularized Adam cites On the Variance of the Adaptive Learning Rate and Beyond
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Stable Gradients for Stable Learning at Scale in Deep Reinforcement LearningRoger Creus Castanyer, Johan S. Obando-Ceron, Lu Li, Pierre-Luc Bacon et al.NeurIPS 2025 · 26 citations
  2. The Rank and Gradient Lost in Non-stationarity: Sample Weight Decay for Mitigating Plasticity Loss in Reinforcement LearningZihao Wu, Hongyao Tang, Yi Ma, Jiashun Liu et al.ICLR 2026 · 2 citations
  3. A Physics-Inspired Optimizer: Velocity Regularized AdamPranav Vaidhyanathan, Lucas Schorling, Natalia Ares, Michael A. OsborneICLR 2026 · 1 citation
  4. Mitigating Plasticity Loss in Continual Reinforcement Learning by Reducing ChurnHongyao Tang, Johan S. Obando-Ceron, Pablo Samuel Castro, Aaron C. Courville et al.ICML 2025

Builds on20

  1. On the Variance of the Adaptive Learning Rate and BeyondLiyuan Liu, Haoming Jiang, Pengcheng He, Weizhu Chen et al.ICLR 2020 · 2,210 citations
  2. Deep Reinforcement Learning at the Edge of the Statistical PrecipiceRishabh Agarwal, Max Schwarzer, Pablo Samuel Castro, Aaron C. Courville et al.NeurIPS 2021 · 1,067 citations
  3. On Warm-Starting Neural Network TrainingJordan T. Ash, Ryan P. AdamsNeurIPS 2020 · 288 citations
  4. The Primacy Bias in Deep Reinforcement LearningEvgenii Nikishin, Max Schwarzer, Pierluca D'Oro, Pierre-Luc Bacon et al.ICML 2022 · 269 citations
  5. Benchmarking the Spectrum of Agent CapabilitiesDanijar HafnerICLR 2022 · 193 citations

Related papers

  1. Resetting the Optimizer in Deep RL: An Empirical StudyKavosh Asadi, Rasool Fakoor, Shoham SabachNeurIPS 2023 · 38 citations
  2. ADOPT: Modified Adam Can Converge with Any β2 with the Optimal RateShohei Taniguchi, Keno Harada, Gouki Minegishi, Yuta Oshima et al.NeurIPS 2024 · 32 citations
  3. AdamO: A Collapse-Suppressed Optimizer for Offline RLNan Qiao, Sheng Yue, Shuning Wang, Ju RenICML 2026 · 1 citation
  4. Adaptive Q-Network: On-the-fly Target Selection for Deep Reinforcement LearningThéo Vincent, Fabian Wahren, Jan Peters, Boris Belousov et al.ICLR 2025
  5. Robustness to Unbounded Smoothness of Generalized SignSGDMichael Crawshaw, Mingrui Liu, Francesco Orabona, Wei Zhang et al.NeurIPS 2022 · 111 citations
Dusk over the sea between two cliffs drawn in fine vertical lines