Dynamic Regret of Adversarial MDPs with Unknown Transition and Linear Function Approximation

Long-Fei Li, Peng Zhao, Zhi-Hua Zhou

Introduction

Standard Reinforcement Learning (RL) paradigms typically operate under the assumption of stationarity, where transition dynamics and reward structures remain constant over time. However, real-world deployments often encounter non-stationary or adversarial conditions. While prior research has explored adversarial Markov Decision Processes (MDPs), most existing literature focuses on static regret, which benchmarks a learner against the single best fixed policy in hindsight.

In highly volatile environments, a fixed policy is an insufficient baseline. This paper addresses the more ambitious goal of minimizing dynamic regret, which compares the learner’s performance against a sequence of optimal policies that can change at every time step. Achieving low dynamic regret is particularly challenging when the learner faces two simultaneous uncertainties: unknown transition dynamics (requiring exploration) and unknown environmental volatility (requiring adaptation).

Problem Formulation

The authors consider an adversarial MDP where the loss functions are chosen by an adversary and can change arbitrarily. The transition dynamics are initially unknown to the learner. The objective is to minimize the dynamic regret over $K$ episodes, defined as the difference between the cumulative loss of the learner and that of a sequence of optimal policies.

This problem is compounded by the fact that the "variation budget"—the total amount the environment changes over time—is typically unknown. Most existing algorithms require this budget as an input to tune their learning rates; this work seeks a "parameter-free" approach that adapts to the environment's volatility automatically.

The Decoupled Framework

The core contribution of this paper is a framework that elegantly decouples the two sources of uncertainty: transition estimation and policy adaptation.

1. Transition Estimation (Exploration)

The algorithm maintains a "confidence set" of possible transition models based on historical trajectories. As the learner interacts with the environment, it refines this set to reduce uncertainty. The authors provide specific implementations for three MDP classes:

  • Tabular MDPs: Utilizing empirical counts and Hoeffding-style concentration bounds.
  • Linear MDPs: Employing multivariate ridge regression to estimate the transition kernels.
  • Linear Mixture MDPs: Using model-based value-targeted regression to learn underlying parameters.

2. Policy Update (Adaptation)

To handle adversarial losses without knowing the degree of non-stationarity, the authors implement a two-layer online ensemble structure:

  • Base Layer: Multiple sub-algorithms run Online Mirror Descent (OMD) over the space of occupancy measures. Each sub-algorithm is initialized with a different learning rate, representing a specific hypothesis regarding the environment's rate of change.
  • Meta Layer: A Hedge-style algorithm monitors the performance of these base learners. It dynamically reweights them, shifting focus to the sub-algorithm whose learning rate most closely matches the actual (but unknown) volatility of the environment.

By optimizing over occupancy measures (the probability of visiting specific state-action pairs) rather than policies directly, the authors transform the RL problem into a framework compatible with standard online convex optimization tools.

Theoretical Results

The paper establishes that this decoupled approach achieves optimal dynamic regret bounds (up to factors of the state space size) across all three MDP settings.

MDP Setting Dynamic Regret Bound
Tabular $\tilde{\mathcal{O}}(S\sqrt{HAT} + \sqrt{T(H + \bar{P}_K)})$
Linear / Linear Mixture $\tilde{\mathcal{O}}(dHS\sqrt{K} + \sqrt{T(H + \bar{P}_K)})$

Where $S$ is the state space, $A$ is the action space, $H$ is the horizon, $T$ is total steps, $d$ is the feature dimension, and $\bar{P}_K$ is the non-stationarity measure.

Crucially, the authors prove matching lower bounds of $\Omega(\dots + \sqrt{T(H + \gamma)})$, confirming that their algorithms achieve the optimal dependence on both the number of episodes and the environmental variation.

Discussion and Limitations

While the framework provides a significant theoretical leap, two primary areas for future work remain:

  1. State Space Dependence: In the linear function approximation settings, the regret bounds still scale with the number of states $S$. This occurs because occupancy measures in MDPs have complex recursive structures that do not perfectly linearize, even when transitions do. Eliminating this $S$ dependence is a key open challenge for scaling to truly infinite state spaces.
  2. Feedback Models: The current results assume "full-information feedback," where the learner observes the entire loss function at the end of each episode. Extending this to "bandit feedback"—where only the loss of the traversed path is observed—would significantly broaden the practical applicability of the framework.

Conclusion

This work provides the first framework to achieve optimal dynamic regret in adversarial MDPs with unknown transitions and unknown non-stationarity. By separating the estimation of the environment from the adaptation to the adversary, the authors provide a robust template for designing RL agents capable of performing in unpredictable, real-world conditions.

Summary updated

BibTeX
@inproceedings{li2024dynamic,
  author = {Long-Fei Li and Peng Zhao and Zhi-Hua Zhou},
  title = {{Dynamic Regret of Adversarial MDPs with Unknown Transition and Linear Function Approximation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i12.29261},
}
Figure