Abstract: We consider un-discounted reinforcement learning (RL) in Markov decision processes (MDPs) under temporal drifts, i.e., both the reward and state transition distributions are allowed to evolve over time, as long as their respective total variations do not exceed certain variation budgets. This setting captures the endogeneity, exogeneity, uncertainty, and partial feedback in sequential decision-making scenarios, and finds applications in vehicle remarketing and real-time bidding. We first develop the Sliding Window Upper-Confidence bound for Reinforcement Learning with Confidence Widening (SWUCRL2-CW) algorithm, and establish its dynamic regret bound when the variation budgets are known. In addition, we propose the Bandit-over-Reinforcement Learning (BORL) algorithm to adaptively tune the SWUCRL2-CW algorithm to achieve the same dynamic regret bound in a parameter-free manner. Finally, we conduct numerical experiments to show that our proposed algorithms achieve superior empirical performance compared to existing algorithms. Notably, the interplay between endogeneity and exogeneity presents a unique challenge, which we overcome by a novel confidence widening technique that incorporates additional optimism into our learning algorithms.
The Challenge of Non-Stationary Environments
Most Reinforcement Learning (RL) algorithms are designed for stationary environments where the rules—rewards and state transitions—remain constant. However, real-world systems like online marketplaces, ad auctions, and supply chains are in constant flux due to seasonal trends, competition, or evolving consumer behavior.
This paper addresses non-stationary Markov Decision Processes (MDPs), a setting that is particularly difficult because it combines four distinct challenges: endogeneity, exogeneity, uncertainty, and bandit feedback. As illustrated in the comparison below, RL in non-stationary MDPs represents the most complex frontier of sequential decision-making.
The Perils of Drift
Existing algorithms often fail in drifting environments because they rely on the "Optimism in the Face of Uncertainty" (OFU) principle using historical data to build tight confidence intervals. In a stationary world, tighter intervals lead to faster convergence. In a drifting environment, however, these intervals can become "narrow but wrong."
The authors identify a specific "peril of drift": without intervention, the estimated "diameter" of the environment (the difficulty of moving between states) can explode. This causes the agent to become overly certain about outdated data, leading it to get stuck in sub-optimal policies because it mistakenly believes it has already mastered the environment.
Algorithmic Innovation: More Optimism is Better
To combat the perils of drift, the authors propose two primary algorithms that introduce the concept of "Confidence Widening."
- SWUCRL2-CW (Sliding Window UCRL2 with Confidence Widening): This algorithm uses a sliding window to "forget" obsolete data. Crucially, it adds an extra "widening" parameter to the confidence regions of state transitions. By being intentionally less certain—or more optimistic—the agent remains robust to environmental shifts.
- BORL (Bandit-over-Reinforcement Learning): A major hurdle in non-stationary RL is picking the right window size and widening factor without knowing the "variation budget" (how fast the world is changing). BORL treats this parameter selection as a higher-level Multi-Armed Bandit problem, using a master algorithm to adaptively hedge between different settings, making the approach parameter-free.
Key Results and Insights
- Theoretical Guarantees: The authors prove a dynamic regret bound of $\tilde{O}(T^{3/4})$ for both algorithms. This ensures that the gap between the agent's performance and the theoretical optimum grows significantly slower than time itself.
- Empirical Performance: In numerical experiments using synthetic MDPs with sinusoidal drift, SWUCRL2-CW and BORL collected 12% to 20% more reward than standard benchmarks like UCRL2. The algorithms proved particularly effective at handling drifts in state transitions, a scenario where traditional methods often fail.
- The Blessing of Optimism: While stationary RL seeks the tightest possible bounds, this research argues for the "Blessing of (More) Optimism" in non-stationary settings. By widening confidence bounds, the agent maintains the necessary exploration to adapt to an ever-changing world.
Conclusion
By combining sliding windows with a novel confidence widening technique, this work provides a robust framework for RL under drift. While future work may seek to further tighten the regret bounds toward $T^{2/3}$, the current algorithms offer a powerful, parameter-free solution for complex, real-world environments where the only constant is change.
Summary updated