{"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/aligning-target-aware-molecule-diffusion","title":"Aligning Target-Aware Molecule Diffusion Models with Exact Energy Optimization","arxiv_id":"2407.01648","date":"2024-07-01","proceeding":null,"authors":["Siyi Gu","Minkai Xu","Alexander Powers","Weili Nie","Tomas Geffner","Karsten Kreis","Jure Leskovec","Arash Vahdat","Stefano Ermon"],"abstract":"Generating ligand molecules for specific protein targets, known as structure-based drug design, is a fundamental problem in therapeutics development and biological discovery. Recently, target-aware generative models, especially diffusion models, have shown great promise in modeling protein-ligand interactions and generating candidate drugs. However, existing models primarily focus on learning the chemical distribution of all drug candidates, which lacks effective steerability on the chemical quality of model generations. In this paper, we propose a novel and general alignment framework to align pretrained target diffusion models with preferred functional properties, named AliDiff. AliDiff shifts the target-conditioned chemical distribution towards regions with higher binding affinity and structural rationality, specified by user-defined reward functions, via the preference optimization approach. To avoid the overfitting problem in common preference optimization objectives, we further develop an improved Exact Energy Preference Optimization method to yield an exact and efficient alignment of the diffusion models, and provide the closed-form expression for the converged distribution. Empirical studies on the CrossDocked2020 benchmark show that AliDiff can generate molecules with state-of-the-art binding energies with up to -7.07 Avg. Vina Score, while maintaining strong molecular properties. Code is available at https://github.com/MinkaiXu/AliDiff.","url_abs":"https://arxiv.org/abs/2407.01648v2","url_pdf":"https://arxiv.org/pdf/2407.01648v2.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":"aligning-target-aware-molecule-diffusion","repo_url":"https://github.com/minkaixu/alidiff","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":null,"task_name":"Avg"},{"task_slug":"drug-design","task_name":"Drug Design"}],"methods":[{"method_slug":"align","method_name":"ALIGN"},{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2407.01648","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.01648"}},"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/minkaixu/alidiff","reach":{"status":"ok"}}],"summary":{"ran":2,"ran_honours":2,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"official":{"samples":7,"ran":4,"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":8,"samples":[{"code_sha256_prefix":"02899a00da167ded","entry":"compose_context_org","repo":"minkaixu/alidiff","repo_kind":"official","path":"models/common.py","file_url":"https://github.com/minkaixu/alidiff/blob/HEAD/models/common.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":"02899a00da167ded"}},{"code_sha256_prefix":"c92a02b48d8fb1c4","entry":"cosine_beta_schedule","repo":"minkaixu/alidiff","repo_kind":"official","path":"models/ipo.py","file_url":"https://github.com/minkaixu/alidiff/blob/HEAD/models/ipo.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c92a02b48d8fb1c4"}},{"code_sha256_prefix":"ca0cea1ca1eeec89","entry":"get_beta_schedule","repo":"minkaixu/alidiff","repo_kind":"official","path":"models/ipo.py","file_url":"https://github.com/minkaixu/alidiff/blob/HEAD/models/ipo.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ca0cea1ca1eeec89"}},{"code_sha256_prefix":"e50eb08b9688b3cb","entry":"get_edges","repo":"minkaixu/alidiff","repo_kind":"official","path":"graphbap/bapnet.py","file_url":"https://github.com/minkaixu/alidiff/blob/HEAD/graphbap/bapnet.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":"e50eb08b9688b3cb"}},{"code_sha256_prefix":"47ce9e33fa6b180f","entry":"unbatch_v_traj","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"47ce9e33fa6b180f"}},{"code_sha256_prefix":"3c6858db01947fd5","entry":"get_h_dist","repo":"minkaixu/alidiff","repo_kind":"official","path":"models/common.py","file_url":"https://github.com/minkaixu/alidiff/blob/HEAD/models/common.py","link_basis":"harvester_set","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":"3c6858db01947fd5"}},{"code_sha256_prefix":"27af771ab4cfc179","entry":"get_r_feat","repo":"minkaixu/alidiff","repo_kind":"official","path":"models/common.py","file_url":"https://github.com/minkaixu/alidiff/blob/HEAD/models/common.py","link_basis":"harvester_set","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":"27af771ab4cfc179"}},{"code_sha256_prefix":"5f7183207256b0a3","entry":"torchify_dict","repo":"minkaixu/alidiff","repo_kind":"official","path":"datasets/pl_data.py","file_url":"https://github.com/minkaixu/alidiff/blob/HEAD/datasets/pl_data.py","link_basis":"harvester_set","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":"5f7183207256b0a3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}