Learning to Deblend Galaxies from Blended Observations with Diffusion Models
Benjamin Remy


at the BDL workshop 3rd edition, Paris, 2025

De-blending galaxies
HSC image
Patches contain overlapping sources due to survey depth and large PSF
Need to de-blend galaxies from these images...
PSF convolution, overlapping sources and low SNR makes deblending nontrivial
Blending affects 60% of HSC galaxies (Bosch et al. 2018) and affects their detection and shape measurement

De-blending as an inverse problem

scarlet2
github.com/pmelchior/scarlet2
in JAX, Equinox (differentiable, GPU accetlerated)
- multiband, multi-epochs, multi-resolution
- deep nn prior
- optimization (MAP), sampling (full posterior)





Sampson and Melchior (2024)
Ward et al. (incl. Remy) (2024)
Remy et al. (in prep.)
Siegel and Melchior (2024)
De-blending as an inverse problem


De-blending as an inverse problem

Assuming all sources are detected
Source mixing

Convolution with the
Point Spread Function

Additive noise

Solving linear inverse problems
is ill-posed because
noise corruption
which implies that there are multiple solutions
to the problem
is not invertible
Solving linear inverse problems
Bayes' theorem
Solving linear inverse problems
Bayes' theorem
Likelihood
Prior
- Closed form profile
(Expenentional, Sersic, Bulge+disk)
- learned from simulations




Solving linear inverse problems
Via optimization with gradient descent
This works! But
- targets only the MAP
- requires a good initialization of the sources

Model
Rendered model
Observation
Residuals
Solving linear inverse problems
Via diffusion sampling using the reverse SDE







...
...
...
...
Solving linear inverse problems
Via diffusion sampling using the reverse SDE

Model
Rendered model
Observation
Residuals
Improving the prior via
Expectation-Maximization
Rozet et al. (2024)
Barco et al. (2024)
If the parameters of the prior are updated such as
then converges to a local maximum, and the evidence
is maximized under this model.
1. Sample from the posterior (via diffusion)
2. Maximize the log prob of the model (via score-matching)
Improving the prior via
Expectation-Maximization
Rozet et al. (2024)
Barco et al. (2024)
On HST images











Prior initially learned from
scarlet1 fits
Takeways
Upcomming surveys such as LSST will require robust deblending methods to separate overlapping sources in crowded fields
Deblending is a challenging inverse problem due to PSF convolution, noise, and source mixing
Can be addressed with diffusion sampling and optimization with a deep neural network prior, which can be trained directly from the observations

This requires a differentiable foward model of astronomical sources , which is the purpose of scarlet2
Working for multi-bands, multi-epochs, and muti-resolutions (surveys) settings!

Sampson and Melchior (2024)
Ward et al. (incl. Remy) (2024)
Remy et al. (in prep.)
Siegel and Melchior (2024)
github.pmelchior/scarlet2
BDL2025
By Benjamin REMY
BDL2025
- 80