SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.05797 · ICLR · 2025

3D-MolT5: Leveraging Discrete Structural Information for Molecule-Text Modeling

Jinhua Zhu, Lijun Wu, Rui Yan, Kaiyuan Gao, Qizhi Pei

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 16 functions out of this paper's own repositories and ran 10 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
QizhiPei/3D-MolT5 canonical 8 of 12
qizhipei/3d-molt5 canonical 2 of 4
FunctionStatusWhere it lives
compute_input_and_target_lengths Ran QizhiPei/3D-MolT5/3d_molt5/utils/copied_utils.py
code served (permissive licence) · get_code("d8c4822a9c1aff8b")
extra_stats Ran QizhiPei/3D-MolT5/3d_molt5/utils/train_utils.py
code served (permissive licence) · get_code("15064abfc178475b")
filter_selfies Ran QizhiPei/3D-MolT5/3d_molt5/utils/train_utils.py
code served (permissive licence) · get_code("747f68a91549b9bf")
get_num_atoms_wH Ran qizhipei/3d-molt5/3d_tokenization/3d_tokenize.py
code served (permissive licence) · get_code("59d99c8d54d8f826")
get_num_atoms_woH Ran qizhipei/3d-molt5/3d_tokenization/3d_tokenize.py
code served (permissive licence) · get_code("8a25d2a3c55b13e5")
maybe_grad_clip_and_grad_calc Ran QizhiPei/3D-MolT5/3d_molt5/utils/train_utils.py
code served (permissive licence) · get_code("3a896a738d3c3bf4")
tokenize_function Ran QizhiPei/3D-MolT5/3d_molt5/utils/copied_utils.py
code served (permissive licence) · get_code("8a721263c3f886fd")
tokenize_function_desc2seq_fp Ran QizhiPei/3D-MolT5/3d_molt5/utils/custom_utils.py
code served (permissive licence) · get_code("4ba39870e34467be")
tokenize_function_fp Ran QizhiPei/3D-MolT5/3d_molt5/utils/custom_utils.py
code served (permissive licence) · get_code("459ed31c700da2f1")
tokenize_function_seq2desc_fp Ran QizhiPei/3D-MolT5/3d_molt5/utils/custom_utils.py
code served (permissive licence) · get_code("b978f1a04e323c37")
FPT5EncoderStack Not yet run qizhipei/3d-molt5/3d_molt5/utils/FPT5ForConditionalGeneration.py
code served (permissive licence) · get_code("8169ff566a7422b7")
FPT5ForConditionalGeneration Not yet run qizhipei/3d-molt5/3d_molt5/utils/FPT5ForConditionalGeneration.py
code served (permissive licence) · get_code("2676a83bc4dcb809")
get_config Not yet run QizhiPei/3D-MolT5/3d_molt5/utils/model_utils.py
code served (permissive licence) · get_code("844d192ab050d3cb")
get_model Not yet run QizhiPei/3D-MolT5/3d_molt5/utils/model_utils.py
code served (permissive licence) · get_code("1e65195a7a6b943d")
get_tokenizer Not yet run QizhiPei/3D-MolT5/3d_molt5/utils/model_utils.py
code served (permissive licence) · get_code("57301c9d45efc851")
setup_basics Not yet run QizhiPei/3D-MolT5/3d_molt5/utils/gen_utils.py
code served (permissive licence) · get_code("29336ef2f9c5bce1")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The integration of molecular and natural language representations has emerged as a focal point in molecular science, with recent advancements in Language Models (LMs) demonstrating significant potential for comprehensive modeling of both domains. However, existing approaches face notable limitations, particularly in their neglect of three-dimensional (3D) information, which is crucial for understanding molecular structures and functions. While some efforts have been made to incorporate 3D molecular information into LMs using external structure encoding modules, significant difficulties remain, such as insufficient interaction across modalities in pre-training and challenges in modality alignment. To address the limitations, we propose 3D-MolT5, a unified framework designed to model molecule in both sequence and 3D structure spaces. The key innovation of our approach lies in mapping fine-grained 3D substructure representations into a specialized 3D token vocabulary. This methodology facilitates the seamless integration of sequence and structure representations in a tokenized format, enabling 3D-MolT5 to encode molecular sequences, molecular structures, and text sequences within a unified architecture. Leveraging this tokenized input strategy, we build a foundation model that unifies the sequence and structure data formats. We then conduct joint pretraining with multi-task objectives to enhance the model's comprehension of these diverse modalities within a shared representation space. Thus, our approach significantly improves cross-modal interaction and alignment, addressing key challenges in previous work. Further instruction tuning demonstrated that our 3D-MolT5 has strong generalization ability and surpasses existing methods with superior performance in multiple downstream tasks, such as nearly 70% improvement on the molecular property prediction task compared to state-of-the-art methods. Our code is available at https://github.com/QizhiPei/3D-MolT5.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2406.05797")
get_code_for_paper("2406.05797")
have("2406.05797")

Connect an agent — have() is free.