TL;DR
This paper introduces Non-Stationary Natural Actor-Critic (NS-NAC), the first model-free, policy-based reinforcement learning algorithm with theoretical convergence guarantees for dynamic, infinite-horizon average-reward environments. By balancing entropy-driven exploration with carefully tuned learning rates, NS-NAC achieves a sublinear dynamic regret of $\tilde{\mathcal{O}}(|\mathcal{S}|^{1/2}|\mathcal{A}|^{1/2}\Delta_T^{1/9}T^{8/9})$ against an adversarial changing environment with variation budget $\Delta_T$.
What Problem Does This Paper Address?
In real-world reinforcement learning (RL)—such as datacenter job scheduling under fluctuating energy prices or recommendation systems tracking evolving user preferences—the underlying environment changes over time. While non-stationary RL has been studied for episodic or discounted settings, the infinite-horizon average-reward setting is often much harder: rewards do not discount toward zero, and the agent only ever observes a single, uninterrupted stream of experience.
Existing theoretical algorithms in this domain rely primarily on model-based methods (like sliding-window UCRL) or model-free value-based methods (like Restart-Q). However, policy-gradient and actor-critic algorithms—which are widely favored in practice due to their flexibility, scalability, and suitability for continuous control—have lacked theoretical regret guarantees in non-stationary average-reward MDPs. This paper bridges that gap.
Methods
The authors introduce NS-NAC (Non-Stationary Natural Actor-Critic), a two-timescale policy gradient method:
- Entropy-Regularized Actor (Slower Timescale): To prevent premature policy convergence, the actor optimizes an entropy-regularized objective. In non-stationary environments, a sub-optimal action today may become optimal tomorrow; entropy regularization ensures persistent "exploration-for-change." Softmax tabular policies are updated via natural policy gradient steps.
- TD-Learning Critic (Faster Timescale): The critic tracks the time-varying relative state-action value function $Q^{\pi_t}_t$ using temporal difference (TD) learning with an $\ell_2$-norm projection step to maintain stability. Simultaneously, a running scalar estimate $\eta_t$ tracks the time-varying average reward.
- Learning Rates as Adaptation Factors: The actor ($\beta$), critic ($\alpha$), and average reward ($\gamma$) step-sizes are coordinated such that $\alpha = \gamma \gg \beta$. Their values scale with the environmental variation budget $\Delta_T = \Delta_{R,T} + \Delta_{P,T}$ (the total $\ell_\infty$ change in rewards and transition probabilities over horizon $T$), allowing the agent to continuously forget outdated information at a rate matching the environment’s drift.
Datasets
- Synthetic Non-Stationary MDPs: The paper evaluates NS-NAC on custom synthetic environments with varying state spaces ($|S| \in [50, 200]$) and action spaces ($|A| \in [4, 25]$). Transition matrices are drawn from Dirichlet distributions, and reward vectors are sampled from distinct Beta distributions.
- Scenarios Evaluated:
- Abrupt Periodic & Random Switching: Alternating between two transition/reward profiles across various switching frequencies ($n_{\text{switches}} \in [10, 1000]$).
- Continuous Drift: Transitions smoothly evolving from $P_1$ to $P_2$ over $10^5$ steps.
- No standard offline datasets were used, as this work studies online, infinite-horizon non-stationary control.
Key Insights and Ideas
- Interval-Based Lyapunov Drift: In stationary settings, policy convergence is typically tracked using the KL-divergence to a fixed optimal policy. Under non-stationarity, the optimal policy $\pi_t^\star$ is a moving target. The proof divides time $T$ into $N$ segments, anchoring the policy drift within each segment to a pseudo-stationary reference point before bounding the cumulative inter-segment drift.
- Auxiliary Markov Chains Under Drifting Transitions: Bounding the sampling error (Markovian noise) in standard Actor-Critic relies on mixing times of a fixed transition kernel. To account for simultaneously changing policies and transition probabilities, the authors construct a frozen auxiliary Markov chain over historical intervals $[t-\tau, t]$, bounding the total variation drift against the actual non-stationary chain.
- Decoupled Environment and Value Function Errors: Changes in the value function across successive steps ($\|Q^{\pi_{t+1}}_{t+1} - Q^{\pi_t}_t\|$) are neatly decomposed into policy drift, reward variation, and transition shifts using the linear programming characterization of average-reward MDPs.
Key Results
-
Theoretical Dynamic Regret: Under uniform ergodicity, optimizing hyperparameters ($\alpha^\star = \gamma^\star \propto (\Delta_T/T)^{2/9}$, $\beta^\star \propto (\Delta_T/T)^{3/9}$, $\epsilon^\star \propto (\Delta_T/T)^{4/9}$) yields an expected dynamic regret of: $$\text{Dyn-Reg}(M, T) \le \tilde{\mathcal{O}}\left(|\mathcal{S}|^{1/2} |\mathcal{A}|^{1/2} \Delta_T^{1/9} T^{8/9}\right)$$ This confirms sublinear dynamic regret whenever $\Delta_T = o(T)$.
-
Empirical Validation: In simulations across varying horizons ($T$ up to $2.5 \times 10^5$), budgets ($\Delta_T$), and state/action sizes, NS-NAC achieves empirical performance matching state-of-the-art model-based baselines (SW-UCRL2-CW, Var-UCRL2) and model-free value methods (RestartQ-UCB), despite the theoretical bound having a looser exponent.
Limitations and Future Work
- Bound Slack: There is a gap between the derived upper bound $\tilde{\mathcal{O}}(T^{8/9}\Delta_T^{1/9})$ and the theoretical lower bound $\Omega(T^{2/3}\Delta_T^{1/3})$. The authors note this slack is inherited from the two-timescale analysis of infinite-horizon average-reward NAC.
- Budget Dependency: The optimal step-sizes require prior knowledge of the total variation budget $\Delta_T$. Designing parameter-free/adaptive variants that do not require advance knowledge of $\Delta_T$ remains open.
- Tabular Setting: While expandable conceptually, the explicit regret proof is restricted to tabular softmax policies, resulting in $|\mathcal{S}|^{1/2}|\mathcal{A}|^{1/2}$ complexity. Expanding the regret analysis to compatible function approximation is a natural next step.
Summary updated