https://github.com/acerbilab/normalizing-flow-regression

Normalizing Flow Regression for Bayesian Inference with Offline Likelihood Evaluations

https://github.com/acerbilab/normalizing-flow-regression

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.7%) to scientific vocabulary

Keywords

approximate-inference bayesian-inference normalizing-flows surrogate-models
Last synced: 6 months ago · JSON representation

Repository

Normalizing Flow Regression for Bayesian Inference with Offline Likelihood Evaluations

Basic Info
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
approximate-inference bayesian-inference normalizing-flows surrogate-models
Created 11 months ago · Last pushed 10 months ago
Metadata Files
Readme

README.md

Normalizing Flow Regression

This repository provides the implementation and code used in the AABI 2025 (proceedings track) article Normalizing Flow Regression for Bayesian Inference with Offline Likelihood Evaluations (Li et al., 2025).

Overview

Bayesian inference with computationally expensive likelihood evaluations remains a significant challenge in many scientific domains. We propose normalizing flow regression (NFR), a novel offline inference method for approximating posterior distributions. Unlike traditional surrogate approaches that require additional sampling or inference steps, NFR directly yields a tractable posterior approximation through regression on existing log-density evaluations.

Set up

```bash conda env create -f environment.yml conda activate nfr

install kernel for jupyter notebook

python -m ipykernel install --user --name nfr ```

See demo.ipynb for an example of using NFR.

Citation

To appear in 7th Symposium on Advances in Approximate Bayesian Inference (AABI 2025, proceedings track).

Li, C., Huggins, B., Mikkola, P., & Acerbi, L. (2025). Normalizing Flow Regression for Bayesian Inference with Offline Likelihood Evaluations. In 7th Symposium on Advances in Approximate Bayesian Inference.

BibTeX

bibtex @inproceedings{liNormalizingFlowRegression2025, title = {Normalizing Flow Regression for {B}ayesian Inference with Offline Likelihood Evaluations}, booktitle = {7th Symposium on Advances in Approximate Bayesian Inference}, author = {Li, Chengkun and Huggins, Bobby and Mikkola, Petrus and Acerbi, Luigi}, year = {2025}, note = {To appear}, url = {https://approximateinference.org/2025/}, }

Acknowledgements

This repository includes code adapted from the nflows library: https://github.com/bayesiains/nflows, originally developed by Conor Durkan, Artur Bekasov, Iain Murray, and George Papamakarios.

We have modified nflows/transforms/autoregressive.py such that: - When neural network parameters are zeros, the flow becomes the identity transform. - The scale and shift transformation is constrained to a specified range.

Owner

  • Name: acerbilab
  • Login: acerbilab
  • Kind: organization
  • Location: Finland

Machine and Human Intelligence Research Group - University of Helsinki

GitHub Events

Total
  • Watch event: 2
  • Delete event: 1
  • Push event: 18
  • Create event: 1
Last Year
  • Watch event: 2
  • Delete event: 1
  • Push event: 18
  • Create event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 19
  • Total Committers: 2
  • Avg Commits per committer: 9.5
  • Development Distribution Score (DDS): 0.316
Past Year
  • Commits: 19
  • Committers: 2
  • Avg Commits per committer: 9.5
  • Development Distribution Score (DDS): 0.316
Top Committers
Name Email Commits
lacerbi l****i@g****m 13
pipme s****k@g****m 6

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

benchflow/setup.py pypi
  • cma *
  • corner *
  • einops *
  • hydra-core *
  • lightning *
  • scikit-learn *
environment.yml pypi
nflows/environment.yml pypi
  • torchtestcase *
  • umnn *
nflows/requirements.txt pypi
  • autoflake *
  • black *
  • flake8 *
  • isort *
  • matplotlib *
  • numpy *
  • pytest *
  • pyyaml *
  • tensorboard *
  • torch *
  • torchtestcase *
  • tqdm *
  • umnn *
nflows/setup.py pypi
  • matplotlib *
  • numpy *
  • tensorboard *
  • torch *
  • tqdm *
  • umnn *
pyproject.toml pypi
requirements.txt pypi
  • corner *
  • dill *
  • plum-dispatch *
  • wandb *