Model-Free Robust Reinforcement Learning with Sample Complexity Analysis

Yudan Wang, Shaofeng Zou, Yue Wang

Abstract

Distributionally Robust Reinforcement Learning (DR-RL) aims to mitigate the "sim-to-real" gap by optimizing policies against worst-case environment perturbations within a defined uncertainty set. While model-based approaches are theoretically robust, they are often impractical for large-scale problems due to high memory overhead. This paper introduces T-MLMC, a novel model-free algorithm that utilizes a thresholded Multi-level Monte Carlo (MLMC) technique. T-MLMC provides the first finite sample complexity guarantees for uncertainty sets defined by Total Variation (TV) and Chi-square divergence, and significantly improves existing bounds for KL-divergence. Our approach balances the trade-off between estimator bias and implementation feasibility, offering a memory-efficient path to robust policy optimization.

Introduction

Reinforcement Learning (RL) frequently encounters performance degradation when transitioning from simulation to real-world environments—a phenomenon known as the "sim-to-real" gap. Distributionally Robust RL (DR-RL) addresses this by optimizing for the worst-case scenario within an uncertainty set of possible environments. However, most existing DR-RL algorithms are model-based, requiring the estimation and storage of the entire transition model. Model-free methods, while more memory-efficient, have historically lacked rigorous finite sample complexity guarantees. Previous attempts using Multi-level Monte Carlo (MLMC) techniques required an infinite expected number of samples to remain unbiased, rendering them unimplementable in practice.

Methodology: Threshold Multi-level Monte Carlo (T-MLMC)

The primary challenge in model-free DR-RL is the non-linearity of the robust Bellman operator, which introduces bias into simple empirical estimates. The authors propose T-MLMC to overcome this.

The Threshold Innovation

Standard MLMC uses a randomized level to construct an unbiased estimator. To ensure zero bias, the probability of selecting higher levels must be high enough that the expected sample count becomes infinite. T-MLMC introduces a maximum level threshold ($N_{max}$):

  • If the random level is below $N_{max}$, the algorithm functions like standard MLMC.
  • If the level exceeds $N_{max}$, the algorithm employs a simplified, finite-sample structure.

This thresholding introduces a small, controlled bias that diminishes exponentially as $N_{max}$ increases. This allows for a practical, finite-sample implementation while maintaining convergence to an optimal robust policy.

Generality across Uncertainty Sets

The T-MLMC framework is adaptable to various uncertainty models, including Total Variation (TV), Chi-square divergence, and KL divergence. Unlike prior work, this approach does not rely on restrictive assumptions such as "small" uncertainty sets or strictly positive transition probabilities, making it more applicable to real-world "low-fidelity" simulators.

Results and Sample Complexity Analysis

The paper establishes rigorous $\epsilon$-optimality sample complexity bounds, demonstrating state-of-the-art efficiency for model-free DR-RL.

KL-Divergence

For KL-divergence uncertainty sets, T-MLMC achieves a sample complexity of $\tilde{O}\left(\frac{|S||A|}{p_\wedge^2 (1-\gamma)^5 \epsilon^2}\right)$, where $p_\wedge$ is the minimum non-zero transition probability. This represents a significant improvement over previous model-free results by a factor of $p_\wedge^{-4}$.

Comparison of sample complexity for KL-divergence uncertainty sets.

Total Variation and Chi-Square

T-MLMC provides the first finite sample complexity guarantees for TV and Chi-square divergence in a model-free setting, achieving $\tilde{O}\left(\frac{|S||A|}{(1-\gamma)^5 \epsilon^2}\right)$ samples.

Comparison of sample complexity for Total Variation (TV) uncertainty sets.

Empirical evaluations on benchmarks such as the Recycling Robot and FrozenLake confirm these theoretical findings, with T-MLMC reaching optimal robust policies using significantly fewer samples than non-thresholded MLMC variants.

Discussion and Future Work

While T-MLMC sets a new benchmark for model-free DR-RL, a gap remains between model-free and model-based sample complexities regarding the discount factor $(1-\gamma)$. Model-based methods often achieve better dependencies (e.g., $(1-\gamma)^{-4}$). Future research will focus on incorporating Variance Reduction (VR) techniques into the T-MLMC framework to further sharpen these bounds and potentially match model-based efficiency while retaining the memory advantages of model-free learning.

Summary updated

Abstract

Distributionally Robust Reinforcement Learning (DR-RL) aims to derive a policy optimizing the worst-case performance within a predefined uncertainty set. Despite extensive research, previous DR-RL algorithms have predominantly favored model-based approaches, with limited availability of model-free methods offering convergence guarantees or sample complexities. This paper proposes a model-free DR-RL algorithm leveraging the Multi-level Monte Carlo (MLMC) technique to close such a gap. Our innovative approach integrates a threshold mechanism that ensures finite sample requirements for algorithmic implementation, a significant departure from previous model-free algorithms. We adapt our algorithm to accommodate uncertainty sets defined by total variation, Chi-square divergence, and KL divergence, and provide finite sample analyses under all three cases. Remarkably, our algorithms represent the first model-free DR-RL approach featuring finite sample complexity for total variation and Chi-square divergence uncertainty sets, while also offering an improved sample complexity and broader applicability compared to existing model-free DR-RL algorithms for the KL divergence model. The complexities of our method establish the tightest results for all three uncertainty models in model-free DR-RL, underscoring the effectiveness and efficiency of our algorithm, and highlighting its potential for practical applications.
BibTeX
@inproceedings{wang2024model,
  author = {Yudan Wang and Shaofeng Zou and Yue Wang},
  title = {{Model-Free Robust Reinforcement Learning with Sample Complexity Analysis}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=1PPryfvjJX},
}
Figure