Adam on Local Time: Addressing Nonstationarity in RL with Relative Adam Timesteps
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 35 of its 50 references that are in the map. First posted on arXiv 22 Dec 2024.
Builds on
35 of 50 references.
References · 35
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2016Layer Normalizationcited by 5,579
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,211
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2021Deep Reinforcement Learning at the Edge of the Statistical Precipicecited by 781
- 2019On the Variance of the Adaptive Learning Rate and Beyondcited by 763
- 2015Cyclical Learning Rates for Training Neural Networkscited by 627
- 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 490
- 2016Learning to reinforcement learncited by 369
- 2020Improving Reproducibility in Machine Learning Research (A Report from the NeurIPS 2019 Reproducibility Program)cited by 318
- 2022The Primacy Bias in Deep Reinforcement Learningcited by 242
23 more
- 2021Benchmarking the Spectrum of Agent Capabilitiescited by 193
- 2020Implementation Matters in Deep Policy Gradients: A Case Study on PPO and TRPOcited by 184
- 2023The Dormant Neuron Phenomenon in Deep Reinforcement Learningcited by 171
- 2023Understanding plasticity in neural networkscited by 170
- 2020What Matters In On-Policy Reinforcement Learning? A Large-Scale Empirical Studycited by 157
- 2023Bigger, Better, Faster: Human-level Atari with human-level efficiencycited by 145
- 2022Understanding and Preventing Capacity Loss in Reinforcement Learningcited by 124
- 2018Dopamine: A Research Framework for Deep Reinforcement Learningcited by 121
- 2022Discovered Policy Optimisationcited by 103
- 2018Evolved Policy Gradientscited by 86
- 2024Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learningcited by 80
- 2020Transient Non-Stationarity and Generalisation in Deep Reinforcement Learningcited by 75
- 2020Discovering Reinforcement Learning Algorithmscited by 75
- 2023Deep Reinforcement Learning with Plasticity Injectioncited by 71
- 2019Meta-Learning via Learned Losscited by 60
- 2022Atari-5: Distilling the Arcade Learning Environment down to Five Gamescited by 44
- 2022Fortuitous Forgetting in Connectionist Networkscited by 39
- 2023Resetting the Optimizer in Deep RL: An Empirical Studycited by 26
- 2024Discovering Temporally-Aware Reinforcement Learning Algorithmscited by 18
- 2018Where Did My Optimum Go?: An Empirical Analysis of Gradient Descent Optimization in Policy Gradient Methodscited by 17
- 2023Discovering General Reinforcement Learning Algorithms with Adversarial Environment Designcited by 16
- 2021Correcting Momentum in Temporal Difference Learningcited by 12
- 2023Learning to Optimize for Reinforcement Learningcited by 12
Built on by
Citing papers per year: 2025: 5; 2026: 6.
11 papers.
- 2025Mitigating Plasticity Loss in Continual Reinforcement Learning by Reducing Churncited by 22
- 2025Stable Gradients for Stable Learning at Scale in Deep Reinforcement Learningcited by 22
- 2026Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMscited by 6
- 2025How Should We Meta-Learn Reinforcement Learning Algorithms?cited by 5
- 2026The Rank and Gradient Lost in Non-stationarity: Sample Weight Decay for Mitigating Plasticity Loss in Reinforcement Learningcited by 2
- 2025Rethinking the Role of Dynamic Sparse Training for Scalable Deep Reinforcement Learningcited by 1
- 2026Rethinking Adam for Time Series Forecasting: A Simple Heuristic to Improve Optimization under Distribution Shiftscited by 1
- 2025A Physics-Inspired Optimizer: Velocity Regularized Adamcited by 0
- 2026Adapt or Forget: Provable Tradeoffs Between Adam and SGD in Nonstationary Optimizationcited by 0
- 2026SingularClip: Preventing Spectral Collapse to Maintain Plasticity in Continual and Reinforcement Learningcited by 0
- 2026The Hidden Ratio in Adam: Stable Structure, Compression, and Sign Dynamicscited by 0
- 2026The Hidden Ratio in Adam: Stable Structure, Compression, and Sign Dynamics28 Sep 2026
- 2026SingularClip: Preventing Spectral Collapse to Maintain Plasticity in Continual and Reinforcement Learning18 Aug 2026
- 2026Adapt or Forget: Provable Tradeoffs Between Adam and SGD in Nonstationary Optimization5 May 2026
- 2026The Rank and Gradient Lost in Non-stationarity: Sample Weight Decay for Mitigating Plasticity Loss in Reinforcement Learning2 Apr 2026
- 2026Rethinking Adam for Time Series Forecasting: A Simple Heuristic to Improve Optimization under Distribution Shifts10 Mar 2026
- 2026Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMs7 Feb 2026
- 2025Rethinking the Role of Dynamic Sparse Training for Scalable Deep Reinforcement Learning14 Oct 2025
- 2025How Should We Meta-Learn Reinforcement Learning Algorithms?23 Jul 2025
- 2025Stable Gradients for Stable Learning at Scale in Deep Reinforcement Learning18 Jun 2025
- 2025Mitigating Plasticity Loss in Continual Reinforcement Learning by Reducing Churn31 May 2025
- 2025A Physics-Inspired Optimizer: Velocity Regularized Adam19 May 2025