每种测量、每个方向、同时进行:用于分子与光谱的多模态流匹配
摘要
该论文介绍了 MOSAIC,这是一种采用随机掩码训练的多模态流匹配 Transformer,能够在分子三维结构与紫外、红外及拉曼光谱之间实现任意模态到任意模态的生成,在 QM9S 数据集上达到 88.8% 的分子图恢复率,同时在结构生成和光谱生成方面均优于专用基线模型。
arXiv:2611.22098v1 Announce Type: new
Abstract: Generative modeling in science is often data-limited, where experiments are expensive. However, each experiment may yield several coupled measurements of the same physical entity. Standard generative models often train only on a single direction, discarding supervision from the rest. We argue that each experiment contains more training signal than this asymmetry allows the model to exploit: random masking enables measurements to serve as either conditioning inputs or prediction targets, yielding multiple supervised denoising tasks from a single experiment. We investigate this premise with MOSAIC, a multimodal flow matching transformer over molecular 3D structure and UV, IR, and Raman spectra. MOSAIC is a single model that is capable of any-to-any generation: generating any subset of modalities from any disjoint subset of the others. On QM9S, MOSAIC achieves 88.8% molecular graph recovery, outperforming the strongest spectra-to-structure baseline by 23.2% in structure generation, while simultaneously outperforming a structure-to-spectra specialist model in spectral generation. Ablations show that the any-to-any objective improves structure generation over structure-only training across model sizes. Furthermore, MOSAIC supports arbitrary subsets of available measurements and enables molecular identification by matching generated spectra to experimental references.
查看缓存全文
缓存时间: 2026/11/19 03:36
# Every Measurement, Every Direction, All at Once:Multimodal Flow Matching for Molecules and Spectra
Source: [https://arxiv.org/html/2611.22098](https://arxiv.org/html/2611.22098)
Elton Pan11footnotemark:1Affiliation:Lila SciencesEmail:[epan@lila\.ai](mailto:)Rafael Gómez\-BombarelliAffiliation:Lila SciencesEmail:[rgbombarelli@lila\.ai](mailto:)Santiago MiretAffiliation:Lila SciencesEmail:[smiret@lila\.ai](mailto:)
###### Abstract
Generative modeling in science is often data\-limited, where experiments are expensive\. However, each experiment may yield several coupled measurements of the same physical entity\. Standard generative models often train only on a single direction, discarding supervision from the rest\. We argue that each experiment contains more training signal than this asymmetry allows the model to exploit: random masking enables measurements to serve as either conditioning inputs or prediction targets, yielding multiple supervised denoising tasks from a single experiment\. We investigate this premise with MOSAIC, a multimodal flow matching transformer over molecular 3D structure and UV, IR, and Raman spectra\. MOSAIC is asinglemodel that is capable ofany\-to\-anygeneration: generating any subset of modalities from any disjoint subset of the others\. On QM9S, MOSAIC achieves 88\.8% molecular graph recovery, outperforming the strongest spectra\-to\-structure baseline by 23\.2% in structure generation, while simultaneously outperforming a structure\-to\-spectra specialist model in spectral generation\. Ablations show that the any\-to\-any objective improves structure generation over structure\-only training across model sizes\. Furthermore, MOSAIC supports arbitrary subsets of available measurements and enables molecular identification by matching generated spectra to experimental references\.
Figure 1:Scientific measurements provide complementary views of the same physical entity\. With multimodalany\-to\-anytraining, a single model learns to generate any subset of modalities from any disjoint subset\.Figure 2:MOSAIC: Multimodal any\-to\-any training unlocks new capabilities in scientific generative models\.\(a\)Joint training over molecular structure, UV, IR, and Raman spectra with sampled conditioning and target modalities\.\(b\)Structure generation accuracy improves with model size and exceeds that of the structure\-only variant\.\(c\)Any\-to\-any training enables structure generation, spectrum generation, missing\-view completion, joint generation and spectral retrieval with a single model\.## 1Introduction
In scientific domains, experiments can be costly but often provide several complementary sources of information: a molecule pairs a three\-dimensional structure with simulated UV, IR, and Raman spectra \(Figure[1](https://arxiv.org/html/2611.22098#S0.F1), left\)\[[1](https://arxiv.org/html/2611.22098#bib.bib1),[2](https://arxiv.org/html/2611.22098#bib.bib2)\], each offering a distinct view of the same physical entity\[[3](https://arxiv.org/html/2611.22098#bib.bib3)\]\. These views are physically linked, molecular structure governs the spectral response, while UV, IR, and Raman spectra constrain the structures consistent with them\. Standard conditional generative models typically learn only one direction of this relationship, such as generating molecular structures from spectra\. We argue that this asymmetry arises from task setup rather than the data itself: When scientific measurements are coupled by a shared underlying system and co\-occur at training time, every view carries supervision about that system\[[4](https://arxiv.org/html/2611.22098#bib.bib4),[5](https://arxiv.org/html/2611.22098#bib.bib5)\]\.Generative models that impose a constraint on the direction\(s\) of generation potentially leave untapped supervision signal on the table\.
Consequently, we propose that multimodal generative models should be trained with no such constraint as shown in Figure[2](https://arxiv.org/html/2611.22098#S0.F2)a\. Every modality can act as either a target or condition\. Therefore, one expensive sample yields multiple supervised denoising tasks for the same model\. Our approach significantly expands the model’s inference\-time capabilities \(Figure[2](https://arxiv.org/html/2611.22098#S0.F2)c\)\. It can perform inference across arbitrary observed and target modality subsets, unlocking capabilities such as matching to spectral libraries, missing\-modality imputation, structure\-to\-spectra generation, and cross\-spectra translation\.
Building on this principle, we introduce MOSAIC, a multimodal flow matching model for any\-to\-any generation across molecular structures and spectra\. MOSAIC encodes molecular structures into per\-atom latent representations using a UAE\-3D autoencoder\[[6](https://arxiv.org/html/2611.22098#bib.bib6)\], while representing UV, IR, and Raman spectra as sequences of spectral tokens\. These representations are jointly modeled by a single non\-equivariant MMDiT\[[7](https://arxiv.org/html/2611.22098#bib.bib7)\], trained with a rectified\-flow objective to denoise any subset of the four modalities\. Unlike the equivariant denoiser used in prior work\[[8](https://arxiv.org/html/2611.22098#bib.bib8)\], our model operates on learned structural representations\. On the QM9S dataset, we observe a 5% multimodal advantage over unimodal generation in structural elucidation \(Figure[2](https://arxiv.org/html/2611.22098#S0.F2)b\)\. The best MOSAIC configuration achieves88\.888\.8% structural recovery on QM9S, outperforming the best baseline by over2020%, while achieving faster inference\. Beyond spectra\-to\-structure generation, MOSAIC also supports structural elucidation through matching in spectral space\. We demonstrate this reverse direction through structure\-conditioned retrieval against experimental IR spectra \(Section[4\.1](https://arxiv.org/html/2611.22098#S4.SS1.SSS0.Px4)\)\. Together, these results illustrate how any\-to\-any training can improve structure generation while expanding the range of tasks supported by a single model\. Our contributions are:
1. 1\.We present MOSAIC, a flow matching model trained on any\-to\-any generation \(Figure[3](https://arxiv.org/html/2611.22098#S3.F3)a\) for multimodal scientific data, where random target/conditioning masks enable every modality to serve as both target and conditioning under a single unified model\. We demonstrate that MOSAIC achieves state\-of\-the\-art performance on the spectra\-to\-structure task, with faster inference\.
2. 2\.We show that MOSAIC unlocks new capabilities, like bidirectional generation and missing\-modality completion within a single model \(Figure[4](https://arxiv.org/html/2611.22098#S4.F4)\)\. We demonstrate how this enables structure\-conditioned retrieval against experimental IR spectra \(Section[4\.1](https://arxiv.org/html/2611.22098#S4.SS1.SSS0.Px4)\)\.
3. 3\.We study how MOSAIC scales with model size and training data \(Figure[5](https://arxiv.org/html/2611.22098#S4.F5)\)\. Linear probing further suggests that learning jointly from structures and spectra yields richer molecular representations than structure\-only training \(Figure[6](https://arxiv.org/html/2611.22098#S4.F6)\)\.
Table 1:Capabilities of selected spectra\-conditioned molecular generators\. Any\-to\-any denotes one model supporting arbitrary disjoint input/output modality subsets\. Capabilities refer to the primary generator\.
## 2Related work
#### Generative models for molecules\.
Diffusion\[[15](https://arxiv.org/html/2611.22098#bib.bib15),[16](https://arxiv.org/html/2611.22098#bib.bib16),[17](https://arxiv.org/html/2611.22098#bib.bib17)\]and flow matching\[[18](https://arxiv.org/html/2611.22098#bib.bib18),[19](https://arxiv.org/html/2611.22098#bib.bib19)\]underpin many recent approaches on generative models for molecular graphs and 3D structures\. A central challenge is to model categorical chemical features alongside continuous geometry while respecting their different symmetries\. Graph generation can be formulated as discrete denoising over atom and bond types\[[20](https://arxiv.org/html/2611.22098#bib.bib20)\], whereas generation in 3D can jointly denoise atom types and coordinates with spatially equivariant networks\[[21](https://arxiv.org/html/2611.22098#bib.bib21)\]\. Joint graph\-and\-coordinate models combine discrete and continuous diffusion to learn connectivity and geometry together\[[22](https://arxiv.org/html/2611.22098#bib.bib22)\]\. Flow matching offers a complementary formulation, learning continuous transport toward molecular structures\[[23](https://arxiv.org/html/2611.22098#bib.bib23),[24](https://arxiv.org/html/2611.22098#bib.bib24)\]\. An alternative approach is to learn a latent representation, separating molecular reconstruction from generative modeling\. The choice of latent space then determines how chemistry and geometry enter the generator\. GeoLDM\[[25](https://arxiv.org/html/2611.22098#bib.bib25)\]retains geometric structure through invariant scalar and equivariant geometric features, using equivariant networks for encoding, decoding, and latent denoising\. Bonds are inferred from decoded atom types and interatomic distances\. UAE\-3D\[[6](https://arxiv.org/html/2611.22098#bib.bib6)\]instead encodes atom types, bond types, and coordinates into a unified sequence of continuous latent tokens\. Rotation and translation augmentation encourage SE\(3\)\-equivariant reconstruction without imposing spatial equivariance architecturally, and its UDM\-3D generator models the latents with a standard DiT\. This representation provides a natural interface for combining molecular structure with other continuous modalities\. We adopt it in an MMDiT\-based generator\[[7](https://arxiv.org/html/2611.22098#bib.bib7)\]trained with flow matching to jointly model molecular structure and spectra\.
#### Multimodal generation in language and vision\.
Three complementary lines of work are relevant to our approach\. The first focuses on text\-conditioned generation, including text\-to\-image\[[26](https://arxiv.org/html/2611.22098#bib.bib26),[27](https://arxiv.org/html/2611.22098#bib.bib27),[28](https://arxiv.org/html/2611.22098#bib.bib28),[29](https://arxiv.org/html/2611.22098#bib.bib29),[7](https://arxiv.org/html/2611.22098#bib.bib7)\], text\-to\-audio\[[30](https://arxiv.org/html/2611.22098#bib.bib30),[31](https://arxiv.org/html/2611.22098#bib.bib31),[32](https://arxiv.org/html/2611.22098#bib.bib32),[33](https://arxiv.org/html/2611.22098#bib.bib33)\], and text\-to\-video\[[34](https://arxiv.org/html/2611.22098#bib.bib34),[35](https://arxiv.org/html/2611.22098#bib.bib35),[36](https://arxiv.org/html/2611.22098#bib.bib36),[37](https://arxiv.org/html/2611.22098#bib.bib37)\]using autoregressive, diffusion, or flow matching models\. Related text\-to\-3D and 4D methods\[[38](https://arxiv.org/html/2611.22098#bib.bib38),[39](https://arxiv.org/html/2611.22098#bib.bib39),[40](https://arxiv.org/html/2611.22098#bib.bib40)\]optimize scene representations using pretrained diffusion models as priors\. Across these settings, text serves as the conditioning modality for non\-text outputs\. A second line supports multiple generation directions and, in some cases, interleaved multimodal outputs\. Shared\-transformer approaches span distinct training objectives: CM3Leon\[[41](https://arxiv.org/html/2611.22098#bib.bib41)\]tokenizes images and text into a shared sequence and trains a decoder\-only transformer with a causal\-infilling objective, Chameleon\[[42](https://arxiv.org/html/2611.22098#bib.bib42)\]scales early\-fusion autoregressive modeling of interleaved image and text tokens\. Unified\-IO 2\[[43](https://arxiv.org/html/2611.22098#bib.bib43)\]unifies vision, language, audio, and action with a shared autoregressive encoder–decoder transformer\. Transfusion\[[44](https://arxiv.org/html/2611.22098#bib.bib44)\]combines next\-token prediction for text with diffusion over continuous image latent patches in one transformer, while Show\-o\[[45](https://arxiv.org/html/2611.22098#bib.bib45)\]combines autoregressive text prediction with discrete image diffusion\. Diffusion models also support flexible multimodal generation, UniDiffuser\[[46](https://arxiv.org/html/2611.22098#bib.bib46)\]models marginal, conditional, and joint image–text distributions with one backbone using per\-modality noise levels, while CoDi\[[47](https://arxiv.org/html/2611.22098#bib.bib47)\]composes modality\-specific latent diffusion models through shared\-space conditioning and cross\-attention between diffusers\. A third line uses masked multimodal pre\-training: MultiMAE\[[48](https://arxiv.org/html/2611.22098#bib.bib48)\]reconstructs masked patches across modalities, while 4M\[[49](https://arxiv.org/html/2611.22098#bib.bib49)\]and 4M\-21\[[50](https://arxiv.org/html/2611.22098#bib.bib50)\]predict discrete target tokens from sampled visible tokens across modalities\. We draw on their principle of predicting missing multimodal information from observed inputs\. MOSAIC samples whole scientific modalities as clean conditions or noisy targets and learns continuous flow matching velocities, supporting conditional and joint generation across molecular structure and spectra\.
#### Structural elucidation from spectra\.
Molecular structure elucidation from spectra is an inverse problem: different structures can produce similar spectral observations\. Generative models address this ambiguity by modeling distributions over candidate structures conditioned on spectra\. Existing approaches include autoregressive, diffusion, and flow matching models\. Autoregressive approaches treat the structure as a SMILES string and learn next\-token prediction conditioned on spectra: Alberts et al\.\[[12](https://arxiv.org/html/2611.22098#bib.bib12)\]train a transformer to map IR spectra and molecular formulae to SMILES strings, Kanakala et al\.\[[13](https://arxiv.org/html/2611.22098#bib.bib13)\]train a CLIP\-style contrastive model with an EGNN molecule encoder and a ViT\-style spectra encoder for IR\-to\-molecule retrieval, paired with a GPT\-style SMILES decoder, and SpectraLLM\[[14](https://arxiv.org/html/2611.22098#bib.bib14)\]represents spectra as peak\-extracted natural\-language descriptions and finetunes a Qwen3\-32B with LoRA for end\-to\-end structure prediction across IR, Raman, UV\-Vis, NMR, and MS\. Diffusion and flow matching approaches instead model the structure through iterative refinement, applied either to molecular graphs and 3D coordinates or to discrete molecular\-string tokens such as SAFE\[[51](https://arxiv.org/html/2611.22098#bib.bib51)\]\. The closest 3D analogue is DiffSpectra\[[8](https://arxiv.org/html/2611.22098#bib.bib8)\], which performs conditional graph\-and\-coordinate diffusion using an SE\(3\)\-equivariant DMT and a spectral encoder pretrained with masked reconstruction and contrastive alignment with a pretrained 3D molecular encoder\. In the mass\-spectra setting, DiffMS\[[9](https://arxiv.org/html/2611.22098#bib.bib9)\]couples a learned spectral encoder to a formula\-conditioned graph diffusion decoder, FlowMS\[[10](https://arxiv.org/html/2611.22098#bib.bib10)\]replaces that diffusion decoder with flow matching, and FRIGID\[[11](https://arxiv.org/html/2611.22098#bib.bib11)\]scales a diffusion\-language\-model spectra\-to\-structure approach over SAFE molecular strings\. Prior approaches for generating molecular structures from spectra are shown in Table[1](https://arxiv.org/html/2611.22098#S1.T1)\. MOSAIC extends this setting toany\-to\-anygeneration within a single model, supporting spectra\-to\-structure, structure\-to\-spectra, and generation across arbitrary disjoint subsets of conditioning and target modalities \(Figure[3](https://arxiv.org/html/2611.22098#S3.F3)a\)\.
## 3Method
MOSAIC is a multimodal flow matching transformer over four coupled views of one molecule: structure, UV, IR, and Raman \(Figure[3](https://arxiv.org/html/2611.22098#S3.F3)a\)\. Each training sample is a tuple𝐱=\(xstruct,xUV,xIR,xRaman\)\\mathbf\{x\}=\(x^\{\\textrm\{struct\}\},x^\{\\textrm\{UV\}\},x^\{\\textrm\{IR\}\},x^\{\\textrm\{Raman\}\}\)over the modality setℳ=\{struct,UV,IR,Raman\}\\mathcal\{M\}=\\\{\\textrm\{struct\},\\textrm\{UV\},\\textrm\{IR\},\\textrm\{Raman\}\\\}, and any conditional generation task selects a target subset𝒯\\mathcal\{T\}and a conditioning subset𝒞⊆ℳ∖𝒯\\mathcal\{C\}\\subseteq\\mathcal\{M\}\\setminus\\mathcal\{T\}\. Molecular structures are tokenized per atom via a UAE\-3D\[[6](https://arxiv.org/html/2611.22098#bib.bib6)\]autoencoder, decoding to atom and bond types, as well as 3D coordinates\. The spectral modalities UV, IR, and Raman are split into 1\-D patches\.
We train MOSAIC in two stages: encoder pretraining and generative training\. During encoder pretraining, we train a shared encoder with self\-supervised objectives across all four modalities, including CLIP\-style contrastive alignment of representations from the same molecule \(Section[3\.1](https://arxiv.org/html/2611.22098#S3.SS1)\)\. During generative training, we train a non\-equivariant MMDiT generator\[[7](https://arxiv.org/html/2611.22098#bib.bib7)\]that applies joint self\-attention over structure and spectral tokens \(Section[3\.2](https://arxiv.org/html/2611.22098#S3.SS2)\)\. This architecture brings conditioning and target modalities together in a single multimodal token sequence\. During training, we sample target modalities using per\-modality Bernoulli distributions, with the remaining modalities providing conditioning\. The resulting masks\(𝒯,𝒞\)\(\\mathcal\{T\},\\mathcal\{C\}\)allow spectra\-to\-structure, structure\-to\-spectra, and joint co\-generation to share one set of weights and one objective \(Figure[3](https://arxiv.org/html/2611.22098#S3.F3)a\)\.
Figure 3:Overview of MOSAIC training and architecture\.\(a\)At each training step, we performany\-to\-anytraining by randomly selecting target modalities𝒯\\mathcal\{T\}and conditioning \(context\) modalities𝒞\\mathcal\{C\}\. For example, IR and Raman provide conditioning for generating UV and molecular structure\.\(b\)The pretrained encoder converts the conditioning modalities into context tokens, while each target modality is noised toxtmx\_\{t\}^\{m\}at timesteptmt^\{m\}\. We pass both sets of tokens to an MMDiT\[[7](https://arxiv.org/html/2611.22098#bib.bib7)\], where each of theDDblocks applies joint self\-attention across them\. The model predicts target velocitiesvθv\_\{\\theta\}, which are used at inference to iteratively generate the target modalities from noise\. The same model handles different combinations of conditioning and target modalities\.### 3\.1Multimodal encoder pretraining
During encoder pretraining, we train a shared transformer to align representations across scientific modalities and provide conditioning features for generative training\. We initialize the transformer with eight blocks and width512512over spectral patches, UAE\-3D atom latents, and one CLS token per modality\. Spectra are intensity arrays of different lengths, with patches projected to the shared width\. Joint self\-attention contextualizes modalities, while each spectrum retains its own physical grid \(Appendix[B\.3](https://arxiv.org/html/2611.22098#A2.SS3)\)\. We train this encoder with three complementary self\-supervised objectives under modality dropout and per\-token masking\.
*Masked reconstruction*recovers normalized spectral patches and UAE\-3D structure latents at masked positions using modality\-specific prediction heads\. We minimize mean squared error, with a larger weight on structure reconstruction\.*Cross\-modal contrastive alignment*uses symmetric InfoNCE\[[52](https://arxiv.org/html/2611.22098#bib.bib52)\], averaged over all\(42\)=6\\binom\{4\}\{2\}\\\!=\\\!6pairs of modality\-specific CLS embeddings\. For each modality pair, embeddings from the same molecule form a positive pair, while embeddings from different molecules in the batch serve as negatives\.*Self\-distillation*supervises the student’s early\-layer representations using later\-layer representations from an exponential moving average \(EMA\) teacher\. We mean\-pool each full token sequence, project and L2\-normalize the pooled representations, and minimize a scaled cosine\-distance loss between the student and teacher representations\. The overall objective is a weighted sum of these three losses \(Appendix[B\.3](https://arxiv.org/html/2611.22098#A2.SS3)\)\.
### 3\.2Multimodal any\-to\-any flow matching
For the flow matching model \(decoder\), we train a non\-equivariant MMDiT\[[7](https://arxiv.org/html/2611.22098#bib.bib7),[53](https://arxiv.org/html/2611.22098#bib.bib53)\]with rectified flow\[[18](https://arxiv.org/html/2611.22098#bib.bib18),[19](https://arxiv.org/html/2611.22098#bib.bib19),[7](https://arxiv.org/html/2611.22098#bib.bib7)\], operating on standardized UAE\-3D structure latents and normalized spectral patches\. Each MMDiT block applies joint self\-attention to noisy target tokens and encoder context tokens, using separate QKV projections, adaLN modulation, and MLPs for the two streams \(Figure[3](https://arxiv.org/html/2611.22098#S3.F3)b\)\. Before encoding, target modality inputs are replaced by learned mask embeddings while retaining their token positions\. The pretrained encoder is finetuned jointly with the MMDiT and supplies its full token sequence to the attention operation\. Its four CLS states are also concatenated and linearly projected for global adaLN modulation\[[53](https://arxiv.org/html/2611.22098#bib.bib53)\]\.
Conditions and targets are selected as whole modalities, without token subsampling \(Appendix[B\.3](https://arxiv.org/html/2611.22098#A2.SS3)\)\. For each training example, we sample target modalities, corrupt their representations, and regress the corresponding velocities\.*\(1\) Target\-set sampling*: the target subset𝒯\\mathcal\{T\}is drawn from independent per\-modality Bernoullis biased toward structure as the main downstream target, with the remaining modalities providing context before classifier\-free dropout \(Figure[3](https://arxiv.org/html/2611.22098#S3.F3)a\)\.
zm∼Bernoulli\(πm\),𝒯~=\{m∈ℳ:zm=1\}\.z\_\{m\}\\sim\\mathrm\{Bernoulli\}\(\\pi\_\{m\}\),\\quad\\widetilde\{\\mathcal\{T\}\}=\\\{m\\in\\mathcal\{M\}:z\_\{m\}=1\\\}\.\(1\)
whereπm\\pi\_\{m\}are per\-modality target\-sampling probabilities\. We set𝒯=𝒯~\\mathcal\{T\}=\\widetilde\{\\mathcal\{T\}\}when nonempty, and𝒯=\{struct\}\\mathcal\{T\}=\\\{\\textrm\{struct\}\\\}otherwise, then define𝒞=ℳ∖𝒯\\mathcal\{C\}=\\mathcal\{M\}\\setminus\\mathcal\{T\}\.*\(2\) Per\-modality noising*: targets are noised at independent timestepstm∼LogitNormal\(μm,1\)t^\{m\}\\sim\\mathrm\{LogitNormal\}\(\\mu\_\{m\},1\)while conditioning modalities pass clean through the pretrained encoder,
xtm\\displaystyle x\_\{t\}^\{m\}=\(1−tm\)x0m\+tmεm,εm∼𝒩\(0,I\)\\displaystyle=\(1\-t^\{m\}\)\\,x\_\{0\}^\{m\}\+t^\{m\}\\,\\varepsilon^\{m\},\\quad\\varepsilon^\{m\}\\sim\\mathcal\{N\}\(0,I\)form∈𝒯,\\displaystyle\\text\{for \}m\\in\\mathcal\{T\},\(2\)xtm\\displaystyle x\_\{t\}^\{m\}=x0m\\displaystyle=x\_\{0\}^\{m\}form∈𝒞\.\\displaystyle\\text\{for \}m\\in\\mathcal\{C\}\.Herex0mx\_\{0\}^\{m\}denotes clean normalized spectral patches or standardized UAE\-3D structure latents\. The modality\-specific logit\-space meansμm\\mu\_\{m\}control the training noise distributions, withμstruct=0\\mu\_\{\\textrm\{struct\}\}=0andμUV=μIR=μRaman=2\\mu\_\{\\textrm\{UV\}\}=\\mu\_\{\\textrm\{IR\}\}=\\mu\_\{\\textrm\{Raman\}\}=2, so spectral targets are sampled at higher noise levels more frequently than structure targets \(Appendix[G](https://arxiv.org/html/2611.22098#A7)\)\.*\(3\) Velocity regression*: the model regresses the rectified\-flow velocityεm−x0m\\varepsilon^\{m\}\-x\_\{0\}^\{m\}per target,
ℒgen=∑m∈ℳwmℓm\+λceℒatom\-CE\.\\mathcal\{L\}\_\{\\mathrm\{gen\}\}=\\sum\_\{m\\in\\mathcal\{M\}\}w\_\{m\}\\,\\ell\_\{m\}\+\\lambda\_\{\\mathrm\{ce\}\}\\,\\mathcal\{L\}\_\{\\mathrm\{atom\\text\{\-\}CE\}\}\.\(3\)
Hereℓm\\ell\_\{m\}is the velocity MSE averaged over features and valid target tokens,wmw\_\{m\}weights each modality, andℒatom\-CE\\mathcal\{L\}\_\{\\mathrm\{atom\\text\{\-\}CE\}\}averages atom\-type cross\-entropy over valid structure\-target atoms\. To compute this term, we undo standardization on the predicted clean structure latents,x^0=xt−tvθ\\hat\{x\}\_\{0\}=x\_\{t\}\-tv\_\{\\theta\}, and pass them through the frozen UAE\-3D decoder\. Appendix[B\.4](https://arxiv.org/html/2611.22098#A2.SS4)describes this in detail\.
Sampling different target sets trains a shared generator for structure generation, spectrum generation, and joint generation\. We use classifier\-free guidance \(CFG\)\[[54](https://arxiv.org/html/2611.22098#bib.bib54)\], jointly masking the encoder context tokens and CLS states for dropped examples during training\. All generative training hyperparameters and the inference procedure are reported in Appendix[B\.4](https://arxiv.org/html/2611.22098#A2.SS4)\.
Our main spectra\-to\-structure protocol uses the ground\-truth atom count to initialize the active structure tokens\. To accommodate scenarios where ground\-truth atom count is not known a priori, we train a variant that generates molecular structures with variable atom count by denoising structure latents over a fixed maximum number of slots\. This variant uses a randomly initialized conditioning encoder and additional atom\- and bond\-supervision losses, as detailed in Appendix[B\.4](https://arxiv.org/html/2611.22098#A2.SS4)\. The atom decoder assigns each slot either an atom type or an empty class, allowing the model to infer the atom count\. Figure[4](https://arxiv.org/html/2611.22098#S4.F4)\(bottom\) illustrates how slot occupancy and atom identity evolve during denoising\. Appendices[B\.4](https://arxiv.org/html/2611.22098#A2.SS4)and[B\.5](https://arxiv.org/html/2611.22098#A2.SS5)provide training and decoding details\.
## 4Experiments
Figure 4:Multimodal any\-to\-any generation with MOSAIC\.Top:a single MOSAIC model handles six conditioning settings for three test molecules, including spectra\-to\-structure, structure\-to\-spectra, partial completion, and unconditional joint generation\. Blue denotes given modalities and gold denotes generated outputs\.Bottom:a separate variable\-count variant infers atom occupancy from spectra using a fixed latent slot budget\. The highlighted atom changes from carbon \(black\) to empty, then nitrogen \(blue\) and oxygen \(red\) during denoising\.Table 2:Multimodal generation on QM9S; “All spec\.” uses UV\+IR\+Raman\. Reported times are per\-molecule averages from batched inference\.†With molecular formula and beam search \(n=10n\{=\}10\)\.‡Inference\-time single\-modality ablations of the same all\-spectra DiffSpectra checkpoint, with the other two spectral inputs set to zero and no additional training\.Cond\.Acc@1↑\\,\\uparrowH\-RMSD↓\\,\\downarrowComp↑\\,\\uparrowTaniMG↑\\,\\uparrowValid↑\\,\\uparrowSpec cos↑\\,\\uparrowStepsms/mol↓\\,\\downarrowUVIRRamanAutoregressive spectra\-to\-SMILESAlberts et al\.\[[12](https://arxiv.org/html/2611.22098#bib.bib12)\]IR\+form\.53\.7†53\.7^\{\\dagger\}—94\.3†94\.3^\{\\dagger\}0\.726†0\.726^\{\\dagger\}98\.5†98\.5^\{\\dagger\}————1919SMEN–SD\[[13](https://arxiv.org/html/2611.22098#bib.bib13)\]UV0\.90\.9—7\.27\.20\.1580\.15898\.598\.5—————SMEN–SD\[[13](https://arxiv.org/html/2611.22098#bib.bib13)\]IR60\.160\.1—75\.975\.90\.8230\.82397\.997\.9—————SMEN–SD\[[13](https://arxiv.org/html/2611.22098#bib.bib13)\]Raman65\.665\.6—77\.977\.90\.8690\.86997\.897\.8—————SpectraLLM\[[14](https://arxiv.org/html/2611.22098#bib.bib14)\]UV0\.00\.0—2\.82\.80\.0980\.09899\.999\.9—————SpectraLLM\[[14](https://arxiv.org/html/2611.22098#bib.bib14)\]IR0\.50\.5—16\.116\.10\.2000\.20099\.199\.1—————SpectraLLM\[[14](https://arxiv.org/html/2611.22098#bib.bib14)\]Raman0\.80\.8—13\.413\.40\.1970\.19798\.998\.9—————SpectraLLM\[[14](https://arxiv.org/html/2611.22098#bib.bib14)\]All spec\.0\.50\.5—19\.219\.20\.2080\.20898\.998\.9—————Diffusion spectra\-to\-3DDiffSpectra\[[8](https://arxiv.org/html/2611.22098#bib.bib8)\]UV‡0\.00\.01\.7621\.7620\.00\.00\.2200\.2200\.00\.0———1,0001\{,\}000475475IR‡0\.00\.01\.5781\.5780\.20\.20\.2010\.2011\.01\.0———1,0001\{,\}000473473Raman‡0\.80\.81\.5601\.5606\.66\.60\.2330\.23346\.046\.0———1,0001\{,\}000472472All spec\.60\.360\.31\.5391\.53996\.196\.10\.8310\.83197\.997\.9———1,0001\{,\}000469469Supervised 3D\-to\-spectraDetaNet\[[2](https://arxiv.org/html/2611.22098#bib.bib2)\]3D—————0\.6560\.6560\.8580\.8580\.8180\.818——Multimodal any\-to\-any \(Ours\)MOSAICUV0\.00\.01\.4071\.40715\.115\.10\.1490\.14977\.377\.3—0\.6270\.5905050315315IR73\.573\.50\.4330\.43393\.893\.80\.8700\.87093\.093\.00\.918—0\.9795050315315Raman79\.679\.60\.3570\.35794\.794\.70\.9070\.90793\.793\.70\.9260\.972—50503153153D—————0\.8560\.8560\.8680\.8680\.8520\.85250501,1721\{,\}172All spec\.88\.888\.80\.2650\.26598\.698\.60\.9490\.94996\.596\.5———5050315315
We benchmark MOSAIC against published baselines and evaluate structure\-to\-spectrum generation for retrieval against experimental spectra \(Section[4\.1](https://arxiv.org/html/2611.22098#S4.SS1.SSS0.Px4)\)\. We then ablate key model components and examine how performance scales with model size and training set size \(Section[4\.2](https://arxiv.org/html/2611.22098#S4.SS2)\)\.
#### Evaluation metrics\.
We evaluate structure and spectra generation via molecular graph recovery, geometric accuracy, chemical validity, and spectral similarity\.Acc@1measures the fraction of test molecules whose Top\-1 prediction matches the ground\-truth molecular graph, including atom and bond types\. We evaluate one generated sample for diffusion and flow matching models, and the highest\-ranked candidate for autoregressive baselines\.H\-RMSDmeasures coordinate error in Å after Kabsch alignment followed by Hungarian atom assignment based on coordinate distances, without using atom types\.Compis the fraction of predictions with the correct molecular formula\.TaniMGmeasures Tanimoto similarity between Morgan fingerprints\.Validis the fraction of generated molecular graphs that pass RDKit sanitization\.Spec cosmeasures cosine similarity between generated and reference spectra in the log\-transformed, standardized spectral space, reported separately for UV, IR, and Raman in Table[2](https://arxiv.org/html/2611.22098#S4.T2)\.
#### Dataset\.
We train and evaluate MOSAIC \(and baselines\) on QM9S\[[2](https://arxiv.org/html/2611.22098#bib.bib2)\], which pairs molecular structures from QM9\[[1](https://arxiv.org/html/2611.22098#bib.bib1)\]with simulated UV, IR, and Raman spectra\. Our split contains110,000110\{,\}000training molecules,10,00010\{,\}000validation molecules, and8,0578\{,\}057test molecules\. We evaluate on the full test split, with training and evaluation details provided in Appendices[B\.4](https://arxiv.org/html/2611.22098#A2.SS4)and[B\.5](https://arxiv.org/html/2611.22098#A2.SS5)\.
#### Baselines\.
We benchmark MOSAIC against three autoregressive spectra\-to\-SMILES baselines: Alberts et al\.\[[12](https://arxiv.org/html/2611.22098#bib.bib12)\], SMEN–SD\[[13](https://arxiv.org/html/2611.22098#bib.bib13)\], and SpectraLLM\[[14](https://arxiv.org/html/2611.22098#bib.bib14)\]\. Implementation details are provided in Appendix[C](https://arxiv.org/html/2611.22098#A3)\. We also compare against DiffSpectra\[[8](https://arxiv.org/html/2611.22098#bib.bib8)\], a diffusion\-based spectra\-to\-3D structure model, and its single\-modality ablations\. We retrain DiffSpectra on the full canonical QM9S training split of110110k molecules\. The model of Alberts et al\. receives the ground\-truth molecular formula as additional conditioning information, which is not provided to MOSAIC, and uses beam search with a beam width of1010at inference\. The three autoregressive baselines generate neither 3D coordinates nor spectra, so H\-RMSD and spectrum\-generation metrics are not applicable\. Both MOSAIC and DiffSpectra receive the ground\-truth atom count for spectra\-to\-structure generation in Table[2](https://arxiv.org/html/2611.22098#S4.T2)\. We also evaluate a separate MOSAIC variant that infers the atom count from spectra, achieving85\.5%85\.5\\%Acc@1 \(Section[4\.1](https://arxiv.org/html/2611.22098#S4.SS1.SSS0.Px3)\)\.
### 4\.1Results
#### Spectra\-to\-structure generation\.
We compare MOSAIC against the baseline models for the key spectra\-to\-structure task in Table[2](https://arxiv.org/html/2611.22098#S4.T2)\. We present two settings 1\) individual spectra as inputs, 2\) all 3 spectra as inputs\. In the latter, MOSAIC improves structure generation over DiffSpectra by28\.528\.5% \(88\.8%88\.8\\%vs\.60\.3%60\.3\\%\), while reducing H\-RMSD from1\.5391\.539to0\.2650\.265\. Concomitantly, MOSAIC also achieves the best TaniMGand Comp across all models\.
#### Any\-to\-any generation\.
A single trained MOSAIC model supports generation in both directions between molecular structures and spectra\. When conditioned on molecular structures, it generates UV, IR, and Raman spectra with higher cosine similarity to ground truth than DetaNet, a specialized structure\-to\-spectra predictor \(Table[2](https://arxiv.org/html/2611.22098#S4.T2)\)\. For structure generation on QM9S, MOSAIC achieves Acc@1 of 73\.5% and 79\.6% using IR and Raman, respectively, as the sole spectral input\. Unlike the specialized baselines, MOSAIC supports both generation directions and different combinations of spectral inputs within a single model\. This flexibility is especially relevant to laboratory workflows, where only one or two spectral modalities may be available\. Performance nevertheless depends on the conditioning modality\. UV\-only conditioning yields0%0\\%Acc@1, despite high cosine similarity for structure\-to\-UV generation\. We hypothesize that this asymmetry reflects greater ambiguity in recovering exact molecular connectivity from UV electronic transitions than from IR and Raman vibrational fingerprints\.
#### Structure generation without atom count known a priori\.
We also evaluate a MOSAIC variant that jointly infers molecular size and structure from spectra, without receiving the ground\-truth atom count\. On the full QM9S test set, this variant achieves85\.5%85\.5\\%Acc@1, compared with88\.8%88\.8\\%for count\-conditioned MOSAIC \(Table[2](https://arxiv.org/html/2611.22098#S4.T2)\)\. It predicts the atom count and molecular formula correctly for95\.8%95\.8\\%and95\.1%95\.1\\%of test molecules, respectively\. H\-RMSD is0\.2330\.233Å when evaluated on ground\-truth occupied slots\. Evaluation details are provided in Appendix[B\.5](https://arxiv.org/html/2611.22098#A2.SS5)\. These results show that MOSAIC can generate molecular structures without requiring the atom count as an input\.
#### Matching generated spectra to experimental spectra\.
We evaluate whether structure\-conditioned spectrum generation can retrieve a molecule’s experimental IR spectrum from a fixed database of9999gas\-phase IR spectra\[[55](https://arxiv.org/html/2611.22098#bib.bib55)\]\. For each molecule, we use MOSAIC to generate an IR spectrum from its structure and rank all experimental spectra by cosine similarity to the generated spectrum\. We compare MOSAIC against an adapted DetaNet direct\-spectrum predictor using the same candidate database\. As shown in Table[4](https://arxiv.org/html/2611.22098#A5.T4), MOSAIC ranks the correct spectrum first for15\.2%15\.2\\%of molecules, compared with5\.1%5\.1\\%for DetaNet, and among the top five for30\.3%30\.3\\%, compared with17\.2%17\.2\\%\. Mean matched\-spectrum cosine similarity is0\.3080\.308for MOSAIC versus0\.1940\.194for DetaNet\. These results indicate simulation\-to\-experiment transfer, where MOSAIC outperforms baselines in retrieving experimental IR spectra \(including spectra with contaminants\) despite being trained solely on simulated QM9S data\. Evaluation details and limitations are provided in Appendix[E](https://arxiv.org/html/2611.22098#A5)\.
### 4\.2Ablations
Figure 5:Model and data scaling\.\(a–c\)Acc@1, H\-RMSD and Composition across model scale\.\(d\)The structure\-only model overfits, while the multimodal model \(gold\) remains stable\. Adding IR only as a co\-target \(purple\) outperforms struct\-only and captures most of the 3\-spectra advantage\.\(e\)Spectra generation quality across model scale\.\(f–h\)Data scaling with an M\-scale decoder\.#### Multimodal encoder pretraining\.
We ablate the three encoder pretraining objectives: masked reconstruction, cross\-modal contrastive alignment, and EMA self\-distillation\. Masked reconstruction contributes most to encoder performance, followed by contrastive alignment and self\-distillation\. Detailed results are provided in Appendix[K](https://arxiv.org/html/2611.22098#A11)\.
#### Multimodal any\-to\-any flow matching training\.
We study the influence of pretraining the multimodal encoder before generative training\. We compare three settings, frozen pretrained, pretrain\-then\-finetune end\-to\-end and randomly initialized then trained end\-to\-end \(Table[12](https://arxiv.org/html/2611.22098#A12.T12)\)\. The pretrain\-then\-finetune approach improves structure generation over frozen pretraining and random initialization by approximately2525and1313%, respectively\. More details are available in Appendix[L](https://arxiv.org/html/2611.22098#A12)\.
Next, we ablate the contribution of spectral generation targets by training a structure\-only variant, MOSAIC\-struct\-only\. During flow matching training, we setπstruct=1\\pi\_\{\\mathrm\{struct\}\}=1andπUV=πIR=πRaman=0\\pi\_\{\\mathrm\{UV\}\}=\\pi\_\{\\mathrm\{IR\}\}=\\pi\_\{\\mathrm\{Raman\}\}=0, so that spectra serve only as conditioning inputs\. This ablation tests whether jointly learning to generate spectra improves structure generation\. Figure[5](https://arxiv.org/html/2611.22098#S4.F5)compares the two models across model sizes and training\-set sizes\.
#### Model scaling\.
We compare decoder sizes from S \(1515M\) to L \(7878M\), training each on110110k molecules for400400k steps \(Figure[5](https://arxiv.org/html/2611.22098#S4.F5)a–c\)\. We select each model’s checkpoint independently using the same validation criterion\. Both MOSAIC and MOSAIC\-struct\-only improve with model size, with MOSAIC achieving roughly 5% higher Acc@1 across S, M, and L\. Training curves reveal a further difference \(Figure[5](https://arxiv.org/html/2611.22098#S4.F5)d\): structure generation for MOSAIC\-struct\-only peaks around280280–330330k steps before declining\. Adding IR as a prediction target reduces this decline, while joint training on structure and all three spectra achieves the strongest and most stable performance\. We observe similar trends across model sizes \(Figure[8](https://arxiv.org/html/2611.22098#A4.F8)\), suggesting that learning to predict spectra provides complementary supervision that improves structure generation\. Structure\-to\-spectra generation also improves with model size \(Figure[5](https://arxiv.org/html/2611.22098#S4.F5)e\), showing that scaling benefits both generation directions\.
#### Data scaling\.
MOSAIC achieves better structure generation than MOSAIC\-struct\-only across all training\-set sizes \(Figure[5](https://arxiv.org/html/2611.22098#S4.F5)f\)\. The advantage grows from2\.72\.7% at1010k training molecules to5\.75\.7% at110110k, with similar trends in H\-RMSD and molecular formula prediction \(Figure[5](https://arxiv.org/html/2611.22098#S4.F5)g–h\)\. These results suggest that the benefit of multimodal training extends beyond low\-data settings \(Table[3](https://arxiv.org/html/2611.22098#A4.T3)\)\.
Figure 6:Layer\-wise probes on MOSAIC structure tokens\.From DiT layer 2 onward, the multimodal MOSAIC representations are richer than struct\-only representations for every prediction task\. Metrics are averaged over noise levels\. See Appendix[B\.6](https://arxiv.org/html/2611.22098#A2.SS6)for the encoding and probing protocol\.
#### Learned representations\.
We assess the learned structure representations by freezing each generator and training probes across six layers to predict five molecular properties\. Figure[6](https://arxiv.org/html/2611.22098#S4.F6)shows that MOSAIC achieves higher noise\-averaged scores than MOSAIC\-struct\-only on all five tasks from layer two onward\. These results are consistent with spectral co\-targets providing chemically meaningful auxiliary supervision, helping the model encode information about related molecular properties in its structure\-token representations\.
## 5Conclusion
We introduce MOSAIC, a multimodal flow matching model that combines a self\-supervised encoder with an MMDiT generator for any\-to\-any generation across molecular structures and UV, IR, and Raman spectra\. On QM9S, MOSAIC outperforms the strong specialist spectra\-to\-structure and structure\-to\-spectra baselines, while enabling reverse generation and missing\-modality completion using asinglemodel\. Ablations and scaling studies demonstrate the benefits of multimodal any\-to\-any training for structure and spectral generation\. Linear probes further suggest that multimodal training yields richer molecular representations than structure\-only training\. We further demonstrate the potential utility of bidirectional generation for experimental settings by linking molecular structures to experimental IR spectra\.
## Acknowledgments and Disclosure of Funding
This work was funded by Lila Sciences, where all authors are employed\. The authors declare no other competing interests\.
## References
- \[1\]Raghunathan Ramakrishnan, Pavlo O Dral, Matthias Rupp, and O Anatole Von Lilienfeld\.Quantum chemistry structures and properties of 134 kilo molecules\.*Scientific data*, 1\(1\):140022, 2014\.
- \[2\]Zihan Zou, Yujin Zhang, Lijun Liang, Mingzhi Wei, Jiancai Leng, Jun Jiang, Yi Luo, and Wei Hu\.A deep learning model for predicting selected organic molecular spectra\.*Nature Computational Science*, 3\(11\):957–964, 2023\.
- \[3\]Hanchen Wang, Tianfan Fu, Yuanqi Du, Wenhao Gao, Kexin Huang, Ziming Liu, Payal Chandak, Shengchao Liu, Peter Van Katwyk, Andreea Deac, et al\.Scientific discovery in the age of artificial intelligence\.*Nature*, 620\(7972\):47–60, 2023\.
- \[4\]Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola\.Position: The platonic representation hypothesis\.In*Proceedings of the 41st International Conference on Machine Learning*, volume 235 of*Proceedings of Machine Learning Research*, pages 20617–20642, 2024\.URL[https://proceedings\.mlr\.press/v235/huh24a\.html](https://proceedings.mlr.press/v235/huh24a.html)\.
- \[5\]Randall Balestriero and Yann LeCun\.Proving and improving the platonic representation hypothesis with JEPAs\.*arXiv preprint arXiv:2610\.39302*, 2026\.URL[https://arxiv\.org/abs/2610\.39302](https://arxiv.org/abs/2610.39302)\.
- \[6\]Yanchen Luo, ZHIYUAN LIU, Yi Zhao, Sihang Li, Hengxing Cai, Kenji Kawaguchi, Tat\-Seng Chua, Yang Zhang, and Xiang Wang\.Towards unified and lossless latent space for 3d molecular latent diffusion modeling\.In D\. Belgrave, C\. Zhang, H\. Lin, R\. Pascanu, P\. Koniusz, M\. Ghassemi, and N\. Chen, editors,*Advances in Neural Information Processing Systems*, volume 38, Main Conference, pages 30718–30748\. Curran Associates, Inc\., 2025\.doi:10\.52202/085713\-1032\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2025/file/2c2f104b95306ab94058a97ba13b8927\-Paper\-Conference\.pdf](https://proceedings.neurips.cc/paper_files/paper/2025/file/2c2f104b95306ab94058a97ba13b8927-Paper-Conference.pdf)\.
- \[7\]Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al\.Scaling rectified flow transformers for high\-resolution image synthesis\.In*Forty\-first international conference on machine learning*, 2024\.
- \[8\]Liang Wang, Yu Rong, Tingyang Xu, Zhenyi Zhong, Zhiyuan Liu, Pengju Wang, Deli Zhao, Qiang Liu, Shu Wu, Liang Wang, and Yang Zhang\.Diffspectra: Molecular structure elucidation from spectra using diffusion models\.*arXiv preprint arXiv:2507\.06853*, 2025a\.
- \[9\]Montgomery Bohde, Mrunali Manjrekar, Runzhong Wang, Shuiwang Ji, and Connor W Coley\.Diffms: Diffusion generation of molecules conditioned on mass spectra\.*arXiv preprint arXiv:2502\.09571*, 2025\.
- \[10\]Jianan Nie and Peng Gao\.Flowms: Flow matching for de novo structure elucidation from mass spectra\.*arXiv preprint arXiv:2603\.18397*, 2026\.
- \[11\]Montgomery Bohde, Hongxuan Liu, Mrunali Manjrekar, Magdalena Lederbauer, Shuiwang Ji, Runzhong Wang, and Connor W Coley\.Frigid: Scaling diffusion\-based molecular generation from mass spectra at training and inference time\.*arXiv preprint arXiv:2604\.16648*, 2026\.
- \[12\]Marvin Alberts, Teodoro Laino, and Alain C Vaucher\.Leveraging infrared spectroscopy for automated structure elucidation\.*Communications Chemistry*, 7\(1\):268, 2024\.
- \[13\]Ganesh Chandan Kanakala, Bhuvanesh Sridharan, and U\. Deva Priyakumar\.Spectra to structure: contrastive learning framework for library ranking and generating molecular structures for infrared spectra\.*Digital Discovery*, 3\(12\):2417–2423, 2024\.doi:10\.1039/D4DD00135D\.
- \[14\]Yunyue Su, Jiahui Chen, Zao Jiang, Zhenyi Zhong, Liang Wang, Qiang Liu, and Zhaoxiang Zhang\.SpectraLLM: Uncovering the ability of LLMs for molecular structure elucidation from multi\-spectral data\.In*The Fourteenth International Conference on Learning Representations*, 2026\.URL[https://openreview\.net/forum?id=J5XUzUW8o3](https://openreview.net/forum?id=J5XUzUW8o3)\.
- \[15\]Yang Song and Stefano Ermon\.Generative modeling by estimating gradients of the data distribution\.*Advances in neural information processing systems*, 32, 2019\.
- \[16\]Jonathan Ho, Ajay Jain, and Pieter Abbeel\.Denoising diffusion probabilistic models\.*Advances in neural information processing systems*, 33:6840–6851, 2020\.
- \[17\]Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine\.Elucidating the design space of diffusion\-based generative models\.*Advances in neural information processing systems*, 35:26565–26577, 2022\.
- \[18\]Yaron Lipman, Ricky TQ Chen, Heli Ben\-Hamu, Maximilian Nickel, and Matt Le\.Flow matching for generative modeling\.*arXiv preprint arXiv:2210\.02747*, 2022\.
- \[19\]Xingchao Liu, Chengyue Gong, and Qiang Liu\.Flow straight and fast: Learning to generate and transfer data with rectified flow\.*arXiv preprint arXiv:2209\.03003*, 2022\.
- \[20\]Clement Vignac, Igor Krawczuk, Antoine Siraudin, Bohan Wang, Volkan Cevher, and Pascal Frossard\.Digress: Discrete denoising diffusion for graph generation\.*arXiv preprint arXiv:2209\.14734*, 2022\.
- \[21\]Emiel Hoogeboom, Vıctor Garcia Satorras, Clément Vignac, and Max Welling\.Equivariant diffusion for molecule generation in 3d\.In*International conference on machine learning*, pages 8867–8887\. PMLR, 2022\.
- \[22\]Clement Vignac, Nagham Osman, Laura Toni, and Pascal Frossard\.Midi: Mixed graph and 3d denoising diffusion for molecule generation\.In*Joint European Conference on Machine Learning and Knowledge Discovery in Databases*, pages 560–576\. Springer, 2023\.
- \[23\]Yuxuan Song, Jingjing Gong, Minkai Xu, Ziyao Cao, Yanyan Lan, Stefano Ermon, Hao Zhou, and Wei\-Ying Ma\.Equivariant flow matching with hybrid probability transport for 3d molecule generation\.*Advances in Neural Information Processing Systems*, 36:549–568, 2023\.
- \[24\]Ian Dunn and David Ryan Koes\.Mixed continuous and categorical flow matching for 3d de novo molecule generation\.*arXiv preprint arXiv:2404\.19739*, 2024\.URL[https://arxiv\.org/abs/2404\.19739](https://arxiv.org/abs/2404.19739)\.
- \[25\]Minkai Xu, Alexander S Powers, Ron O Dror, Stefano Ermon, and Jure Leskovec\.Geometric latent diffusion models for 3d molecule generation\.In*International Conference on Machine Learning*, pages 38592–38610\. PMLR, 2023\.
- \[26\]Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen\.GLIDE: Towards photorealistic image generation and editing with text\-guided diffusion models\.*arXiv preprint arXiv:2112\.10741*, 2021\.
- \[27\]Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen\.Hierarchical text\-conditional image generation with CLIP latents\.*arXiv preprint arXiv:2204\.06125*, 2022\.
- \[28\]Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer\.High\-resolution image synthesis with latent diffusion models\.In*Proceedings of the IEEE/CVF conference on computer vision and pattern recognition*, pages 10684–10695, 2022\.
- \[29\]Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Burcu Karagol Ayan, S\. Sara Mahdavi, Raphael Gontijo\-Lopes, Tim Salimans, Jonathan Ho, David J Fleet, and Mohammad Norouzi\.Photorealistic text\-to\-image diffusion models with deep language understanding\.*Advances in neural information processing systems*, 35:36479–36494, 2022\.
- \[30\]Felix Kreuk, Gabriel Synnaeve, Adam Polyak, Uriel Singer, Alexandre Défossez, Jade Copet, Devi Parikh, Yaniv Taigman, and Yossi Adi\.AudioGen: Textually guided audio generation\.*arXiv preprint arXiv:2209\.15352*, 2022\.
- \[31\]Haohe Liu, Zehua Chen, Yi Yuan, Xinhao Mei, Xubo Liu, Danilo Mandic, Wenwu Wang, and Mark D Plumbley\.AudioLDM: Text\-to\-audio generation with latent diffusion models\.*arXiv preprint arXiv:2301\.12503*, 2023\.
- \[32\]Jade Copet, Felix Kreuk, Itai Gat, Tal Remez, David Kant, Gabriel Synnaeve, Yossi Adi, and Alexandre Défossez\.Simple and controllable music generation\.*Advances in neural information processing systems*, 36:47704–47720, 2023\.
- \[33\]Zach Evans, CJ Carr, Josiah Taylor, Scott H Hawley, and Jordi Pons\.Fast timing\-conditioned latent audio diffusion\.In*Forty\-first International Conference on Machine Learning*, 2024\.
- \[34\]Jonathan Ho, William Chan, Chitwan Saharia, Jay Whang, Ruiqi Gao, Alexey Gritsenko, Diederik P Kingma, Ben Poole, Mohammad Norouzi, David J Fleet, et al\.Imagen video: High definition video generation with diffusion models\.*arXiv preprint arXiv:2210\.02303*, 2022\.
- \[35\]Uriel Singer, Adam Polyak, Thomas Hayes, Xi Yin, Jie An, Songyang Zhang, Qiyuan Hu, Harry Yang, Oron Ashual, Oran Gafni, et al\.Make\-a\-video: Text\-to\-video generation without text\-video data\.*arXiv preprint arXiv:2209\.14792*, 2022\.
- \[36\]Andreas Blattmann, Robin Rombach, Huan Ling, Tim Dockhorn, Seung Wook Kim, Sanja Fidler, and Karsten Kreis\.Align your latents: High\-resolution video synthesis with latent diffusion models\.In*Proceedings of the IEEE/CVF conference on computer vision and pattern recognition*, pages 22563–22575, 2023a\.
- \[37\]Andreas Blattmann, Tim Dockhorn, Sumith Kulal, Daniel Mendelevitch, Maciej Kilian, Dominik Lorenz, Yam Levi, Zion English, Vikram Voleti, Adam Letts, et al\.Stable video diffusion: Scaling latent video diffusion models to large datasets\.*arXiv preprint arXiv:2311\.15127*, 2023b\.
- \[38\]Ben Poole, Ajay Jain, Jonathan T Barron, and Ben Mildenhall\.DreamFusion: Text\-to\-3D using 2D diffusion\.*arXiv preprint arXiv:2209\.14988*, 2022\.
- \[39\]Chen\-Hsuan Lin, Jun Gao, Luming Tang, Towaki Takikawa, Xiaohui Zeng, Xun Huang, Karsten Kreis, Sanja Fidler, Ming\-Yu Liu, and Tsung\-Yi Lin\.Magic3D: High\-resolution text\-to\-3D content creation\.In*Proceedings of the IEEE/CVF conference on computer vision and pattern recognition*, pages 300–309, 2023\.
- \[40\]Sherwin Bahmani, Ivan Skorokhodov, Victor Rong, Gordon Wetzstein, Leonidas Guibas, Peter Wonka, Sergey Tulyakov, Jeong Joon Park, Andrea Tagliasacchi, and David B Lindell\.4D\-fy: Text\-to\-4D generation using hybrid score distillation sampling\.In*Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*, pages 7996–8006, 2024\.
- \[41\]Lili Yu, Bowen Shi, Ramakanth Pasunuru, Benjamin Muller, Olga Golovneva, Tianlu Wang, Arun Babu, Binh Tang, Brian Karrer, Shelly Sheynin, Candace Ross, Adam Polyak, Russell Howes, Vasu Sharma, Puxin Xu, Hovhannes Tamoyan, Oron Ashual, Uriel Singer, Shang\-Wen Li, Susan Zhang, Richard James, Gargi Ghosh, Yaniv Taigman, Maryam Fazel\-Zarandi, Asli Celikyilmaz, Luke Zettlemoyer, and Armen Aghajanyan\.Scaling autoregressive multi\-modal models: Pretraining and instruction tuning, 2023\.URL[https://arxiv\.org/abs/2309\.02591](https://arxiv.org/abs/2309.02591)\.
- \[42\]Chameleon Team\.Chameleon: Mixed\-modal early\-fusion foundation models\.*arXiv preprint arXiv:2405\.09818*, 2024\.
- \[43\]Jiasen Lu, Christopher Clark, Sangho Lee, Zichen Zhang, Savya Khosla, Ryan Marten, Derek Hoiem, and Aniruddha Kembhavi\.Unified\-IO 2: Scaling autoregressive multimodal models with vision language audio and action\.In*Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*, pages 26439–26455, 2024\.
- \[44\]Chunting Zhou, Lili Yu, Arun Babu, Kushal Tirumala, Michihiro Yasunaga, Leonid Shamis, Jacob Kahn, Xuezhe Ma, Luke Zettlemoyer, and Omer Levy\.Transfusion: Predict the next token and diffuse images with one multi\-modal model\.*arXiv preprint arXiv:2408\.11039*, 2024\.
- \[45\]Jinheng Xie, Weijia Mao, Zechen Bai, David Junhao Zhang, Weihao Wang, Kevin Qinghong Lin, Yuchao Gu, Zhijie Chen, Zhenheng Yang, and Mike Zheng Shou\.Show\-o: One single transformer to unify multimodal understanding and generation\.*arXiv preprint arXiv:2408\.12528*, 2024\.
- \[46\]Fan Bao, Shen Nie, Kaiwen Xue, Chongxuan Li, Shi Pu, Yaole Wang, Gang Yue, Yue Cao, Hang Su, and Jun Zhu\.One transformer fits all distributions in multi\-modal diffusion at scale\.In*International Conference on Machine Learning*, pages 1692–1717\. PMLR, 2023\.
- \[47\]Zineng Tang, Ziyi Yang, Chenguang Zhu, Michael Zeng, and Mohit Bansal\.Any\-to\-any generation via composable diffusion\.In*Advances in Neural Information Processing Systems*, volume 36, pages 16083–16099, 2023\.
- \[48\]Roman Bachmann, David Mizrahi, Andrei Atanov, and Amir Zamir\.MultiMAE: Multi\-modal multi\-task masked autoencoders\.In*European conference on computer vision*, pages 348–367\. Springer, 2022\.
- \[49\]David Mizrahi, Roman Bachmann, Oguzhan Kar, Teresa Yeo, Mingfei Gao, Afshin Dehghan, and Amir Zamir\.4M: Massively multimodal masked modeling\.*Advances in Neural Information Processing Systems*, 36:58363–58408, 2023\.
- \[50\]Roman Bachmann, Oğuzhan F Kar, David Mizrahi, Ali Garjani, Mingfei Gao, David Griffiths, Jiaming Hu, Afshin Dehghan, and Amir Zamir\.4M\-21: An any\-to\-any vision model for tens of tasks and modalities\.*Advances in Neural Information Processing Systems*, 37:61872–61911, 2024\.
- \[51\]Emmanuel Noutahi, Cristian Gabellini, Michael Craig, Jonathan S\. C\. Lim, and Prudencio Tossou\.Gotta be SAFE: a new framework for molecular design\.*Digital Discovery*, 3\(4\):796–804, 2024\.doi:10\.1039/D4DD00019F\.
- \[52\]Aaron van den Oord, Yazhe Li, and Oriol Vinyals\.Representation learning with contrastive predictive coding\.*arXiv preprint arXiv:1807\.03748*, 2018\.
- \[53\]William Peebles and Saining Xie\.Scalable diffusion models with transformers\.In*2023 IEEE/CVF International Conference on Computer Vision \(ICCV\)*, pages 4172–4182\. IEEE, 2023\.
- \[54\]Jonathan Ho and Tim Salimans\.Classifier\-free diffusion guidance\.*arXiv preprint arXiv:2207\.12598*, 2022\.
- \[55\]EUROCHAMP and AERIS\.EUROCHAMP library of analytical resources: IR spectra\.URL[https://data\.eurochamp\.org/data\-access/ir\-spectra/](https://data.eurochamp.org/data-access/ir-spectra/)\.Individual records licensed under CC BY 4\.0; accessed 6 November 2026\.
- \[56\]Akshay Subramanian, Elton Pan, Juno Nam, Maurice Weiler, Shuhui Qu, Cheol Woo Park, Tommi S Jaakkola, Elsa Olivetti, and Rafael Gomez\-Bombarelli\.PackFlow: Generative molecular crystal structure prediction via reinforcement learning alignment\.*arXiv preprint arXiv:2602\.20140*, 2026\.
- \[57\]Liang Wang, Shaozhen Liu, Yu Rong, Deli Zhao, Qiang Liu, Shu Wu, and Liang Wang\.MolSpectra: Pre\-training 3D molecular representation with multi\-modal energy spectra\.*arXiv preprint arXiv:2502\.16284*, 2025b\.
## Author Contributions
T\.P\. conceived the study, developed and implemented the MOSAIC framework, conducted experiments and analyses, and wrote the manuscript\. E\.P\. synthesized analysis of the MOSAIC framework, implemented and evaluated baselines, contributed to manuscript writing and prepared figures\. R\.G\.\-B\. provided scientific guidance and research direction, and reviewed the manuscript\. S\.M\. supervised the research, coordinated the project, and reviewed the manuscript\.
## License
## Appendix ALimitations and Broader Impacts
All structure generation results are on QM9\-sized molecules \(≤9\\leq\\\!9heavy atoms\) with simulated DFT spectra\. Spectra\-to\-structure generation under experimental noise, larger conformational diversity, and drug\-like molecular sizes remains untested\. The scaling results describe improvements within QM9S, whose training and test sets cover similar chemical space\. As with any molecular structure generator, deployment at larger scales could pose misuse risks in unsafe chemistry applications, and would require domain\-specific safeguards, screening, and human oversight before practical use\.
The standard structure\-generation benchmark uses a supplied atom\-count/active\-slot mask\. The variable\-count extension removes this inference\-time input, but retains a fixed maximum slot budget and is evaluated here on the same test split \(Appendix[B\.5](https://arxiv.org/html/2611.22098#A2.SS5)\)\.
## Appendix BImplementation details
This section provides full hyperparameters for the MOSAIC model, the UAE\-3D structure autoencoder \(Appendix[B\.1](https://arxiv.org/html/2611.22098#A2.SS1)\), the spectral tokenizer \(Appendix[B\.2](https://arxiv.org/html/2611.22098#A2.SS2)\), the self\-supervised multimodal encoder \(Appendix[B\.3](https://arxiv.org/html/2611.22098#A2.SS3)\), and the multimodal flow matching generator \(Appendix[B\.4](https://arxiv.org/html/2611.22098#A2.SS4)\)\.
### B\.1UAE\-3D structure autoencoder
The structure tokenizer is a UAE\-3D\-style variational autoencoder\[[6](https://arxiv.org/html/2611.22098#bib.bib6)\]over atom\-coordinate pairs\. We train it from scratch on the same110110k\-molecule QM9S training set as encoder pretraining and generative training \(Appendix[J](https://arxiv.org/html/2611.22098#A10)\)\. The trained UAE is frozen during downstream training\. The variable count extension uses a separate UAE checkpoint whose atom decoder predicts six classes: empty, H, C, N, O, and F \(Appendix[B\.4](https://arxiv.org/html/2611.22098#A2.SS4)\)\.
Architecture\.The standard UAE encoder comprises66relational\-attention blocks of width6464with88heads\. Its node inputs concatenate4444\-dimensional RDKit atom features with33D coordinates\. Edge features comprise bond\-type indicators, a self\-loop indicator, and a Gaussian\-basis expansion of squared interatomic distances\. The encoder predicts a1616\-dimensional posterior mean and log\-variance for each atom\. The decoder comprises44pre\-norm transformer blocks of width6464with88heads and predicts per\-atom coordinates, atom\-type logits over\{H,C,N,O,F\}\\\{\\mathrm\{H,C,N,O,F\}\\\}, and pairwise bond\-type logits\. Input coordinates are centred and scaled per molecule\. After training, posterior means are standardized using a single scalar mean and standard deviation computed across all latents in the training set before use by the generator\.
### B\.2Spectral patching and normalization
UV, IR, and Raman spectra are tokenized using linear projections of fixed\-length one\-dimensional patches, analogous to image patch embeddings\. We use701701UV samples on a11–1515eV grid \(0\.020\.02eV spacing\), and3,5013\{,\}501samples each for IR and Raman over500500–4,0004\{,\}000cm\-1\(11cm\-1spacing\)\. For the encoder, we use overlapping patches of length20/50/5020/50/50with stride10/25/2510/25/25for UV/IR/Raman, producing69\+139\+139=34769\+139\+139=347tokens per molecule\. For the generator, we use non\-overlapping patches of length10/25/2510/25/25with the same strides, producing70\+140\+140=35070\+140\+140=350tokens\. We normalize all spectra using a two\-step procedure\. First, we applyx↦log\(1\+x\)x\\mapsto\\log\(1\+x\)to compress the long tail of high\-intensity features\. Second, we standardize each log\-transformed spectrum independently across its spectral bins by subtracting its mean and dividing by its standard deviation\.
### B\.3Multimodal encoder pretraining
The self\-supervised multimodal encoder described in Section[3\.1](https://arxiv.org/html/2611.22098#S3.SS1)is an88\-block transformer with width512512and88attention heads\. It is trained on the110110k\-molecule training set for100100k steps using AdamW, with learning rate×10−43\\\!\\times\\\!10^\{\-4\}, minimum learning rate10−510^\{\-5\}, weight decay0\.050\.05, maximum gradient norm1\.01\.0, a2,0002\{,\}000\-step warmup, and batch size128128\. Training was performed on a single H100 GPU and took approximately1212GPU\-hours\. For masked input construction, we apply modality dropout with probability0\.20\.2, followed by token masking with probability0\.40\.4within each remaining modality\. Each modality has a linear reconstruction head applied directly to the encoder’s output states\. We minimize MSE against normalized spectral patches or UAE\-3D structure latents at masked positions, including those in dropped modalities\. Padded atom slots are excluded from this loss\. The structure reconstruction term is weighted by a factor of33\.
We also include a cross\-modal contrastive loss and a self\-distillation loss\. First, we use a symmetric InfoNCE objective\[[52](https://arxiv.org/html/2611.22098#bib.bib52)\]with temperature0\.070\.07, averaged over all\(42\)=6\\binom\{4\}\{2\}=6pairs of per\-modality CLS tokens\. Second, we match mean\-pooled student states from block33to EMA\-teacher states from block66\. Pooling covers the full token sequence, including CLS tokens, padded atom slots, and dropped\-modality positions\. The teacher sees the same modality dropout as the student, but no token masking\. Each pooled vector passes through a two\-layer MLP with128128output dimensions, using an EMA copy of the student\. After L2 normalization, we minimize2−2cos\(s,t\)2\-2\\cos\(s,t\)between the projected student and teacher vectors\. The teacher EMA decay is0\.99990\.9999\. The final encoder pretraining loss uses weightsλrecon=1\.0\\lambda\_\{\\mathrm\{recon\}\}=1\.0,λcontr=0\.5\\lambda\_\{\\mathrm\{contr\}\}=0\.5, andλdistill=0\.5\\lambda\_\{\\mathrm\{distill\}\}=0\.5\.
For generator conditioning, the encoder keeps a fixed380380\-slot sequence:6969UV patches,139139IR patches,139139Raman patches,2929atom slots, and four CLS tokens\. Spectral patches contain2020,5050, and5050grid points, with strides of1010,2525, and2525, respectively\. A withheld modality retains its slots, but its input content is replaced by learned mask embeddings together with the position, modality, and CLS embeddings\. Its output states therefore reflect the observed context without exposing the withheld input\. The full encoder output supplies the generator’s attention context\. The four CLS states are concatenated in UV, IR, Raman, and structure order and linearly projected to a global adaLN conditioning vector, which controls feature scales, shifts, and residual gates in every MMDiT block\. For the main benchmark, this encoder is finetuned end\-to\-end together with the DiT generator described in Section[B\.4](https://arxiv.org/html/2611.22098#A2.SS4), rather than kept frozen\. The frozen\-encoder setting is reported separately in the×23\\\!\\times\\\!2attribution table in Appendix[L](https://arxiv.org/html/2611.22098#A12)\.
### B\.4Multimodal flow matching training
The MOSAIC generator is a298298M\-parameter MMDiT\. Training uses a300300k\-step budget on4×4\\timesH100 GPUs with batch size256256\(6464per GPU\)\. Results in Table[2](https://arxiv.org/html/2611.22098#S4.T2)are reported from the EMA checkpoint\. We describe the architecture, optimization, target sampling, timestep schedule, and classifier\-free guidance below\. Within each matched experimental setting in Section[4\.2](https://arxiv.org/html/2611.22098#S4.SS2), the struct\-only ablation uses the same architecture and training hyperparameters as its multimodal counterpart, changing only the target sampler:πstruct=1\\pi\_\{\\textrm\{struct\}\}=1, with all spectral target probabilities set to zero\.
#### Architecture\.
The MMDiT containsD=14D=14blocks with width768768and1212attention heads\. Each block keeps separate QKV projections, adaLN modulation, and MLPs for the noisy target stream and the encoder context stream\. The two streams are then concatenated and processed with joint scaled dot\-product attention over the concatenatedtarget\|context\\text\{target\}\\,\\\|\\,\\text\{context\}sequence, using RMSNorm Q/K\-normalization\[[7](https://arxiv.org/html/2611.22098#bib.bib7)\]\.
The target stream consists of noisy spectral patch tokens and noisy UAE\-3D structure latents\. Target tokens receive modality embeddings, with sinusoidal position embeddings for spectra and learnt per\-atom position embeddings for structure\. The context stream contains the clean per\-modality CLS tokens and per\-patch hidden states produced by the multimodal encoder, projected fromdenc=512d\_\{\\mathrm\{enc\}\}=512to the MMDiT widthd=768d=768\. The encoder’s CLS pools are concatenated and mapped to a single768768\-dimensional adaLN conditioning vector, which is broadcasted over the target stream\. Each target token’s adaLN conditioning is the sum of its modality\-specific timestep embedding and the projected global CLS vector\. The output uses separate velocity heads for each modality, projecting back to patch length10/25/2510/25/25for UV/IR/Raman and to the UAE\-3D latent dimension1616for structure\. During structure denoising, we deliberately do*not*provide clean atom\-type embeddings on the target stream\.
#### Loss\.
The main training objective is a per\-modality rectified\-flow\[[19](https://arxiv.org/html/2611.22098#bib.bib19)\]velocity MSE\. We use modality weightswstruct=1\.5w\_\{\\textrm\{struct\}\}=1\.5,wUV=0\.40w\_\{\\textrm\{UV\}\}=0\.40, andwIR=wRaman=0\.20w\_\{\\textrm\{IR\}\}=w\_\{\\textrm\{Raman\}\}=0\.20\. In addition, we add an auxiliary atom\-type cross\-entropy loss on the predicted structure with weightλce=0\.1\\lambda\_\{\\mathrm\{ce\}\}=0\.1\.
For each modality, Equation[3](https://arxiv.org/html/2611.22098#S3.E3)uses the masked mean
ℓm=∑b,jabjm‖vθ,bjm−\(εbjm−x0,bjm\)‖22dmmax\(1,∑b,jabjm\)\.\\ell\_\{m\}=\\frac\{\\sum\_\{b,j\}a\_\{bj\}^\{m\}\\,\\\|v\_\{\\theta,bj\}^\{m\}\-\(\\varepsilon\_\{bj\}^\{m\}\-x\_\{0,bj\}^\{m\}\)\\\|\_\{2\}^\{2\}\}\{d\_\{m\}\\,\\max\(1,\\sum\_\{b,j\}a\_\{bj\}^\{m\}\)\}\.\(4\)
Hereabjm=1a\_\{bj\}^\{m\}=1for valid tokensjjin examplesbbtargeting modalitymm, and00otherwise;dmd\_\{m\}is the token feature dimension\. Thusℓm=0\\ell\_\{m\}=0when no tokens are selected\. These reductions use each worker’s minibatch, with gradients averaged across workers\.
To compute the atom\-type cross\-entropy term, we reconstructx^0=xt−t⋅vθ\\hat\{x\}\_\{0\}=x\_\{t\}\-t\\cdot v\_\{\\theta\}from the predicted velocity, pass the unstandardizedx^0\\hat\{x\}\_\{0\}through the frozen UAE\-3D decoder, and apply cross\-entropy to the resulting atom\-type logits against the true atomic numbers\. This term is applied as a mean over valid atoms in structure\-target examples and is zero when no such atoms are selected\.
#### Target sampling\.
During multimodal training, we draw independent Bernoulli target indicators per example withπstruct=0\.6\\pi\_\{\\textrm\{struct\}\}=0\.6andπUV=πIR=πRaman=0\.2\\pi\_\{\\textrm\{UV\}\}=\\pi\_\{\\textrm\{IR\}\}=\\pi\_\{\\textrm\{Raman\}\}=0\.2\. If no modality is selected, we select structure as the target\. These probabilities apply before this fallback\.
#### Per\-modality timestep schedule\.
Each target modality receives its own timestep,tm=σ\(μm\+um\)t^\{m\}=\\sigma\(\\mu\_\{m\}\+u\_\{m\}\), whereum∼𝒩\(0,1\)u\_\{m\}\\sim\\mathcal\{N\}\(0,1\)independently andσ\\sigmais the sigmoid\. We setμstruct=0\\mu\_\{\\textrm\{struct\}\}=0for structure andμUV=μIR=μRaman=2\\mu\_\{\\textrm\{UV\}\}=\\mu\_\{\\textrm\{IR\}\}=\\mu\_\{\\textrm\{Raman\}\}=2for spectra, which biases the spectral targets toward higher\-noise training examples\. The choices of structure and spectralμ\\muare ablated in Appendix[G](https://arxiv.org/html/2611.22098#A7)\.
#### Classifier\-free guidance\.
During training, the encoder context tokens and CLS states are jointly masked per example with probabilitypdrop=0\.1p\_\{\\textrm\{drop\}\}=0\.1\. At inference, we use classifier\-free guidance scalewcfg=3w\_\{\\textrm\{cfg\}\}=3unless stated otherwise\. The structure\-conditioned IR retrieval study in Appendix[E](https://arxiv.org/html/2611.22098#A5)useswcfg=3w\_\{\\textrm\{cfg\}\}=3and reports both per\-molecule cosine similarity and rank\-based metrics\.
#### Optimization\.
We train with AdamW using peak learning rate×10−43\\\!\\times\\\!10^\{\-4\}, minimum learning rate×10−53\\\!\\times\\\!10^\{\-5\}and weight decay0\.050\.05\. We clip only the DiT gradients to a maximum norm of1\.01\.0\. The schedule uses a2,0002\{,\}000\-step linear warmup followed by cosine decay over the training horizon\. Training is performed in bf16 mixed precision with PyTorch DDP on×4\\\!\\times\\\!H100, using global batch size256256\. Random structure rotations are applied to every training sample, while spectra are not augmented\. We maintain an EMA copy of the DiT with decay0\.99990\.9999and use this copy for all reported results\.
#### Variable atom count model and training\.
The variable\-count model uses2929structure slots, matching the maximum number of atoms in QM9 when hydrogens are included\. Each slot has a1616\-dimensional latent representation and can decode as an atom or empty\. A separately trained, frozen UAE predicts six atom classes: empty, H, C, N, O, and F\. The generator has1414blocks of width768768with1212attention heads\. Its width\-512512conditioning encoder is initialized randomly and trained jointly with the generator\.
We use a training batch size of256256and EMA decay0\.99990\.9999\. After2,0002\{,\}000warmup steps, the learning rate decays from10−410^\{\-4\}to10−510^\{\-5\}\. For this variant, the timestep distribution usesμm=0\\mu\_\{m\}=0for all four modalities\. Flow loss weights for structure, UV, IR, and Raman are11,0\.40\.4,0\.20\.2, and0\.20\.2, respectively\. Decoded and direct\-head atom and bond cross\-entropies each have weight0\.10\.1in the final objective\. During training, atom classification supervises both occupied and empty slots, while the latent flow matching loss is computed only on slots occupied in the ground\-truth molecule\. At inference, the model predicts slot occupancy without receiving the ground\-truth occupancy mask or atom count\.
### B\.5Inference and evaluation
For the standard QM9S benchmark, metrics use the8,0578\{,\}057\-molecule test set\. Sampling uses5050Euler ODE steps, a polynomial timestep scheduleti=\(\(N−i\)/N\)pt\_\{i\}=\(\(N\-i\)/N\)^\{p\}withN=50N=50,i=0,…,Ni=0,\\ldots,N, andp=2p=2, CFG scalewcfg=3w\_\{\\textrm\{cfg\}\}=3, and EMA DiT weights\. With CFG scale33, the5050Euler steps require100100network evaluations\. Spectra\-to\-structure timings use batches of6464on one H100 and exclude final UAE decoding\. The polynomial schedule allocates more steps neart→0t\\to 0\. For paired comparisons, such as struct\-only versus multimodal generation at a fixed checkpoint, we reuse the same initial Gaussian noise for each molecule\.
Generated structures are decoded from the predicted UAE\-3D latent using the frozen autoencoder\. We then evaluate them with RDKit sanitization, Hungarian\-aligned RMSD against the ground\-truth coordinates, and exact atom\- and bond\-labelled graph isomorphism, reported as Acc@1\. Tanimoto similarity is computed using Morgan fingerprints with radius 2 and 2048 bits\. Tanimoto similarity is averaged over prediction–reference pairs for which fingerprint similarity is successfully computed; unscored pairs are excluded\. For MOSAIC, both molecules must additionally pass RDKit sanitisation\. Unsuccessful pairs are excluded\. Spectral quality is measured by cosine similarity, computed in the same log\-then\-zz\-score normalized spectral domain used throughout preprocessing \(Appendix[B\.2](https://arxiv.org/html/2611.22098#A2.SS2)\)\.
RMSDDSfollows DiffSpectra’s two\-stage Hungarian assignment, with Kabsch alignment between stages\. Assignment costs combine Euclidean distance with atom\-type penalties:00for identical types,22for substitutions among C, N, and O, and1010otherwise\. Pairs with costs above55are discarded\. Coordinate RMSD is averaged over successfully matched molecules with at least three retained pairs\. Both RMSDDSand H\-RMSD are reported in Å\.
#### Variable atom count inference and evaluation\.
We evaluate the model trained for11M steps on all8,0578\{,\}057test molecules, using UV, IR, and Raman spectra as conditioning\. We select the checkpoint with the highest validation graph accuracy under EMA weights and use these weights for sampling, with5050Euler steps on a polynomial schedule of power22and CFG=1=1\.
The model generates structures over2929slots without access to the ground\-truth atom count or occupancy mask\. The UAE decoder predicts an atom type or an empty class for each slot, and we retain only the predicted atoms when computing Acc@1 and composition match\. Atom\-count accuracy measures how often the predicted total number of atoms, including hydrogen, is correct\. The mean absolute error in atom count is0\.05810\.0581\. We evaluate H\-RMSD on the ground\-truth occupied slots using the alignment and matching procedure described above\. This isolates coordinate quality from errors in the predicted atom count, so missing or extra decoded atoms are not penalized by this metric\. The illustrative trajectory in Figure[4](https://arxiv.org/html/2611.22098#S4.F4)uses a separate checkpoint with the same5050sampling steps and CFG=1=1\.
Figure 7:Denoising trajectories for molecular structure generation\.Ten molecules are ordered by increasing final H\-RMSD\. Six snapshots show the progression from noise \(t=1t=1\) to the predicted structure \(t=0t=0\) over 50 Euler steps\. Ground\-truth structures appear in the rightmost column\. Each structure is independently scaled to fit its panel\. Heavy atoms are colored by element \(C: dark gray, N: blue, O: red, F: green\), with hydrogens omitted for clarity\.
### B\.6Layer\-wise probes
We freeze each generator and encode clean structures with the frozen UAE to obtain normalized latentsz0z\_\{0\}\. We constructzt=\(1−t\)z0\+tϵz\_\{t\}=\(1\-t\)z\_\{0\}\+t\\epsilon, whereϵ∼𝒩\(0,I\)\\epsilon\\sim\\mathcal\{N\}\(0,I\)andt∈\{0,0\.25,0\.5,0\.75\}t\\in\\\{0,0\.25,0\.5,0\.75\\\}, and supply these structure target tokens with matching timesteps\. Both models receive clean UV, IR, and Raman inputs through the conditioning encoder\. The multimodal model additionally receives spectral target tokens corrupted at the same noise level; the structure\-target\-only model receives no spectral target tokens\. We mean\-pool valid structure tokens at each probed layer, fit a separate probe for each layer and noise level, and average the resulting scores over noise levels\. These probes compare conditioned representations under the two target\-token configurations\.
## Appendix CBaselines
All four spectra\-to\-structure baselines in Table[2](https://arxiv.org/html/2611.22098#S4.T2)are evaluated on the same QM9S reference split as MOSAIC\. The computation of Acc@1 depends on each model’s output format\. For MOSAIC and DiffSpectra, we apply the VF2 algorithm to test exact graph isomorphism, matching atom and bond labels with explicit hydrogens included\. These graphs are constructed directly from the predicted and reference labels without conversion to SMILES\. For SMEN–SD and SpectraLLM, we parse the predicted and reference SMILES with RDKit, remove explicit hydrogens, and apply VF2 to the resulting graphs, matching atomic numbers and bond types\. For Alberts et al\., we take the highest\-ranked beam prediction and require an exact match between the predicted and reference canonical isomeric SMILES after hydrogen removal\. H\-RMSD requires atomic coordinates, so we report it only for DiffSpectra and MOSAIC, which both predict 3D structures\.
#### Alberts et al\.\[[12](https://arxiv.org/html/2611.22098#bib.bib12)\]
Alberts et al\. train a transformer to translate a tokenized molecular\-formula prefix together with400400binned IR intensities into a canonical SMILES string, conditioning on the published merged spectral window\. We retrain the published model from scratch on our QM9S split, using the published architecture, source\-token format, and training procedure\. For inference, we use the published beam\-search ranking\.
#### SMEN–SD\[[13](https://arxiv.org/html/2611.22098#bib.bib13)\]\.
SMEN–SD combines an EGNN molecular encoder, a ViT spectral encoder, and a transformer SMILES decoder\. The encoders are trained with a CLIP\-style contrastive objective, while the decoder learns to predict SMILES from the spectral representation\. Training uses randomized SMILES targets; generated strings are canonicalized during evaluation\. We use a training budget of1,0001\{,\}000epochs, a batch size of400400, and a learning rate of10−410^\{\-4\}\.
#### SpectraLLM\[[14](https://arxiv.org/html/2611.22098#bib.bib14)\]
SpectraLLM fine\-tunes Qwen3\-32B with LoRA to predict canonical SMILES strings from a natural language prompt that lists each spectrum’s detected peaks \(wavenumbers, intensities, and widths\)\. We adapt the released two\-stage training setup to our QM9S split\. Stage 1 pretrains a single LoRA adapter with rank88across all linear layers, using a learning rate of×10−55\\\!\\times\\\!10^\{\-5\}for one epoch on the all\-spectra training set\. Stage 2 separately fine\-tunes modality\-specific adapters from the shared Stage 1 checkpoint\.
#### DiffSpectra\[[8](https://arxiv.org/html/2611.22098#bib.bib8)\]
DiffSpectra combines a SpecFormer spectral encoder with a Diffusion Molecule Transformer decoder, trained to jointly denoise atom features, bond features, and 3D coordinates conditioned on multiple spectra\. We retrain the model on our QM9S training split with a training budget of11million iterations on two GPUs, initializing SpecFormer from a separate pretraining stage on the training molecules\. Inference uses1,0001\{,\}000DDPM sampling steps\. The single\-modality DiffSpectra rows \(UV, IR, Raman\) evaluate the same all\-spectra model with the unused spectral inputs set to zero\.
#### DetaNet\[[2](https://arxiv.org/html/2611.22098#bib.bib2)\]
DetaNet is an E\(3\)\-equivariant tensor\-attention network introduced alongside QM9S\. Its original spectral prediction pipeline reconstructs IR and Raman spectra from predicted Hessian matrices and derivatives of dipole moments and polarizabilities, while predicting UV–Vis spectra directly\. We adapt DetaNet to jointly predict UV, IR, and Raman spectra, using a shared encoder with three message\-passing blocks \(N=3N=3\), 256 feature channels \(F=256F=256\), and an interatomic distance cutoff ofRc=5\.0R\_\{c\}=5\.0Å\. We attach a separate MLP prediction head for each spectral modality\.
## Appendix DScaling study
Table 3:Scaling study on the QM9S test set\.Top:data scaling at a fixed 6M DiT trained for400400k steps, sweeping the training set from11k to110110k molecules\.Bottom:model scaling at the fixed canonical110110k training split; all models trained for400400k steps\. Within every setting we compare two settings:*Struct*denoises only structure;*Multi*denoises a sampled mixture of structure and spectral targets\. Structure metrics use all\-spectra conditioning\. Acc@1, Comp, Atom, Bond, and Valid are percentages; both RMSD metrics are in Å\. Spectral cosine similarities are multiplied by100100, while TaniMGis unscaled\. Spec cos columns report each spectrum generated under full cross\-modal conditioning \(structure\+\+the other two spectra\), the strongest available regime; the strict structure\-only→\\rightarrowspectrum direction is reported in Table[2](https://arxiv.org/html/2611.22098#S4.T2)\.With the 6M decoder, multimodal training achieves lower H\-RMSD at every training\-set size from11k to110110k molecules \(Table[3](https://arxiv.org/html/2611.22098#A4.T3), top\)\. The difference is0\.0380\.038Å at11k and0\.0050\.005Å at110110k\. The gains are not uniform across metrics: at110110k, the structure\-only model achieves higher composition match and TaniMG\.
At a fixed training\-set size of110110k molecules, multimodal training improves Acc@1 by4\.94\.9,5\.75\.7, and5\.55\.5percentage points for S, M, and L, respectively\. Its H\-RMSD advantage increases from0\.0150\.015Å for S \(1515M\) to0\.0380\.038Å for L \(7878M\)\. Spectral cosine similarity is already high with11k training molecules \(95\.2%95\.2\\%for IR and96\.8%96\.8\\%for Raman\) and changes little as the dataset grows\. These results use structure and the other two spectra as conditioning, a richer setting than the structure\-only conditioning evaluated in Table[2](https://arxiv.org/html/2611.22098#S4.T2)\.
Figure[8](https://arxiv.org/html/2611.22098#A4.F8)shows the corresponding training curves for S, M, and L on110110k molecules\. At all three scales, the multimodal model maintains higher Acc@1 late in training, through400400k training steps\.
Figure 8:Acc@1 vs\. training step across model sizes\.Here, we investigate S, M and L model sizes\. Struct\-only \(gray dashed\) declines late in training, while multimodal \(gold\) remains stable or improves through400400k steps\. Triangles mark struct\-only peaks\.
## Appendix EStructure\-conditioned retrieval of experimental IR spectra
We evaluate9999experimental gas\-phase IR spectra from the EUROCHAMP library\[[55](https://arxiv.org/html/2611.22098#bib.bib55)\], with one spectrum per distinct molecular connectivity\. The molecules are neutral, connected and non\-radical, contain only H, C, N, O and F, and have at most nine heavy atoms\. Spectra were selected based on molecular identity, measurement conditions, coverage and data quality, independently of model predictions\. All spectra cover500500–4,0004\{,\}000cm\-1\.
#### Retrieval protocol\.
Experimental spectra are interpolated onto a common wavenumber grid, log\-transformed and standardized\. No correction for frequency shifts or contamination is applied\. Both models use the same RDKit\-generated conformer for each molecule\. Each predicted spectrum is matched against all9999experimental spectra by cosine similarity\. R@kkmeasures how often the corresponding experimental spectrum appears among the topkkmatches, MRR is the mean reciprocal rank\. All9999molecules are included in the results\.
#### Model comparison\.
We compare MOSAIC XXL with an adapted DetaNet direct\-spectrum predictor\. MOSAIC averages ten predictions per molecule in normalized spectral space, whereas DetaNet produces one deterministic prediction\. Inference settings were fixed before evaluation at guidance scale33and temperature11, with no best\-sample selection\.
Table 4:Structure\-conditioned retrieval on 99 experimental EUROCHAMP gas\-phase IR spectra\.Both models query the same 99\-candidate pool\. MOSAIC averages ten predictions per molecule, DetaNet produces one deterministic prediction\. R@kkis a percentage, MRR and cosines are dimensionless\.
#### Scope and limitations\.
The models are trained on simulated spectra; this experiment evaluates retrieval of experimental spectra of molecular structures\. It does not evaluate structure generation from experimental spectra\. Contaminants, mainly H2O and CO, are reported for9898records; spectral purity and wavenumber calibration are not established\.
#### Data attribution\.
The experimental spectra are licensed under[CC BY 4\.0](https://creativecommons.org/licenses/by/4.0/), independently of the manuscript’s license\. Source links, credits, provider processing and our modifications are described in Appendix[M](https://arxiv.org/html/2611.22098#A13)\.
Figure 9:Generated and experimental IR spectra\.MOSAIC mean predictions over ten samples \(gold\) and experimental spectra \(gray\) use the same model and processing as Table[4](https://arxiv.org/html/2611.22098#A5.T4)\. Titles report cosine similarity of each plotted mean\. Eight distinct molecules, each containing at most seven heavy atoms, are shown in descending cosine similarity between the mean predicted and experimental spectra\. Experimental spectra are from EUROCHAMP\[[55](https://arxiv.org/html/2611.22098#bib.bib55)\], licensed CC BY 4\.0\. Individual sources, credits, provider processing and our modifications are documented in Appendix[M](https://arxiv.org/html/2611.22098#A13)\.
## Appendix FSpectrum\-swap plots and 3D renders
To assess whether a MOSAIC variant relies on spectral conditioning rather than a structural prior, we swap the input spectra within each of200200isomer pairs from the QM9S test set and regenerate molecular structures usingk=8k\\\!=\\\!8samples per molecule and5050Euler steps\.
Figure 10:Spectrum\-swap intervention \(𝟐𝟎𝟎\\mathbf\{200\}isomer pairs\)\.\(a\)Median H\-RMSD against the originally\-paired ground truth: swap conditioning matches the no\-spectrum \(null\) baseline, indicating the spectrum carries the conditioning signal\.\(b\)The swap–baseline H\-RMSD gap grows linearly with the GT distance between the two pair members \(r=0\.86r\\\!=\\\!0\.86\)\.\(c\)For94%94\\%of the400400pair\-sides, the median Kabsch\-aligned H\-RMSD over eight generated samples is lower to the partner molecule than to the originally paired ground truth\.Figure 11:Spectrum swaps for three isomer pairs\.Each row shows one pair, with swaps from A to B on the left and B to A on the right\. Within each group, structures appear from left to right as the original ground truth, generation conditioned on its own spectrum, generation conditioned on the partner’s spectrum, and the partner ground truth\. Swapping the conditioning spectrum shifts the generated structure toward the partner isomer\.
## Appendix GPer\-modality timestep schedule
We test whether structure and spectra benefit from different training noise distributions\. Table[5](https://arxiv.org/html/2611.22098#A7.T5)compares four schedules using a6\.26\.2M\-parameter model trained for100100k steps\. Each run uses four transformer blocks of width192192and a batch size of128128\. The encoder, optimizer, and target\-sampling settings are the same across runs\. Only the noise distributions change\.
Table 5:Effect of the training noise schedule\.μ\\muis the mean in logit space\. Larger values favor noisier inputs\. Bold values mark the best result in each metric\.The schedule used for MOSAIC keeps the structure mean at zero and raises the spectral mean to two\. In this small\-model comparison, it improves cosine similarity for all three spectra over the baseline with both means at zero, while H\-RMSD increases from0\.9810\.981to1\.0111\.011Å\. Raising the structure mean instead increases geometric error\. Combining this change with a lower spectral mean gives the weakest results across all four metrics\.
## Appendix HCoupling timesteps across target modalities
The MOSAIC model in Table[2](https://arxiv.org/html/2611.22098#S4.T2)samples training timesteps independently for each target modality\. We test whether coordinating these timesteps improves generation in separate M\-scale experiments\.
We train three M\-scale models with six transformer blocks of width384384for400400k steps, using seed4242and global batch size128128\. All three runs use the same pretrained encoder checkpoint, data split, initialization, optimizer, and target sampler\. The multimodal encoder is finetuned while UAE\-3D remains frozen\. For each run, we select a checkpoint on validation data and evaluate its EMA DiT weights with5050Euler steps and CFG33on all8,0578\{,\}057molecules in the QM9S test set\. All runs use the same inference noise with seed00, and joint generation uses synchronized timesteps for every target\.
With*independent*sampling, each target draws its own noise level usingum∼𝒩\(0,1\)u\_\{m\}\\sim\\mathcal\{N\}\(0,1\)andtm=σ\(μm\+um\)t^\{m\}=\\sigma\(\\mu\_\{m\}\+u\_\{m\}\)\. Hereσ\\sigmais the logistic sigmoid,μstruct=0\\mu\_\{\\mathrm\{struct\}\}=0, andμspec=2\\mu\_\{\\mathrm\{spec\}\}=2\.*Shared\-quantile*sampling places all simultaneous targets at the same percentile of their respective noise distributions\. It draws one standard\-normaluuper example and usestm=σ\(μm\+u\)t^\{m\}=\\sigma\(\\mu\_\{m\}\+u\), preserving each modality’s noise distribution\.*Exact sharing*instead assigns the same timestep to every simultaneous target usingtm=σ\(u\)t^\{m\}=\\sigma\(u\)\. This also removes the spectral schedule offsets, so it serves as a secondary ablation\. Both coupling rules apply only to examples with at least two targets\. Single\-target examples retain the original sampling rule\.
Table 6:Influence of timestep coupling\.We investigate timestep coupling using M\-scale experiments\. Acc@1 and H\-RMSD measure all\-spectra→\\tostructure generation\.Both coupling rules improve structure generation from spectra in these experiments\. Shared quantiles also improve structure\-to\-spectra cosine similarity, while exact sharing reduces it\. The Acc@1 gains over independent sampling are17\.4117\.41% with shared quantiles and17\.5917\.59% with exact sharing\. In joint generation, shared quantiles improve mean spectral cosine by0\.0630\.063for UV→\\toIR\+Raman\+structure and0\.0290\.029for IR\+Raman→\\toUV\+structure\. Shared quantiles therefore give the better balance between structure and spectral generation\. In contrast, Subramanian et al\.\[[56](https://arxiv.org/html/2611.22098#bib.bib56)\]report that independent coordinate and lattice timesteps outperform shared timesteps in molecular crystal generation\. This discrepancy could be due to a significant difference in generative tasks between the two works\. In our M\-scale structure–spectra experiments, coupling instead improves structure recovery, with shared\-quantile sampling providing the better balance across structure and spectral metrics\.
#### Gradient diagnostics\.
Independent timesteps can mix nearly clean and heavily noised targets within one training example\. We test whether coupling their noise levels reduces gradient variability\.
We run each of the three variants for400400k steps with one training seed per variant\. Within consecutive5050\-step windows, we measure gradient variance before clipping, summed across all trainable parameters \(the covariance trace\)\. We also normalize this variance by the squared norm of the mean gradient to account for differences in gradient magnitude\.
Table[7](https://arxiv.org/html/2611.22098#A8.T7)summarizes7,9957\{,\}995paired windows\. We compute these statistics using FP64 Welford accumulation and derive percentage changes from exponentiated median paired log\-ratios\.
Table 7:Gradient diagnostics\.Values are percentage changes relative to independent sampling\. Normalized variation divides the covariance trace by the squared norm of the window\-mean gradient\.Coupling does not reduce gradient variation uniformly\. Both rules increase absolute variation early in training and lower it later, with a small decrease over the full run\. The window\-mean gradients are also smaller under coupling, so the lower absolute variation does not translate into a lower normalized measure\. Non\-finite gradients occur at nearly identical rates, with170170,169169, and169169events for independent, shared\-quantile, and exact\-shared sampling\.
## Appendix ITraining compute
Training runs used NVIDIA H100 80 GB GPUs\. Table[8](https://arxiv.org/html/2611.22098#A9.T8)reports approximate training costs in aggregate GPU\-hours\. Encoder pretraining and UAE\-3D training are one\-time costs reused across generative training experiments\.
Table 8:Training compute\.GPU\-hours are approximate\. Scaling and pretraining runs used one GPU\. The XXL estimate corresponds to approximately4848wall\-clock hours on four GPUs\.
## Appendix JDataset details
All experiments use the QM9S dataset\[[2](https://arxiv.org/html/2611.22098#bib.bib2),[57](https://arxiv.org/html/2611.22098#bib.bib57)\]: QM9 molecules\[[1](https://arxiv.org/html/2611.22098#bib.bib1)\]paired with UV, IR, and Raman spectra and relaxed 3D geometries computed at the B3LYP/def\-TZVP level\. This is the same data source used by DiffSpectra\[[8](https://arxiv.org/html/2611.22098#bib.bib8)\]\. We use a fixed split of110,000110\{,\}000train /10,00010\{,\}000val /8,0578\{,\}057test molecules\. Low\-data experiments \(11k–5050k\) use fixed subsets of the training set with the same val and test split\. Table[9](https://arxiv.org/html/2611.22098#A10.T9)summarises the data representation\.
Table 9:QM9S data summary\.ModalitySamplesNotesUV701701Electronic absorption spectrumIR3,5013\{,\}501Vibrational spectrumRaman3,5013\{,\}501Vibrational spectrumStructureRelaxed 3D geometry, up to2929atoms over\{\\\{H, C, N, O, F\}\\\}\.
## Appendix KEncoder pretraining ablation
The multimodal encoder is pretrained using masked reconstruction, cross\-modal contrastive alignment, and EMA self\-distillation\. We assess the contribution of the two auxiliary objectives by removing them individually and together while retaining reconstruction\. Each configuration uses an encoder with hidden width384384and six layers, trained for5050k steps on110110k molecules with one training seed\.
We evaluate the pretrained encoder through cross\-modal reconstruction\. Four leave\-one\-out settings predict one modality from the other three, while four single\-modality settings predict the three missing modalities from one observed modality\. Reconstruction quality is measured relative to the same encoder with all conditioning modalities hidden,RPRIOR,s,m2=1−MSEs,m/MSEPRIOR,mR^\{2\}\_\{\\mathrm\{PRIOR\},s,m\}=1\-\\mathrm\{MSE\}\_\{s,m\}/\\mathrm\{MSE\}\_\{\\mathrm\{PRIOR\},m\}, wheressdenotes the conditioning setting andmmthe predicted modality\. Higher scores indicate greater improvement over the baseline\. This evaluation measures encoder reconstruction directly, without training a flow matching generator\.
Table 10:Effect of encoder pretraining objectives on cross\-modal reconstruction\.The overall score averagesRPRIOR2R^\{2\}\_\{\\mathrm\{PRIOR\}\}across all1616conditioning–target pairs\. LOO and ONE report averages over the four leave\-one\-out and twelve single\-modality pairs, respectively\. Per\-target columns average the four pairs predicting each modality\. Higher scores are better\.Reconstruction alone achieves an aggregate score of0\.5440\.544, compared with0\.5510\.551for the full objective\. Adding contrastive alignment improves the score by0\.0060\.006–0\.0070\.007, with gains across all four target modalities both with and without distillation\. Self\-distillation has little effect on the aggregate reconstruction score and produces mixed changes across modalities\. At this model scale and training budget, the single\-seed results show modest gains in prior\-relative reconstruction scores from contrastive alignment, with little additional benefit from self\-distillation\. Its contribution to downstream structure generation is examined next\.
#### Distillation targets\.
The reconstruction scores above do not directly measure whether distillation helps the encoder support structure generation\. We therefore compare three distillation targets through downstream generation, alongside a model trained without distillation\. Full\-sequence mean pooling averages all student and teacher states, including CLS tokens, padded atom slots, and dropped\-modality positions\. CLS\-only pooling averages the four modality CLS states\. Tokenwise distillation matches corresponding student and teacher states, excludes padded atoms and dropped modalities, and weights each observed modality equally\. All three use cosine distance between projected representations, with reconstruction and contrastive alignment unchanged\.
For this study, we pretrain multimodal encoders with eight blocks of width512512for200200k steps and select checkpoints by validation reconstruction loss\. Each encoder is then frozen while a matched M\-scale generative model is trained for400400k steps\. We repeat the comparison with three training seeds and evaluate spectra\-to\-structure generation on the full8,0578\{,\}057\-molecule QM9S test split\.
Table 11:Influence of distillation targets\.Evaluated through structure generation with frozen encoders\. Values are mean±\\pmstandard deviation across three training seeds\. Bold values mark the best mean in each metric\.Tokenwise distillation gives the lowest mean H\-RMSD in Table[11](https://arxiv.org/html/2611.22098#A11.T11), while CLS\-only achieves similar mean graph accuracy and the highest composition match\. Full\-sequence mean pooling gives the weakest average graph accuracy and geometry\. Neither alternative consistently improves on no distillation across seeds\.
## Appendix LEncoder training and multimodal generation
We compare three encoder training strategies: a frozen pretrained encoder, a pretrained encoder fine\-tuned jointly with the generator, and a randomly initialized encoder trained jointly with the generator\. For each strategy, we compare multimodal and structure\-only training using an M\-scale generator with hidden width384384, six layers, and a training budget of400400k steps\. These results compare complete training procedures and do not isolate the effect of encoder fine\-tuning\.
Table 12:Encoder training and multimodal generation\.Spectra\-to\-structure results for three encoder training strategies under multimodal and structure\-only objectives\.Δ\\DeltaAcc@1 reports the multimodal gain within each strategy, in percentage points\.The pretrained, fine\-tuned models achieve the highest Acc@1 under both target regimes in Table[12](https://arxiv.org/html/2611.22098#A12.T12)\. Their scores exceed those of the frozen encoders by25\.225\.2–30\.230\.2% and those of the randomly initialized encoders by12\.912\.9–16\.416\.4%\.
Within each encoder strategy, multimodal training achieves higher Acc@1 than structure\-only training, with gains of6\.86\.8,5\.35\.3, and1\.81\.8% for frozen pretrained, randomly initialized, and pretrained fine\-tuned encoders, respectively\. The geometry results are mixed: multimodal training reduces H\-RMSD in the frozen and randomly initialized settings, but has slightly higher H\-RMSD in the pretrained fine\-tuned setting \(0\.2910\.291versus0\.2800\.280Å\)\.
Figure[12](https://arxiv.org/html/2611.22098#A12.F12)shows validation Acc@1 for the pretrained finetuned models\. The multimodal model initially trails the structure\-only model and reaches similar accuracy later in training\.
Figure 12:Validation accuracy during joint encoder and generator training\.Acc@1 for the pretrained fine\-tuned M\-scale models under multimodal and structure\-only objectives\.
## Appendix MEUROCHAMP data attribution
The experimental spectra in Figure[9](https://arxiv.org/html/2611.22098#A5.F9)are adapted from the EUROCHAMP collection published by AERIS under CC BY 4\.0\. We credit Mila Ródenas and, for 1,2\-epoxybutane, Iulia Patroescu\-Klotz and Ian Barnes; the hexanal measurements were made by H\. Plagens at EUPHORE\. The individual sources, in figure reading order, are[hexane](https://doi.org/10.25326/ffnn-m774),[butane](https://doi.org/10.25326/w7qj-zb16),[1,2\-epoxybutane](https://doi.org/10.25326/f9pp-1270),[1\-propanol](https://doi.org/10.25326/g7vq-n828),[biformile](https://doi.org/10.25326/ecnh-5582),[propanal](https://doi.org/10.25326/emqn-sm52),[hexanal](https://doi.org/10.25326/3kma-bh67), and[pentanal](https://doi.org/10.25326/az6q-cn27)\. The source spectra had undergone background referencing, conversion to absorbance, truncation and scaling, with additional arithmetic and straight\-line processing documented in the linked datasets\. We resample and normalize these spectra and overlay model predictions as described in Appendix[E](https://arxiv.org/html/2611.22098#A5)\. The reproduced spectral material remains under CC BY 4\.0, independently of the paper’s license\.相似文章
基于最优传输势的多边缘流匹配
提出OTP-FM,一种新颖的多边缘流匹配方法,利用最优传输势来软性地引导流通过中间边缘分布,在单细胞RNA测序、海洋学和气象学数据集上实现了最先进的性能。
多分辨率流匹配:基于分阶段采样的免训练扩散加速
MrFlow 是一种针对流匹配文本到图像模型的免训练多分辨率加速策略,它结合了低分辨率生成、像素空间超分辨率和噪声注入,无需训练或运行时修改即可实现高达25倍的端到端加速。
几何感知的图像流匹配
本文提出用于自然图像的几何感知流匹配方法,将图像视为超球面上的点,并提出了SOT-CFM和SFM方法,通过利用图像数据的球面结构来改进生成建模。
用于精确且物理合理的 Apo 到 Holo 蛋白质生成的分层混合坐标流匹配
该论文提出了 CrypticFlow,一种结合笛卡尔坐标和内坐标的分层流匹配模型,用于从 apo(未结合配体)结构生成 holo(结合配体)蛋白质构象,在 D3PM 基准测试中实现了最先进的 Cα RMSD 表现,并提高了局部几何保真度。
FlowMimic: 基于像素对扭曲流场的无掩码视觉编辑与生成——面向在线视频编辑数据生成与模态模仿
FlowMimic 提出了一种方法,利用像素对扭曲流场实现跨视频和图像模态的无掩码视觉编辑与生成,能够从图像编辑样本实时生成视频编辑数据,并通过模仿损失对齐模态能力。