1 of 49

Sampling from multimodal distributions with stochastic localization

Louis Grenioux

Louis Grenioux*, Maxence Noble*, Marylou Gabrié, Alain Oliviero Durmus.

Stochastic Localization via Iterative Posterior Sampling. ICML 2024

2 of 49

The challenge of multimodal sampling

2

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

How to sample from ?

3 of 49

The challenge of multimodal sampling

3

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

4 of 49

The challenge of multimodal sampling

3

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

5 of 49

The challenge of multimodal sampling

3

MALA

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

6 of 49

The challenge of multimodal sampling

3

MALA

NUTS

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

7 of 49

The challenge of multimodal sampling

4

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

8 of 49

The challenge of multimodal sampling

4

MALA

NUTS

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

9 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

10 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

11 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

12 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

13 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

(1) Jump to the next distribution and reweight

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

14 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

(1) Jump to the next distribution and reweight

(2) Ressample the particles

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

15 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

(1) Jump to the next distribution and reweight

(2) Ressample the particles

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

16 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

(1) Jump to the next distribution and reweight

(2) Ressample the particles

(3) Run MCMC kernel

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

17 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

(1) Jump to the next distribution and reweight

(2) Ressample the particles

(3) Run MCMC kernel

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

18 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

19 of 49

Handling multimodality with Sequential Monte Carlo

5

Target distribution

Base distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Dimension 12

Difficult to scale into high-dimension

[1] Del Moral et al. A. Sequential Monte Carlo samplers. Journal of the Royal Statistical Society 2006

20 of 49

The goal of this talk

6

🎯 Give a method to sample multimodal distributions leveraging modern hardware and ideas from generative modeling

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

💡 Using similar ideas as SMC

21 of 49

The goal of this talk

6

🎯 Give a method to sample multimodal distributions leveraging modern hardware and ideas from generative modeling

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

💡 Using similar ideas as SMC

22 of 49

A sequence of distribution define by a stochastic process

7

The signal part is

increasingly

informative

The signal predominates over the noise part

💡

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Brownian motion

23 of 49

A sequence of distribution define by a stochastic process

8

💡

Stochastic Localization principle

We say that the stochastic process localizes on the target

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Brownian motion

24 of 49

A sequence of distribution define by a stochastic process

9

💡

Target distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

25 of 49

A sequence of distribution define by a stochastic process

9

💡

Target distribution

Density of

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

26 of 49

Using stochastic localization for sampling (SLIPS)

10

💡 Let’s sample from the stochastic process and use the localization property

✅ It has the same marginal distribution as the solution of this SDE

the denoiser

📍Note that the denoiser is the mean of the posterior distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

27 of 49

Using stochastic localization for sampling (SLIPS)

10

💡 Let’s sample from the stochastic process and use the localization property

the denoiser

📍Note that the denoiser is the mean of the posterior distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

✅ It has the same marginal distribution as the solution of this SDE

28 of 49

Using stochastic localization for sampling (SLIPS)

10

💡 Let’s sample from the stochastic process and use the localization property

the denoiser

📍Note that the denoiser is the mean of the posterior distribution

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

✅ It has the same marginal distribution as the solution of this SDE

29 of 49

Using stochastic localization for sampling (SLIPS)

11

✅ We use a Markovian projection

💡 We discretize the SDE with an Euler-Maruyama scheme

⚠️ The denoiser is an intractable expectation

✨ MCMC ✨

Let be a grid on . Set

with

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

🤔 Is it really easier than directly running MCMC on the target ?

30 of 49

Starting the recursion from a specific time

12

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

31 of 49

Starting the recursion from a specific time

12

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

32 of 49

Starting the recursion from a specific time

12

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

MCMC estimation

Density of

33 of 49

Starting the recursion from a specific time

12

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

MCMC estimation

Density of

34 of 49

Starting the recursion from a specific time

12

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

MCMC estimation

Density of

35 of 49

Starting the recursion from a specific time

12

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

MCMC estimation

Density of

36 of 49

Starting the recursion from a specific time

12

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

MCMC estimation

💡Start recursion from here

Density of

37 of 49

Starting the recursion from a specific time

12

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

MCMC estimation

💡Start recursion from here

Density of

38 of 49

Starting the recursion from a specific time and point

13

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Tweedie’s formula

“known” when

“known” when

💡 Sample the initial point using the Langevin algorithm

39 of 49

Duality of log-concavity

14

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

Density of

40 of 49

Duality of log-concavity

14

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

Density of

Density of

41 of 49

Duality of log-concavity

14

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

📍 Not too soon

Density of

Density of

42 of 49

Duality of log-concavity

14

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

📍 Not too soon

📍 Not too late

Density of

Density of

43 of 49

Duality of log-concavity

14

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

📍 Not too soon

📍 Not too late

Density of

Density of

44 of 49

Duality of log-concavity

14

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

📍 Not too soon

📍 Not too late

Density of

Density of

45 of 49

Using stochastic localization for sampling (SLIPS)

15

💡 Let’s sample from the stochastic process and use the localization property

✅ It has the same marginal law as the solution of this SDE

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

💡 We discretize the SDE with an Euler-Maruyama scheme

Let be a grid on .Set

with

log-concave

log-concave

46 of 49

Using stochastic localization for sampling (SLIPS)

16

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

47 of 49

Experiments on Gaussian mixtures

17

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

48 of 49

Experiments on a field system

18

The model [2]

  • 1D model on a grid of size 100 (i.e., dimension is 100)
  • Two modes and
  • Parameter

A continuous relaxation of the Ising model

[2] Gabrié et al. Adaptive Monte Carlo augmented with normalizing flows. PNAS, 2022

Approximation of the relative weight

0th order

2nd

order

Louis Grenioux - Sampling from multimodal distributions with stochastic localization

49 of 49

Thank you for your attention !

Reference: Stochastic Localization via Iterative Posterior Sampling, arXiv:2402.10758, ICML 2024

🚀 Play with the code : https://github.com/h2o64/slips

Louis Grenioux - Sampling from multimodal distributions with stochastic localization