NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Atomic Diffusion Models for Small Molecule Structure Elucidation from NMR Spectra

Ziyu Xiong, Yichi Zhang, Foyez Alauddin, Chu Xin Cheng, Joon Soo An, Mohammad R. Seyedsayamdost, Ellen D Zhong

Abstract

Determining the 3D structure of small molecules from Nuclear Magnetic Resonance (NMR) spectra remains a fundamental challenge in chemistry and drug discovery. Traditionally a manual and time-intensive process, structure elucidation requires expert interpretation of complex spectral peaks. This paper introduces CHEFNMR (CHemical Elucidation From NMR), an end-to-end diffusion-based framework that automates this process by generating 3D atomic coordinates directly from 1D NMR spectra and chemical formulas. By leveraging a novel large-scale dataset of natural products and a hybrid transformer architecture, CHEFNMR achieves state-of-the-art performance, demonstrating significant zero-shot generalization to experimental laboratory data.

Introduction

Nuclear Magnetic Resonance (NMR) spectroscopy is the gold standard for molecular identification. By measuring the response of atomic nuclei to magnetic fields, NMR produces spectra that encode the connectivity and local environment of atoms within a molecule. However, the "inverse problem"—reconstructing a 3D molecular structure from these abstract 1D signals—is a significant bottleneck. Unlike proteins, which consist of repeating amino acid chains, small molecules exhibit diverse and non-linear architectures, making them resistant to the automated folding techniques that have revolutionized structural biology.

Currently, structure elucidation is largely a manual task performed by highly trained chemists. While computational tools exist, they often rely on database matching or predefined fragment libraries, which fail when encountering novel chemical entities. CHEFNMR addresses this by treating structure elucidation as a conditional generative task, using diffusion models to "sculpt" molecular geometry from noise.

Methodology

The CHEFNMR Architecture

CHEFNMR utilizes a two-stage architecture designed to bridge the gap between 1D spectral data and 3D spatial coordinates:

  1. NMR-ConvFormer: This hybrid encoder processes 1D $^1H$ and $^{13}C$ NMR spectra. It employs a convolutional tokenizer to capture local peak patterns, such as chemical shifts, splitting patterns, and intensities. These tokens are then processed by a transformer to model global correlations across the entire spectrum, allowing the model to understand how distant atoms influence one another.
  2. Diffusion Transformer (DiT): The generation of 3D coordinates is handled by a non-equivariant transformer. Starting with random Gaussian noise, the DiT iteratively refines atomic positions, conditioned on the embeddings from the ConvFormer and the atom types provided by the molecular formula.

Geometric Constraints and Training

To ensure the physical viability of generated structures, the model incorporates a Smooth LDDT (Local Distance Difference Test) loss, adapted from AlphaFold3. This loss function penalizes deviations in inter-atomic distances, ensuring that the model respects local geometric constraints like bond lengths and angles.

Interestingly, the authors opted for a non-equivariant scaling approach. While equivariant networks are popular in molecular modeling for their handling of 3D rotations, the researchers found that non-equivariant transformers, when paired with heavy data augmentation, scaled more effectively to the high-atom-count structures characteristic of complex natural products.

Data and Benchmarking

A primary obstacle in this field has been the lack of high-quality, complex training data. Existing datasets are often limited to simple molecules that do not reflect the challenges of natural product discovery. To solve this, the authors curated SpectraNP, a massive dataset containing 111,181 complex natural products with up to 274 atoms, paired with simulated 1D NMR spectra.

In addition to SpectraNP, the model was evaluated on:

  • SpectraBase and USPTO: Benchmarks for simpler molecules and chemical reaction products.
  • SpecTeach and NMRShiftDB2: Real-world experimental datasets containing laboratory-measured spectra. These datasets are particularly challenging due to the presence of noise, solvent effects, and impurities.

Results and Discussion

Performance on Natural Products

CHEFNMR demonstrates a significant leap in performance over existing methods. On the SpectraNP dataset, the model achieved a top-1 matching accuracy of over 65%. This represents a massive improvement over previous chemical language models (19%) and graph-based generative models (2%).

Zero-Shot Generalization

One of the most striking findings is the model's ability to generalize to real-world data without specific fine-tuning. When tested on the SpecTeach experimental benchmark, CHEFNMR achieved 56% accuracy. This suggests that the synthetic training on SpectraNP successfully captured the underlying physical principles of NMR, allowing the model to remain robust against the "messiness" of actual laboratory conditions.

Scaling and Robustness

The study observed clear scaling laws: performance improved consistently as model parameters increased (from 134M to 462M) and as the training dataset expanded. Furthermore, through Classifier-Free Guidance (CFG)—where spectra are randomly dropped during training—the model developed the ability to predict structures even when only partial spectral data (e.g., only $^{13}C$) is available.

Limitations and Future Directions

Despite its success, CHEFNMR faces limitations in resolving stereochemistry. 1D NMR spectra often lack sufficient information to distinguish between enantiomers (mirror-image molecules). Future iterations of the model will likely need to incorporate 2D NMR data (such as COSY or HMBC) to fully resolve 3D spatial arrangements. Additionally, the development of a confidence metric would provide chemists with a reliability score for each prediction, facilitating better integration into the laboratory workflow.

Conclusion

CHEFNMR represents a paradigm shift in molecular structure elucidation. By framing the problem as a conditional diffusion task and providing the necessary large-scale data, this work paves the way for fully automated chemical discovery, potentially reducing the time required to identify new drugs and materials from days to seconds.

Summary updated

BibTeX
@inproceedings{xiong2025atomic,
  author = {Ziyu Xiong and Yichi Zhang and Foyez Alauddin and Chu Xin Cheng and Joon Soo An and Mohammad R. Seyedsayamdost and Ellen D Zhong},
  title = {{Atomic Diffusion Models for Small Molecule Structure Elucidation from NMR Spectra}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=STsjfx2cee},
}
Figure