Abstract
This paper presents the first model-free, distributionally robust Q-learning algorithm with a finite sample complexity guarantee. Standard Reinforcement Learning (RL) often suffers from fragility when deployed in environments that differ from training simulators. While Distributionally Robust MDPs (DR-MDPs) offer a solution by optimizing for worst-case scenarios, previous model-free approaches required an infinite expected number of samples for convergence. We introduce the MLMCDR Q-learning algorithm, which utilizes a refined Multi-level Monte Carlo (MLMC) estimator to achieve unbiased updates with a finite expected sample cost. We provide a theoretical upper bound on sample complexity and demonstrate empirical convergence and superior efficiency in simulated environments.
Introduction
Standard Reinforcement Learning (RL) assumes that the training environment (the simulator) is identical to the deployment environment. In practice, simulators are often mis-specified, leading to significant performance degradation—a phenomenon known as the fragility of RL. To address this, researchers utilize Distributionally Robust MDPs (DR-MDPs), where an agent optimizes for the worst-case environment within a defined uncertainty set, typically using KL-divergence.
While model-based robust RL is computationally intensive, model-free approaches like Q-learning are preferred for scalability. However, a significant theoretical hurdle remained: previous state-of-the-art model-free robust frameworks, such as those introduced by Liu et al. (2022), required a mathematically infinite expected number of samples per iteration. This paper closes that gap by providing the first finite sample complexity guarantee for model-free robust Q-learning.
Methodology
The proposed algorithm, MLMCDR Q-learning (Multi-level Monte Carlo Distributionally Robust Q-learning), relies on three primary components:
- Robust Bellman Operator: The algorithm utilizes a dual form of the robust Bellman equation, converting a complex min-max optimization into a manageable dual optimization involving expectations.
- Improved MLMC Estimator: To handle nonlinearities in the dual form without introducing bias, a Multi-level Monte Carlo (MLMC) technique is employed. The critical innovation is the selection of the geometric distribution parameter $g$. By setting $g \in (1/2, 3/4)$, the algorithm ensures that the expected number of samples per iteration remains a constant, finite value.
- Stochastic Approximation (SA) Framework: The Q-learning update is treated as a noisy iteration. Modern finite-time analysis of SA is applied to prove the convergence rate to the optimal robust Q-function.
Experimental Setup
The algorithm was evaluated on two benchmark environments:
- Hard MDP Instances: A 4-state, 2-action MDP specifically designed to be difficult for standard Q-learning to solve efficiently.
- Lost-sale Inventory Control: A classic operations research problem involving stock management under uncertain demand, used to compare the algorithm against the Liu et al. (2022) baseline.
Results and Discussion
Our theoretical analysis yields an upper bound on sample complexity of $\tilde O(|S||A|(1-\gamma)^{-5}\epsilon^{-2}p_{\wedge}^{-6}\delta^{-4})$, marking the first such result for model-free robust RL. The complexity is tight regarding the state-action space size and nearly tight regarding the effective horizon $(1-\gamma)^{-1}$.
Empirical results in the "Hard MDP" environment confirm that the algorithm's error decays at a rate of $n^{-1/2}$, matching theoretical predictions. Furthermore, in the inventory control task, the MLMCDR Q-learning algorithm significantly outperformed the previous state-of-the-art, exhibiting lower variance and requiring fewer samples to achieve target accuracy.
A key insight is the "Finiteness Fix": the infinite sample problem in prior work was a byproduct of the randomization scheme. By tuning the sampling probability $g$, we achieve both unbiasedness and finiteness. However, the sample complexity remains sensitive to $p_\wedge$ (the minimal support probability), reflecting the intuition that robustness to rare events requires observing those events during training.
Conclusion
This work establishes a critical theoretical foundation for model-free robust RL by providing finite sample complexity bounds. Future work will aim to improve the dependence on $p_\wedge$ and the uncertainty size $\delta$. Additionally, extending these guarantees from tabular settings to deep RL with function approximation remains a vital challenge for the field.
Summary updated