{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/variational-inference-with-continuously","title":"Variational Inference with Continuously-Indexed Normalizing Flows","arxiv_id":"2007.05426","date":"2020-07-10","proceeding":null,"authors":["Anthony Caterini","Rob Cornish","Dino Sejdinovic","Arnaud Doucet"],"abstract":"Continuously-indexed flows (CIFs) have recently achieved improvements over baseline normalizing flows on a variety of density estimation tasks. CIFs do not possess a closed-form marginal density, and so, unlike standard flows, cannot be plugged in directly to a variational inference (VI) scheme in order to produce a more expressive family of approximate posteriors. However, we show here how CIFs can be used as part of an auxiliary VI scheme to formulate and train expressive posterior approximations in a natural way. We exploit the conditional independence structure of multi-layer CIFs to build the required auxiliary inference models, which we show empirically yield low-variance estimators of the model evidence. We then demonstrate the advantages of CIFs over baseline flows in VI problems when the posterior distribution of interest possesses a complicated topology, obtaining improved results in both the Bayesian inference and surrogate maximum likelihood settings.","url_abs":"https://arxiv.org/abs/2007.05426v2","url_pdf":"https://arxiv.org/pdf/2007.05426v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"variational-inference-with-continuously","repo_url":"https://github.com/anthonycaterini/cif-vi","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"bayesian-inference","task_name":"Bayesian Inference"},{"task_slug":"density-estimation","task_name":"Density Estimation"},{"task_slug":"variational-inference","task_name":"Variational Inference"}],"methods":[{"method_slug":"normalizing-flows","method_name":"Normalizing Flows"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2007.05426","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2007.05426"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/anthonycaterini/cif-vi","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":11},"by_repo_kind":{"official":{"samples":12,"ran":1,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"3508c00acbc73d66","entry":"get_mlp","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/models/components/networks.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/models/components/networks.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3508c00acbc73d66"}},{"code_sha256_prefix":"f07338c77c98e2a7","entry":"binarize","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/metrics.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f07338c77c98e2a7"}},{"code_sha256_prefix":"f68d3ca2ef56683e","entry":"get_bijection_density","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/models/factory.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/models/factory.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f68d3ca2ef56683e"}},{"code_sha256_prefix":"997f745784e135fb","entry":"get_density_recursive","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/models/factory.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/models/factory.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"997f745784e135fb"}},{"code_sha256_prefix":"51f878c58b289379","entry":"get_loader","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/datasets/loaders.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/datasets/loaders.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"51f878c58b289379"}},{"code_sha256_prefix":"2b5ed06aec1d27b3","entry":"get_loaders","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/datasets/loaders.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/datasets/loaders.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2b5ed06aec1d27b3"}},{"code_sha256_prefix":"7afc1ac28a44c62a","entry":"get_raw_image_tensors","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/datasets/image.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/datasets/image.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7afc1ac28a44c62a"}},{"code_sha256_prefix":"2e2b3a2ccfe1ccdc","entry":"get_resnet","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/models/components/networks.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/models/components/networks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e2b3a2ccfe1ccdc"}},{"code_sha256_prefix":"354173e07a726475","entry":"get_train_valid_image_datasets","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/datasets/image.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/datasets/image.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"354173e07a726475"}},{"code_sha256_prefix":"cd60bb09d5e5f288","entry":"get_vi_density","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/models/factory.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/models/factory.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cd60bb09d5e5f288"}},{"code_sha256_prefix":"8192d86ee3c8701f","entry":"image_tensors_to_supervised_dataset","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/datasets/image.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/datasets/image.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8192d86ee3c8701f"}},{"code_sha256_prefix":"6ec56da05c30193f","entry":"metrics","repo":"anthonycaterini/cif-vi","repo_kind":"official","path":"cif/metrics.py","file_url":"https://github.com/anthonycaterini/cif-vi/blob/HEAD/cif/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6ec56da05c30193f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}