Abstract
In many real-world reinforcement learning applications, access to the environment is limited to a fixed dataset, instead of direct (online) interaction with the environment. When using this data for either evaluation or training of a new policy, accurate estimates of discounted stationary distribution ratios—correction terms which quantify the likelihood that the new policy will experience a certain state-action pair normalized by the probability with which the state-action pair appears in the dataset—can improve accuracy and performance. In this work, we propose an algorithm, DualDICE, for estimating these quantities. In contrast to previous approaches, our algorithm is agnostic to knowledge of the behavior policy (or policies) used to generate the dataset. Furthermore, it eschews any direct use of importance weights, thus avoiding potential optimization instabilities endemic of previous methods. In addition to providing theoretical guarantees, we present an empirical study of our algorithm applied to off-policy policy evaluation and find that our algorithm significantly improves accuracy compared to existing techniques.
Introduction
Off-Policy Evaluation (OPE) is a critical challenge in Reinforcement Learning (RL), particularly in high-stakes domains like medicine or robotics where online trial-and-error is prohibited. The goal is to predict the performance of a target policy $\pi$ using a fixed dataset collected by a potentially unknown behavior policy $\mu$.
Traditional methods like Importance Sampling (IS) suffer from the "Curse of Horizon," where variance grows exponentially with trajectory length. While stationary distribution correction methods have been proposed to mitigate this, they typically require precise knowledge of the behavior policy $\mu(a|s)$ to calculate temporal differences. DualDICE addresses these limitations by providing a behavior-agnostic framework that avoids exponential variance and the need for detailed knowledge of the data-collection process.
Methodology: The DualDICE Framework
DualDICE (Dual stationary DIstribution Correction Estimation) leverages Fenchel Duality to transform the estimation of distribution ratios into a stable min-max optimization problem. The key innovations include:
- Change of Variables: By applying a clever change of variables, the authors express expectations over the unknown target distribution using only the initial state distribution and transition dynamics available in the dataset.
- Saddle-Point Optimization: Using Fenchel duality, the problem is recast as a saddle-point optimization that can be solved using standard stochastic gradient methods. This avoids the instabilities associated with direct importance weighting.
- Behavior Agnosticism: The resulting objective function does not require the term $\mu(a|s)$, making it applicable to datasets where the logging policy is unknown or composed of multiple sources.
Experimental Evaluation
The authors evaluated DualDICE across several benchmarks, including Taxi, Cartpole, and Reacher.
As shown in the figure above, DualDICE maintains competitive or superior accuracy across varying trajectory lengths and counts. In more complex continuous-control tasks like Reacher, traditional TD-based methods often exhibit extreme instability. DualDICE, however, remains stable and converges near the true value even when the behavior policy is unknown.
In the Cartpole and Reacher experiments, DualDICE significantly outperformed both IS and TD-based methods, particularly when the behavior policy diverged significantly from the target policy. The results highlight the algorithm's robustness in both discrete and continuous observation spaces.
Conclusion
DualDICE provides a theoretically sound and practically robust framework for off-policy evaluation. By bypassing the need for behavior policy knowledge and utilizing a stable dual optimization objective, it overcomes the primary hurdles of traditional OPE methods. Future work includes extending these guarantees to non-linear function approximators and integrating DualDICE into off-policy actor-critic algorithms for policy improvement.
Summary updated