Papers › Variational Inference with Normalizing Flows

Variational Inference with Normalizing Flows

21 May 2015arXiv:1505.05770archive 2025-07-28

Danilo Jimenez Rezende, Shakir Mohamed

The choice of approximate posterior distribution is one of the core problems in variational inference. Most applications of variational inference employ simple families of posterior approximations in order to allow for efficient inference, focusing on mean-field or other simple structured approximations. This restriction has a significant impact on the quality of inferences made using variational methods. We introduce a new approach for specifying flexible, arbitrarily complex and scalable approximate posterior distributions. Our approximations are distributions constructed through a normalizing flow, whereby a simple initial density is transformed into a more complex one by applying a sequence of invertible transformations until a desired level of complexity is attained. We use this view of normalizing flows to develop categories of finite and infinitesimal flows and provide a unified view of approaches for constructing rich posterior approximations. We demonstrate that the theoretical advantages of having posteriors that better match the true posterior, combined with the scalability of amortized variational approaches, provides a clear improvement in performance and applicability of variational inference.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1505.05770")

Code

Syntology Ran 19 of 37 code samples harvested from 10 repositories linked to this paper; 18 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 17 ran with no contract checked.

By repository: community (archive-listed): 37 samples from 10 repositories, 19 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

17 repositories listed; official and paper-mentioned ones first.

Aditya-kiran/ResNet-VAE mentioned on GitHubtfMIT report
Daniil-Selikhanovych/h-vae mentioned on GitHubpytorch report
TuringLang/Bijectors.jl mentioned on GitHubMIT report
YeongHyeon/Normalizing-Flow-TF2 mentioned on GitHubtfMIT report
Yuto0107/normalizing-flow mentioned on GitHubtf report
chayanchatterjee/cbc-skynet mentioned on GitHubtfGPL-3.0 report
chayanchatterjee/gw-skylocator mentioned on GitHubtf report
clementchadebec/benchmark_VAE mentioned on GitHubpytorch report
e-hulten/planar-flows mentioned on GitHubpytorch report
geetakrishna1994/planarflows mentioned on GitHubpytorch report
kaanguney/beta-vae-normalizing-flows mentioned on GitHubtfMIT report
opeco17/normalizing-flow mentioned on GitHubtf report
xqding/RealNVP mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

37 samples harvested; 19 ran; 1 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
17ran
18unverified

Licence: 12 of the 37 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 10 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

sigmoid Aditya-kiran/ResNet-VAE/code/skewed_posterior_average_experiment.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · b8e95809ca2c17c9 · report
Affine_Coupling xqding/RealNVP/script/RealNVP_2D.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 23d9a77b7ea93fff · report
AutoConfig clementchadebec/benchmark_VAE/src/pythae/models/normalizing_flows/base/base_nf_model.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · e0abb5bbdbdb0039 · report
BaseAEConfig clementchadebec/benchmark_VAE/src/pythae/models/normalizing_flows/base/base_nf_model.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · abaa06aa769f9d3a · report
BaseConfig clementchadebec/benchmark_VAE/src/pythae/models/normalizing_flows/base/base_nf_model.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · b5fbd3b05aee0e24 · report
BaseNFConfig clementchadebec/benchmark_VAE/src/pythae/models/normalizing_flows/base/base_nf_model.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 2279da7b087f8707 · report
EnvironmentConfig clementchadebec/benchmark_VAE/src/pythae/models/normalizing_flows/base/base_nf_model.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · d23c55d89b0211f5 · report
Flow PhilippeNguyen/keras_normalizing_flows/keras_normalizing_flows/layers/flows.py community (archive-listed) ran no licence file found · pointer only · c8c71c93d51e985b · report
ModelOutput clementchadebec/benchmark_VAE/src/pythae/models/normalizing_flows/base/base_nf_model.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 55fbb2b45d2ac35d · report
NormalizingFlow ex4sperans/variational-inference-with-normalizing-flows/flow.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 316f9ba0ff91a5a2 · report
NormalizingFlow MaximeVandegar/Papers-in-100-Lines-of-Code/Variational_Inference_with_Normalizing_Flows/Flows.py community (archive-listed) ran fingerprinted MIT (permissive) · 9773902c5cc03a74 · report
PlanarFlow ex4sperans/variational-inference-with-normalizing-flows/flow.py community (archive-listed) ran no licence file found · pointer only · 440a98a671fdc1fa · report
PlanarFlow MaximeVandegar/Papers-in-100-Lines-of-Code/Variational_Inference_with_Normalizing_Flows/Flows.py community (archive-listed) ran fingerprinted MIT (permissive) · 3310760b2fbf8661 · report
PlanarFlow geetakrishna1994/planarflows/planarflow.py community (archive-listed) ran no licence file found · pointer only · 247a8b5a39027f85 · report
PlanarFlow e-hulten/planar-flows/planar_flow.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · d8ecc7e58b4a76a0 · report
PlanarFlowLogDetJacobian ex4sperans/variational-inference-with-normalizing-flows/flow.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 69710277b0cbdc50 · report
PlanarTransform e-hulten/planar-flows/planar_flow.py community (archive-listed) ran · metamorphic tier: invariant no licence file found · pointer only · a4c59b44755262a5 · report
RealNVP_2D xqding/RealNVP/script/RealNVP_2D.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · b1e10a13adaaf25d · report
safe_log ex4sperans/variational-inference-with-normalizing-flows/flow.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · 6298a45a525420e8 · report
BaseNF clementchadebec/benchmark_VAE/src/pythae/models/normalizing_flows/base/base_nf_model.py community (archive-listed) unverified Apache-2.0 (permissive) · 91d3bbbb5efe3929 · report
NF Daniil-Selikhanovych/h-vae/gaussians/api/models.py community (archive-listed) unverified no licence file found · pointer only · 599becb3ed1056d1 · report
PlanarFlow PhilippeNguyen/keras_normalizing_flows/keras_normalizing_flows/layers/flows.py community (archive-listed) unverified no licence file found · pointer only · 1c0a878b12170abd · report
allreduce_mean Aditya-kiran/ResNet-VAE/code/tf_utils.py community (archive-listed) unverified MIT (permissive) · 8844787656fd1163 · report
allreduce_sum Aditya-kiran/ResNet-VAE/code/tf_utils.py community (archive-listed) unverified MIT (permissive) · 4611d711d59e5060 · report
cross_entropy_loss Aditya-kiran/ResNet-VAE/code/losses.py community (archive-listed) unverified MIT (permissive) · 70fc47d8442de3fe · report
default_initial_value Aditya-kiran/ResNet-VAE/code/tf_utils.py community (archive-listed) unverified MIT (permissive) · 055d00949350c46f · report
density_1 Aditya-kiran/ResNet-VAE/code/distributions.py community (archive-listed) unverified MIT (permissive) · 1c2bc7d2b78d8ef5 · report
density_2 Aditya-kiran/ResNet-VAE/code/distributions.py community (archive-listed) unverified MIT (permissive) · 195503ae7c35727b · report
detJacHeatmap Aditya-kiran/ResNet-VAE/code/utils.py community (archive-listed) unverified MIT (permissive) · c5ec6731983d1241 · report
gaussian_log_pdf Aditya-kiran/ResNet-VAE/code/losses.py community (archive-listed) unverified MIT (permissive) · 49f6fcb18f1f47cf · report
kl_divergence_gaussian Aditya-kiran/ResNet-VAE/code/losses.py community (archive-listed) unverified MIT (permissive) · a89c520b4b008749 · report
logBetaBinomial Aditya-kiran/ResNet-VAE/code/skewed_posterior_average_experiment.py community (archive-listed) unverified MIT (permissive) · 93056f98b395f678 · report
logModel Aditya-kiran/ResNet-VAE/code/skewed_posterior_average_experiment.py community (archive-listed) unverified MIT (permissive) · fa0a61ac8091c5ee · report
min_max_norm YeongHyeon/Normalizing-Flow-TF2/source/utils.py community (archive-listed) unverified MIT (permissive) · bbf4ede63ece446f · report
sample_z_np Aditya-kiran/ResNet-VAE/code/flow_vae_mnist.py community (archive-listed) unverified MIT (permissive) · 9271e9decbb44f75 · report
sample_z_tf Aditya-kiran/ResNet-VAE/code/flow_vae_mnist.py community (archive-listed) unverified MIT (permissive) · 3cfa1a107ce9c4c8 · report
sorted_list YeongHyeon/Normalizing-Flow-TF2/source/utils.py community (archive-listed) unverified MIT (permissive) · b18b30a58f75b472 · report

Tasks

Variational Inference

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: Normalizing Flows

Normalizing Flows

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections