Abstract
We study episodic reinforcement learning (RL) in non-stationary linear kernel Markov decision processes (MDPs). In this setting, both the reward function and the transition kernel are linear with respect to the given feature maps and are allowed to vary over time, as long as their respective parameter variations do not exceed certain variation budgets. We propose the Periodically Restarted Optimistic Policy Optimization algorithm (PROPO), which is an optimistic policy optimization algorithm with linear function approximation. PROPO features two mechanisms: sliding-window-based policy evaluation and periodic-restart-based policy improvement, which are tailored for policy optimization in a non-stationary environment. In addition, only utilizing the technique of sliding window, we propose a value-iteration algorithm. We establish dynamic upper bounds for the proposed methods and a matching minimax lower bound which shows the (near-) optimality of the proposed methods. To our best knowledge, PROPO is the first provably efficient policy optimization algorithm that handles non-stationarity.
Introduction
Most classical Reinforcement Learning (RL) theory assumes a stationary environment—one where the rewards and transition dynamics remain constant. However, real-world applications such as traffic management, financial modeling, and climate prediction involve environments that shift over time. In these non-stationary settings, agents relying on stale data risk converging to obsolete strategies.
While value-based methods (like Q-learning) have been adapted for non-stationarity, they often struggle with adversarial changes and are frequently limited to simple tabular cases. Policy Optimization (PO) methods, such as PPO and TRPO, are the preferred choice for modern deep RL due to their stability and performance in high-dimensional spaces. Yet, until now, PO methods lacked rigorous theoretical guarantees for non-stationary environments. This paper bridges that gap by introducing PROPO.
The PROPO Algorithm
PROPO (Periodically Restarted Optimistic Policy Optimization) is designed to track an optimal policy in a shifting landscape using two core "forgetting" mechanisms:
- Sliding-Window Policy Evaluation: Instead of aggregating all historical data, the algorithm maintains a fixed-size window of recent samples. This ensures the model estimates are based on current environment dynamics, effectively discarding outdated information.
- Periodic Restarts: To prevent the agent from becoming trapped in a policy that was optimal in the past but is now suboptimal, PROPO periodically resets the policy to a uniform distribution. This encourages re-exploration and adaptation to the latest environment state.
PROPO operates within the framework of Linear Kernel MDPs, which facilitates sophisticated function approximation for large state spaces while maintaining mathematical tractability. It incorporates an optimistic exploration strategy (UCB-style bonuses) to ensure the agent continues to probe the environment as it changes.
As shown in the table above, PROPO is uniquely positioned as the first algorithm to simultaneously support non-stationary rewards and transitions, adversarial rewards, function approximation, and policy optimization.
Theoretical and Empirical Results
The authors establish a minimax lower bound for non-stationary linear kernel MDPs, defining the fundamental limit of performance (dynamic regret) for any algorithm. They prove that PROPO achieves a dynamic regret that nearly matches this lower bound, demonstrating its theoretical optimality.
Key findings include:
- Adversarial Robustness: PROPO is robust against adversarial reward shifts, provided it receives full-information feedback. This makes it superior to value-based methods in high-volatility scenarios.
- Sublinear Dynamic Regret: The regret grows slower than the total time $T$, meaning the agent's average performance converges toward the moving optimal policy over time.
- Simulation Performance: In synthetic "combination lock" environments, PROPO and its value-iteration counterpart (SW-LSVI-UCB) significantly outperformed standard baselines. PROPO specifically excelled in adversarial reward setups where value-based methods faltered.
Conclusion and Future Directions
PROPO represents a significant step forward in making policy optimization theoretically sound for real-world, non-stationary tasks. However, some challenges remain. Currently, PROPO requires knowledge of the "variation budget" to tune hyperparameters, though a parameter-free variant (B-PROPO) is proposed with a slight performance trade-off. Future work aims to extend these guarantees to "bandit feedback" (where only the reward of the chosen action is known) and to close the remaining mathematical gap ($H^{1/3}$) between the upper and lower regret bounds using more advanced exploration bonuses.
Summary updated