{"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/lossless-scalable-implicit-likelihood","title":"Lossless, Scalable Implicit Likelihood Inference for Cosmological Fields","arxiv_id":"2107.07405","date":"2021-07-15","proceeding":null,"authors":["T. Lucas Makinen","Tom Charnock","Justin Alsing","Benjamin D. Wandelt"],"abstract":"We present a comparison of simulation-based inference to full, field-based analytical inference in cosmological data analysis. To do so, we explore parameter inference for two cases where the information content is calculable analytically: Gaussian random fields whose covariance depends on parameters through the power spectrum; and correlated lognormal fields with cosmological power spectra. We compare two inference techniques: i) explicit field-level inference using the known likelihood and ii) implicit likelihood inference with maximally informative summary statistics compressed via Information Maximising Neural Networks (IMNNs). We find that a) summaries obtained from convolutional neural network compression do not lose information and therefore saturate the known field information content, both for the Gaussian covariance and the lognormal cases, b) simulation-based inference using these maximally informative nonlinear summaries recovers nearly losslessly the exact posteriors of field-level inference, bypassing the need to evaluate expensive likelihoods or invert covariance matrices, and c) even for this simple example, implicit, simulation-based likelihood incurs a much smaller computational cost than inference with an explicit likelihood. This work uses a new IMNNs implementation in $\\texttt{Jax}$ that can take advantage of fully-differentiable simulation and inference pipeline. We also demonstrate that a single retraining of the IMNN summaries effectively achieves the theoretically maximal information, enhancing the robustness to the choice of fiducial model where the IMNN is trained.","url_abs":"https://arxiv.org/abs/2107.07405v2","url_pdf":"https://arxiv.org/pdf/2107.07405v2.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":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"lossless-scalable-implicit-likelihood","repo_url":"https://github.com/tlmakinen/kosmo-kompress","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"lossless-scalable-implicit-likelihood","repo_url":"https://github.com/tlmakinen/cosmicgraphs","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"lossless-scalable-implicit-likelihood","repo_url":"https://github.com/tlmakinen/powerbox-jax","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2107.07405","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2107.07405"}},"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/tlmakinen/cosmicgraphs","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tlmakinen/kosmo-kompress","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tlmakinen/powerbox-jax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":2,"ran":0,"repositories":1},"listed":{"samples":6,"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":0,"samples":[{"code_sha256_prefix":"d830c550e9c9d82c","entry":"InceptBlock","repo":"tlmakinen/kosmo-kompress","repo_kind":"official","path":"fields/3d-conv-stax.py","file_url":"https://github.com/tlmakinen/kosmo-kompress/blob/HEAD/fields/3d-conv-stax.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d830c550e9c9d82c"}},{"code_sha256_prefix":"bb0079e95e922d84","entry":"InceptBlock2","repo":"tlmakinen/kosmo-kompress","repo_kind":"official","path":"fields/3d-conv-stax.py","file_url":"https://github.com/tlmakinen/kosmo-kompress/blob/HEAD/fields/3d-conv-stax.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bb0079e95e922d84"}},{"code_sha256_prefix":"a6a84664aa9a3e0f","entry":"angular_average","repo":"tlmakinen/powerbox-jax","repo_kind":"listed","path":"powerbox_jax/tools.py","file_url":"https://github.com/tlmakinen/powerbox-jax/blob/HEAD/powerbox_jax/tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a6a84664aa9a3e0f"}},{"code_sha256_prefix":"82666e7bb4e4b807","entry":"angular_average_nd","repo":"tlmakinen/powerbox-jax","repo_kind":"listed","path":"powerbox_jax/tools.py","file_url":"https://github.com/tlmakinen/powerbox-jax/blob/HEAD/powerbox_jax/tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"82666e7bb4e4b807"}},{"code_sha256_prefix":"5f4891cdc0e79720","entry":"fft","repo":"tlmakinen/powerbox-jax","repo_kind":"listed","path":"powerbox_jax/dft.py","file_url":"https://github.com/tlmakinen/powerbox-jax/blob/HEAD/powerbox_jax/dft.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5f4891cdc0e79720"}},{"code_sha256_prefix":"f17b2879eb430740","entry":"fftshift","repo":"tlmakinen/powerbox-jax","repo_kind":"listed","path":"powerbox_jax/dft.py","file_url":"https://github.com/tlmakinen/powerbox-jax/blob/HEAD/powerbox_jax/dft.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f17b2879eb430740"}},{"code_sha256_prefix":"dd412f30d0111417","entry":"get_power","repo":"tlmakinen/powerbox-jax","repo_kind":"listed","path":"powerbox_jax/tools.py","file_url":"https://github.com/tlmakinen/powerbox-jax/blob/HEAD/powerbox_jax/tools.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dd412f30d0111417"}},{"code_sha256_prefix":"601dc9092738ee00","entry":"ifft","repo":"tlmakinen/powerbox-jax","repo_kind":"listed","path":"powerbox_jax/dft.py","file_url":"https://github.com/tlmakinen/powerbox-jax/blob/HEAD/powerbox_jax/dft.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"601dc9092738ee00"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}