{"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/teaching-dark-matter-simulations-to-speak-the","title":"Teaching dark matter simulations to speak the halo language","arxiv_id":"2409.11401","date":"2024-09-17","proceeding":null,"authors":["Shivam Pandey","Francois Lanusse","Chirag Modi","Benjamin D. Wandelt"],"abstract":"We develop a transformer-based conditional generative model for discrete point objects and their properties. We use it to build a model for populating cosmological simulations with gravitationally collapsed structures called dark matter halos. Specifically, we condition our model with dark matter distribution obtained from fast, approximate simulations to recover the correct three-dimensional positions and masses of individual halos. This leads to a first model that can recover the statistical properties of the halos at small scales to better than 3% level using an accelerated dark matter simulation. This trained model can then be applied to simulations with significantly larger volumes which would otherwise be computationally prohibitive with traditional simulations, and also provides a crucial missing link in making end-to-end differentiable cosmological simulations. The code, named GOTHAM (Generative cOnditional Transformer for Halo's Auto-regressive Modeling) is publicly available at \\url{https://github.com/shivampcosmo/GOTHAM}.","url_abs":"https://arxiv.org/abs/2409.11401v1","url_pdf":"https://arxiv.org/pdf/2409.11401v1.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":"teaching-dark-matter-simulations-to-speak-the","repo_url":"https://github.com/shivampcosmo/gotham","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2409.11401","atlas_url":"https://app.syntology.ai/?focus=2409.11401","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.11401"}},"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":"deterministic:regex_extraction","url":"https://github.com/shivampcosmo/GOTHAM","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/shivampcosmo/gotham","reach":{"status":"ok"}}],"summary":{"ran":6,"unverified":1},"by_repo_kind":{"official":{"samples":7,"ran":6,"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":7,"samples":[{"code_sha256_prefix":"35d8699d51065828","entry":"Attention","repo":"shivampcosmo/gotham","repo_kind":"official","path":"src/model_enc_dec.py","file_url":"https://github.com/shivampcosmo/gotham/blob/HEAD/src/model_enc_dec.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":"35d8699d51065828"}},{"code_sha256_prefix":"316d8bef327bd229","entry":"Block","repo":"shivampcosmo/gotham","repo_kind":"official","path":"src/model_enc_dec.py","file_url":"https://github.com/shivampcosmo/gotham/blob/HEAD/src/model_enc_dec.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"316d8bef327bd229"}},{"code_sha256_prefix":"8d4f6bb47833fc7b","entry":"CNN3D_stackout","repo":"shivampcosmo/gotham","repo_kind":"official","path":"src/model_enc_dec.py","file_url":"https://github.com/shivampcosmo/gotham/blob/HEAD/src/model_enc_dec.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8d4f6bb47833fc7b"}},{"code_sha256_prefix":"1868ac79f9f8230e","entry":"MLP","repo":"shivampcosmo/gotham","repo_kind":"official","path":"src/model_enc_dec.py","file_url":"https://github.com/shivampcosmo/gotham/blob/HEAD/src/model_enc_dec.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1868ac79f9f8230e"}},{"code_sha256_prefix":"c1efd712fe702788","entry":"ResidualBlock","repo":"shivampcosmo/gotham","repo_kind":"official","path":"src/model_enc_dec.py","file_url":"https://github.com/shivampcosmo/gotham/blob/HEAD/src/model_enc_dec.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c1efd712fe702788"}},{"code_sha256_prefix":"cc004bcfed0d8f4b","entry":"get_data_split","repo":"shivampcosmo/GOTHAM","repo_kind":"official","path":"src/arxiv/temp/train_ddp.py","file_url":"https://github.com/shivampcosmo/GOTHAM/blob/HEAD/src/arxiv/temp/train_ddp.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":"cc004bcfed0d8f4b"}},{"code_sha256_prefix":"de69577d30f55f71","entry":"HaloDecoderModel","repo":"shivampcosmo/gotham","repo_kind":"official","path":"src/model_enc_dec.py","file_url":"https://github.com/shivampcosmo/gotham/blob/HEAD/src/model_enc_dec.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":"de69577d30f55f71"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}