{"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/generative-modeling-of-molecular-dynamics","title":"Generative Modeling of Molecular Dynamics Trajectories","arxiv_id":"2409.17808","date":"2024-09-26","proceeding":null,"authors":["Bowen Jing","Hannes Stärk","Tommi Jaakkola","Bonnie Berger"],"abstract":"Molecular dynamics (MD) is a powerful technique for studying microscopic phenomena, but its computational cost has driven significant interest in the development of deep learning-based surrogate models. We introduce generative modeling of molecular trajectories as a paradigm for learning flexible multi-task surrogate models of MD from data. By conditioning on appropriately chosen frames of the trajectory, we show such generative models can be adapted to diverse tasks such as forward simulation, transition path sampling, and trajectory upsampling. By alternatively conditioning on part of the molecular system and inpainting the rest, we also demonstrate the first steps towards dynamics-conditioned molecular design. We validate the full set of these capabilities on tetrapeptide simulations and show that our model can produce reasonable ensembles of protein monomers. Altogether, our work illustrates how generative modeling can unlock value from MD data towards diverse downstream tasks that are not straightforward to address with existing methods or even MD itself. Code is available at https://github.com/bjing2016/mdgen.","url_abs":"https://arxiv.org/abs/2409.17808v1","url_pdf":"https://arxiv.org/pdf/2409.17808v1.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":"generative-modeling-of-molecular-dynamics","repo_url":"https://github.com/bjing2016/mdgen","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":"pixel-prediction","method_name":"Inpainting"},{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.17808","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.17808"}},"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":"deterministic:regex_extraction","url":"https://github.com/bjing2016/mdgen","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":5,"ran_fixture":2,"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"official":{"samples":12,"ran":8,"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":"595e8ad97db860f3","entry":"gelu","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/layers.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/layers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"595e8ad97db860f3"}},{"code_sha256_prefix":"e5947aba1d10885f","entry":"get_1d_sincos_pos_embed_from_grid","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/latent_model.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/latent_model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e5947aba1d10885f"}},{"code_sha256_prefix":"c92524717db7e31e","entry":"grad_checkpoint","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/latent_model.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/latent_model.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":"c92524717db7e31e"}},{"code_sha256_prefix":"03310bba324ae4fb","entry":"modulate","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/layers.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/layers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"03310bba324ae4fb"}},{"code_sha256_prefix":"5dd28d20c60f0c19","entry":"mul_sum","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/standalone_hyena.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/standalone_hyena.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5dd28d20c60f0c19"}},{"code_sha256_prefix":"d78088e9586b4244","entry":"softmax_no_cast","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/primitives.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/primitives.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d78088e9586b4244"}},{"code_sha256_prefix":"0aca52ff344beec0","entry":"utils_softmax","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/mha.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/mha.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0aca52ff344beec0"}},{"code_sha256_prefix":"ee6aaaeaaec268cb","entry":"with_incremental_state","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/mha.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/mha.py","link_basis":"plan_row","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":"ee6aaaeaaec268cb"}},{"code_sha256_prefix":"2579bddff649c90c","entry":"atom14_to_atom37","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/geometry.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/geometry.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":"2579bddff649c90c"}},{"code_sha256_prefix":"cdfa7dbacf77b7ff","entry":"atom37_to_atom14","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/geometry.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/geometry.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":"cdfa7dbacf77b7ff"}},{"code_sha256_prefix":"7193ce2905c07695","entry":"fftconv","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/model/standalone_hyena.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/model/standalone_hyena.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":"7193ce2905c07695"}},{"code_sha256_prefix":"ba42bcc0464044e7","entry":"get_logger","repo":"bjing2016/mdgen","repo_kind":"official","path":"mdgen/logger.py","file_url":"https://github.com/bjing2016/mdgen/blob/HEAD/mdgen/logger.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":"ba42bcc0464044e7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}