Bayesian Stokes inversion with Normalizing flows

C. J. Díaz Baso, A. Asensio Ramos, J. de la Cruz Rodríguez
8/16/2021
astro-ph.SRastro-ph.IM
diffusion-flowbayesian

Official code: cdiazbas/bayesflows (7 stars, Python, MIT, last commit 2021-11-08).

Abstract

Stokes inversion techniques are very powerful methods for obtaining information on the thermodynamic and magnetic properties of solar and stellar atmospheres. In recent years, very sophisticated inversion codes have been developed that are now routinely applied to spectro-polarimetric observations.

Show full abstract

Most of these inversion codes are designed for finding an optimum solution to the nonlinear inverse problem. However, to obtain the location of potentially multimodal cases (ambiguities), the degeneracies, and the uncertainties of each parameter inferred from the inversions, algorithms such as Markov chain Monte Carlo (MCMC), require to evaluate the likelihood of the model thousand of times and are computationally costly. Variational methods are a quick alternative to Monte Carlo methods by approximating the posterior distribution by a parametrized distribution. In this study, we introduce a highly flexible variational inference method to perform fast Bayesian inference, known as normalizing flows. Normalizing flows are a set of invertible, differentiable, and parametric transformations that convert a simple distribution into an approximation of any other complex distribution. If the transformations are conditioned on observations, the normalizing flows can be trained to return Bayesian posterior probability estimates for any observation. We illustrate the ability of the method using a simple Milne-Eddington model and a complex non-LTE inversion. However, the method is extremely general and other more complex forward models can be applied. The training procedure need only be performed once for a given prior parameter space and the resulting network can then generate samples describing the posterior distribution several orders of magnitude faster than existing techniques.

View on arXivView PDF

Code Implementations(1)

MIT

Bayesian Stokes inversion with Normalizing flows

71Python, Jupyter NotebookJul 12, 20215 years agoMIT

Similar Papers

Cite this paper

@article{baso2021bayesian,
  title  = {Bayesian Stokes inversion with Normalizing flows},
  author = {C. J. Díaz Baso and A. Asensio Ramos and J. de la Cruz Rodríguez},
  year   = {2021},
  eprint = {2108.07089},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.07089}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.07089.svg)](https://codeofpaper.com/paper/2108.07089)

Discussion