Abstract
Mol-StrucTok introduces a novel framework for representing 3D molecular structures as discrete token sequences, enabling the use of Transformer architectures for 3D molecule generation. By discretizing continuous spherical coordinates into a "structural alphabet" via Vector Quantized Variational Autoencoders (VQ-VAE), the model achieves 3D generation speeds 28x faster than state-of-the-art diffusion models while maintaining high chemical stability and superior property-conditioned accuracy.
Introduction
Language Models (LMs) have transformed computational chemistry through 1D notations like SMILES and SELFIES. However, these notations primarily capture molecular topology—the "recipe"—rather than the 3D conformation, which is the primary determinant of a molecule's biological activity and physical properties. Extending LMs to 3D space faces two significant challenges: ensuring SE(3) invariance (maintaining the same representation regardless of rotation or translation) and bridging the gap between the discrete nature of LMs and the continuous nature of 3D coordinates.
Methodology
The authors propose Mol-StrucTok, a pipeline designed to transform 3D structures into discrete token sequences suitable for standard Transformer architectures.
Spherical Line Notation and Reference Selection
Instead of absolute Cartesian coordinates, Mol-StrucTok utilizes a local spherical coordinate system (distance $d$, polar angle $\theta$, and azimuth $\phi$). To ensure SE(3) invariance, the model employs 2D Topology-Based Reference Selection. Each atom's position is defined relative to its neighbors in the molecular graph, providing a robust anchor that prevents reconstruction collapse under noise.
The 3D Structural Alphabet
To handle continuous geometric data, a 14-dimensional descriptor—comprising spherical coordinates and "understanding descriptors" like neighborhood bond lengths—is processed through a Vector Quantized Variational Autoencoder (VQ-VAE). This VQ-VAE maps continuous vectors to a discrete codebook of 256 geometric shapes, effectively creating a "structural alphabet."
Generation and Prediction
With 3D structures represented as sequences (e.g., <C 32><O 18>), a GPT-style model is trained for autoregressive generation. Additionally, these tokens can be integrated into models like Graphormer as embeddings to enhance molecular property prediction.
Experimental Results
The framework was evaluated using the PCQM4Mv2 and QM9 datasets.
- Inference Speed: Mol-StrucTok demonstrates a 28x speedup over diffusion-based models (EDM/GeoLDM), generating 39.8 samples per second compared to 1.4.
- Chemical Validity: The model achieved 100% validity on bond angles and atom connectivity within the PoseBusters test suite.
- Conditional Generation: In property-conditioned tasks (e.g., generating molecules with specific dipole moments), Mol-StrucTok significantly outperformed previous state-of-the-art models, reducing Mean Absolute Error (MAE) from 0.998 to 0.285.
- Property Prediction: The inclusion of 3D tokens allowed 2D Graphormer models to match the performance of specialized 3D architectures, confirming that the discrete tokens capture essential physical information.
Discussion and Conclusion
While Mol-StrucTok offers significant advantages in speed and accuracy, it currently exhibits lower "uniqueness" scores compared to diffusion models (~85% vs ~98%), suggesting a potential for mode collapse. Future improvements may involve more sophisticated quantizers (e.g., Residual VQ) to capture even finer geometric details and the development of multimodal models capable of generating 3D structures directly from natural language prompts.
Summary updated