2022NeurIPS
An Adaptive Deep RL Method for Non-Stationary Environments with Piecewise Stable Context
Ask about this paperSummary
In many real systems the hidden conditions an agent faces, such as network bandwidth or terrain, stay stable for a while and then change abruptly. Existing methods assume such conditions are fixed for a whole episode or change at every step, and both assumptions fail here.
SeCBAD (Segmented Context Belief Augmented Deep RL) infers how long the current stable segment has lasted and estimates the current condition from that segment's data only, discarding data from earlier conditions. The resulting is given to the policy, which can then weigh acting on what it believes against gathering more information.
Key results
- On control tasks with changing conditions, SeCBAD earns higher returns with fewer samples than the baselines.
- On a real bandwidth-control task for real-time communication it beats the baselines and comes close to an agent that sees the true conditions.
Abstract (from the paper)
One of the key challenges in deploying RL to real-world applications is to adapt to variations of unknown environment contexts, such as changing terrains in robotic tasks and fluctuated bandwidth in congestion control. Existing works on adaptation to unknown environment contexts either assume the contexts are the same for the whole episode or assume the context variables are Markovian. However, in many real-world applications, the environment context usually stays stable for a stochastic period and then changes in an abrupt and unpredictable manner within an episode, resulting in a segment structure, which existing works fail to address. To leverage the segment structure of piecewise stable context in real-world applications, in this paper, we propose a Segmented Context Belief Augmented Deep (SeCBAD) RL method. Our method can jointly infer the belief distribution over latent context with the posterior over segment length and perform more accurate belief context inference with observed data within the current context segment. The inferred belief context can be leveraged to augment the state, leading to a policy that can adapt to abrupt variations in context. We demonstrate empirically that SeCBAD can infer context segment length accurately and outperform existing methods on a toy grid world environment and MuJoCo tasks with piecewise-stable context.