{"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/gradient-boosted-flows","title":"Gradient Boosted Normalizing Flows","arxiv_id":"2002.11896","date":"2020-02-27","proceeding":"NeurIPS 2020 12","authors":["Robert Giaquinto","Arindam Banerjee"],"abstract":"By chaining a sequence of differentiable invertible transformations, normalizing flows (NF) provide an expressive method of posterior approximation, exact density evaluation, and sampling. The trend in normalizing flow literature has been to devise deeper, more complex transformations to achieve greater flexibility. We propose an alternative: Gradient Boosted Normalizing Flows (GBNF) model a density by successively adding new NF components with gradient boosting. Under the boosting framework, each new NF component optimizes a sample weighted likelihood objective, resulting in new components that are fit to the residuals of the previously trained components. The GBNF formulation results in a mixture model structure, whose flexibility increases as more components are added. Moreover, GBNFs offer a wider, as opposed to strictly deeper, approach that improves existing NFs at the cost of additional training---not more complex transformations. We demonstrate the effectiveness of this technique for density estimation and, by coupling GBNF with a variational autoencoder, generative modeling of images. Our results show that GBNFs outperform their non-boosted analog, and, in some cases, produce better results with smaller, simpler flows.","url_abs":"https://arxiv.org/abs/2002.11896v4","url_pdf":"https://arxiv.org/pdf/2002.11896v4.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":"gradient-boosted-flows","repo_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"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"},{"method_slug":"stochastic-gradient-variational-bayes","method_name":"Stochastic Gradient Variational Bayes"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2002.11896","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2002.11896"}},"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/robert-giaquinto/gradient-boosted-normalizing-flows","reach":null}],"summary":{"ran":16,"ran_draft_wrong":3,"unverified":11},"by_repo_kind":{"official":{"samples":30,"ran":19,"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":"7315468727393ef4","entry":"ActNorm1d","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7315468727393ef4"}},{"code_sha256_prefix":"5dfed0f3161fd4b1","entry":"ActNorm2d","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5dfed0f3161fd4b1"}},{"code_sha256_prefix":"84ebb2409e0a1cc7","entry":"BatchNorm","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"84ebb2409e0a1cc7"}},{"code_sha256_prefix":"2d7d6fd92e4989a5","entry":"Conv2d","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2d7d6fd92e4989a5"}},{"code_sha256_prefix":"eeed4e16d893cea5","entry":"Conv2dZeros","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eeed4e16d893cea5"}},{"code_sha256_prefix":"5c8a917425f0def4","entry":"InvertibleConv1x1","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5c8a917425f0def4"}},{"code_sha256_prefix":"11e0e1eaee63a699","entry":"LinearZeros","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"11e0e1eaee63a699"}},{"code_sha256_prefix":"ec45833a8bb10b3c","entry":"Permute1d","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ec45833a8bb10b3c"}},{"code_sha256_prefix":"3884e401a1dea604","entry":"Permute2d","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3884e401a1dea604"}},{"code_sha256_prefix":"b27b3f12e9fea1e8","entry":"ReLUNet","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b27b3f12e9fea1e8"}},{"code_sha256_prefix":"55233dad2a63c90e","entry":"RealNVP","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"55233dad2a63c90e"}},{"code_sha256_prefix":"0a7417c78d382ffd","entry":"ResidualBlock","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0a7417c78d382ffd"}},{"code_sha256_prefix":"28dd15935b6ad2c2","entry":"ResidualNet","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"28dd15935b6ad2c2"}},{"code_sha256_prefix":"b46eb8d0c2c169c9","entry":"Split2d","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b46eb8d0c2c169c9"}},{"code_sha256_prefix":"825e0d0a10f8281b","entry":"SqueezeLayer","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"825e0d0a10f8281b"}},{"code_sha256_prefix":"45e491a0b611d3dc","entry":"TanhNet","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"45e491a0b611d3dc"}},{"code_sha256_prefix":"de88c452ca85eb2d","entry":"log_normal_diag","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"de88c452ca85eb2d"}},{"code_sha256_prefix":"6ee1f71f50ee4b26","entry":"log_normal_standard","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6ee1f71f50ee4b26"}},{"code_sha256_prefix":"45f3824dcc7faec1","entry":"split_feature","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.py","link_basis":"first_harvest_node","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":"45f3824dcc7faec1"}},{"code_sha256_prefix":"639270ba7c0b6ccd","entry":"BoostedFlow","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"639270ba7c0b6ccd"}},{"code_sha256_prefix":"85e265af1f8b4721","entry":"ConvNet","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"85e265af1f8b4721"}},{"code_sha256_prefix":"e898fc9ab950c09b","entry":"FlowNet","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"e898fc9ab950c09b"}},{"code_sha256_prefix":"cfe3b31cd1ff04b1","entry":"FlowStep","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"cfe3b31cd1ff04b1"}},{"code_sha256_prefix":"3b26d29c4a8c9004","entry":"GenerativeFlow","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"3b26d29c4a8c9004"}},{"code_sha256_prefix":"832c9c612efadf21","entry":"Glow","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"832c9c612efadf21"}},{"code_sha256_prefix":"d6de36917b79ca67","entry":"PermuteNd","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"d6de36917b79ca67"}},{"code_sha256_prefix":"bd9b9fc7030ba799","entry":"RealNVPFlow","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"bd9b9fc7030ba799"}},{"code_sha256_prefix":"0e3e13be358d4e88","entry":"_ActNorm","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"0e3e13be358d4e88"}},{"code_sha256_prefix":"1ec304d03cf1726b","entry":"_Dequantization","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"models/boosted_flow.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/models/boosted_flow.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":"1ec304d03cf1726b"}},{"code_sha256_prefix":"ebb3df3128ed7f4a","entry":"epoch_reporting","repo":"robert-giaquinto/gradient-boosted-normalizing-flows","repo_kind":"official","path":"density_experiment.py","file_url":"https://github.com/robert-giaquinto/gradient-boosted-normalizing-flows/blob/HEAD/density_experiment.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":"ebb3df3128ed7f4a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}