{"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/gotta-be-safe-a-new-framework-for-molecular","title":"Gotta be SAFE: A New Framework for Molecular Design","arxiv_id":"2310.10773","date":"2023-10-16","proceeding":null,"authors":["Emmanuel Noutahi","Cristian Gabellini","Michael Craig","Jonathan S. C Lim","Prudencio Tossou"],"abstract":"Traditional molecular string representations, such as SMILES, often pose challenges for AI-driven molecular design due to their non-sequential depiction of molecular substructures. To address this issue, we introduce Sequential Attachment-based Fragment Embedding (SAFE), a novel line notation for chemical structures. SAFE reimagines SMILES strings as an unordered sequence of interconnected fragment blocks while maintaining compatibility with existing SMILES parsers. It streamlines complex generative tasks, including scaffold decoration, fragment linking, polymer generation, and scaffold hopping, while facilitating autoregressive generation for fragment-constrained design, thereby eliminating the need for intricate decoding or graph-based models. We demonstrate the effectiveness of SAFE by training an 87-million-parameter GPT2-like model on a dataset containing 1.1 billion SAFE representations. Through targeted experimentation, we show that our SAFE-GPT model exhibits versatile and robust optimization performance. SAFE opens up new avenues for the rapid exploration of chemical space under various constraints, promising breakthroughs in AI-driven molecular design.","url_abs":"https://arxiv.org/abs/2310.10773v2","url_pdf":"https://arxiv.org/pdf/2310.10773v2.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":"gotta-be-safe-a-new-framework-for-molecular","repo_url":"https://github.com/datamol-io/safe","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"gotta-be-safe-a-new-framework-for-molecular","repo_url":"https://github.com/MorganCThomas/SMILES-RNN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2310.10773","atlas_url":"https://app.syntology.ai/?focus=2310.10773","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.10773"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/datamol-io/safe","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MorganCThomas/SMILES-RNN","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":7},"by_repo_kind":{"listed":{"samples":7,"ran":7,"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":"7896e2eeab07a5c2","entry":"calculate_nlls_from_model","repo":"MorganCThomas/SMILES-RNN","repo_kind":"listed","path":"smilesrnn/dataset.py","file_url":"https://github.com/MorganCThomas/SMILES-RNN/blob/HEAD/smilesrnn/dataset.py","link_basis":"harvester_set","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":"7896e2eeab07a5c2"}},{"code_sha256_prefix":"906993dde8a42e8c","entry":"create_vocabulary","repo":"MorganCThomas/SMILES-RNN","repo_kind":"listed","path":"smilesrnn/vocabulary.py","file_url":"https://github.com/MorganCThomas/SMILES-RNN/blob/HEAD/smilesrnn/vocabulary.py","link_basis":"harvester_set","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":"906993dde8a42e8c"}},{"code_sha256_prefix":"3fcdb8a0ea8f3cc4","entry":"fit_smiles_to_vocabulary","repo":"MorganCThomas/SMILES-RNN","repo_kind":"listed","path":"smilesrnn/vocabulary.py","file_url":"https://github.com/MorganCThomas/SMILES-RNN/blob/HEAD/smilesrnn/vocabulary.py","link_basis":"harvester_set","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":"3fcdb8a0ea8f3cc4"}},{"code_sha256_prefix":"78e02a3c38f94ced","entry":"get_device","repo":"MorganCThomas/SMILES-RNN","repo_kind":"listed","path":"smilesrnn/utils.py","file_url":"https://github.com/MorganCThomas/SMILES-RNN/blob/HEAD/smilesrnn/utils.py","link_basis":"harvester_set","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":"78e02a3c38f94ced"}},{"code_sha256_prefix":"3ca3d657a0d82b62","entry":"read_smiles","repo":"MorganCThomas/SMILES-RNN","repo_kind":"listed","path":"smilesrnn/utils.py","file_url":"https://github.com/MorganCThomas/SMILES-RNN/blob/HEAD/smilesrnn/utils.py","link_basis":"harvester_set","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":"3ca3d657a0d82b62"}},{"code_sha256_prefix":"7b261d1aac82bb78","entry":"to_tensor","repo":"MorganCThomas/SMILES-RNN","repo_kind":"listed","path":"smilesrnn/utils.py","file_url":"https://github.com/MorganCThomas/SMILES-RNN/blob/HEAD/smilesrnn/utils.py","link_basis":"harvester_set","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":"7b261d1aac82bb78"}},{"code_sha256_prefix":"7a5dba5e7482b545","entry":"update_vocabulary","repo":"MorganCThomas/SMILES-RNN","repo_kind":"listed","path":"smilesrnn/vocabulary.py","file_url":"https://github.com/MorganCThomas/SMILES-RNN/blob/HEAD/smilesrnn/vocabulary.py","link_basis":"harvester_set","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":"7a5dba5e7482b545"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}