Policy-Based Bayesian Experimental Design for Non-Differentiable Implicit Models

Vincent Lim, Ellen R. Novoseller, Jeffrey Ichnowski, Huang Huang, Ken GoldbergarXiv 2022 · DOI

Introduction

In scientific discovery, the efficiency of experimental design is paramount. Traditional Bayesian Optimal Experimental Design (BOED) seeks to maximize information gain from sequential experiments. However, modern simulators often present two significant challenges: they are frequently "implicit" (lacking an analytical likelihood function) and "non-differentiable" (preventing gradient-based optimization).

RL-DAD (Reinforcement Learning for Deep Adaptive Design) introduces a framework that overcomes these hurdles. By framing BOED as a Reinforcement Learning (RL) problem, RL-DAD enables optimal experimental policies for black-box simulators, such as those used in robotics and epidemiology, without requiring internal access to the simulator's code.

Methodology: BOED as a Control Problem

The core innovation of RL-DAD is treating sequential experimental design as a Partially Observed Markov Decision Process (POMDP).

The RL Agent

The agent is a neural network policy trained using TD3 (Twin Delayed Deep Deterministic Policy Gradient). It processes the history of previous designs and observations to output the next experimental design.

Dense Rewards and InfoNCE

A critical challenge in applying RL to BOED is reward sparsity. If an agent is only rewarded at the end of a long sequence of experiments, learning becomes unstable. RL-DAD addresses this by introducing a dense reward structure. Using the InfoNCE bound from contrastive learning, the authors estimate the information gain at each step. They mathematically demonstrate that the sum of these step-wise "paychecks" equals the total information gain of the sequence.

Training stability comparison: The proposed dense reward structure (sPCE reward) ensures stable convergence compared to sparse rewards which lead to training collapse.

Experimental Evaluation

The authors validated RL-DAD across three benchmarks:

  1. Location Finding: A high-dimensional task (up to 15D) to test scalability.
  2. SIR Model: A stochastic epidemiology model used to compare against gradient-based methods.
  3. Cartpole System Identification: A non-differentiable simulator (NVIDIA Isaac Gym) used to identify physical properties like mass and friction.

Key Results

RL-DAD demonstrates robust performance across all tested environments. Notably, it excels in scenarios where traditional gradient-based methods fail.

Performance comparison: RL-DAD outperforms standard baselines and remains applicable in non-differentiable environments like Cartpole where gradient-based methods (iDAD) cannot be used.

In the Cartpole environment, RL-DAD successfully identified system parameters despite the simulator being a non-differentiable black box. In the SIR model, it achieved performance comparable to state-of-the-art differentiable methods. Furthermore, once trained, the RL-DAD policy can determine the next experiment in milliseconds, making it suitable for real-time laboratory applications.

Limitations and Future Outlook

While powerful, RL-DAD inherits the typical challenges of deep RL, including high sample complexity during the training phase and sensitivity to hyperparameters. Future work aims to apply this framework to "Sim2Real" transfer in robotics, where a physical robot can perform informative experiments to learn the properties of its environment or objects it interacts with.

Summary updated

BibTeX
@misc{lim2022policy,
  author = {Vincent Lim and Ellen R. Novoseller and Jeffrey Ichnowski and Huang Huang and Ken Goldberg},
  title = {{Policy-Based Bayesian Experimental Design for Non-Differentiable Implicit Models}},
  year = {2022},
  eprint = {2203.04272},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.04272},
}
Figure