{"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/sensitivity-analysis-of-simulation-based","title":"Sensitivity Analysis of Simulation-Based Inference for Galaxy Clustering","arxiv_id":"2309.15071","date":"2023-09-26","proceeding":null,"authors":["Chirag Modi","Shivam Pandey","Matthew Ho","ChangHoon Hahn","Bruno R'egaldo-Saint Blancard","Benjamin Wandelt"],"abstract":"Simulation-based inference (SBI) is a promising approach to leverage high fidelity cosmological simulations and extract information from the non-Gaussian, non-linear scales that cannot be modeled analytically. However, scaling SBI to the next generation of cosmological surveys faces the computational challenge of requiring a large number of accurate simulations over a wide range of cosmologies, while simultaneously encompassing large cosmological volumes at high resolution. This challenge can potentially be mitigated by balancing the accuracy and computational cost for different components of the the forward model while ensuring robust inference. To guide our steps in this, we perform a sensitivity analysis of SBI for galaxy clustering on various components of the cosmological simulations: gravity model, halo-finder and the galaxy-halo distribution models (halo-occupation distribution, HOD). We infer the $\\sigma_8$ and $\\Omega_m$ using galaxy power spectrum multipoles and the bispectrum monopole assuming a galaxy number density expected from the luminous red galaxies observed using the Dark Energy Spectroscopy Instrument (DESI). We find that SBI is insensitive to changing gravity model between $N$-body simulations and particle mesh (PM) simulations. However, changing the halo-finder from friends-of-friends (FoF) to Rockstar can lead to biased estimate of $\\sigma_8$ based on the bispectrum. For galaxy models, training SBI on more complex HOD leads to consistent inference for less complex HOD models, but SBI trained on simpler HOD models fails when applied to analyze data from a more complex HOD model. Based on our results, we discuss the outlook on cosmological simulations with a focus on applying SBI approaches to future galaxy surveys.","url_abs":"https://arxiv.org/abs/2309.15071v1","url_pdf":"https://arxiv.org/pdf/2309.15071v1.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":"sensitivity-analysis-of-simulation-based","repo_url":"https://github.com/modichirag/contrastive_cosmology","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2309.15071","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2309.15071"}},"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/modichirag/contrastive_cosmology","reach":{"status":"ok"}}],"summary":{"ran":14,"unverified":3},"by_repo_kind":{"official":{"samples":17,"ran":14,"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":"97aa4c8dc4c4f62d","entry":"find_block","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/readsnap.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/readsnap.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":"97aa4c8dc4c4f62d"}},{"code_sha256_prefix":"f604beae18769cdb","entry":"fname_format","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/readgadget.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/readgadget.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":"f604beae18769cdb"}},{"code_sha256_prefix":"9bb61e121d58608b","entry":"paint","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/old_tools.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/old_tools.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":"9bb61e121d58608b"}},{"code_sha256_prefix":"8ee136bbacd8fa33","entry":"paintcic","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/old_tools.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/old_tools.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":"8ee136bbacd8fa33"}},{"code_sha256_prefix":"38f26f397f49ec66","entry":"paintnn","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/old_tools.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/old_tools.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":"38f26f397f49ec66"}},{"code_sha256_prefix":"7b5b7704ab909fcb","entry":"plot_coverage","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/sbiplots.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/sbiplots.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":"7b5b7704ab909fcb"}},{"code_sha256_prefix":"7e69e8e0a164a50c","entry":"plot_ranks_histogram","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/sbiplots.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/sbiplots.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":"7e69e8e0a164a50c"}},{"code_sha256_prefix":"f9212462d8d26bec","entry":"read_block","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/readgadget.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/readgadget.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":"f9212462d8d26bec"}},{"code_sha256_prefix":"7a560d7241ea1322","entry":"read_field","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/readgadget.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/readgadget.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":"7a560d7241ea1322"}},{"code_sha256_prefix":"0a1cebf1e510734a","entry":"read_gadget_header","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/readsnap.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/readsnap.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":"0a1cebf1e510734a"}},{"code_sha256_prefix":"761603158e48e81d","entry":"sample_HOD","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/hodtools.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/hodtools.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":"761603158e48e81d"}},{"code_sha256_prefix":"3142c0f2374e97fa","entry":"sample_conditional_HOD","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/hodtools.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/hodtools.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":"3142c0f2374e97fa"}},{"code_sha256_prefix":"a9cce10aa3235af4","entry":"setup_hod","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/hodtools.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/hodtools.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":"a9cce10aa3235af4"}},{"code_sha256_prefix":"da849c0286f74371","entry":"thetahod_literature","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/galaxies.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/galaxies.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":"da849c0286f74371"}},{"code_sha256_prefix":"cd6253c8ab04a31e","entry":"read_block","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/readsnap.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/readsnap.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":"cd6253c8ab04a31e"}},{"code_sha256_prefix":"784aced1e2f67a73","entry":"split_index","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/sbitools.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/sbitools.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":"784aced1e2f67a73"}},{"code_sha256_prefix":"f7dde67927bd853f","entry":"test_train_split","repo":"modichirag/contrastive_cosmology","repo_kind":"official","path":"src/sbitools.py","file_url":"https://github.com/modichirag/contrastive_cosmology/blob/HEAD/src/sbitools.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":"f7dde67927bd853f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}