Contextual Causal Bayesian Optimisation

Vahan Arsenyan, Antoine Grosnit, Haitham Bou-Ammar · OpenReview

Abstract

Causal Bayesian optimisation (CaBO) combines causality with Bayesian optimisation (BO) and shows that there are situations where the optimal reward is not achievable if causal knowledge is ignored. While CaBO exploits causal relations to determine the set of controllable variables to intervene on, it does not exploit purely observational variables and marginalises them. We show that, in general, utilising a subset of observational variables as a context to choose the values of interventional variables leads to lower cumulative regrets. We propose a general framework of contextual causal Bayesian optimisation that efficiently searches through combinations of controlled and contextual variables, known as policy scopes, and identifies the one yielding the optimum. We highlight the difficulties arising from the application of the causal acquisition function currently used in CaBO to select the policy scope in contextual settings and propose a multi-armed bandits based selection mechanism. We analytically show that well-established methods, such as contextual BO (CoBO) or CaBO, are not able to achieve the optimum in some cases, and empirically show that the proposed method achieves sub-linear regret in various environments and under different configurations.

Introduction

In many real-world scenarios—from clinical trials to portfolio management—the goal is to identify the optimal "intervention" (action) to maximize a reward. Bayesian Optimisation (BO) is the standard tool for this when the underlying function is expensive to evaluate. However, existing specialized versions of BO have significant limitations. Causal BO (CaBO) uses a causal graph to decide which variables to manipulate but often ignores "context" (external factors we can observe but not control). Conversely, Contextual BO (CoBO) considers context but usually operates on a fixed, pre-defined set of variables, failing to use causal knowledge to prune redundant variables or identify the most effective "policy scope." Neglecting either component can lead to linear regret, meaning the algorithm may never converge to the optimal strategy.

The CoCa-BO Framework

The authors propose CoCa-BO (Contextual-Causal Bayesian Optimisation), a unified framework that strategically selects which variables to intervene on and which to observe as context. The core innovation is a two-layer optimization process:

  1. Scope Selection (The "Where"): Using the known causal graph, the algorithm identifies a set of Possibly-Optimal Mixed Policy Scopes (POMPS). These are subsets of variables worth intervening on or observing, drastically reducing the search space.
  2. Policy Optimization (The "How"): Once a scope is selected, the algorithm uses a Multi-Armed Bandit (MAB) approach to decide which scope to explore and a standard BO routine (specifically HEBO) to find the best values for the chosen variables given the current context.
The CoCa-BO algorithmic framework at iteration $t$, showing the selection of policy scopes, action selection, and the update step.

A major contribution is the critique of previous causal acquisition functions. Comparing acquisition values across different contexts can be unstable. CoCa-BO addresses this by using a running average of Upper Confidence Bounds (UCB) to select policy scopes.

Evaluation and Results

The methodology was evaluated using several simulated environments based on Structural Causal Models (SCMs).

Example of a causal graph and its corresponding Structural Causal Model (SCM) used for evaluation.
  • Failure Mode SCM: A toy environment proving that traditional CoBO and CaBO fail to reach the optimum.
  • PSA Level Model: A realistic medical model involving variables like age, BMI, and medications. CoCa-BO successfully converged to the optimal medication strategy, while CaBO and CoBO suffered from high, non-converging regret.
  • High-Dimensional Environment: Featuring 57 contextual and 29 intervenable variables. The causal graph allowed CoCa-BO to ignore 22 redundant variables, accelerating learning significantly.

Conclusion

CoCa-BO demonstrates that "knowing where to look" using causal structure is as important as "looking at everything" when data is scarce. While the current framework assumes a known causal graph, it provides a robust foundation for future work involving causal discovery and information sharing between overlapping policy scopes via multitask Gaussian Processes.

Summary updated

Abstract

Causal Bayesian optimisation (CaBO) combines causality with Bayesian optimisation (BO) and shows that there are situations where the optimal reward is not achievable if causal knowledge is ignored. While CaBO exploits causal relations to determine the set of controllable variables to intervene on, it does not exploit purely observational variables and marginalises them. We show that, in general, utilising a subset of observational variables as a context to choose the values of interventional variables leads to lower cumulative regrets. We propose a general framework of contextual causal Bayesian optimisation that efficiently searches through combinations of controlled and contextual variables, known as policy scopes, and identifies the one yielding the optimum. We highlight the difficulties arising from the application of the causal acquisition function currently used in CaBO to select the policy scope in contextual settings and propose a multi-armed bandits based selection mechanism. We analytically show that well-established methods, such as contextual BO (CoBO) or CaBO, are not able to achieve the optimum in some cases, and empirically show that the proposed method achieves sub-linear regret in various environments and under different configurations.
BibTeX
@misc{arsenyan2023contextual,
  author = {Vahan Arsenyan and Antoine Grosnit and Haitham Bou-Ammar},
  title = {{Contextual Causal Bayesian Optimisation}},
  year = {2023},
  eprint = {2301.12412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.12412},
}
Figure