Near-Optimal Goal-Oriented Reinforcement Learning in Non-Stationary Environments

Liyu Chen, Haipeng Luo

Introduction

Most reinforcement learning (RL) research assumes a stationary environment: the rules of the game remain fixed over time. In the classic "Stochastic Shortest Path" (SSP) model, a learner attempts to reach a goal state while incurring the minimum possible cost. Traditionally, success in this setting is measured using static regret, which compares the learner's performance against the single best policy evaluated over the entire duration of learning.

However, real-world scenarios are rarely stationary. Consider a robot navigating a bustling warehouse where floor conditions change, or a routing system dealing with shifting traffic patterns. In these non-stationary environments, static regret falls short because the "best" policy today might be highly inefficient tomorrow. This paper pioneers the study of dynamic regret in goal-oriented RL, comparing the learner against the optimal policy for each specific episode. The primary challenge is maintaining "sublinear" regret—growing slower than the total number of episodes—even as environmental costs and transition probabilities continuously drift.

Algorithmic Innovations

To tackle non-stationary SSPs, the authors develop a suite of algorithms that build upon several sophisticated techniques:

  1. Finite-Horizon Approximation: Because SSP episodes can theoretically extend indefinitely, the authors utilize a framework that truncates the problem into manageable "mini-episodes" with a fixed horizon ($H$).
  2. Two-Scale Estimation: A crucial insight derived from their lower-bound analysis is that changes in costs ($\Delta_c$) and changes in transitions ($\Delta_P$) impact regret differently. Consequently, their algorithms estimate these two components separately, utilizing different window sizes to track drift.
  3. Long-Horizon Penalization: To achieve optimal performance, the authors introduce a correction term that actively penalizes policies taking too long to reach the goal. This prevents the learner from getting trapped in inefficient loops as the environment shifts, allowing them to depend on $T_\star$ (the hitting time of the optimal policy) rather than $T_{max}$ (the worst-case time to reach a goal).
  4. MASTER Variant for Unknown Drift: In realistic settings, the exact amount of environmental change is unknown. To address this, the authors adapt the MASTER algorithm—a meta-algorithm that runs multiple instances of a base learner at different scales and employs non-stationarity tests to determine which instance to trust.

Key Theoretical Insights and Results

This research is fundamentally theoretical, focusing on establishing rigorous mathematical guarantees for any environment fitting the non-stationary SSP model.

The "Surprising" $B_\star^2$ Factor

A standout discovery in the paper's lower bound is that the term representing transition changes ($\Delta_P$) is multiplied by the square of the maximum expected cost ($B_\star^2$), whereas cost changes ($\Delta_c$) are not. This mathematical distinction implies that even minor shifts in how the world moves (transitions) are significantly more detrimental to a learner than shifts in how much actions cost. Because of this, maintaining and resetting estimates for costs and transitions independently is vital for algorithmic efficiency.

Regret Bounds

  • Lower Bound: The authors prove that any algorithm will suffer at least $\Omega((B_\star S A T_\star (\Delta_c + B_\star^2 \Delta_P))^{1/3} K^{2/3})$ dynamic regret in the worst case, where $S$ and $A$ are the state and action spaces, and $K$ is the number of episodes.
  • Near-Optimal Upper Bound: Their primary algorithm achieves a regret bound of $\tilde{O}((B_\star S A T_\star (\Delta_c + B_\star^2 \Delta_P))^{1/3} K^{2/3})$, matching the theoretical lower bound up to logarithmic factors.
  • Parameter-Free Learning: The adapted MASTER variant successfully achieves sublinear dynamic regret without requiring prior knowledge of the total amount of change ($\Delta_c, \Delta_P$) or the number of times the environment switches ($L$).

Limitations and Future Directions

While this paper establishes a strong theoretical foundation for non-stationary goal-oriented RL, several avenues for future work remain:

  • Tabular Setting: The current framework is limited to "tabular" RL, where the number of states and actions is small enough to be represented in a table. Scaling these guarantees to large or continuous state spaces using function approximation (e.g., deep neural networks) is a critical next step.
  • Dependency on $B_\star$: The parameter-free version of the algorithm exhibits a slightly worse dependency on the cost factor $B_\star$ and the state space $S$ compared to the drift-aware version. Finding a method to update cost and transition estimates independently within the MASTER framework could close this gap.
  • Average vs. Maximum Performance: The current bounds are defined by the maximum optimal cost and hitting time across all episodes. A "weighted average" metric might provide a more realistic evaluation for environments where only a small subset of episodes are exceptionally difficult.

Summary updated

BibTeX
@inproceedings{chen2022near,
  author = {Liyu Chen and Haipeng Luo},
  title = {{Near-Optimal Goal-Oriented Reinforcement Learning in Non-Stationary Environments}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=VgST3vrBAo8},
}
Figure