NMR-Solver: Automated Structure Elucidation via Large-Scale Spectral Matching and Physics-Guided Fragment Optimization

Yong-Jin Liu, Junjie Wang, Fanjie Xu, Xiaohong Ji, Zhifeng Gao, Linfeng Zhang, Guolin Ke, Rong Zhu, Weinan EarXiv 2025 · OpenReview

Abstract: Nuclear Magnetic Resonance (NMR) spectroscopy is one of the most powerful and widely used tools for molecular structure elucidation in organic chemistry. However, the interpretation of NMR spectra to determine unknown molecular structures remains a labor-intensive and expertise-dependent process, particularly for complex or novel compounds. Although recent methods have been proposed for molecular structure elucidation, they often underperform in real-world applications due to inherent algorithmic limitations and limited high-quality data. Here, we present NMR-Solver, a practical and interpretable framework for the automated determination of small organic molecule structures from $^1$H and $^{13}$C NMR spectra. Our method introduces an automated framework for molecular structure elucidation, integrating large-scale spectral matching with physics-guided fragment-based optimization that exploits atomic-level structure-spectrum relationships in NMR. We evaluate NMR-Solver on simulated benchmarks, curated experimental data from the literature, and real-world experiments, demonstrating its strong generalization, robustness, and practical utility in challenging, real-life scenarios. NMR-Solver unifies computational NMR analysis, deep learning, and interpretable chemical reasoning into a coherent system. By incorporating the physical principles of NMR into molecular optimization, it enables scalable, automated, and chemically meaningful molecular identification, establishing a generalizable paradigm for solving inverse problems in molecular science.

Introduction

Determining the structure of an unknown molecule—a process called structure elucidation—is a cornerstone of organic chemistry. While Nuclear Magnetic Resonance (NMR) spectroscopy is the "gold standard" for this task, interpreting the resulting spectra remains a slow, manual process that demands significant expertise. The "inverse problem" of NMR—going from a spectrum to a 3D structure—is notoriously difficult due to the vast chemical space, estimated at over $10^{60}$ plausible molecules.

Existing automated methods generally fall into two categories: AI generative models that treat the problem as a translation task (spectrum $\rightarrow$ SMILES), and traditional optimization methods like genetic algorithms. Generative models often fail when faced with the noise and overlapping peaks of real-world experimental spectra, while traditional optimization is often too slow for complex compounds. NMR-Solver addresses this "domain gap" by focusing on interpretable, physics-informed relationships rather than black-box translation.

The NMR-Solver Architecture

NMR-Solver integrates four distinct modules to bridge the gap between simulation and reality:

  1. Forward Prediction (NMRNet): An SE(3)-equivariant Transformer that predicts chemical shifts with accuracy comparable to expensive Density Functional Theory (DFT) calculations but at a fraction of the speed.
  2. Large-Scale Database Retrieval: The system utilizes the SimNMR-PubChem Database, containing predicted spectra for ~106 million molecules, allowing for sub-second retrieval of candidate structures.
  3. Fragment-NMR-Based Molecular Optimization (FB-MO): This core innovation breaks candidate molecules into fragments and recombines them, estimating the NMR spectrum of new combinations by "inheriting" shifts from parent fragments.
  4. Scenario Adaptation: A flexible interface allowing users to input known constraints, such as molecular formulas or starting reactants.
Overview of the NMR-Solver framework, integrating forward prediction, database search, and fragment-based optimization.

Physics-Guided Optimization

The Fragment-NMR-Based Molecular Optimization (FB-MO) module represents a significant departure from stochastic mutation strategies. Because NMR shifts are primarily governed by local chemical environments, the solver can "stitch" together the predicted spectra of fragments to rapidly evaluate millions of candidates without running a full deep-learning prediction for every iteration. This "fragment inheritance" strategy ensures that the optimization process remains chemically meaningful and computationally efficient.

Experimental Evaluation and Results

The authors evaluated NMR-Solver using three distinct sources: a simulated benchmark of 345,000 pairs, the SimNMR-PubChem database of 106 million molecules, and a newly curated JACS 2024 experimental dataset of ~450 reactant-product pairs with real-world spectra.

On the JACS 2024 experimental dataset, NMR-Solver achieved a Top-1 recall of 52.89%, significantly outperforming the previous state-of-the-art, NMR-to-Structure, which achieved only 14.44%. When provided with reactant information to simulate a chemist's prior knowledge, the Top-1 recall improved to 60.22%.

Performance comparison of NMR-Solver against baseline methods on simulated benchmarks, showing superior Top-5 and Top-10 recall.

As shown in the performance table above, while NMR-Solver and NMR-to-Structure perform similarly on Top-1 recall for simulated data, NMR-Solver demonstrates superior robustness as the search space expands, achieving an 89.90% Top-10 recall when using combined $^1$H and $^{13}$C NMR data.

Conclusion

NMR-Solver demonstrates that a physics-guided approach to molecular optimization can overcome the limitations of pure deep learning models in structure elucidation. By focusing on reliable chemical shifts rather than idealized features, the system achieves high generalizability. Strikingly, NMR-Solver successfully identified and corrected two molecular structures that had been misassigned in recent peer-reviewed publications, highlighting its potential as a practical tool for the chemistry community. Future work will look toward integrating multi-modal data, such as IR and Mass Spectrometry, to further enhance the robustness of automated molecular discovery.

Summary updated

BibTeX
@misc{liu2025nmr,
  author = {Yong-Jin Liu and Junjie Wang and Fanjie Xu and Xiaohong Ji and Zhifeng Gao and Linfeng Zhang and Guolin Ke and Rong Zhu and Weinan E},
  title = {{NMR-Solver: Automated Structure Elucidation via Large-Scale Spectral Matching and Physics-Guided Fragment Optimization}},
  year = {2025},
  eprint = {2509.00640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.00640},
}
Figure