Skip to main content
QUICK REVIEW

[Paper Review] Woulda, Coulda, Shoulda: Counterfactually-Guided Policy Search

Lars Buesing, Théophane Weber|arXiv (Cornell University)|Nov 15, 2018
Advanced Bandit Algorithms ResearchDecision Sciences23 references41 citations
TL;DR

CF-GPS learns policies from off-policy data by counterfactually evaluating alternative outcomes within structural causal models, reducing model bias and improving policy evaluation and search.

ABSTRACT

Learning policies on data synthesized by models can in principle quench the thirst of reinforcement learning algorithms for large amounts of real experience, which is often costly to acquire. However, simulating plausible experience de novo is a hard problem for many complex environments, often resulting in biases for model-based policy evaluation and search. Instead of de novo synthesis of data, here we assume logged, real experience and model alternative outcomes of this experience under counterfactual actions, actions that were not actually taken. Based on this, we propose the Counterfactually-Guided Policy Search (CF-GPS) algorithm for learning policies in POMDPs from off-policy experience. It leverages structural causal models for counterfactual evaluation of arbitrary policies on individual off-policy episodes. CF-GPS can improve on vanilla model-based RL algorithms by making use of available logged data to de-bias model predictions. In contrast to off-policy algorithms based on Importance Sampling which re-weight data, CF-GPS leverages a model to explicitly consider alternative outcomes, allowing the algorithm to make better use of experience data. We find empirically that these advantages translate into improved policy evaluation and search results on a non-trivial grid-world task. Finally, we show that CF-GPS generalizes the previously proposed Guided Policy Search and that reparameterization-based algorithms such Stochastic Value Gradient can be interpreted as counterfactual methods.

Motivation & Objective

  • Motivate counterfactual reasoning for learning in RL to mitigate model bias from purely synthetic data.
  • Formulate model-based RL in POMDPs using structural causal models.
  • Introduce counterfactual policy evaluation and the CF-GPS algorithm for off-policy policy learning.
  • Show connections between CF-GPS and existing RL methods like GPS and Stochastic Value Gradient.
  • Demonstrate empirical benefits on a partially observable Sokoban-like task.

Proposed method

  • Represent POMDP environments as structural causal models with independent scenarios and deterministic causal mechanisms.
  • Define counterfactual inference in SCMs by inferring noise variables from observed data and performing interventions to obtain do-queries.
  • Propose CF-PE: counterfactual off-policy evaluation that uses posterior-inferred scenarios to evaluate a policy on off-policy data with unbiased estimates under no model mismatch.
  • Propose CF-GPS: counterfactually-grounded policy search that anchors model rollouts to counterfactual distributions derived from off-policy data for policy improvement.
  • Show that CF-GPS generalizes Guided Policy Search and relates to Stochastic Value Gradient as counterfactual methods.
  • Provide an experimental setup on PO-SOKOBAN to compare CF-GPS with MB-PS and GPS-like baselines.

Experimental results

Research questions

  • RQ1Can counterfactual reasoning in structural causal models reduce bias when learning from off-policy data in RL?
  • RQ2How does counterfactual policy evaluation (CF-PE) compare to standard model-based off-policy evaluation in terms of bias and accuracy?
  • RQ3Can CF-GPS improve policy search performance over vanilla model-based policy search and GPS-like methods on a non-trivial partially observed task?
  • RQ4What are the theoretical and empirical connections between CF-GPS, GPS, and SVG methods?
  • RQ5Under what conditions does CF-GPS outperform traditional model-based approaches when using real logged data?

Key findings

  • CF-GPS improves policy evaluation and search by grounding model-based predictions in inferred scenarios from off-policy data.
  • Counterfactual evaluation yields unbiased estimates of policy value under interventions when no model mismatch is assumed.
  • CF-GPS outperforms MB-PS and a GPS-like baseline on PO-SOKOBAN in policy evaluation and policy search tasks.
  • Grounding rollouts in counterfactual distributions helps mitigate model mismatch and makes better use of logged data.
  • Connections are established showing that GPS corresponds to a counterfactual version of MB-PS in fully observed MDPs, and SVG can be viewed as counterfactual methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.