Overview
Contextual Causal Bayesian Optimisation (CoCa-BO) is a novel framework that unifies causal and contextual decision-making. By leveraging known causal graphs to intelligently select which variables to intervene on based on observed context, it avoids the suboptimality of previous methods and significantly reduces the number of samples needed to find optimal policies, particularly in high-dimensional environments.
The Problem
In many real-world scenarios—from personalized medicine to portfolio management—the goal is to optimize a target variable (like patient health or investment return) by intervening in a complex system. Bayesian Optimisation (BO) is the standard tool for this, but it faces two major hurdles:
- The Dimensionality Curse: As the number of variables grows, standard BO becomes incredibly slow and data-hungry.
- The Context Gap:
- Causal BO (CaBO) uses a causal graph to ignore irrelevant variables, but it typically ignores "context" (external factors we can observe but not control, like a patient's age).
- Contextual BO (CoBO) accounts for context but usually operates on a fixed, pre-defined set of variables.
The authors demonstrate that using a fixed set of variables (a fixed "policy scope") can lead to linear regret—meaning the algorithm might never find the true optimal solution, regardless of how much data it collects. This paper introduces a method to jointly optimize which variables to act on (the scope) and what values to set them to, all while reacting dynamically to the current context.
Proposed Methodology: CoCa-BO
The authors propose the CoCa-BO algorithm, which operates iteratively through three main phases:
- POMPS Selection: The framework defines "scopes" that pair specific intervenable variables with the context variables needed to make a decision. Using the known causal graph, the algorithm identifies a subset of "Possibly-Optimal Mixed Policy Scopes" (POMPS), mathematically discarding those guaranteed to be suboptimal. Since the best scope is initially unknown, the algorithm treats each scope as an "arm" in a Multi-Armed Bandit (MAB) problem, using a modified Upper Confidence Bound (UCB) strategy to select a scope for the current iteration.
- Action Selection: Once a scope is selected and the context is observed, the algorithm uses a state-of-the-art BO solver to pick the best intervention values within that specific scope.
- Update: The system observes the outcome, updates the Gaussian Process (GP) models for the selected scope, and refines its UCB estimates for future iterations.
Crucially, the authors provide the first theoretical regret bounds for this combined setting, proving that the algorithm's error grows sublinearly over time, ensuring eventual convergence to the global optimum.
Experimental Setup
The researchers evaluated CoCa-BO using several simulated environments designed to test specific failure modes of prior methods:
- Synthetic Structural Causal Models (SCMs): Small-scale graphs (like the example illustrated above) where CoBO or CaBO are analytically proven to fail.
- PSA Level Model: A realistic medical-themed model based on literature regarding Prostate-Specific Antigen levels, involving variables like Age, BMI, Cancer status, and medications (Aspirin/Statins).
- High-Dimensional "Plate" Environment: A complex graph featuring 57 contextual variables and 29 intervenable variables (86 total) to test how well the causal graph can prune the search space.
Key Insights
- The "Fixed Scope" Trap: The paper mathematically proves that ignoring the causal relationship between context and interventions leads to permanent suboptimality. If changing context (e.g., market volatility) alters which variable you should be tweaking, a standard contextual BO that only tweaks a fixed set will fail.
- Causality as a Filter: In high-dimensional settings, the causal graph acts as a massive dimensionality reducer. In their 86-variable experiment, CoCa-BO identified that most variables were redundant, effectively reducing the optimization domain by a factor of 22.
- Stabilizing Comparisons: Comparing "acquisition functions" across different contexts is notoriously difficult. CoCa-BO solves this by using a running average of UCB values to stabilize the selection of the best policy scope.
Results
- Convergence where others fail: In scenarios where CoBO and CaBO suffered from linear regret (flat-lining at a suboptimal level), CoCa-BO achieved sublinear regret, successfully finding the optimal policy.
- Efficiency in High Dimensions: In the 86-variable test, CoCa-BO converged significantly faster than standard contextual methods because it spent zero time exploring "superfluous" variables identified by the causal graph.
- Noise Robustness: The algorithm proved robust to noise in the target variable, maintaining convergence even when the standard deviation of the noise was relatively high (up to $\sigma = 1.25$ in their tests).
Limitations and Future Directions
- Known Causal Graph: The current framework assumes the causal graph is provided by an expert or a previous discovery process. Integrating "causal discovery" (learning the graph directly from data) into CoCa-BO is a logical next step for real-world applications where the graph is unknown.
- Computational Overhead: Finding the set of possibly-optimal scopes involves a brute-force search over the graph. While highly parallelizable, it could become a bottleneck for extremely large, dense graphs.
- Information Sharing: Currently, the algorithm learns about each policy scope somewhat independently. Finding ways to share information between different scopes (e.g., via Multi-task GPs) could further improve sample efficiency.
Summary updated