Most reinforcement learning (RL) algorithms are built on a convenient but fragile assumption: the "rules of the game" never change. In the formal language of Markov Decision Processes, as mapped out in the seminal survey by Leslie Pack Kaelbling, Michael Littman, and Andrew Moore (Reinforcement Learning: A Survey), we typically assume that transition dynamics and reward functions are stationary.
In the real world, this assumption fails. Sensors degrade, weather shifts, and mechanical parts wear down. When an agent trained in a static environment encounters these shifts, it suffers from "catastrophic forgetting" or performance collapse. Research into non-stationary RL seeks to move beyond static policies toward agents that can detect, adapt to, and remember the shifting dynamics of the world.
The Problem of Obsolete Data
In a stationary environment, more data is always better. In a non-stationary one, old data can become a liability. As Niklas Persson and colleagues demonstrate in their work on autonomous bicycle control, a controller that cannot distinguish between current environmental states (like a flat tire) and historical data will fail to adapt.
This is particularly evident in "endogenous" non-stationarity, where the agent’s own growth or actions change its relationship with the world. Mohamed A. Mohamed illustrates this using AgarCL, a benchmark based on the game Agar.io. As an agent grows larger, its physics and competitive landscape shift naturally. Without continuous adaptation, even highly optimized strategies become obsolete, leading to a total collapse in competence.
Detecting and Switching Contexts
One intuitive solution is to treat the world as a collection of distinct "modes" or contexts. If an agent can recognize which context it is currently in, it can swap its active policy for one better suited to the situation.
Bruno Castro da Silva and his team pioneered this with RL-CD (Reinforcement Learning with Context Detection) (RL-CD: Dealing with Non-Stationarity in Reinforcement Learning). Instead of one global model, the agent builds a library of "partial models." When it detects a drop in prediction accuracy, it searches its library for a model that fits the new dynamics or creates a new one. This approach has proven highly effective in traffic signal optimization, where patterns shift abruptly between rush hour and off-peak periods.
Similarly, Prabuchandran K. J. and Sindhu Padakandla proposed Context Q-learning (Reinforcement Learning in Non-Stationary Environments), which uses change-point detection algorithms to identify environmental shifts. By explicitly accounting for these shifts, agents achieve significantly higher rewards than standard models that try to average their behavior across all conditions.
Meta-Learning for Rapid Adjustment
While context-switching works for discrete shifts, some environments change continuously. Here, the goal is not to find a "saved" policy, but to learn how to adapt a policy in just a few steps.
Maruan Al-Shedivat, Ilya Sutskever, and their collaborators addressed this through gradient-based meta-learning (Continuous Adaptation via Meta-Learning in Nonstationary and Competitive Environments). By training agents to anticipate changes across sequences of tasks, they enable "few-shot" adaptation. The agent learns a prior that is specifically designed to be easily updated when the environment or an opponent's strategy shifts.
A related approach by Roberta Raileanu et al., called Policy-Dynamics Value Functions (PD-VF) (Fast Adaptation to New Environments via Policy-Dynamics Value Functions), learns a value function over a continuous space of both policies and environment dynamics. This allows an agent to instantly select the best behavior for new physical conditions—like changes in gravity or wind—without needing extensive retraining.
Surprise as a Learning Trigger
How does an agent know when to adapt? A recurring mechanism in this research is the use of "surprise"—the mathematical difference between what the agent expected to happen and what actually happened.
The STAR (Surprise Triggered Adaptive and Reactive) framework by Truong-Huy D. Nguyen (A Surprise Triggered Adaptive and Reactive (STAR) Framework for Online Adaptation in Non-stationary Environments) uses surprise as a computational trigger. By decoupling reactive behavior from the more expensive process of adaptation, STAR agents can maintain high performance while significantly reducing the overhead of constant learning.
In 3D environments, Vincenzo Lomonaco and Davide Maltoni developed CRL-Unsup (Continual Reinforcement Learning in 3D Non-stationary Environments). This strategy monitors drops in expected rewards to autonomously detect environmental shifts (like lighting or texture changes) and triggers memory consolidation to prevent the agent from overwriting its old knowledge.
Modular and Generative World Models
Finally, some researchers argue that non-stationarity is best handled by changing how we represent the world. If a model is a single, monolithic block, a change in one object might break the entire system.
Majid Abdolshah and colleagues proposed PaPRL (Plug and Play Reinforcement Learning) (Plug and Play, Model-Based Reinforcement Learning), which factorizes the world into object-specific models. This allows the agent to adapt to the addition or removal of objects "zero-shot."
To retain knowledge across these changes without storing massive amounts of raw data, Haotian Fu and Michael Littman introduced DRAGO (Knowledge Retention in Continual Model-Based Reinforcement Learning). DRAGO uses generative "dreaming" to rehearse past experiences and an intrinsic reward system that encourages the agent to revisit familiar-yet-forgotten states, ensuring the world model remains robust even as fundamental physics or transition rules evolve.