Abstract
DiffSpectra is a novel generative AI framework designed to predict both the 2D topology and 3D geometry of molecules directly from their multi-modal spectra, including Infrared (IR), Raman, and UV-Vis. By integrating a 3D-aware diffusion process with a pre-trained multi-modal spectral encoder, DiffSpectra addresses the limitations of traditional retrieval-based methods. The framework achieves a highly reliable 99.49% top-10 accuracy for de novo molecular structure elucidation on the QM9S dataset.
Introduction
Determining the molecular structure of a newly synthesized compound or natural product is a cornerstone of chemistry. Traditionally, "structure elucidation" relies on expert manual interpretation of spectroscopic data or searching through predefined databases. However, database-dependent methods fail for novel molecules not present in existing libraries.
While recent machine learning approaches have attempted de novo generation of molecular structures from spectra, they often produce 1D strings (SMILES) or 2D graphs. These representations ignore the physical reality that a molecule's spectral signature is fundamentally dictated by its 3D geometry. Furthermore, most existing models analyze only one spectral modality at a time, whereas chemists typically utilize complementary data from multiple sources. DiffSpectra addresses these gaps by jointly generating 2D and 3D structures conditioned on multiple spectral modalities simultaneously.
Methods
DiffSpectra frames structure elucidation as a conditional continuous-time diffusion process. The model begins with a noisy "cloud" of atoms and progressively denoises them into a valid molecular graph and 3D conformation, guided by spectral data.
Architecture
The framework consists of two primary components:
- Diffusion Molecule Transformer (DMT): This denoising engine uses three parallel streams to jointly update node features (atom types), edge features (bonds), and 3D atomic coordinates. DMT is designed with explicit SE(3)-equivariance, allowing it to inherently understand 3D rotations and translations.
- SpecFormer: A Transformer-based encoder that processes patches of multiple spectra (UV-Vis, IR, and Raman) to capture intra- and inter-spectrum relationships.
Pre-training and Data
SpecFormer is pre-trained using Masked Patch Reconstruction and Contrastive Learning to align spectral embeddings with corresponding 3D molecular structures. The model was evaluated on the QM9S dataset, an extension of QM9 containing simulated multi-modal spectra for approximately 127,000 small organic molecules.
Results and Key Insights
DiffSpectra demonstrates that 3D geometry is a critical constraint for accurate structure elucidation. Generating molecules in a joint 2D/3D space significantly outperforms 2D-only methods, as the 3D conformation acts as a physical anchor for topological accuracy.
Performance Metrics
- Accuracy: The model achieved a 40.76% top-1 exact-structure accuracy. When generating 10 candidates, the top-10 accuracy reached 99.49%.
- Chemical Validity: Generated structures match training data quality, with 99.9% atom stability and 98.2% molecular stability.
- Multi-Modal Synergy: Combining IR, Raman, and UV-Vis spectra yielded superior results compared to any single modality, confirming that different spectra provide complementary structural clues.
Ablation Studies
Pre-training the SpecFormer improved top-1 accuracy from 35.6% to 40.8%. Additionally, the explicit SE(3) equivariance in the DMT outperformed standard data augmentation techniques (35.6% vs 31.2% accuracy).
Conclusion
DiffSpectra represents a significant step toward automated molecular structure elucidation. By mimicking the "human-like" reasoning process—resolving global semantics before fine-grained functional groups—it provides a robust tool for chemists.
Future work will focus on transitioning from simulated to experimental data, which contains more noise and artifacts. Additionally, incorporating Nuclear Magnetic Resonance (NMR) and Mass Spectrometry (MS) data will be essential for real-world laboratory applications. Scaling the framework to larger biomolecules and complex materials remains a primary objective for the advancement of drug discovery and materials science.
Summary updated