TL;DR
Diffusion models are great at generating 3D molecular structures, yet they still occasionally hallucinate chemically invalid or unstable molecules. Instead of paying the steep computational price of traditional uncertainty quantification, this paper equips a molecular diffusion model with a lightweight "uncertainty head" and uses it to actively guide generation. The standout result: by normalising uncertainty scores to remove element-specific biases, the model can selectively trigger error-correction steps on the fly—matching the quality of heavy-duty correction methods at roughly a tenth of the extra compute.
What Problem Does This Paper Address?
When generating 3D molecules conditioned on a chemical formula, diffusion models transform random noise into atomic coordinates over many sequential steps. Sometimes, trajectories drift into physically impossible geometries. Uncertainty quantification (UQ) can flag or fix these bad generations, but standard UQ methods—like running ensembles or Bayesian approximations—are too slow to run at every single denoising step.
Even if you have a fast uncertainty estimate, there is a subtle catch: different chemical elements (like Carbon vs. Hydrogen) and different noise levels naturally have different baseline uncertainties. If you don't account for this, your uncertainty score just tells you what atom you're looking at, rather than whether its geometry is actually going wrong.
Methods
The authors add a tiny, cheap-to-compute heteroskedastic uncertainty head ($\log \sigma_\theta^2$) to a shared PaiNN graph neural network denoiser. Trained with a negative log-likelihood objective (using a stop-gradient so it doesn't interfere with coordinate prediction), this head predicts per-atom velocity variance at each step.
They test three ways to use this uncertainty signal:
- Post-hoc Filtering (
EM-FILTER): Generate twice as many candidate molecules and discard the 50% with the highest trajectory-averaged uncertainty. - Molecule-level Correction (
PC-UQ): During sampling, monitor the molecule's average uncertainty. If it crosses a threshold, trigger a Langevin correction step to nudge the trajectory back on track. - Atom-level Forcing (
LA-UQ): Using a heterogeneous-noise ("diffusion forcing") backbone, identify confident atoms and advance them to a cleaner timestep ahead of uncertain atoms, giving the uncertain atoms a clearer structural neighbourhood to condition on.
The Normalisation Trick: To strip out confounding effects from atom types and timesteps, the authors train a second, geometry-blind auxiliary head ($\bar{\sigma}_\theta^2$) that only sees the atom's element, the formula, and the timestep. Dividing the raw uncertainty by this baseline yields a normalised score ($\hat{\rho}_a$) with an expected value of 1. This puts all atoms and timesteps on a common scale, allowing a single global threshold for triggering corrections (PC-UQ-NORM).
Datasets
The models are evaluated on two standard 3D molecular benchmarks:
- QM9 (100% of the dataset).
- GEOM-Drugs (restricted to molecules with $\le 60$ atoms, covering 92.8% of the dataset).
To test generalisation, test sets are split into seen and unseen chemical formulas based on whether the formula appeared during training.
Key Insights and Ideas
- Filtering hurts discovery: While post-hoc filtering boosts chemical stability, it drags down novelty (the percentage of stable, unique, and novel molecules) below the baseline on QM9. Filtering effectively collapses generation back toward the training distribution—a poor trade-off if your goal is discovering new drugs or materials.
- Normalisation is the secret sauce for corrections: Naive
PC-UQapplies corrections almost everywhere, saving little compute. Normalising the score (PC-UQ-NORM) concentrates corrections into a narrow, late-stage window of generation, right where trajectories actually diverge. - Carbon scaffolds: In atom-level forcing, the raw
LA-UQsampler disproportionately advances Carbon (and other heavy atoms like Nitrogen and Oxygen) early on. Chemically, this makes sense: Carbon forms the rigid structural backbone of organic molecules, giving later atoms a stable scaffold.
Key Results
AUROC of normalised UQ-scores predicting molecular and atomic instability
- Predictive signal: As shown above, the normalised UQ-scores reliably predict molecular and atomic instability, with the signal growing stronger in the second half of the sampling trajectory.
- Massive compute savings: Standard Predictor-Corrector (
PC) sampling boosts stability on QM9 (seen) from 88.21% to 94.23%, and on GEOM-Drugs (seen) from 74.71% to 86.88%, but nearly doubles the number of function evaluations (+99.2% NFE).PC-UQ-NORMmatches or beats this—reaching 95.16% stability on QM9 and 87.33% on GEOM-Drugs—with only +8.5% and +12.8% NFE, respectively. - Look-ahead trade-offs:
LA-UQoutperforms its baselines on GEOM-Drugs (64.26% stability vs. 50.80% forEM-125), but its overall performance trails standard homogeneous models because the required heterogeneous-noise backbone has a lower baseline.
Limitations and Future Work
- Heterogeneous backbones: The Logit-Normal Truncated Gaussian (LTG) schedule used for
LA-UQundersamples small timesteps ($t$), which appears to hurt molecular geometry generation more than it hurts image generation. - Distribution shift: During late-stage sampling, the empirical expectation of the normalised score $\hat{\rho}_a$ drifts away from 1 due to error accumulation. Future work could apply timestep-shifting techniques to realign training and sampling.
- Plug-and-play potential: Because the variance heads can be estimated post-hoc on existing pretrained denoisers,
PC-UQ-NORMcan be dropped into large-scale models without full retraining—unlikeLA-UQ, which requires a specialised heterogeneous backbone.
Summary updated