{"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/flexible-tails-for-normalizing-flows","title":"Flexible Tails for Normalizing Flows","arxiv_id":"2406.16971","date":"2024-06-22","proceeding":null,"authors":["Tennessee Hickling","Dennis Prangle"],"abstract":"Normalizing flows are a flexible class of probability distributions, expressed as transformations of a simple base distribution. A limitation of standard normalizing flows is representing distributions with heavy tails, which arise in applications to both density estimation and variational inference. A popular current solution to this problem is to use a heavy tailed base distribution. Examples include the tail adaptive flow (TAF) methods of Laszkiewicz et al (2022). We argue this can lead to poor performance due to the difficulty of optimising neural networks, such as normalizing flows, under heavy tailed input. This problem is demonstrated in our paper. We propose an alternative: use a Gaussian base distribution and a final transformation layer which can produce heavy tails. We call this approach tail transform flow (TTF). Experimental results show this approach outperforms current methods, especially when the target distribution has large dimension or tail weight.","url_abs":"https://arxiv.org/abs/2406.16971v1","url_pdf":"https://arxiv.org/pdf/2406.16971v1.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":"flexible-tails-for-normalizing-flows","repo_url":"https://github.com/tennessee-wallaceh/tailnflows","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"density-estimation","task_name":"Density Estimation"},{"task_slug":"variational-inference","task_name":"Variational Inference"}],"methods":[{"method_slug":"base","method_name":"BASE"},{"method_slug":"normalizing-flows","method_name":"Normalizing Flows"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.16971","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.16971"}},"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/tennessee-wallaceh/tailnflows","reach":{"status":"ok"}}],"summary":{"ran":15,"ran_fixture":2,"unverified":4},"by_repo_kind":{"official":{"samples":21,"ran":17,"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":21,"samples":[{"code_sha256_prefix":"9f3ed947e30ea310","entry":"add_raw_data","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/utils.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9f3ed947e30ea310"}},{"code_sha256_prefix":"f2acda2cab1fbe36","entry":"bootstrap_metric","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/metrics/metrics.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/metrics/metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f2acda2cab1fbe36"}},{"code_sha256_prefix":"632e9325d691b8a6","entry":"configure_nn","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/extreme_transformations.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/extreme_transformations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"632e9325d691b8a6"}},{"code_sha256_prefix":"f5c1bb93dab5fa54","entry":"elbo","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/metrics/metrics.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/metrics/metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f5c1bb93dab5fa54"}},{"code_sha256_prefix":"32486c34f12aa6f5","entry":"ess","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/metrics/metrics.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/metrics/metrics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"32486c34f12aa6f5"}},{"code_sha256_prefix":"d85f2e7e9f12f89d","entry":"estimate_marginal_dfs","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/preprocessing.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/preprocessing.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d85f2e7e9f12f89d"}},{"code_sha256_prefix":"a2fce0be2b698239","entry":"gpdfitnew","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/metrics/psis.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/metrics/psis.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a2fce0be2b698239"}},{"code_sha256_prefix":"327eaa8d00ef0e82","entry":"inv_sftplus","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/utils.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"327eaa8d00ef0e82"}},{"code_sha256_prefix":"d07d5892b884a818","entry":"inv_sigmoid","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/utils.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/utils.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d07d5892b884a818"}},{"code_sha256_prefix":"9325306c486df393","entry":"inverse_and_lad","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/preprocessing.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/preprocessing.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9325306c486df393"}},{"code_sha256_prefix":"f4efb7fdb06eb48f","entry":"load_experiment_output_data","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/utils.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f4efb7fdb06eb48f"}},{"code_sha256_prefix":"b55e98beda88ff83","entry":"load_raw_data","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/utils.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b55e98beda88ff83"}},{"code_sha256_prefix":"4772a7dcca6147c5","entry":"neg_extreme_transform_and_lad","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/extreme_transformations.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/extreme_transformations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4772a7dcca6147c5"}},{"code_sha256_prefix":"a0b1ac934992bcf7","entry":"psislw","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/metrics/psis.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/metrics/psis.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a0b1ac934992bcf7"}},{"code_sha256_prefix":"4781c652e32fb68d","entry":"smooth","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/plot_utils.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/plot_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4781c652e32fb68d"}},{"code_sha256_prefix":"0fdd3b5bad735bad","entry":"univariate_forward_rqs","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/simple_spline.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/simple_spline.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0fdd3b5bad735bad"}},{"code_sha256_prefix":"860cadf4eaf3ad06","entry":"univariate_inverse_rqs","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/simple_spline.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/simple_spline.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"860cadf4eaf3ad06"}},{"code_sha256_prefix":"64ec24fd0a95ab96","entry":"generalized_normal_log_pdf","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/base_distribution.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/base_distribution.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"64ec24fd0a95ab96"}},{"code_sha256_prefix":"e6bce8f11499ef79","entry":"plot_contour","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/plot_utils.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/plot_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e6bce8f11499ef79"}},{"code_sha256_prefix":"f934db9d3b93536d","entry":"psisloo","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/metrics/psis.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/metrics/psis.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f934db9d3b93536d"}},{"code_sha256_prefix":"c72271d8569c7965","entry":"unc_forward_rqs","repo":"tennessee-wallaceh/tailnflows","repo_kind":"official","path":"tailnflows/models/simple_spline.py","file_url":"https://github.com/tennessee-wallaceh/tailnflows/blob/HEAD/tailnflows/models/simple_spline.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c72271d8569c7965"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}