Addressing the limitation that infrared spectral molecular structure elucidation depends on a preset chemical formula, this paper proposes a de novo IR-to-SMILES architecture that requires no formula in advance, combining two complementary designs—sparse expert specialization with non-additive aggregation and cross-modal contrastive alignment—and achieving Top-1 prediction accuracy superior to baselines on public datasets.
Automated molecular structure elucidation from infrared spectral data has made significant progress, but its broad applicability has always been constrained by the reliance on a preset chemical formula as auxiliary input. Such designs strictly limit the model's predictive capability to isomer identification and cannot achieve complete molecular structure prediction.
Although existing Transformer models can achieve high-accuracy molecular isomer identification, the reliability of such models on unconstrained structure elucidation tasks is comparatively lower, and their operating characteristics have not been sufficiently studied or explained.
The study proposes a formula-free architecture for de novo infrared-to-SMILES structure elucidation, integrating two complementary core innovations: a sparse expert specialization mechanism with non-additive aggregation, and a cross-modal contrastive alignment mechanism.
The overall training objective of the architecture is a weighted combination of the generation loss and the cross-modal alignment loss, with the full form , where the scalar hyperparameter controls the relative contribution of the alignment term to the total loss. Together with the figure that follows, you can fully trace the computation flow of the contrastive loss and the end-to-end execution logic of the Transformer encoder-decoder autoregressive generation.
The non-additive aggregation operation of MoE-LOSN is computed independently for each output dimension, taking the corresponding dimensional components of the E expert outputs together with a dimension-specific weight vector as input, and producing the final output for that dimension through the function. This design preserves the order-statistics semantics of LOSN over expert outputs while enabling parallel computation at the output-dimension level.
The 2-additivity Choquet integral implementation compresses the number of parameters from to while retaining the full pairwise interaction structure, which is the core expressive advantage of the Choquet Integral Multilayer Perceptron (ChIMP) over linear aggregation. ChIMP is the core operator adopted by the non-additive aggregation MoE decoder in this paper, capable of simultaneously modeling the marginal contributions of each expert's output and the pairwise interactions among experts. This implementation requires no additional fixed subnetwork for computing subset weight terms; the integral is computed directly via the singleton weighted sum of sorted inputs, the element-wise minimum of sorted input pairs, and the sum of interaction weights, where singleton weights are initialized to and interaction weights to 0.
To build a supervised learning pipeline for unconstrained infrared molecular structure elucidation, the study selected two types of datasets suited to real-world deployment scenarios. One is IBM-MD, a large-scale simulated spectral dataset synthesized via molecular dynamics with the PCFF force field, corresponding to molecular structures sampled from PubChem; the other is an experimentally measured spectral dataset from the NIST Chemistry WebBook of the National Institute of Standards and Technology.
To evaluate the practical effect of the contrastive alignment module, when CoCa (the symmetric spectrum-structure shared-embedding contrastive alignment configuration proposed in this paper) is enabled, the study additionally introduces a spectrum-to-SMILES retrieval task as a diagnostic metric orthogonal to generation accuracy. CoCa is used to build a unified shared latent space for infrared spectra and SMILES molecular structures and serves as the core vehicle for evaluating the contrastive alignment module. The metric assembles the L2-normalized spectral embeddings and SMILES embeddings of all N test samples into an N×N cosine similarity matrix, and measures, via the mean similarity of matched pairs on the matrix diagonal, how tightly positive pairs cluster on the unit hypersphere relative to all cross-sample pairs.
The study conducted the main comparison between the proposed model and infrared-only baseline methods on the NIST experimental dataset and the IBM-MD simulated dataset, where the best-performing model uses the MoE-LOSN decoder configuration, encoder-layer fusion structure, and is trained with the CoCa contrastive loss. In the NIST evaluation procedure, all models pre-trained on IBM-MD are fine-tuned on the training subset of the NIST experimental data. Ablation results on decoder aggregation methods show that the MoE-LCS model slightly outperforms the standard dense feed-forward network approach on all datasets, while fuzzy aggregation methods exhibit a clear performance advantage, with the MoE-LOSN model achieving the highest Top-1 accuracy among all tested models on the experimental test set. Together with the content that follows, you can directly compare the Top-K prediction accuracy, retrieval accuracy, and latent space distribution differences across model variants.
The cross-modal contrastive alignment module of the architecture adopts an explicit, reusable configuration: on top of the standard cross-entropy loss , a cross-modal contrastive alignment loss is added, with the contribution weight of in the overall optimization objective set to , and the alignment side is paired with a two-layer unimodal SMILES Transformer for encoding molecular-side features.
Under the validation conditions of the paper, the training strategy of adding the contrastive loss can directly improve the Top-K prediction accuracy of baseline models; on the cross-modal retrieval side, as the candidate set size grows, the model can stably recall the correct molecular structure under the R@1, R@5, and R@10 metrics, the joint embedding space of infrared spectra and corresponding molecular structures can be effectively aligned, and paired spectrum-molecule samples form clear nearest-neighbor associations in the embedding space.