Transient Non-Stationarity and Generalisation in Deep Reinforcement Learning
Maximilian Igl, Gregory Farquhar, Jelena Luketina, Wendelin Boehmer, Shimon Whiteson
TL;DR
This paper identifies transient non-stationarity as a key factor harming generalisation in deep RL and demonstrates that neural networks retain legacy features that can impair performance on unseen states. It introduces Iterated Relearning (ITER), a distillation-based framework that periodically retrains a freshly initialised student to reduce non-stationarity, combining standard RL training with distillation losses. Empirical results across Multiroom, Boxoban, ProcGen, and CIFAR-10 illustrate improved generalisation and sample efficiency, supporting the idea that mitigating non-stationarity yields more robust representations. The work offers a practical, parallelisable approach and a plausible mechanism—the legacy feature hypothesis—for why transient non-stationarity degrades generalisation in deep RL.
Abstract
Non-stationarity can arise in Reinforcement Learning (RL) even in stationary environments. For example, most RL algorithms collect new data throughout training, using a non-stationary behaviour policy. Due to the transience of this non-stationarity, it is often not explicitly addressed in deep RL and a single neural network is continually updated. However, we find evidence that neural networks exhibit a memory effect where these transient non-stationarities can permanently impact the latent representation and adversely affect generalisation performance. Consequently, to improve generalisation of deep RL agents, we propose Iterated Relearning (ITER). ITER augments standard RL training by repeated knowledge transfer of the current policy into a freshly initialised network, which thereby experiences less non-stationarity during training. Experimentally, we show that ITER improves performance on the challenging generalisation benchmarks ProcGen and Multiroom.
