Dynamic Regret of Policy Optimization in Non-stationary Environments

Yingjie Fei, Zhuoran Yang, Zhaoran Wang, Qiaomin Xie

Introduction

Traditional reinforcement learning (RL) typically operates under the assumption of a stationary environment, where the underlying transition dynamics and reward functions remain constant. In such settings, performance is measured by static regret—the difference between the agent's cumulative reward and that of the single best fixed policy in hindsight. However, real-world applications like human-robot interaction, financial trading, and meta-learning are inherently non-stationary. In these scenarios, a single fixed policy is a weak benchmark.

This paper addresses the more challenging problem of dynamic regret, a metric that compares the agent's performance against the optimal policy for each individual episode. This requires the agent to simultaneously solve two difficult problems: exploring to learn unknown transition dynamics and adapting to reward signals that can change adversarially from one episode to the next.

Algorithmic Framework: POWER and POWER++

The authors propose two model-free policy optimization algorithms designed to navigate these challenges without explicitly learning the transition matrix, making them more computationally efficient than previous model-based approaches.

1. POWER (Policy Optimization With PEriodic Restart)

POWER utilizes Mirror Descent (MD) to update policies based on local linear approximations of the value function. Its primary mechanism for handling non-stationarity is a periodic restart: every $\tau$ episodes, the algorithm resets its policy and value estimates. This prevents the agent from being biased by stale reward information from the distant past. To handle exploration, POWER uses a model-free "EvaluatePolicy" subroutine that solves a regularized least-squares problem to estimate action-value functions, incorporating a bonus term to encourage the exploration of uncertain states.

2. POWER++

POWER++ enhances the basic POWER framework by replacing standard Mirror Descent with Optimistic Mirror Descent (OMD). Rather than simply reacting to past rewards, POWER++ utilizes "predictable sequences" to anticipate environmental changes. This active prediction allows for faster adaptation and results in tighter regret bounds compared to the passive restart mechanism of POWER.

Theoretical Insights

The paper establishes that dynamic regret in non-stationary MDPs can be decomposed into two distinct components: exploration (the cost of learning unknown transitions) and adaptation (the cost of tracking drifting rewards).

A critical component of the analysis is the smooth visitation measure assumption. This assumption posits that similar policies result in similar state distributions, which allows the algorithm to generalize learning across policy updates even as the environment shifts.

Key Results and Regret Bounds

The research provides rigorous dynamic regret bounds that scale according to the degree of non-stationarity, characterized by $P_T$ (the total variation in optimal policies):

  • Stationary/Slow-changing Environments: When non-stationarity is minimal, the regret is $\tilde{O}(T^{1/2})$, matching the gold standard for stationary RL algorithms.
  • Moderate Non-stationarity: The regret scales as $\tilde{O}(T^{2/3} P_T^{1/3})$. This matches the best-known bounds for model-based algorithms while maintaining the efficiency of a model-free approach.
  • Predictive Advantage: POWER++ achieves a bound dependent on the variation of algorithmic iterates ($D_T$), which is generally smaller than the raw variation in rewards, demonstrating that anticipating trends is strictly more effective than simple periodic restarts.

Limitations and Future Directions

While this work provides the first dynamic regret analysis for model-free RL, several avenues for future research remain:

  1. Dynamic Transitions: The current analysis assumes unknown but fixed transition kernels. In many settings, the "physics" of the environment may also change over time.
  2. Parameter Autonomy: The optimal restart period and learning rates currently require prior knowledge of the "variation budget" ($P_T$ or $D_T$). Developing parameter-free versions that adapt to the rate of change automatically is a key next step.
  3. Empirical Scaling: As a theoretical paper, these algorithms have yet to be benchmarked on high-dimensional deep RL tasks (e.g., MuJoCo). Extending these guarantees to function approximation using neural networks is a natural progression for this research.

Summary updated

BibTeX
@inproceedings{fei2020dynamic,
  author = {Yingjie Fei and Zhuoran Yang and Zhaoran Wang and Qiaomin Xie},
  title = {{Dynamic Regret of Policy Optimization in Non-stationary Environments}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=ZuY82FElw0},
}
Figure