Flow Matching for Posterior Inference with Simulator Feedback (2410.22573v1)
Abstract: Flow-based generative modeling is a powerful tool for solving inverse problems in physical sciences that can be used for sampling and likelihood evaluation with much lower inference times than traditional methods. We propose to refine flows with additional control signals based on a simulator. Control signals can include gradients and a problem-specific cost function if the simulator is differentiable, or they can be fully learned from the simulator output. In our proposed method, we pretrain the flow network and include feedback from the simulator exclusively for finetuning, therefore requiring only a small amount of additional parameters and compute. We motivate our design choices on several benchmark problems for simulation-based inference and evaluate flow matching with simulator feedback against classical MCMC methods for modeling strong gravitational lens systems, a challenging inverse problem in astronomy. We demonstrate that including feedback from the simulator improves the accuracy by $53\%$, making it competitive with traditional techniques while being up to $67$x faster for inference.
- Stochastic interpolants: A unifying framework for flows and diffusions. CoRR, abs/2303.08797, 2023a. doi: 10.48550/ARXIV.2303.08797. URL https://doi.org/10.48550/arXiv.2303.08797.
- Stochastic interpolants with data-dependent couplings. CoRR, abs/2310.03725, 2023b. doi: 10.48550/ARXIV.2310.03725. URL https://doi.org/10.48550/arXiv.2310.03725.
- Efficient probabilistic inference in the quest for physics beyond the standard model. In Advances in Neural Information Processing Systems 32, pp. 5460–5473, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/6d19c113404cee55b4036fce1a37c058-Abstract.html.
- Pyro: Deep universal probabilistic programming. J. Mach. Learn. Res., 20:28:1–28:6, 2019. URL http://jmlr.org/papers/v20/18-403.html.
- JAX: composable transformations of Python+NumPy programs, 2018. URL http://github.com/google/jax.
- Monte carlo guided diffusion for bayesian linear inverse problems. CoRR, abs/2308.07983, 2023. doi: 10.48550/ARXIV.2308.07983. URL https://doi.org/10.48550/arXiv.2308.07983.
- Neural ordinary differential equations. In Advances in Neural Information Processing Systems 31, pp. 6572–6583, 2018. URL https://proceedings.neurips.cc/paper/2018/hash/69386f6bb1dfed68692a24c8686939b9-Abstract.html.
- Analog bits: Generating discrete data using diffusion models with self-conditioning. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023. URL https://openreview.net/pdf?id=3itjR9QxFw.
- Come-closer-diffuse-faster: Accelerating conditional diffusion models for inverse problems through stochastic contraction. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pp. 12403–12412. IEEE, 2022. doi: 10.1109/CVPR52688.2022.01209. URL https://doi.org/10.1109/CVPR52688.2022.01209.
- Diffusion posterior sampling for general noisy inverse problems. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023a. URL https://openreview.net/pdf?id=OnD9zGAGT0k.
- Direct diffusion bridge using data consistency for inverse problems. In Advances in Neural Information Processing Systems 36, 2023b. URL http://papers.nips.cc/paper_files/paper/2023/hash/165b0e600b1721bd59526131eb061092-Abstract-Conference.html.
- The frontier of simulation-based inference. Proceedings of the National Academy of Sciences, 117(48):30055–30062, 2020.
- Shadows and strong gravitational lensing: a brief review. General Relativity and Gravitation, 50:1–27, 2018.
- Real-time gravitational wave science with neural posterior estimation. Physical review letters, 127(24):241103, 2021.
- Density estimation using real NVP. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https://openreview.net/forum?id=HkpbnH9lx.
- Neural spline flows. In Advances in Neural Information Processing Systems 32, pp. 7509–7520, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/7ac71d433f282034e088473244df8c02-Abstract.html.
- Using wavelets to capture deviations from smoothness in galaxy-scale strong lenses. Astronomy and Astrophysics, 668:A155, December 2022. doi: 10.1051/0004-6361/202244464.
- Weather forecasting with ensemble methods. Science, 310(5746):248–249, 2005.
- Ensemble samplers with affine invariance. Communications in applied mathematics and computational science, 5(1):65–80, 2010.
- FFJORD: free-form continuous dynamics for scalable reversible generative models. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. URL https://openreview.net/forum?id=rJxgknCcK7.
- A kernel two-sample test. The Journal of Machine Learning Research, 13(1):723–773, 2012.
- Fast automated analysis of strong gravitational lenses with convolutional neural networks. Nature, 548(7669):555–557, 2017.
- Classifier-free diffusion guidance. CoRR, abs/2207.12598, 2022. doi: 10.48550/ARXIV.2207.12598. URL https://doi.org/10.48550/arXiv.2207.12598.
- Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems 33, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html.
- The no-u-turn sampler: adaptively setting path lengths in hamiltonian monte carlo. J. Mach. Learn. Res., 15(1):1593–1623, 2014.
- Solving inverse physics problems with score matching. In Advances in Neural Information Processing Systems 36, 2023. URL http://papers.nips.cc/paper_files/paper/2023/hash/c2f2230abc7ccf669f403be881d3ffb7-Abstract-Conference.html.
- SNIPS: solving noisy inverse problems stochastically. In Advances in Neural Information Processing Systems 34, pp. 21757–21769, 2021. URL https://proceedings.neurips.cc/paper/2021/hash/b5c01503041b70d41d80e3dbe31bbd8c-Abstract.html.
- Denoising diffusion restoration models. In Advances in Neural Information Processing Systems 35, 2022. URL http://papers.nips.cc/paper_files/paper/2022/hash/95504595b6169131b6ed6cd72eb05616-Abstract-Conference.html.
- Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun (eds.), 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980.
- Glow: Generative flow with invertible 1x1 convolutions. In Advances in Neural Information Processing Systems 31, pp. 10236–10245, 2018. URL https://proceedings.neurips.cc/paper/2018/hash/d139db6a236200b21cc7f752979132d0-Abstract.html.
- Euclid definition study report. arXiv preprint arXiv:1110.3193, 2011.
- Simulation-based inference of strong gravitational lensing parameters. arXiv preprint arXiv:2112.05278, 2021.
- A framework for obtaining accurate posteriors of strong gravitational lensing parameters with flexible priors and implicit likelihoods using density estimation. The Astrophysical Journal, 943(1):4, 2023.
- Uncertainties in parameters estimated with neural networks: Application to strong gravitational lensing. The Astrophysical Journal Letters, 850(1):L7, 2017.
- Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023. URL https://openreview.net/pdf?id=PqvMRDCJT9t.
- Flow straight and fast: Learning to generate and transfer data with rectified flow. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023. URL https://openreview.net/pdf?id=XVjTT1nw5z.
- Revisiting classifier two-sample tests. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https://openreview.net/forum?id=SJkXfE5xx.
- Benchmarking simulation-based inference. In The 24th International Conference on Artificial Intelligence and Statistics, AISTATS 2021, April 13-15, 2021, Virtual Event, volume 130 of Proceedings of Machine Learning Research, pp. 343–351. PMLR, 2021. URL http://proceedings.mlr.press/v130/lueckmann21a.html.
- Masked autoregressive flow for density estimation. In Advances in Neural Information Processing Systems 30, pp. 2338–2347, 2017. URL https://proceedings.neurips.cc/paper/2017/hash/6c1da886822c67822bcf3679d04369fa-Abstract.html.
- Sequential neural likelihood: Fast likelihood-free inference with autoregressive flows. In Kamalika Chaudhuri and Masashi Sugiyama (eds.), The 22nd International Conference on Artificial Intelligence and Statistics, AISTATS, volume 89 of Proceedings of Machine Learning Research, pp. 837–848. PMLR, 2019. URL http://proceedings.mlr.press/v89/papamakarios19a.html.
- Composable effects for flexible and accelerated probabilistic programming in numpyro. arXiv preprint arXiv:1912.11554, 2019.
- Strong lensing parameter estimation on ground-based imaging data using simulation-based inference. arXiv preprint arXiv:2211.05836, 2022.
- Multisample flow matching: Straightening flows with minibatch couplings. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA, volume 202 of Proceedings of Machine Learning Research, pp. 28100–28127. PMLR, 2023. URL https://proceedings.mlr.press/v202/pooladian23a.html.
- Variational inference with normalizing flows. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, volume 37 of JMLR Workshop and Conference Proceedings, pp. 1530–1538. JMLR.org, 2015. URL http://proceedings.mlr.press/v37/rezende15.html.
- Photorealistic text-to-image diffusion models with deep language understanding. In Advances in Neural Information Processing Systems 35, 2022. URL http://papers.nips.cc/paper_files/paper/2022/hash/ec795aeadae0b7d230fa35cbaf04c041-Abstract-Conference.html.
- Holismokes-iv. efficient mass modeling of strong lenses through deep learning. Astronomy & Astrophysics, 646:A126, 2021.
- Sequential neural score estimation: Likelihood-free inference with conditional score based diffusion models. CoRR, abs/2210.04872, 2022. doi: 10.48550/ARXIV.2210.04872. URL https://doi.org/10.48550/arXiv.2210.04872.
- Score-based generative modeling through stochastic differential equations. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021. URL https://openreview.net/forum?id=PxTIG12RRHS.
- Validating bayesian inference algorithms with simulation-based calibration. arXiv preprint arXiv:1804.06788, 2018.
- Conditional flow matching: Simulation-free dynamic optimal transport. CoRR, abs/2302.00482, 2023. doi: 10.48550/ARXIV.2302.00482. URL https://doi.org/10.48550/arXiv.2302.00482.
- Strong gravitational lensing as a probe of dark matter. arXiv preprint arXiv:2306.11781, 2023.
- Bayesian strong gravitational-lens modelling on adaptive grids: objective detection of mass substructure in galaxies. Monthly Notices of the Royal Astronomical Society, 392(3):945–963, 2009.
- Flow matching for scalable simulation-based inference. In Advances in Neural Information Processing Systems 36, 2023. URL http://papers.nips.cc/paper_files/paper/2023/hash/3663ae53ec078860bb0b9c6606e092a0-Abstract-Conference.html.
- Practical and asymptotically exact conditional sampling in diffusion models. In Advances in Neural Information Processing Systems 36, 2023. URL http://papers.nips.cc/paper_files/paper/2023/hash/63e8bc7bbf1cfea36d1d1b6538aecce5-Abstract-Conference.html.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.