Atomas: Hierarchical Alignment on Molecule-Text for Unified Molecule Understanding and Generation
Yikun Zhang, Geyan Ye, Chaohao Yuan, Bo Han, Long-Kai Huang, Jianhua Yao, Wei Liu, Yu Rong
TL;DR
Atomas addresses the limitation of global molecule-text alignment by introducing Hierarchical Adaptive Alignment that operates across atom, fragment, and molecule levels using Adaptive Polymerization Module and Weighted Alignment Module within a unified SMILES-text encoder. It jointly optimizes global alignment, hierarchical alignment, and generation objectives using $\mathcal{L}_{ga}$, $\mathcal{L}_{haa}$, and $\mathcal{L}_{lm}$, enabling both understanding and generation in an end-to-end framework. The approach achieves state-of-the-art performance across 12 tasks on 11 datasets, with strong scalability and qualitative validation, and demonstrates improved fine-grained control over molecular generation without requiring explicit local annotations. This work advances practical molecular understanding and design by enabling accurate retrieval, captioning, and text-driven molecule generation in data-scarce settings through a unified encoding and hierarchical cross-modal learning paradigm.
Abstract
Molecule-and-text cross-modal representation learning has emerged as a promising direction for enhancing the quality of molecular representation, thereby improving performance in various scientific fields. However, most approaches employ a global alignment approach to learn the knowledge from different modalities that may fail to capture fine-grained information, such as molecule-and-text fragments and stereoisomeric nuances, which is crucial for downstream tasks. Furthermore, it is incapable of modeling such information using a similar global alignment strategy due to the lack of annotations about the fine-grained fragments in the existing dataset. In this paper, we propose Atomas, a hierarchical molecular representation learning framework that jointly learns representations from SMILES strings and text. We design a Hierarchical Adaptive Alignment model to automatically learn the fine-grained fragment correspondence between two modalities and align these representations at three semantic levels. Atomas's end-to-end training framework supports understanding and generating molecules, enabling a wider range of downstream tasks. Atomas achieves superior performance across 12 tasks on 11 datasets, outperforming 11 baseline models thus highlighting the effectiveness and versatility of our method. Scaling experiments further demonstrate Atomas's robustness and scalability. Moreover, visualization and qualitative analysis, validated by human experts, confirm the chemical relevance of our approach. Codes are released on https://github.com/yikunpku/Atomas.
