Natural Policy Gradient for Average Reward Non-Stationary RL

Neharika Jali, Eshika Pathak, Pranay Sharma, Guannan Qu, Gauri Joshi · DOI

Abstract

Reinforcement Learning (RL) in non-stationary environments presents a significant challenge as the optimal policy evolves over time. While model-based and value-based methods have been explored, policy-based methods for the infinite-horizon average-reward setting have lacked theoretical foundations. This paper introduces Non-Stationary Natural Actor-Critic (NS-NAC), the first model-free, policy-based algorithm for this setting. We provide a theoretical guarantee of sub-linear dynamic regret and introduce BORL-NS-NAC, a parameter-free variant that adaptively tunes itself to environmental changes without prior knowledge of the variation budget.

1. Introduction

Most Reinforcement Learning (RL) theory is built upon the assumption of a stationary environment, where transition probabilities and reward functions remain constant. However, real-world applications—ranging from recommendation engines and ride-sharing platforms to data center management—are inherently non-stationary. In these contexts, user preferences shift, and external conditions like market prices or weather fluctuate.

To succeed in these dynamic environments, an agent must overcome two primary hurdles: the challenge of chasing a moving target (where yesterday's optimal policy is today's sub-optimal one) and the stability-plasticity dilemma (the need to forget outdated information while maintaining enough data to form confident estimates). While model-based methods have addressed these issues, policy-based methods—favored in practice for their flexibility and ability to handle continuous action spaces—have lacked a rigorous framework for non-stationary average-reward settings until now.

2. The NS-NAC Algorithm

The proposed Non-Stationary Natural Actor-Critic (NS-NAC) algorithm utilizes a "two-timescale" architecture to balance estimation and optimization:

  • The Critic (Fast Scale): Employs Temporal Difference (TD) learning to estimate the value function of the current policy. The critic operates on a faster timescale to ensure it can track environmental shifts as they occur.
  • The Actor (Slow Scale): Updates the policy using Natural Policy Gradient (NPG). By following the steepest ascent in the policy space (utilizing the Fisher Information Matrix), NPG provides more stable and efficient updates than standard gradient ascent, making it better suited for "chasing" a moving optimal policy.

2.1 Periodic Restarts and Adaptivity

A critical component of NS-NAC is the use of periodic restarts. To prevent the agent from becoming entrenched in a policy optimized for a defunct version of the environment, the algorithm periodically resets its exploration parameters. This "forgetting" mechanism is mathematically essential for bounding regret in unpredictable environments.

Furthermore, the authors introduce BORL-NS-NAC (Bandit-over-RL NS-NAC). Recognizing that the exact "variation budget" (the total magnitude of environmental change) is rarely known in advance, this framework uses an adversarial bandit algorithm (EXP3.P) to select optimal hyperparameters, such as learning rates and restart frequencies, on the fly.

3. Theoretical Framework

The authors provide a new mathematical framework to analyze policy drift in non-stationary settings. By employing a Lyapunov analysis based on KL-divergence, they prove that the agent’s policy remains close to the optimal policy even as the environment evolves.

The analysis establishes a dynamic regret bound of $\tilde{O}(T^{5/6})$. While this is sub-linear—confirming that the agent successfully learns over time—it highlights a theoretical gap compared to the $T^{2/3}$ lower bound often found in model-based settings, suggesting room for further analytical refinement.

4. Experimental Evaluation

The researchers evaluated NS-NAC and BORL-NS-NAC using a Synthetic Non-Stationary MDP. The experimental setup included:

  • Dynamics: Both abrupt changes (sudden environment switches) and continuous changes (smoothly drifting rewards and transitions).
  • Baselines: Comparisons against state-of-the-art non-stationary algorithms, including model-based approaches (SW-UCRL2-CW, Var-UCRL2) and model-free methods (RestartQ-UCB).

Results indicated that NS-NAC and its parameter-free counterpart performed competitively with, and often outperformed, established model-based baselines. The algorithms demonstrated robustness across varying state-action space sizes ($|S|, |A|$) and different degrees of environmental volatility ($\Delta_T$).

5. Conclusion and Future Work

This work demonstrates that model-free policy methods are not only competitive with model-based methods in non-stationary RL but also offer greater flexibility for complex tasks. The introduction of the restart mechanism and the BORL framework provides a robust path toward practical, adaptive RL agents.

Future research will focus on closing the theoretical regret gap between $T^{5/6}$ and $T^{2/3}$. Additionally, while this study focused on the tabular case, extending these principles to high-dimensional continuous control tasks via Deep RL and improving sample efficiency remain key priorities for moving these algorithms into real-world robotics and industrial control systems.

Summary updated

BibTeX
@misc{jali2025natural,
  author = {Neharika Jali and Eshika Pathak and Pranay Sharma and Guannan Qu and Gauri Joshi},
  title = {{Natural Policy Gradient for Average Reward Non-Stationary RL}},
  year = {2025},
  eprint = {2504.16415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.16415},
}
Figure