{"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/density-estimation-an-inflation-deflation","title":"Density estimation on low-dimensional manifolds: an inflation-deflation approach","arxiv_id":"2105.12152","date":"2021-05-25","proceeding":null,"authors":["Christian Horvat","Jean-Pascal Pfister"],"abstract":"Normalizing Flows (NFs) are universal density estimators based on Neural Networks. However, this universality is limited: the density's support needs to be diffeomorphic to a Euclidean space. In this paper, we propose a novel method to overcome this limitation without sacrificing universality. The proposed method inflates the data manifold by adding noise in the normal space, trains an NF on this inflated manifold, and, finally, deflates the learned density. Our main result provides sufficient conditions on the manifold and the specific choice of noise under which the corresponding estimator is exact. Our method has the same computational complexity as NFs and does not require computing an inverse flow. We also show that, if the embedding dimension is much larger than the manifold dimension, noise in the normal space can be well approximated by Gaussian noise. This allows using our method for approximating arbitrary densities on unknown manifolds provided that the manifold dimension is known.","url_abs":"https://arxiv.org/abs/2105.12152v3","url_pdf":"https://arxiv.org/pdf/2105.12152v3.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":"density-estimation-an-inflation-deflation","repo_url":"https://github.com/chrvt/inflation-deflation","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"density-estimation-an-inflation-deflation","repo_url":"https://github.com/chrvt/denoising-normalizing-flow","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"density-estimation","task_name":"Density Estimation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2105.12152","atlas_url":"https://app.syntology.ai/?focus=2105.12152","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2105.12152"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/chrvt/denoising-normalizing-flow","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/chrvt/inflation-deflation","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":9},"by_repo_kind":{"official":{"samples":9,"ran":0,"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":1,"samples":[{"code_sha256_prefix":"69ee46a945fa4d1a","entry":"integrand_circle","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"69ee46a945fa4d1a"}},{"code_sha256_prefix":"6db1f83e0b28af6e","entry":"calculate_KS_in_2d","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"main_cluster.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/main_cluster.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":"6db1f83e0b28af6e"}},{"code_sha256_prefix":"604cc2e2e72a4e93","entry":"calculate_KS_stats","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"main_cluster.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/main_cluster.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":"604cc2e2e72a4e93"}},{"code_sha256_prefix":"9d936f1574eac7eb","entry":"calculate_KS_stats","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"main_fom.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/main_fom.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":"9d936f1574eac7eb"}},{"code_sha256_prefix":"84dea89d5395e837","entry":"calculate_nearest_neighbor","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"generate_sigma_bounds.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/generate_sigma_bounds.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":"84dea89d5395e837"}},{"code_sha256_prefix":"1d336f923df67adf","entry":"compute_kl_pq_loss","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"main_cluster.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/main_cluster.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":"1d336f923df67adf"}},{"code_sha256_prefix":"78143f7e32a87acb","entry":"create_filename","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"utils.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/utils.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":"78143f7e32a87acb"}},{"code_sha256_prefix":"59bd8cc3027d2b45","entry":"load_checkpoint","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"utils.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/utils.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":"59bd8cc3027d2b45"}},{"code_sha256_prefix":"d4ec1b364105cab3","entry":"nat_to_bit_per_dim","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"utils.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/utils.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":"d4ec1b364105cab3"}},{"code_sha256_prefix":"a256b1f457aa6c31","entry":"tile","repo":"chrvt/inflation-deflation","repo_kind":"official","path":"models/made.py","file_url":"https://github.com/chrvt/inflation-deflation/blob/HEAD/models/made.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":"a256b1f457aa6c31"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}