Non-asymptotic Confidence Intervals of Off-policy Evaluation: Primal and Dual Bounds

Yihao Feng, Ziyang Tang, Na Zhang, Qiang Liu

Introduction

In Reinforcement Learning (RL), Off-Policy Evaluation (OPE) is the task of estimating how well a "target" policy will perform using data previously collected by a different "behavior" policy. This is critical in high-stakes fields like medicine or autonomous driving, where testing a new, unproven policy in the real world could be dangerous or prohibitively expensive.

However, a simple point estimate of a policy's value isn't enough for high-stakes decisions; practitioners need rigorous Confidence Intervals (CIs) to quantify uncertainty. Constructing these intervals presents three major challenges:

  1. The Curse of Horizon: Traditional importance sampling methods fail as the time horizon grows in infinite-horizon problems.
  2. Data Dependency: Real-world data often comes in trajectories where one state depends on the previous one, breaking the standard independent and identically distributed (i.i.d.) assumptions.
  3. Behavior-Agnosticism: We often lack exact knowledge of how the historical data was collected (i.e., the behavior policy is unknown).

To address these challenges, researchers have introduced BONDIC (Behavior-agnostic, Off-policy, Infinite-horizon, Non-asymptotic, Confidence intervals based on arbitrarily Dependent data), a new algorithm for constructing tight, reliable confidence intervals in OPE.

The BONDIC Approach

BONDIC provides non-asymptotic bounds that are an order of magnitude tighter and more computationally efficient than previous state-of-the-art methods, even when dealing with complex, time-dependent data. Its technical foundation rests on two pillars:

A Primal-Dual Perspective: Previous work attempted to find the "worst-case" Q-function (the primal problem) to set the bounds, which required difficult global optimization over complex function classes. This paper derives a dual form that optimizes over density ratios. This dual approach is not only easier to solve but also allows for the use of fast approximation techniques like random features, making the algorithm practical for large-scale datasets.

Tighter Martingale Concentration: The authors prove a new concentration inequality for the Kernel Bellman Loss (KBL). By recognizing that Bellman residuals form a martingale difference sequence, they provide rigorous guarantees even when data points are highly correlated (e.g., sequential steps in a single trajectory). While previous methods achieved a convergence rate of $O(n^{-1/4})$, BONDIC achieves the theoretically optimal rate of $O(n^{-1/2})$. Crucially, this inequality holds for time-dependent data without needing to know the system's mixing conditions.

Empirical Validation and Key Results

The researchers evaluated BONDIC on several environments, including classic control tasks (Inverted Pendulum, CartPole), a medical treatment simulator (Type-1 Diabetes Simulator), and a custom synthetic environment where the true Q-function is known to precisely measure bound tightness.

Unlike asymptotic methods (like the bootstrap) which only become valid as data approaches infinity, BONDIC's non-asymptotic nature guarantees valid confidence intervals even for finite, limited datasets.

BONDIC Performance Comparison

The empirical results highlight several key advantages:

  • Superior Tightness: BONDIC produces significantly narrower confidence intervals than previous OPE methods, such as KBL-based primal bounds, while still maintaining the required coverage.
  • Reliable Coverage: BONDIC consistently captures the true policy value within its predicted interval. In contrast, common methods like Fitted Q-Evaluation (FQE) with bootstrapping often fail to capture the ground truth, leading to dangerous overconfidence.
  • Optimal Scaling: As demonstrated in the evaluations, the length of the confidence intervals shrinks at a rate of $1/\sqrt{n}$, confirming the theoretical improvements over the $1/\sqrt[4]{n}$ scaling of prior work.

Limitations and Future Directions

While BONDIC represents a significant step forward, it does have limitations. The validity of the bounds relies on the assumption that the true Q-function lives within the chosen function class. If the model is misspecified (e.g., the neural network or kernel is too simple), the bounds might not hold. Additionally, choosing the right kernel bandwidth and the radius of the function class requires some domain knowledge or validation.

Looking forward, these tight, reliable bounds could be used directly in Safe RL. By utilizing the lower bound of the confidence interval, an agent can ensure it never executes a policy that might perform below a critical safety threshold.

Summary updated

BibTeX
@inproceedings{feng2021non,
  author = {Yihao Feng and Ziyang Tang and Na Zhang and Qiang Liu},
  title = {{Non-asymptotic Confidence Intervals of Off-policy Evaluation: Primal and Dual Bounds}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=nI-tf0cRXuA},
}
Figure