{"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/chemistry-inspired-diffusion-with-non","title":"Chemistry-Inspired Diffusion with Non-Differentiable Guidance","arxiv_id":"2410.06502","date":"2024-10-09","proceeding":null,"authors":["Yuchen Shen","Chenhao Zhang","Sijie Fu","Chenghui Zhou","Newell Washburn","Barnabás Póczos"],"abstract":"Recent advances in diffusion models have shown remarkable potential in the conditional generation of novel molecules. These models can be guided in two ways: (i) explicitly, through additional features representing the condition, or (ii) implicitly, using a property predictor. However, training property predictors or conditional diffusion models requires an abundance of labeled data and is inherently challenging in real-world applications. We propose a novel approach that attenuates the limitations of acquiring large labeled datasets by leveraging domain knowledge from quantum chemistry as a non-differentiable oracle to guide an unconditional diffusion model. Instead of relying on neural networks, the oracle provides accurate guidance in the form of estimated gradients, allowing the diffusion process to sample from a conditional distribution specified by quantum chemistry. We show that this results in more precise conditional generation of novel and stable molecular structures. Our experiments demonstrate that our method: (1) significantly reduces atomic forces, enhancing the validity of generated molecules when used for stability optimization; (2) is compatible with both explicit and implicit guidance in diffusion models, enabling joint optimization of molecular properties and stability; and (3) generalizes effectively to molecular optimization tasks beyond stability optimization.","url_abs":"https://arxiv.org/abs/2410.06502v1","url_pdf":"https://arxiv.org/pdf/2410.06502v1.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":[],"tasks":[{"task_slug":"atomic-forces","task_name":"Atomic Forces"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2410.06502","atlas_url":"https://app.syntology.ai/?focus=2410.06502","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.06502"}},"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/A-Chicharito-S/ChemGuide","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":5,"ran":2,"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":"4ed06d5114046b7e","entry":"compute_loss_and_nll","repo":"A-Chicharito-S/ChemGuide","repo_kind":"found_in_text","path":"qm9/losses.py","file_url":"https://github.com/A-Chicharito-S/ChemGuide/blob/HEAD/qm9/losses.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":"4ed06d5114046b7e"}},{"code_sha256_prefix":"90c529ca8e85d3db","entry":"sum_except_batch","repo":"A-Chicharito-S/ChemGuide","repo_kind":"found_in_text","path":"qm9/losses.py","file_url":"https://github.com/A-Chicharito-S/ChemGuide/blob/HEAD/qm9/losses.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":"90c529ca8e85d3db"}},{"code_sha256_prefix":"f576c0a0e0ae29c2","entry":"get_args_gen","repo":"A-Chicharito-S/ChemGuide","repo_kind":"found_in_text","path":"eval_conditional_qm9.py","file_url":"https://github.com/A-Chicharito-S/ChemGuide/blob/HEAD/eval_conditional_qm9.py","link_basis":"plan_row","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":"f576c0a0e0ae29c2"}},{"code_sha256_prefix":"f1ef8053d40dba84","entry":"get_target_context","repo":"A-Chicharito-S/ChemGuide","repo_kind":"found_in_text","path":"eval_sample_xtb.py","file_url":"https://github.com/A-Chicharito-S/ChemGuide/blob/HEAD/eval_sample_xtb.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":"f1ef8053d40dba84"}},{"code_sha256_prefix":"edf83b952680cf55","entry":"load_split_data","repo":"A-Chicharito-S/ChemGuide","repo_kind":"found_in_text","path":"build_geom_dataset.py","file_url":"https://github.com/A-Chicharito-S/ChemGuide/blob/HEAD/build_geom_dataset.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":"edf83b952680cf55"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}