Loading repository data…
Loading repository data…
MaximeMuh / repository
Mon premier dépot
#projet 2nd semestre
A mathematical and computational project conducted at École des Ponts ParisTech and INRIA Paris, focused on improving the sampling of probability measures using Markov Chain Monte Carlo (MCMC) methods and finite element–based optimization.
📘 Authors:
Adle Ben Salem, Maryam El Yaagoubi, Arnaud Masseron, Maxime Muhlethaler
👨🏫 Supervisor: Régis Santet (CERMICS / INRIA Paris)
📎 GitHub Repository: https://github.com/MaximeMuh/PROJET
This project explores how to sample complex probability measures efficiently — a central problem in Bayesian inference, image generation, and statistical physics.
Traditional methods (e.g., inverse transform or rejection sampling) quickly become intractable in high dimensions.
We therefore studied and implemented Markov Chain Monte Carlo (MCMC) algorithms and a novel finite-element optimization approach to accelerate convergence.
The project begins with a rigorous study of Markov chains, defining key properties such as:
An illustrative example of a 3-state Markov chain (A, B, C exchanging a ball) demonstrates convergence to a unique stationary distribution.
We implemented and compared several sampling algorithms:
A simple baseline for generating samples from a target distribution using a proposal envelope.
✅ Efficient in low dimension
⚠️ Computationally expensive in higher dimensions (high rejection rate)
A random walk–based algorithm generating a Markov chain whose stationary distribution matches the target measure.
Principle:
Each new candidate sample is accepted or rejected based on the acceptance ratio
[
\alpha = \min\left(1, \frac{\pi(q_{n+1})}{\pi(q_n)}\right)
]
Pros: No need for normalization constants
Cons: Sensitive to step size (Δt) and dimensionality
An advanced variant of MH using gradient information of the target log-density:
[ q_{n+1} = q_n + \Delta t , \nabla \log \pi(q_n) + \sqrt{2 \Delta t} , \xi_n ]
This accelerates convergence by guiding proposals toward high-probability regions.
✅ Faster convergence
⚠️ Requires differentiable target and gradient computations
To further accelerate convergence, the project introduces a finite-element method (FEM)–based optimization of the diffusion coefficient ( D(x) ) in the Langevin equation:
[ \frac{\partial X}{\partial t} = -D(X)\nabla V(X) + \nabla \cdot (D(X)) + \sqrt{2 D(X)} \frac{\partial W}{\partial t} ]
We maximize the spectral gap ( |\lambda_D| ) via gradient descent on ( D(x) ), constrained by
[
\int_{T^1} D(q)^2 , dq \leq 1
]
to avoid trivial scaling.
Two diffusions were compared:
📊 Result:
The optimized diffusion leads to faster mixing and convergence (verified via total variation distance).
| Algorithm | Implementation | Key Result |
|---|---|---|
| Rejection Sampling | Uniform & exponential targets | High rejection rate in high dimension |
| Metropolis–Hastings | Gaussian & periodic potentials | Robust, converges to target |
| MALA | Gradient-informed diffusion | Faster convergence than MH |
| FEM Optimization | Langevin with variable D(x) | Optimized diffusion improves mixing speed |
Convergence was measured using total variation distance between the empirical and target distributions.
This project bridges probability theory, numerical analysis, and scientific computing by combining:
It provides both an educational framework for understanding stochastic sampling and a foundation for future research in high-dimensional MCMC acceleration.