Introduction
Most theoretical frameworks in Reinforcement Learning (RL) assume a "static" world—a Markov Decision Process (MDP) where rewards and transition dynamics remain constant over time. However, real-world environments are inherently non-stationary. From shifting consumer preferences in ad auctions to evolving traffic patterns and fluctuating inventory demands, agents must constantly adapt to changing rules.
While researchers have developed algorithms for non-stationary environments in simple "tabular" cases (where every state can be counted) or "linear" cases (where rules follow simple geometry), these approaches fail to scale to the complex, high-dimensional problems typically handled by deep learning. To bridge this gap, we must rely on general function approximation.
Applying general function approximation to non-stationary MDPs introduces two primary challenges:
- Complexity: How do we mathematically measure the learning difficulty of a non-stationary environment?
- Algorithm Design: How do we prevent an agent from being misled by "stale" data from past versions of the environment while maintaining effective exploration?
This paper provides the first theoretical framework and dynamic regret analysis for RL in non-stationary environments using general function approximation.
Measuring Complexity: The Dynamic Bellman Eluder Dimension
In static RL, the Bellman Eluder (BE) dimension is a standard metric used to measure how many "different" experiences an agent needs to understand the environment's reward structure. To adapt this to shifting environments, the authors introduce a novel complexity metric: the Dynamic Bellman Eluder (DBE) dimension.
The DBE dimension accounts for the fact that the Bellman operator—the rule governing rewards and transitions—is a moving target. Crucially, the authors prove that if an environment changes slowly enough, the complexity of a non-stationary MDP is fundamentally similar to its static counterpart. Furthermore, the DBE dimension serves as a unifying framework, subsuming the majority of previously known tractable RL problems in both static and non-stationary MDPs.
The SW-OPEA Algorithm
To tackle the algorithmic challenge, the authors propose Sliding Window Optimistic-based Exploration and Approximation (SW-OPEA). This model-free algorithm relies on three key mechanisms:
- Sliding Window: Instead of aggregating all historical data, SW-OPEA only considers a recent "window" of episodes. This ensures the agent optimizes for the current state of the world rather than a version that no longer exists.
- Confidence-Set Design: Most RL algorithms use an Upper Confidence Bound (UCB) bonus to encourage exploration. However, designing a reliable UCB bonus for general functions (like neural networks) is notoriously difficult. SW-OPEA bypasses this by maintaining a confidence set—a collection of plausible "candidate worlds"—and selecting the most optimistic one.
- Variation Budget Integration: The algorithm dynamically widens its confidence set based on a "variation budget," which quantifies how much the transition kernels have drifted during the sliding window.
Technical Innovations and Key Results
A major technical hurdle in non-stationary RL is that any change in the environment's transition dynamics directly affects the expectation of future rewards. To solve this, the authors developed a novel Distribution Shift Lemma to mathematically bound this error, providing a powerful new tool for future theoretical RL research.
By combining the DBE dimension with SW-OPEA, the paper achieves several milestone results:
- First-of-its-Kind Analysis: It establishes the first dynamic regret bounds for non-stationary MDPs utilizing general function approximation.
- State-of-the-Art Scaling: In the context of linear MDPs, SW-OPEA achieves a better dependency on the horizon ($H$) and the feature dimension ($d$) compared to previous UCB-based methods.
- Theoretical Optimality: The algorithm's bound matches the minimax lower bound for the horizon $H$ in specific scenarios, proving optimal efficiency in those dimensions.
- Provable Efficiency: SW-OPEA is provably efficient as long as the total variation budget (the aggregate amount the environment changes) does not grow too rapidly.
Limitations and Future Directions
While this work lays a vital theoretical foundation, several avenues remain for future exploration:
- Knowledge of Variation: The current SW-OPEA algorithm requires prior knowledge of the variation budget to set its confidence parameters. While the authors suggest an adaptive strategy (similar to the EXP3-P algorithm), a full mathematical analysis of this adaptive version is left for future work.
- Regret Dependency: The current regret dependency on the average variation ($L$) is $L^{1/4}$. Lower bounds in simpler settings suggest that a tighter bound of $L^{1/3}$ might be achievable, indicating room for further theoretical sharpening.
- Computational Complexity: Like many "optimistic" theoretical algorithms, finding the most optimistic function within a complex confidence set can be computationally expensive. Translating this robust theoretical framework into a practical, computationally efficient deep-learning implementation is the logical next step for the field.
Summary updated