TL;DR
MOSAIC is a multimodal flow matching model that learns to generate molecular structures and their corresponding spectra (UV, IR, Raman) in any direction. By treating every measurement as both a potential input and a target during training, it achieves state-of-the-art performance in structure elucidation while unlocking new capabilities like missing-view completion and experimental spectral retrieval.
What Problem Does This Paper Address?
In the natural sciences, data is the ultimate bottleneck. Running an experiment to determine a molecule's 3D structure or its spectral response is expensive and time-consuming. However, a single experiment often yields multiple "views" of the same physical entity—for instance, a chemist might collect Infrared (IR), Raman, and Ultraviolet (UV) spectra for a single synthesized compound.
Standard generative models are usually "one-way" specialists. They are trained either to predict spectra from a structure or to solve the inverse problem of structure elucidation (spectra to structure). The authors argue that this asymmetry is a missed opportunity. By forcing a model into a single direction, we discard the rich, mutual supervision inherent in coupled measurements. The challenge is creating a unified architecture that can exploit these relationships regardless of which data pieces are available at inference time.
Methods
The authors introduce MOSAIC (Multimodal flOw matching for moleculeS And spectra In sCience). The core of MOSAIC is a non-equivariant Multimodal Diffusion Transformer (MMDiT) trained using a rectified flow objective.
Key technical components include:
- Unified Representations: Molecular 3D structures are encoded into per-atom latent tokens using a pretrained UAE-3D autoencoder. Spectra are treated as sequences of 1D patches, similar to how Vision Transformers handle images.
- Any-to-Any Training: During training, the model uses random masking. For any given sample, a subset of modalities is chosen as "clean" conditioning context, while the rest are "noised" targets. This forces the model to learn the joint distribution of all modalities.
- Flow Matching: Instead of traditional diffusion, the model learns to predict the velocity of a "flow" that transforms Gaussian noise into the target data distribution. This often leads to faster and more stable sampling.
Datasets
The model was trained and evaluated on QM9S, a multimodal extension of the popular QM9 dataset. It contains ~130,000 small organic molecules paired with simulated UV, IR, and Raman spectra. While QM9 provides the ground-truth 3D structures, the spectra are simulated using density functional theory (DFT).
Key Insights and Ideas
- Multimodal Supervision is a "Free Lunch": One of the most striking findings is that training a model to generate spectra actually makes it better at generating structures. The spectral targets act as a chemically meaningful auxiliary loss, helping the model learn richer internal representations of molecular geometry.
- The Power of Any-to-Any: Because MOSAIC isn't locked into one direction, it can handle "missing-view completion." If you only have an IR spectrum, it can infer the Raman spectrum and the 3D structure simultaneously.
- Scaling Laws Apply: The "multimodal advantage" (the performance gap between MOSAIC and a structure-only model) grows as the model size increases. This suggests that larger models are better at synthesizing these complex, cross-modal relationships.
Key Results
MOSAIC sets a new bar for performance on the QM9S benchmark:
- Structure Elucidation: It achieves 88.8% molecular graph recovery (Acc@1) when given all three spectra. This outperforms the previous state-of-the-art diffusion baseline (60.3%) by a massive margin.
- Spectral Accuracy: Even when compared to specialized "structure-to-spectra" models like DetaNet, MOSAIC produces spectra with higher cosine similarity to the ground truth.
- Experimental Transfer: Despite being trained on simulated data, the model was used to retrieve molecules from a database of 99 experimental gas-phase IR spectra. It ranked the correct molecule in the Top-1 for 15.2% of cases, significantly better than the 5.1% achieved by specialized baselines.
Limitations and Future Work
- Molecular Scale: The study is currently limited to QM9-sized molecules (up to 9 heavy atoms). Scaling this to drug-like molecules or large proteins remains a significant challenge due to the quadratic complexity of transformers.
- Simulation-to-Lab Gap: While the experimental retrieval results are promising, there is still a noticeable performance drop when moving from simulated DFT spectra to noisy, real-world laboratory measurements.
- Equivariance: The current model uses a non-equivariant transformer and relies on data augmentation to handle 3D rotations. Incorporating architectural SE(3)-equivariance while maintaining multimodal flexibility is an open research question.
For researchers in drug discovery or materials science, MOSAIC represents a shift toward "foundation models" for chemistry that don't just predict one property, but understand the holistic relationship between a molecule's form and its physical signatures.
Summary updated