Dual Control for Approximate Bayesian Reinforcement Learning

Edgar D. Klenske, Philipp Hennig

TL;DR

Exact Bayesian reinforcement learning (RL) in continuous, non-episodic systems offers a principled way to balance exploration and exploitation, but its exact formulation is intractable. This paper resurrects and modernizes the 1970s control-theoretic framework of approximate dual control, adapting it to modern machine learning dynamics models including Gaussian processes and neural networks. The resulting controller learns when and what to explore analytically, outperforming standard heuristic exploration bonuses while avoiding catastrophic overshoots.

What Problem Does This Paper Address?

In non-episodic reinforcement learning, an agent operates within a single ongoing trial without the safety net of environment resets. Standard heuristics often fail dramatically here:

  • Certainty Equivalence (CE) ignores parameter uncertainty and plans strictly with mean estimates, frequently inducing large overshoots or system failure when beliefs are inaccurate.
  • Cautious / Optimal Feedback (OF) scales down action magnitude in proportion to uncertainty, which can trigger the turn-off phenomenon—the controller ceases moving altogether and stops learning entirely.
  • Heuristic Exploration Bonuses (e.g., Bayesian Exploration Bonus / BEB) encourage actions that visit regions of high model variance, but they do so blindly, ignoring whether that uncertainty actually matters to the ultimate task or whether deviation currently carries a steep penalty.

While true Bayesian RL accounts for how current actions impact future information states, solving the associated Bellman recursion requires evaluating expectations over high-order rational polynomials, rendering it analytically intractable even for low-dimensional systems.

Methods

The authors build on the approximate dual (AD) control framework of Tse, Bar-Shalom, and Meier (1973) and extend it to contemporary ML dynamics:

  1. Nominal Trajectory Generation: The controller computes a deterministic trajectory under current parameter means using standard Dynamic Programming (for linear systems) or Nonlinear Model Predictive Control (NMPC).
  2. Quadratic Perturbation Expansion: The system augments state $x_k$ and parameters $\theta_k$ into a joint Gaussian state $z_k = [x_k^\top, \theta_k^\top]^\top$. By computing a second-order Taylor expansion around the nominal trajectory and tracking preposterior Kalman filter covariance updates, the future cost-to-go decomposes into nominal cost plus an analytic "dual cost" capturing the price of parameter uncertainty.
  3. Current Control Optimization: The immediate action $u_k$ is optimized numerically via a gradient-free black-box routine that evaluates the analytic dual cost-to-go across potential control inputs.

Machine Learning Extensions

  • Parametric Nonlinear Dynamics: Generalized linear models with nonlinear features (e.g., logistic, radial basis functions).
  • Nonparametric Gaussian Process (GP) Dynamics: The authors show that full GP dynamics can be mapped into an augmented Extended Kalman Filter (EKF) state. To prevent cubically escalating inference costs ($O((nT)^3)$), they apply Bochner's theorem using a finite basis of random Fourier features.
  • Feedforward Neural Networks: Two-layer perceptrons where both output weights and hidden unit logistic slopes/biases are included in the augmented state and jointly tracked via EKF.

Datasets

The authors evaluate their methods on synthetic, simulated continuous dynamic systems (no static empirical benchmark datasets were used):

  1. Scalar Linear Toy System: 1D system designed to benchmark analytical approximations against ground-truth Monte Carlo sampling.
  2. Cart on a Non-Uniform Slope: 2D state-space cart tracking a piecewise trajectory over nonlinear slope dynamics (shifted logistic functions) with time-varying tracking penalties.
  3. Neural Network Dynamics Testbed: Cart system where dynamics are learned online using a 4-feature multi-layer perceptron.
  4. Drifting Parameter Testbed: Cart system modeled with Radial Basis Functions (RBFs) under parameter drift, where parameters wander via a random walk.

Key Insights and Ideas

  • Strategic Patience in Exploration: When state tracking penalties vary over time, the AD controller holds off on exploration during strict high-cost phases and aggressively probes the environment only during low-cost "slack" windows. Blind bonus methods (BEB) explore immediately, incurring massive costs.
  • Selective Identification: AD control distinguishes between relevant and irrelevant uncertainty. If a reference trajectory only visits state regions influenced by parameter $\theta_1$, the controller strictly gathers information about $\theta_1$ and completely ignores $\theta_2$.
  • Immunity to Irrelevant Parameter Drift: In drifting environments, unobserved parameter variance grows steadily. BEB repeatedly veers off course to resolve this uncertainty, whereas AD control recognizes when outdated knowledge is irrelevant to the downstream objective and stays on target.

Key Results

In a simple scalar setup ($T=2$), AD control matched the true expected cost profile obtained by dense Monte Carlo integration, whereas CE and BEB placed minima in suboptimal locations.

Across 50 random runs on the continuous benchmark problems, AD consistently demonstrated the lowest cost and lowest variance (Table 1):

Experiment Oracle (Lower Bound) Certainty Equivalence (CE) CE + Exploration Bonus (BEB) Approximate Dual (AD)
6.1 Scalar Linear $0.67 \pm 0.23$ $0.84 \pm 0.73$ $0.99 \pm 0.92$ $\mathbf{0.77 \pm 0.43}$
6.2 Time-Varying Cost $1.75 \pm 0.33$ $2.49 \pm 0.74$ $2.64 \pm 0.37$ $\mathbf{1.96 \pm 0.34}$
6.3 Neural Net $7.15 \pm 3.85$ $15.72 \pm 5.20$ $20.88 \pm 6.74$ $\mathbf{14.33 \pm 5.40}$
6.4 Drifting RBF $0.66 \pm 0.51$ $1.76 \pm 0.90$ $84.91 \pm 6.77$ $\mathbf{1.62 \pm 0.56}$

BEB suffered extreme performance degradation in the presence of parameter drift ($84.91$ vs. $1.62$ for AD), as it constantly diverted control authority to explore regions that did not benefit task execution.

Limitations and Future Work

  • Computational Overhead: The outer-loop optimization of $u_k$ requires repeatedly re-evaluating the inner model trajectory and perturbation Riccati equations, dominating runtime.
  • Linearization Artifacts: Relying on Extended Kalman Filtering assumes local linearity. Strongly multimodal or highly discontinuous posteriors are not captured.
  • Scalability to High Dimensions: The authors acknowledge that while their framework makes Bayesian RL tractable, scaling both the outer optimization loop and state augmentation to high-dimensional systems remains an open challenge. Suggested improvements include unscented Kalman filtering (UKF) or analytic moment matching.

Summary updated

BibTeX
@article{klenske2016dual,
  author = {Edgar D. Klenske and Philipp Hennig},
  title = {{Dual Control for Approximate Bayesian Reinforcement Learning}},
  journal = {J. Mach. Learn. Res.},
  year = {2016},
  url = {https://openreview.net/forum?id=UoZ2dJljQjO},
}
Figure