Transition Constrained Bayesian Optimization via Markov Decision Processes

Jose Pablo Folch, Calvin Tsay, Robert Matthew Lee, Behrang Shafei, Weronika Ormaniec, Andreas Krause, Mark van der Wilk, Ruth Misener, Mojmir Mutny

Overview

Standard Bayesian Optimization (BO) assumes an optimizer can "teleport" to any point in a search space to sample a function. However, real-world physical experiments often have strict movement constraints. This paper introduces a novel framework that treats BO as a Markov Decision Process (MDP), allowing the optimizer to plan multi-step paths that respect physical limits while maximizing information gain.

The Problem: Transition Constraints in the Real World

Bayesian Optimization is the gold standard for optimizing expensive "black-box" functions, such as tuning a robot's gait or finding the optimal recipe for a chemical reaction. Traditionally, most BO algorithms assume "arbitrary queryability"—the idea that if the algorithm wants to test point A and then point B, it can do so instantly and without penalty.

In the physical sciences, this assumption rarely holds. If you are optimizing a chemical reactor, you cannot instantly jump from 20°C to 100°C without passing through the intermediate temperatures. Similarly, if you are using a drone to find the source of pollution in a lake, the drone must fly a continuous path and avoid obstacles. These are known as transition constraints. When your next choice depends heavily on your current state, greedy optimization fails; the system needs to plan ahead.

Methodology: Bridging BO and Reinforcement Learning

The authors bridge the gap between BO and Reinforcement Learning (RL) by framing the optimization task as a Markov Decision Process (MDP).

  1. Objective Formulation: Instead of merely looking for the next best point, the authors focus on "Maximum Identification"—finding the global maximum with high confidence. They derive a utility function based on minimizing the variance between potential maximizers.
  2. Linearization for Tractability: Optimizing a long-term path over a complex utility function is computationally expensive. To solve this, the authors employ Frank-Wolfe linearization, breaking the complex utility function into a series of simpler, linear sub-problems.
  3. Policy-Based Planning: Each linear sub-problem is treated as a standard RL task where the "reward" is the gradient of the information gain.
  4. For discrete spaces, they use Dynamic Programming to find exact solutions in seconds.
  5. For continuous spaces, they use a Model Predictive Control (MPC) approach to calculate the best sequence of actions.
  6. Adaptive Resampling: Crucially, the resulting policy is non-Markovian. The agent evaluates the entire history of where it has been to ensure it does not waste time re-visiting already-explored, informative areas.

Datasets and Benchmarks

The researchers evaluated their method on several high-stakes physical simulations and synthetic benchmarks:

  • Knorr Pyrazole Synthesis: A real-world chemical reactor benchmark where flow rates and reactant ratios must be changed gradually.
  • Lake Ypacarai Monitoring: A path-planning task for a surface vehicle navigating a lake with obstacles to find a pollution source.
  • Free-Electron Laser Tuning: A calibration task where moving the equipment too fast or too far increases measurement noise (transition-driven corruption).
  • Synthetic Benchmarks: Standard optimization "torture tests" (e.g., Michalewicz, Hartmann, and Branin functions) modified with movement constraints.
Constrained optimization paths in the chemical reactor benchmark, showing how the algorithm navigates residence time and reactant ratios to find the true maximizer.

Key Insights

  • Information as a Destination: In this framework, "information" isn't just a byproduct of sampling; it is the explicit goal of the path. The algorithm plans a trajectory that "harvests" the most certainty about where the maximum lies.
  • The "Teleportation" Tax: Ignoring transition constraints isn't just unrealistic—it is highly inefficient. Standard BO often suggests moves that are physically impossible, forcing researchers to rely on heuristics that yield sub-optimal results.
  • History Matters: By making the policy dependent on the full optimization history, the agent "remembers" the uncertainty it has already cleared, preventing it from getting stuck in local loops.
  • Efficiency: Despite the complexity of planning for a 100-step horizon, the linearized sub-problems solve in just a few seconds on a standard laptop.

Key Results

The proposed MDP-BO method demonstrated significant improvements over traditional approaches across multiple metrics:

  • Superior Accuracy: In the Lake Ypacarai experiment, MDP-BO correctly identified the maximum in 50% of runs by the second episode, while greedy baselines and weaker planning methods struggled to find it at all.
  • Robustness to Noise: In the laser tuning task, where noise depends on the distance moved, MDP-BO significantly outperformed "stateless" BO by choosing shorter, cleaner steps that preserved measurement accuracy.
  • Path Consistency: Qualitative results show the algorithm choosing smooth, logical paths through the search space that respect physical boundaries (like non-decreasing residence times in reactors) while still aggressively seeking out the global peak.
Performance comparison showing Average Regret and Best Arm Identified for the Lake Ypacarai and Laser Tuning tasks. MDP-BO consistently achieves lower regret and higher identification rates.

Limitations and Future Work

The authors acknowledge a few hurdles for future research:

  • Known Dynamics: Currently, the algorithm assumes the transition constraints (the "map" of the MDP) are known beforehand. In some systems, these constraints might be unknown and need to be learned on the fly.
  • Continuous Parameterization: The continuous version of the algorithm relies on a specific linear state-space model for the MPC step. Expanding this to handle more complex, non-linear dynamics is a logical next step.
  • New Objectives: While this paper focuses on finding the maximum, the same MDP framework could be adapted for other goals, like safety-constrained exploration or multi-objective optimization.

Summary updated

BibTeX
@inproceedings{folch2024transition,
  author = {Jose Pablo Folch and Calvin Tsay and Robert Matthew Lee and Behrang Shafei and Weronika Ormaniec and Andreas Krause and Mark van der Wilk and Ruth Misener and Mojmir Mutny},
  title = {{Transition Constrained Bayesian Optimization via Markov Decision Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=eFrdRuyHR9},
}
Figure