Reinforcement learning (RL) agents trained in simulated environments frequently suffer severe performance degradation when deployed in the real world. Minor environmental discrepancies—such as sensor calibration errors or unexpected physical friction—can cause standard RL policies to fail. Distributionally Robust RL (DR-RL) addresses this vulnerability by training agents to optimize their worst-case performance across a set of plausible environments, known as an uncertainty set.
Despite its promise, DR-RL has historically faced two major limitations:
- Scalability: Most robust methods are confined to tabular settings (small, discrete state spaces) and struggle to scale to the complex, continuous domains that require neural networks.
- Data Access: Existing robust methods typically rely on strong assumptions, such as access to a generative model (a perfectly resettable simulator) or massive, comprehensively labeled offline datasets.
In this paper, the authors introduce RFL-$\phi$ (Robust Fitted Learning with $\phi$-divergence), the first purely online DR-RL algorithm that accommodates general function approximation. RFL-$\phi$ learns robust policies directly through environmental interaction, requiring no prior knowledge or pre-collected data, and establishes the first theoretical regret guarantees for this setting.
Methodology: Robust Fitted Learning with $\phi$-divergence
The core challenge in scaling DR-RL is the "Robust Bellman Operator." Unlike standard RL, the robust update is non-linear and notoriously difficult to approximate with continuous functions. To overcome this, RFL-$\phi$ introduces several key technical innovations:
- Dual-Based Fitted Learning: Solving a complex optimization problem for every state-action pair is computationally intractable in large spaces. Instead, the authors leverage Lagrangian duality to transform the robust Bellman update into a global loss function. This allows the robust objective to be minimized using standard gradient descent techniques.
- Joint Learning: The algorithm simultaneously learns the value function (estimating state utility) and a dual function (parameterizing the worst-case environmental perturbations).
- Global Optimism: To ensure efficient exploration, the agent maintains a confidence set of plausible value functions. It selects the most promising function—employing optimism under uncertainty—specifically tailored to the robust objective.
Theoretical Contributions
A major contribution of this work is the introduction of the Robust Bellman-Eluder (BE) Dimension. Similar to the VC-dimension in supervised learning, the Robust BE dimension quantifies the intrinsic difficulty of learning a robust policy for a specific function class, independent of the environment's raw state count.
Using this complexity measure, the authors establish the first sublinear regret bound for online DR-RL: $\tilde{O}(\sqrt{d H^2 B_\phi^2(\sigma) K})$, where $d$ is the Robust BE dimension. Crucially, this bound is independent of the sizes of the state space ($|\mathcal{S}|$) and action space ($|\mathcal{A}|$), theoretically validating the method's scalability to continuous domains. The framework is also highly adaptable, supporting various uncertainty measures including KL-divergence, $\chi^2$-divergence, and Total Variation (TV).
Interestingly, the theoretical analysis reveals that robustness can act as a "smoother." For certain uncertainty sets like Total Variation, the robust operator becomes a contraction more rapidly than the standard Bellman operator, suggesting that robust objectives can sometimes make the statistical learning problem easier to bound.
Empirical Results
The authors evaluated RFL-$\phi$ on a modified CartPole-v1 benchmark designed to test three distinct environmental shifts:
- Action Perturbation: The environment occasionally ignores the agent's chosen action and executes a random one.
- Force-magnitude Perturbation: The physical force applied to the cart is scaled up or down, simulating motor wear.
- Pole-length Perturbation: The length of the pole is altered, simulating changes in mass and inertia.
RFL-$\phi$ (specifically using Total Variation, RFL-TV) was compared against OPROVI-TV (a tabular robust baseline) and non-robust deep RL methods like DQN and GOLF.
Key Findings: * Superior Robustness: RFL-TV maintained near-optimal rewards (close to 500) even when pole lengths or forces were shifted by 50-80%. In contrast, standard DQN performance collapsed to near-zero under the same conditions. * Function Approximation Superiority: Neural network-based RFL-TV generalized across perturbations significantly better than tabular methods, which suffered from state-space discretization errors. * Computational Efficiency: Despite the added mathematical complexity of the robust operator, RFL-$\phi$ incurred only a 1.5x runtime overhead compared to standard DQN, demonstrating its viability for practical engineering applications.
Limitations and Future Directions
While RFL-$\phi$ represents a significant step forward for robust RL, the authors note a few limitations:
- Horizon Dependence: The current regret bound exhibits a polynomial dependence on the episode horizon ($H$) that may not yet be minimax optimal. Future work could focus on tightening this bound.
- Dual Realizability: The theoretical guarantees assume the dual function class is sufficiently expressive to capture the environment's worst-case shifts. If the dual network is under-parameterized, robustness guarantees may degrade.
- Sparse Rewards: Like many optimism-based algorithms, RFL-$\phi$ relies on structured exploration and may struggle in environments with extremely sparse rewards where random exploration is insufficient.
Summary updated