{"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/floating-anchor-diffusion-model-for-multi","title":"Floating Anchor Diffusion Model for Multi-motif Scaffolding","arxiv_id":"2406.03141","date":"2024-06-05","proceeding":null,"authors":["Ke Liu","Weian Mao","Shuaike Shen","Xiaoran Jiao","Zheng Sun","Hao Chen","Chunhua Shen"],"abstract":"Motif scaffolding seeks to design scaffold structures for constructing proteins with functions derived from the desired motif, which is crucial for the design of vaccines and enzymes. Previous works approach the problem by inpainting or conditional generation. Both of them can only scaffold motifs with fixed positions, and the conditional generation cannot guarantee the presence of motifs. However, prior knowledge of the relative motif positions in a protein is not readily available, and constructing a protein with multiple functions in one protein is more general and significant because of the synergies between functions. We propose a Floating Anchor Diffusion (FADiff) model. FADiff allows motifs to float rigidly and independently in the process of diffusion, which guarantees the presence of motifs and automates the motif position design. Our experiments demonstrate the efficacy of FADiff with high success rates and designable novel scaffolds. To the best of our knowledge, FADiff is the first work to tackle the challenge of scaffolding multiple motifs without relying on the expertise of relative motif positions in the protein. Code is available at https://github.com/aim-uofa/FADiff.","url_abs":"https://arxiv.org/abs/2406.03141v1","url_pdf":"https://arxiv.org/pdf/2406.03141v1.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":"floating-anchor-diffusion-model-for-multi","repo_url":"https://github.com/aim-uofa/fadiff","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"model","task_name":"model"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"pixel-prediction","method_name":"Inpainting"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.03141","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.03141"}},"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/aim-uofa/FADiff","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aim-uofa/fadiff","reach":{"status":"ok"}}],"summary":{"ran":12,"ran_draft_wrong":3,"unverified":1},"by_repo_kind":{"official":{"samples":16,"ran":15,"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":"71c23f56d0518c34","entry":"calc_perplexity","repo":"aim-uofa/FADiff","repo_kind":"official","path":"analysis/metrics.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/analysis/metrics.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":"71c23f56d0518c34"}},{"code_sha256_prefix":"fd5db15443a969ae","entry":"create_pad_feats","repo":"aim-uofa/FADiff","repo_kind":"official","path":"experiments/inference_se3_diffusion.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/experiments/inference_se3_diffusion.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fd5db15443a969ae"}},{"code_sha256_prefix":"c2b57f862d5703b7","entry":"featurize","repo":"aim-uofa/FADiff","repo_kind":"official","path":"ProteinMPNN/training/model_utils.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/ProteinMPNN/training/model_utils.py","link_basis":"harvester_set","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":"c2b57f862d5703b7"}},{"code_sha256_prefix":"706bd906bbbd5b15","entry":"flatten_final_dims","repo":"aim-uofa/FADiff","repo_kind":"official","path":"model/ipa_pytorch.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/model/ipa_pytorch.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"706bd906bbbd5b15"}},{"code_sha256_prefix":"773151823a896982","entry":"get_index_embedding","repo":"aim-uofa/FADiff","repo_kind":"official","path":"model/score_network.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/model/score_network.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":"773151823a896982"}},{"code_sha256_prefix":"9dd59322af4320e1","entry":"get_timestep_embedding","repo":"aim-uofa/FADiff","repo_kind":"official","path":"model/score_network.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/model/score_network.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9dd59322af4320e1"}},{"code_sha256_prefix":"e2f0fc69bf175683","entry":"he_orthogonal_init","repo":"aim-uofa/FADiff","repo_kind":"official","path":"model/layers.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e2f0fc69bf175683"}},{"code_sha256_prefix":"fe5ca31f1198b1d4","entry":"loss_nll","repo":"aim-uofa/FADiff","repo_kind":"official","path":"ProteinMPNN/training/model_utils.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/ProteinMPNN/training/model_utils.py","link_basis":"harvester_set","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":"fe5ca31f1198b1d4"}},{"code_sha256_prefix":"5ddd6c881d3a7b70","entry":"loss_smoothed","repo":"aim-uofa/FADiff","repo_kind":"official","path":"ProteinMPNN/training/model_utils.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/ProteinMPNN/training/model_utils.py","link_basis":"harvester_set","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":"5ddd6c881d3a7b70"}},{"code_sha256_prefix":"cef35149a8e05f7d","entry":"parse_PDB","repo":"aim-uofa/FADiff","repo_kind":"official","path":"ProteinMPNN/protein_mpnn_utils.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/ProteinMPNN/protein_mpnn_utils.py","link_basis":"harvester_set","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":"cef35149a8e05f7d"}},{"code_sha256_prefix":"e68c5be0ba38ac9b","entry":"parse_PDB_biounits","repo":"aim-uofa/FADiff","repo_kind":"official","path":"ProteinMPNN/protein_mpnn_utils.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/ProteinMPNN/protein_mpnn_utils.py","link_basis":"harvester_set","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":"e68c5be0ba38ac9b"}},{"code_sha256_prefix":"c653d7a1bb820cd6","entry":"permute_final_dims","repo":"aim-uofa/FADiff","repo_kind":"official","path":"model/ipa_pytorch.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/model/ipa_pytorch.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c653d7a1bb820cd6"}},{"code_sha256_prefix":"a4bb7c759a3c22ca","entry":"permute_final_dims","repo":"aim-uofa/FADiff","repo_kind":"official","path":"model/layers.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/model/layers.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":"a4bb7c759a3c22ca"}},{"code_sha256_prefix":"49dc9bb443180bd0","entry":"reorder_structure","repo":"aim-uofa/FADiff","repo_kind":"official","path":"experiments/inference_se3_diffusion.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/experiments/inference_se3_diffusion.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":"49dc9bb443180bd0"}},{"code_sha256_prefix":"fbda17bc1b77dd8a","entry":"rigids_to_se3_vec","repo":"aim-uofa/FADiff","repo_kind":"official","path":"analysis/utils.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/analysis/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fbda17bc1b77dd8a"}},{"code_sha256_prefix":"eb4c06bdb443e54e","entry":"tied_featurize","repo":"aim-uofa/FADiff","repo_kind":"official","path":"ProteinMPNN/protein_mpnn_utils.py","file_url":"https://github.com/aim-uofa/FADiff/blob/HEAD/ProteinMPNN/protein_mpnn_utils.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":"eb4c06bdb443e54e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}