Improved Sample Complexity Bounds for Distributionally Robust Reinforcement Learning

Zaiyan Xu, Kishan Panaganti, Dileep Kalathil

Abstract

We consider the problem of learning a control policy that is robust against the parameter mismatches between the training environment and testing environment. We formulate this as a distributionally robust reinforcement learning (DR-RL) problem where the objective is to learn the policy which maximizes the value function against the worst possible stochastic model of the environment in an uncertainty set. We focus on the tabular episodic learning setting where the algorithm has access to a generative model of the nominal (training) environment around which the uncertainty set is defined. We propose the Robust Phased Value Learning (RPVL) algorithm to solve this problem for the uncertainty sets specified by four different divergences: total variation, chi-square, Kullback-Leibler, and Wasserstein. We show that our algorithm achieves $\tilde{\mathcal{O}}(|\mathcal{S}||\mathcal{A}| H^{5})$ sample complexity, which is uniformly better than the existing results by a factor of $|\mathcal{S}|$, where $|\mathcal{S}|$ is number of states, $|\mathcal{A}|$ is the number of actions, and $H$ is the horizon length. We also provide the first-ever sample complexity result for the Wasserstein uncertainty set. Finally, we demonstrate the performance of our algorithm using simulation experiments.

Introduction

A fundamental hurdle in deploying Reinforcement Learning (RL) to the real world is the "sim-to-real gap." While agents are often trained in simulators to save time and money, the real world rarely matches the simulator's parameters perfectly. Distributionally Robust RL (DR-RL) addresses this by training the agent to maximize its performance against the worst-case scenario within a predefined "uncertainty set" of possible environments.

The core challenge is sample complexity: how many samples from a simulator (the nominal model) are needed to find an $\epsilon$-optimal robust policy? Previous theoretical bounds were often loose, scaling poorly with the number of states ($|S|^2$), making robust learning seem computationally daunting for complex systems. This work, presented at AISTATS 2023, provides a significant theoretical leap in how efficiently we can learn policies that are guaranteed to be robust against these mismatches.

Robust Phased Value Learning (RPVL)

The authors introduce Robust Phased Value Learning (RPVL), a model-based algorithm inspired by phased value iteration. RPVL achieves a sample complexity improved by a factor of $|S|$ over previous state-of-the-art methods.

The key technical innovations that allowed for these tighter bounds include:

  1. Uncertainty-Set-Specific Covering Numbers: Instead of using generic mathematical arguments, the authors developed specific arguments tailored to the geometry of four different divergence measures: Total Variation (TV), Chi-square ($\chi^2$), Kullback-Leibler (KL), and Wasserstein.
  2. Independence Property: The algorithm uses independent samples for each "phase" of the value iteration. This ensures that the estimated value function at one step is independent of the samples used in the next, simplifying the statistical analysis and removing redundant factors.

Theoretical Breakthroughs

The most striking insight is that robust RL doesn't necessarily have to be significantly harder than standard RL in terms of state/action scaling. The new bound for TV uncertainty, $\tilde{O}(|S||A|H^5/\epsilon^2)$, matches the non-robust lower bound in terms of $|S|$ and $|A|$. Furthermore, this paper provides the first rigorous proof of sample complexity for the Wasserstein distance, which is often preferred in robotics because it accounts for the physical distance between states.

Comparison of sample complexity bounds across different algorithms and uncertainty sets. RPVL shows a uniform improvement by a factor of $|S|$.

Empirical Validation: The Gambler’s Problem

To validate RPVL, the authors used the Gambler’s Problem. A gambler bets on coin flips to reach a target balance. The agent is trained with a "nominal" heads-up probability (e.g., $p_h^o = 0.6$), but tested against a range of probabilities to see if the robust policy maintains a high winning ratio compared to a standard, non-robust policy.

Performance of RPVL across different nominal heads-up probabilities. The robust policies maintain effectiveness even when test conditions deviate from training.

The experiments confirmed that:

  • Efficiency Gain: The sub-optimality gap shrinks at a rate of $1/\sqrt{N}$, matching theoretical predictions.
  • Robustness: RPVL-trained policies remained conservative and effective even when the testing environment differed significantly from the training environment, whereas standard policies saw their performance collapse.

Limitations and Future Directions

While the scaling with states and actions is improved, the bound still scales with $H^5$ (the horizon length), whereas non-robust RL can achieve $H^4$. Closing this $H$ gap is a primary goal for future research. Additionally, this work focuses on "tabular" RL with finite states and actions. Extending these tight bounds to continuous state spaces using function approximation remains an open frontier. Finally, the proof assumes a "generative model" (a simulator that can reset to any state); future work could explore "online" settings where exploration is sequential.

Summary updated

BibTeX
@inproceedings{xu2023improved,
  author = {Zaiyan Xu and Kishan Panaganti and Dileep Kalathil},
  title = {{Improved Sample Complexity Bounds for Distributionally Robust Reinforcement Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=VhzzHBDOm0},
}
Figure