Modern Bayesian Experimental Design
Statistics Seminar, University of Warwick
1
Desi R. Ivanova � @desirivanova� desi.ivanova@stats.ox.ac.uk�
2
Agenda
Mostly based on: Modern Bayesian Experimental Design, Rainforth et al., �Statistical Science 2024
Goal-oriented BED
3
Experimental design
Designs
Data
Run experiment
Loan agreement��Lorem ipsum dolor sit amet consec tetuer 31.06.2019 adipiscing elit £17,500,000. �
Active learning
Survey
Lorem ipsum dolor sit?
30% complete
Next
Back
Smart surveys
Drug discovery
Next best question for this participant?
Most promising compound to try?
Next document to annotate?
4
Do you prefer £50 now or £100 in 1 year?
Design
£100 later
£50 now
Example: Subjective time value of money
Do you prefer £150 now or £100 in 1 year?
£150 now
£150 now
Outcome
5
Do you prefer £50 now or £100 in 1 year?
Design
£100 later
£50 now
Example: Subjective time value of money
Do you prefer £150 now or £100 in 1 year?
£150 now
£150 now
Outcome
6
Information-theoretic approach to data acquisition
Choose the design so that the data collected is maximally informative about the quantity of interest
7
Bayesian Experimental Design (BED)
Parameters (Latent variables)
Quantity we wish to learn about
Design
Controlled by experimenter
Outcome
Future observation
likelihood
posterior
prior
Formalize by introducing a probabilistic generative model
8
Example: BED for subjective time value of money
Do you prefer £R now or £100 in D days?
What is maximally informative?
9
Optimal maximizes the expected information gain (EIG)
Expected information gain (EIG)
Expectation over the outcome
Lindley, 1956
10
Alternative formulations of the EIG
11
Challenges of vanilla BED
12
Challenges of vanilla BED
This presentation
Current/future work
13
14
Double intractability
Key idea: Use optimization to approximate (some of) the unknown densities
Key requirement: Being able to sample from the joint
Posterior: typically intractable
Prior: can be tractable (often is)
Likelihood: can be tractable (often not)
Marginal: typically intractable
15
EIG estimation: Nested Monte Carlo (NMC)
Intractable + �each instance different
Convergence rate in total budget
Biased but asymptotically consistent
Rainforth et al., ICML 2018
16
EIG estimation: Functional and variational approaches
Treat the problem as a stochastic regression and learn a functional approximation
When is a valid normalized density, we have a variational upper bound which is tight iff
Convergence rate , but can be biased
Foster et al., 2019, Rainforth et al., 2023
17
EIG estimation: Variational approaches
We can estimate efficiently for any given
18
EIG estimation: Variational approaches
But we still need
We can estimate efficiently for any given
19
Unified objective: joint EIG estimation and optimisation
Variational lower bounds provide unified objectives!
Estimate MI
Optimize design
Foster et al., 2020, Kleinegesse & Gutmann, 2020,
Rainforth et al., 2023
20
2. Adaptive experimentation
21
Unified objective: joint EIG estimation and optimisation
Would you prefer $49 today, or $100 in 3 months?
$49 today
Computing posterior… Maximizing EIG lower bound, it’s very efficient but you have to wait…
22
Traditional adaptive BED is slow
Infer
Posterior update
Run experiment
Optimize EIG
1
2
1
2
23
The solution: Policy-based BED
Policy
Model
Observe
Foster, Ivanova et al., ICML 2021, Ivanova et al, NeurIPS 2021
24
Next� Design
Past �data
Policy
What is the policy?
Traditional BED ⇔ 2-stage expensive implicit policy
1
2
Posterior estimation
EIG maximisation
25
Deep Adaptive Design (DAD)
Next� Design
Past �data
Explicit policy parametrised by a NN
26
should amortize slow implicit policy
How do we train the DAD network?
The design network
Next� Design
Past �data
27
The design network
should maximize the expected sum of the individual EIGs
How do we train the DAD network?
Next� Design
Past �data
28
Policy-based BED: Theory
Theorem: Total Information
EIG of a T-step experiment is the sum of the EIGs for each experiment iteration.
Total EIG
Informally:
Incremental EIG
Foster et al., ICML, 2021
Shen & Huan, arxiv, 2021 (almost concurrently)
29
Theorem: Total EIG
EIG of a T-step experiment is the sum of the EIGs for each experiment iteration.
where
Foster et al., ICML 2021
Policy-based BED: Theory
30
Policy-based BED: Theory
Theorem: Total EIG
EIG of a T-step experiment is the sum of the EIGs for each experiment iteration.
where
Sample from the prior, use current policy to create a design, sample the outcome
31
intractable
!
Total EIG Objective
32
DAD: optimize a contrastive lower bound (PCE) – assumes analytic likelihood
intractable
!
Total Information Objective
33
iDAD: optimize a lower bound using samples only
intractable
!
Total Information Objective
DAD: optimize a contrastive lower bound (PCE) – assumes analytic likelihood
Ivanova et al., NeurIPS 2021
34
→ Inspiration from the representation learning literature: InfoNCE (van den Oord et al, 2018) bound on MI and NWJ (Nguyen et al, 2010) bound on KL, to lower bound the total EIG. �
Introduce an auxiliary critic network:
iDAD objective
to approximate the density ratio
35
NWJ
Higher variance
Lower bias
Deep Adaptive Design: Unified variational objectives
Higher bias
Lower variance
InfoNCE
Higher bias
Lower variance
Likelihood-based
PCE
36
Would you prefer $R today, or $100 in D days?
Example: Adaptive Online Surveys
Human participant
$R today
37
Would you prefer $49 today, or $100 in 3 months?
Human participant
$49 today
AI powered by DAD
38
Would you prefer $49 today, or $100 in 3 months?
Human participant
$49 today
Would you prefer $49 today, or $100 in 4 weeks?
Human participant
$49 today
AI powered by DAD
AI powered by DAD
39
Would you prefer $49 today, or $100 in 3 months?
Human participant
$49 today
Would you prefer $49 today, or $100 in 4 weeks?
Human participant
$49 today
Would you prefer $49 today, or $100 in 16 days?
Human participant
$100 in 16 days
AI powered by DAD
AI powered by DAD
AI powered by DAD
40
Would you prefer $49 today, or $100 in 3 months?
Human participant
$49 today
Would you prefer $49 today, or $100 in 4 weeks?
Human participant
$49 today
Would you prefer $49 today, or $100 in 16 days?
Human participant
$100 in 16 days
Would you prefer $49 today, or $100 in 23 days?
Human participant
$49 today
AI powered by DAD
AI powered by DAD
AI powered by DAD
AI powered by DAD
41
Quantitative results: EIG (lower and upper bounds, )
| | | Deployment time (sec.) |
Heuristic �(Frye et al. 2006) | 3.50 | 3.51 | 00.09 |
Traditional (Vincent & Rainforth 2017) | 4.45 | 4.54 | 25.27 |
DAD | 5.02 | 5.12 | 00.09 |
42
Quantitative results
→ We actually get better designs! This is due to
43
Quantitative results
→ We actually get better designs! This is due to
Myopic
Non-myopic
44
Other experiments: Location Finding
Weak signal
Strong signal
45
| | | Deployment time (sec.) |
Variational | 08.78 | 08.91 | 8963 |
DAD | 10.93 | 12.38 | 0.005 |
>1M times faster
No need for posterior estimation
Non-myopic properties
Other experiments: Location Finding
46
3. Beyond parameter estimation
47
47
Contextual optimisation
Engagement
Revenue
Characteristics
Context
Age
Employment
Income
…
Incentive
We have experimental budget
that we use to learn optimal actions
Model
Treatment/action/design
Goal: Maximize reward by choosing optimal actions for a set of customers
48
A stylised example
No testing �(pick best treatment in each context)
RCT �(prior knowledge not utilised)
Experimental contexts
Test context
True (but unknown) m*
Uncertainty about the functional relationship between treatments and outcomes, incorporated in the model via a Bayesian parameter
Note: quantity of interest here are the max-values!
49
No testing �(pick best treatment in each context)
RCT �(prior knowledge ignored)
Exploit
Explore
A stylised example
CO-BED
TL;DR: Better (contextual) A/B testing by formulating and optimising a contextual max-value EIG (CMV-EIG)�
50
CO-BED: Contextual Optimisation via BED
Ivanova et al., ICML 2023
51
Illustrative experiment
52
Contextual Linear Bandits
53
BED for Causal Discovery
Structural causal model (SCM)
Goal: Find the most informative interventions to help identify the underlying SCM.
Assumptions:
54
Causal Bayesian Experimental Design
55
DiffCBED: Differentiable multi-target causal BED
TL;DR: obtain a batch of designs maximises a standard EIG:
Annadani et al., ICML 2023
0
0
0
0
0
1.2
0.8
0.7
2.2
0.5
x
2.1
2.1
1
Parameter learning�+
Structure learning
56
Prediction-oriented Bayesian active learning (BAL)
TL;DR: Target information gain in predictions, not parameters
Bickford Smith et al., AISTATS 2023
Reduction in predictive uncertainty
57
3. Limitations and Future Directions
58
Model Misspecification: Catastrophic failures
59
Future directions
Thanks
X: @desirivanova
@: desi.ivanova@stats.ox.ac.uk� www: desirivanova.com
Contact
60
References
61
Thanks
Implicit Deep Adaptive Design (iDAD)
Desi R Ivanova, Adam Foster, Steven Kleinegesse, Michael Gutmann, Tom Rainforth, NeurIPS 2021, Paper, Code
Deep Adaptive Design (DAD)�Adam Foster*, Desi R Ivanova*, Ilyas Malik, Tom Rainforth, ICML 2021, Paper, Code
Differentiable Multi-Target Bayesian Experimental Design
Yasha Annadani*, Panagiotis Tigas*, Desi R Ivanova, Andrew Jesson, Yarin Gal, Adam Foster, Stefan Bauer, ICML 2023 Paper
CO-BED: Information-Theoretic Contextual Optimisation via Bayesian Experimental Design
Desi R Ivanova, Joel Jennings, Tom Rainforth, Cheng Zhang, Adam Foster, ICML 2023 Paper
62
Other research interests
63
Neural data compression
Current methods are somewhat ad-hoc
Explore more principled directions:
64
Customising diffusion models
Very crowded field, but a lot of research to be done!
65
LLMs: RLHF, reward modelling, alignment, benchmarks