{"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/arxiv-2603-18076","title":"Generative Replica-Exchange: A Flow-based Framework for Accelerating Replica Exchange Simulations","arxiv_id":"2603.18076","date":"2026-03-18","proceeding":null,"authors":["Shengjie Huang","Sijie Yang","Jianqiao Yi","Rui Zheng","Haocong Liao","Muzammal Hussain","Yaoquan Tu","Xiaoyun Lu","Yang Zhou"],"abstract":"Replica exchange (REX) is one of the most widely used enhanced sampling methodologies, yet its efficiency is limited by the requirement for a large number of intermediate temperature replicas. Here we present Generative Replica Exchange (GREX), which integrates deep generative models into the REX framework to eliminate this temperature ladder. Drawing inspiration from reservoir replica exchange (res-REX), GREX utilizes trained normalizing flows to generate high-temperature configurations on demand and map them directly to the target distribution using the potential energy as a constraint, without requiring target-temperature training data. This approach reduces production simulations to a single replica at the target temperature while maintaining thermodynamic rigor through Metropolis exchange acceptance. We validate GREX on three benchmark systems of increasing complexity, highlighting its superior efficiency and practical applicability for molecular simulations.","url_abs":"https://arxiv.org/abs/2603.18076","url_pdf":"https://arxiv.org/pdf/2603.18076","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2603.18076","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.18076"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Hhuangsj/GREX","reach":null}],"summary":{"unverified":16},"by_repo_kind":{"found_in_text":{"samples":16,"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":16,"samples":[{"code_sha256_prefix":"401b002b12d74999","entry":"env_flag","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/BPTI-CF-bbp.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/BPTI-CF-bbp.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":"401b002b12d74999"}},{"code_sha256_prefix":"367356bc4bc8ff27","entry":"get_protein_atoms","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/GREX.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/GREX.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":"367356bc4bc8ff27"}},{"code_sha256_prefix":"59c8405e833e42dd","entry":"infer_cuda_device_index","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/GREX.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/GREX.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":"59c8405e833e42dd"}},{"code_sha256_prefix":"d9228bbe6ae95d8a","entry":"init_distributed","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/BPTI-CF-bbp.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/BPTI-CF-bbp.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":"d9228bbe6ae95d8a"}},{"code_sha256_prefix":"064944ce6ec6787c","entry":"init_distributed","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/bpti-GF-bbp.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/bpti-GF-bbp.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":"064944ce6ec6787c"}},{"code_sha256_prefix":"746c9083d9aa5182","entry":"local_batch_size","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/bpti-GF-bbp.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/bpti-GF-bbp.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":"746c9083d9aa5182"}},{"code_sha256_prefix":"2c593356d3a54eaa","entry":"log_weights_from_samples","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"Ala2/bgflow/bg.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/Ala2/bgflow/bg.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":"2c593356d3a54eaa"}},{"code_sha256_prefix":"7de97fed47ccf4b0","entry":"parse_devices","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/optimize_bpti_xtc.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/optimize_bpti_xtc.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":"7de97fed47ccf4b0"}},{"code_sha256_prefix":"f12f4dabbeb242eb","entry":"register_vcs_handler","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"Ala2/bgflow/_version.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/Ala2/bgflow/_version.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":"f12f4dabbeb242eb"}},{"code_sha256_prefix":"86d4ff45d6295e29","entry":"run_command","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"Ala2/bgflow/_version.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/Ala2/bgflow/_version.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":"86d4ff45d6295e29"}},{"code_sha256_prefix":"d9f285a6ce0bb0a7","entry":"sample_batches","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/sample_bpti_to_xtc.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/sample_bpti_to_xtc.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":"d9f285a6ce0bb0a7"}},{"code_sha256_prefix":"76f247568cc4a65d","entry":"select_rmsd_atoms","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/optimize_bpti_xtc.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/optimize_bpti_xtc.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":"76f247568cc4a65d"}},{"code_sha256_prefix":"e878dce5e9a29ecb","entry":"shard_tensor","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"BPTI/BPTI-CF-bbp.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/BPTI/BPTI-CF-bbp.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":"e878dce5e9a29ecb"}},{"code_sha256_prefix":"655cb4ab42eed99f","entry":"unnormalized_kl_div","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"Ala2/bgflow/bg.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/Ala2/bgflow/bg.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":"655cb4ab42eed99f"}},{"code_sha256_prefix":"4ba219ec7a1d0457","entry":"unormalized_nll","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"Ala2/bgflow/bg.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/Ala2/bgflow/bg.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":"4ba219ec7a1d0457"}},{"code_sha256_prefix":"b9a1535d27f2a9fb","entry":"versions_from_parentdir","repo":"Hhuangsj/GREX","repo_kind":"found_in_text","path":"Ala2/bgflow/_version.py","file_url":"https://github.com/Hhuangsj/GREX/blob/HEAD/Ala2/bgflow/_version.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":"b9a1535d27f2a9fb"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,795 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6795},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}