FragmentNet: Adaptive Graph Fragmentation for Graph-to-Sequence Molecular Representation Learning
Ankur Samanta, Rohan Gupta, Aditi Misra, Christian McIntosh Clarke, Jayakumar Rajadas
TL;DR
FragmentNet introduces an adaptive graph tokenizer and a graph-to-sequence transformer to learn chemically meaningful molecular representations via Masked Fragment Modeling (MFM). The architecture fuses a VQVAE-GCN encoder, graph spatial positional encodings, and a molecular-descriptor CLS token within a Transformer to achieve data-efficient pretraining and strong downstream performance on MoleculeNet and Malaria benchmarks. A fragment-swapping module enables targeted analogue generation, facilitating SAR exploration while maintaining chemical validity. Empirically, FragmentNet outperforms similarly sized baselines and competitive with larger models trained on far more data, all while running on modest hardware, highlighting a scalable, chemically informed path for molecular design and discovery.
Abstract
Molecular property prediction uses molecular structure to infer chemical properties. Chemically interpretable representations that capture meaningful intramolecular interactions enhance the usability and effectiveness of these predictions. However, existing methods often rely on atom-based or rule-based fragment tokenization, which can be chemically suboptimal and lack scalability. We introduce FragmentNet, a graph-to-sequence foundation model with an adaptive, learned tokenizer that decomposes molecular graphs into chemically valid fragments while preserving structural connectivity. FragmentNet integrates VQVAE-GCN for hierarchical fragment embeddings, spatial positional encodings for graph serialization, global molecular descriptors, and a transformer. Pre-trained with Masked Fragment Modeling and fine-tuned on MoleculeNet tasks, FragmentNet outperforms models with similarly scaled architectures and datasets while rivaling larger state-of-the-art models requiring significantly more resources. This novel framework enables adaptive decomposition, serialization, and reconstruction of molecular graphs, facilitating fragment-based editing and visualization of property trends in learned embeddings - a powerful tool for molecular design and optimization.
