Online Bootstrap Inference For Policy Evaluation In Reinforcement Learning

Pratik Ramprasad, Yuantong Li, Zhuoran Yang, Zhaoran Wang, Will Wei Sun, Guang Cheng · DOI

TL;DR

This paper introduces a novel "online bootstrap" method for estimating the uncertainty of policy evaluation in reinforcement learning (RL). This method is crucial because traditional approaches are often too slow or require too much data for real-time RL applications, and it works even when the data has complex dependencies (Markov noise).

What Problem Does This Paper Address?

Reinforcement learning (RL) agents learn by trial and error, making decisions in an environment. A key task is "policy evaluation," which means figuring out how good a particular strategy (policy) is. This is often done by estimating a "value function" that tells us the expected future reward from a given state. However, in real-world scenarios, collecting data can be expensive, and RL data often has a sequential, dependent structure (Markov noise) that makes standard statistical inference methods difficult to apply. Existing methods are often limited to "batch" settings (using all data at once) or assume independent data points, which doesn't fit RL well. This paper addresses the need for efficient, online statistical inference for policy evaluation in RL, specifically when dealing with the complexities of Markovian data.

Methods

The core contribution is an online multiplier-type bootstrap algorithm. Unlike traditional (offline) bootstrap methods that require all data to be stored and re-sampled, this new method generates bootstrap estimates sequentially as new data arrives. This makes it suitable for online learning scenarios. The algorithm is built upon the framework of linear stochastic approximation, a common mathematical tool for analyzing iterative algorithms like those used in RL. The authors adapt the bootstrap to handle Markov noise, which is a significant departure from prior work that typically assumed independent data. They achieve this by introducing a "perturbed" stochastic approximation update that runs in parallel to the main learning process. This allows them to estimate the uncertainty of the policy evaluation without needing to store past data, offering substantial computational and storage savings.

Datasets

The paper does not introduce new datasets. Instead, it evaluates its method on standard RL environments:

  • FrozenLake: A grid-world environment from OpenAI Gym, used for on-policy value inference.
  • Atari Pong: A classic video game environment, used for deep Q-learning and on-policy value inference.
  • Simulated Infinite-Horizon MDP: A custom-generated environment for off-policy value inference.
  • Healthcare (sepsis treatment): A real-world simulation environment for off-policy value inference.

Key Insights and Ideas

  • Bridging the Gap: The paper successfully bridges the gap between online learning inference methods (which assume independent data) and RL inference (which deals with Markovian data), providing a unified approach.
  • Efficiency Gains: The online nature of the bootstrap offers significant computational and storage advantages over traditional batch methods, making it practical for real-time applications.
  • Robustness to Markov Noise: The theoretical framework and experimental results demonstrate that the online bootstrap is effective even in the presence of complex, sequential data dependencies (Markov noise), a key challenge in RL.
  • Theoretical Guarantees: The authors provide theoretical guarantees (distributional consistency) for their method, ensuring its statistical validity.

Key Results

  • The proposed online bootstrap method achieves performance comparable to traditional offline bootstrap methods in terms of confidence interval accuracy and coverage.
  • In experiments on FrozenLake and Atari Pong, the online bootstrap method demonstrated good coverage (around 95%) and provided confidence intervals.
  • For off-policy evaluation in a simulated MDP, the online bootstrap method performed comparably to offline bootstrap and SAVE methods, but was significantly faster and did not require data storage.
  • In a healthcare simulation, the online bootstrap method showed decreasing estimation error and confidence interval widths as more data became available, reflecting increasing certainty.
  • The method was shown to be robust to the choice of certain hyperparameters like the initial step size.

Limitations and Future Work

  • Linear Function Approximation: The current work focuses on linear function approximation for value functions. The authors suggest extending the method to non-linear function approximation as a key future direction.
  • Non-Stationary Behavior Policies: The current method assumes a stationary behavior policy for off-policy evaluation. Adapting it to handle non-stationary behavior policies (where the data-generating policy changes over time) is another promising avenue.
  • Efficiency: While the method is efficient compared to offline alternatives, further research into the semi-parametric efficiency of the estimators could lead to even tighter confidence intervals.
  • Approximation Error: The paper discusses model misspecification and approximation error in the context of linear function approximation. A deeper investigation into how these issues affect the online bootstrap inference in more complex settings is suggested.

Summary updated

BibTeX
@misc{ramprasad2021online,
  author = {Pratik Ramprasad and Yuantong Li and Zhuoran Yang and Zhaoran Wang and Will Wei Sun and Guang Cheng},
  title = {{Online Bootstrap Inference For Policy Evaluation In Reinforcement Learning}},
  year = {2021},
  eprint = {2108.03706},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.03706},
}
Figure