MCP
arXivarXiv
Preprint
Published: July 28, 2026
cs.LG

Data Fusion and Contrastive Alignment for Unconstrained IR Molecular Structure Elucidation

Abstract
Automated molecular structure elucidation from infrared (IR) spectroscopy data has seen significant advancements in recent years, but its broad applicability is limited by a reliance on pre-determined chemical formulas provided as auxiliary model inputs. This limits model predictions to isomer identification rather than full molecular structure prediction. Although transformer models have been shown to identify molecular isomers with high accuracy, their reliability for unconstrained structure elucidation is comparatively low and poorly understood. In this work, we propose and evaluate key modifications to the traditional encoder-decoder transformer. To better address the vast chemical space of the unconstrained problem, we implement a novel Mixture-of-Experts (MoE) decoder module that utilizes non-additive aggregation via linear-order statistics and the Choquet integral. We further modify the transformer to utilize these non-additive operators when aggregating spectral representations as well. Together with an auxiliary contrastive alignment loss term, these enhancements improve Top-K prediction accuracy by over 10 percentage points compared to baseline IR-only models. Through sub-structure fragment analysis of molecular predictions, we further confirm that infrared spectra encode the vast majority of relevant chemical information, implying that the higher performance of isomer-ranking models is largely due to underrepresented or overlapping absorption bands for molecules in the explored chemical space. Ultimately, by demonstrating the efficacy of automated molecular structure elucidation from measured IR spectra, this work serves to significantly broaden the utility of AI in analytical chemistry.
0
AI overview
Reviews
Citation graph
References · 59
Structured
This preview uses generator v1; v2 is available

Overview

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.

Task Background and Existing Limitations of Unconstrained Infrared Molecular Structure Elucidation

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.

Positioning of the Core Contributions of the Formula-Free End-to-End IR-to-SMILES Architecture

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.

Implementation Logic of the Contrastive Alignment Loss and the Non-Additive Aggregation MoE Decoder

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 L=LCE+λLalignL = L_{CE} + \lambda L_{align}, where the scalar hyperparameter λ\lambda 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.

Fig. 1: The Transformer architecture with contrastive loss proposed in this paper, covering the full pipeline from infrared spectral input to the final SMILES prediction.

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 fLOSNf_{LOSN} 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 2E−12^E-1 to E+E(E−1)2E + \frac{E(E-1)}{2} 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 1/E1/E and interaction weights to 0.

Baseline Comparisons and Ablation Results on Public Datasets

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.

Fig. 2: The impact of the contrastive loss on model prediction and retrieval performance, and the distribution of the shared latent space of infrared spectra and SMILES.

Summary of Core Conclusions

The cross-modal contrastive alignment module of the architecture adopts an explicit, reusable configuration: on top of the standard cross-entropy loss LCEL_{CE}, a cross-modal contrastive alignment loss LalignL_{align} is added, with the contribution weight of LalignL_{align} in the overall optimization objective set to λ=1.0\lambda = 1.0, 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.

Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first