CoinDICE: Off-Policy Confidence Interval Estimation

Bo Dai, Ofir Nachum, Yinlam Chow, Lihong Li, Csaba Szepesvári, Dale Schuurmans

TL;DR

CoinDICE is a novel algorithm that provides reliable confidence intervals for evaluating reinforcement learning (RL) policies using static, "off-policy" datasets. By reframing the evaluation as a minimax optimization problem based on empirical likelihood, it delivers tighter and more accurate uncertainty estimates than traditional methods, even when the original data-collection policy is unknown.

What Problem Does This Paper Address?

In many real-world applications of RL—like healthcare or autonomous driving—you cannot simply "test" a new policy to see how it performs; the risks are too high. Instead, researchers use Off-Policy Evaluation (OPE) to estimate a new policy's value using historical data.

However, a single "point estimate" of a policy's value isn't enough for safety-critical decisions. We need Confidence Intervals (CIs) to know the "worst-case" scenario. Existing high-confidence OPE methods suffer from two major flaws:

  1. The Curse of Horizon: They often rely on "importance sampling," which multiplies probability ratios at every timestep. In long tasks, this causes the variance to explode, leading to uselessly wide confidence intervals.
  2. Behavior Knowledge: Most methods require knowing exactly how the historical data was collected (the "behavior policy"), which is often unavailable in real-world logs.

Methods

The authors introduce CoinDICE (Confidence Interval DIstribution Correction Estimation). The approach moves away from trajectory-based importance sampling and instead focuses on the stationary distribution of states and actions.

Key technical steps include:

  • Linear Programming (LP) Foundation: They start with the dual LP formulation of the Q-function, which relates the policy value to the "occupancy measure" (how often a policy visits certain state-action pairs).
  • Function Space Embedding: To handle large or infinite state spaces, they project the LP constraints into a lower-dimensional function space (using features or neural networks).
  • Generalized Empirical Likelihood (EL): This is the core innovation. They use EL to find the "best" and "worst" possible policy values by slightly perturbing the weights of the observed data points within a defined statistical limit (an $f$-divergence ball).
  • Minimax Optimization: The final algorithm solves a saddle-point (minimax) optimization problem. This allows the model to implicitly estimate the necessary distribution corrections without ever needing to know the original behavior policy.

Key Insights and Ideas

  • Bypassing the Horizon: By focusing on the stationary distribution rather than step-by-step transitions, CoinDICE avoids the exponential variance growth that plagues traditional importance sampling.
  • Behavior-Agnosticism: Because the algorithm treats the data-collection process as a system of "estimating equations," it doesn't need to model or know the behavior policy. It learns the "correction" directly from the data.
  • Asymptotic Pivotalness: Theoretically, the authors show that CoinDICE is "asymptotically pivotal," meaning its performance becomes more stable and predictable as the dataset size increases, regardless of the underlying complexity of the environment.

Key Results

The authors evaluated CoinDICE against standard baselines (like Bootstrapping and Bernstein inequalities) across several environments, including a simple Two-armed Bandit, FrozenLake, Taxi, and Reacher.

Performance scaling across different sample sizes.
  • Tighter Intervals: In all experiments, CoinDICE produced significantly narrower confidence intervals than baselines while still maintaining the required "coverage" (i.e., the true value actually fell within the interval 95% of the time).
  • Superiority in Low Data: Even with very few trajectories (e.g., only 20 trajectories in the Taxi environment), CoinDICE maintained accurate coverage, whereas traditional methods like Student-t tests or Bootstrapping often failed to capture the true value.
Interval coverage and log-width on FrozenLake and Taxi environments.
  • Scalability: The Reacher experiments demonstrated that the method works effectively even when paired with deep neural networks for continuous control problems.

Limitations and Future Work

  • Optimization Sensitivity: The accuracy of the confidence interval depends on successfully solving a minimax optimization. If the optimization gets stuck in a local optimum (especially with neural networks), the resulting interval might be inexact.
  • Function Approximation Bias: While CoinDICE accounts for statistical sampling error, it is still subject to "approximation error" if the chosen features or neural network architecture aren't expressive enough to represent the true value function.
  • Future Directions: The authors suggest using these high-confidence bounds for Safe Policy Optimization—essentially training a robot to be "pessimistic" about unknown areas of the state space to ensure it never takes a catastrophic action.

Summary updated

BibTeX
@inproceedings{dai2020coindice,
  author = {Bo Dai and Ofir Nachum and Yinlam Chow and Lihong Li and Csaba Szepesvári and Dale Schuurmans},
  title = {{CoinDICE: Off-Policy Confidence Interval Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=Srg-13X5qlq},
}
Figure