DiffER$^2$: Diffusion Ensembles for Retrosynthesis Prediction with SMILES Adapted Particle Guidance

Sean Current, Daniel Adu-Ampratwum, Xia Ning, Srinivasan ParthasarathyarXiv 2026

TL;DR

Finding the right chemical ingredients to manufacture a newly discovered drug is like trying to un-bake a cake—there are many possible recipes, and you want options. This paper introduces DiffER$^2$, an ensemble of diffusion models that uses a clever "repulsion" trick to prevent the AI from suggesting the same obvious chemical recipe over and over. By forcing the models to explore diverse possibilities, DiffER$^2$ discovers significantly more unique, valid chemical pathways while boosting prediction accuracy.

What Problem Does This Paper Address?

When pharmaceutical researchers design a promising new drug molecule (the product), they face the daunting puzzle of retrosynthesis: figuring out which simpler, off-the-shelf starter chemicals (reactants) can be mixed together to build it. Unlike mixing chemicals together—which usually yields one predictable result—working backward is a one-to-many problem. Dozens of different reactant combinations might successfully build the exact same target molecule.

Modern AI often treats this like a language translation task, representing molecules as text strings called SMILES (e.g., OC(=O)c1...c2) and translating a "product string" into a "reactant string." While auto-regressive models (which generate text left-to-right, like ChatGPT) are the standard here, discrete diffusion models (which refine an entire noisy string all at once) have recently shown promise, beating auto-regressive models on their #1 top guess.

However, diffusion models suffer from a stubborn flaw: mode collapse (oversampling posterior peaks). Because they gravitate so strongly toward the single most statistically likely answer, they keep generating the exact same chemical recipe repeatedly, failing to give chemists the diverse menu of options they actually need in the lab.

Methods

Building on an earlier model called DiffER, the authors construct DiffER$^2$, upgrading both the model ensemble and how it samples answers.

Overview of the DiffER^2 ensemble pipeline, combining continuous-time and discrete-time diffusion models with particle guidance to rank predicted SMILES.
  • Hybrid Diffusion Ensembles: Because diffusion models refine a fixed-length canvas of noise, they have to guess how long the output SMILES string should be ahead of time. Following standard DiffER, the authors pad the strings with random blank tokens to give the model breathing room. What is new is that DiffER$^2$ pairs four discrete-time diffusion models with four continuous-time diffusion models—creating an eight-model ensemble that captures the distinct mathematical strengths of both regimes.
  • SMILES-Adapted Particle Guidance: To fix the diversity problem, the authors adapt particle guidance—a technique that pushes simultaneous diffusion samples ("particles") away from each other during generation. Doing this on SMILES strings is tricky because two completely different text strings can represent the exact same 3D molecule. To solve this, the authors train a custom classifier to recognize whether two partially denoised strings are heading toward the same underlying molecule. Using classifier-based guidance, the model actively steers its samples away from duplicates in real time, especially early in the denoising process.

Their flagship variant, DiffER$^2$PG+, pools predictions from both standard diffusion sampling and this particle-guided sampling, ranking the final molecules by how frequently they appear.

Datasets

The models are trained and evaluated on USPTO-50K, the standard benchmark dataset for retrosynthesis containing 50,000 patented chemical reactions (excluding reaction solvents). Following established practice, each product-reactant SMILES pair is augmented 20 times using alternative, valid SMILES orderings, yielding 1 million training pairs. No new benchmarks are introduced.

Key Insights and Ideas

  • Guidance unlocks hidden recipes without sacrificing accuracy: Steering a model away from its top choice usually risks tanking its accuracy. Here, particle guidance acts like a diversity engine—pushing the ensemble into lower-probability regions of the chemical space that still contain valid, ground-truth reactions the older ensemble completely missed.
  • Diffusion thinks globally, helping it break chemical rings: When a chemical ring is broken open to form reactants, the resulting SMILES string gets much longer. Left-to-right auto-regressive models struggle as string length balloons. Because diffusion models attend to the entire sequence canvas simultaneously and narrow their focus layer by layer, they handle large jumps in sequence length—and thus ring-opening reactions—far more gracefully.

Key Results

Among template-free (pure sequence-to-sequence) methods on USPTO-50K, DiffER$^2$PG+ sets a new bar for top-ranked predictions:

  • Accuracy: It achieves the best Top-1 (57.7%) and Top-3 (79.8%) accuracies, statistically ties the state-of-the-art auto-regressive model R-SMILES at Top-5 (86.1% vs. 86.2%), and takes second place at Top-10 (89.9% vs. 91.0%). It also significantly outperforms the original discrete-only DiffER across Top-5 and Top-10 metrics.
  • Output Diversity: Adding particle guidance dramatically increases the number of unique molecules generated per product, softening the oversampling curse.
Figure 2: Box plot showing the number of unique molecules produced by the various DiffER2 ensembles. "K=1 is False" indicates reactions that do not have an accurate top-1 reactant. "K=1 is True" indicates reactions that do have an accurate top-1 reactant. "Overall" includes all reactions.
  • Chemistry Case Study: On a tricky ring-forming reaction (N-heterocyclization), DiffER$^2$PG+ successfully surfaces the clean, ground-truth reaction at Rank 3—a pathway the original DiffER failed to generate at all.

Limitations and Future Work

  • Blindness to side-products: In the paper's case study, the model's #1 and #2 ranked predictions would technically synthesize the target drug, but contain reactive chemical groups that would create messy, unwanted byproducts in a real beaker. The model understands reaction mechanics, not reaction purity.
  • Lingering peak bias: While much improved, the ensemble still generates fewer unique molecules when it is highly confident in its Top-1 answer, and still trails auto-regressive R-SMILES at Top-10 accuracy and on ring-adding reactions.
  • Future directions: The authors suggest designing new guidance objectives that explicitly penalize chemical side-products, bringing chemists into a human-in-the-loop guidance setup, and exploring rectified linear flows for SMILES generation.

Summary updated

Abstract

Computational retrosynthesis prediction has the potential to reduce development time for newly discovered drugs by automatically generating potential reactions for a target product. Data-driven approaches commonly treat this as a sequence-to-sequence generation task on SMILES strings. In this work, we construct ensembles of discrete-time and continuous-time diffusion models for molecular generation and incorporate guidance mechanisms for improved output diversity. We propose an adaptation of particle guidance to SMILES sequence generation which significantly improves the number of unique molecules generated by diffusion ensembles while increasing top-k accuracy. These results further expand the efficacy of discrete diffusion for SMILES generation, and our empirical analyses offer new insights into the capabilities of diffusion models for chemical retrosynthesis.
BibTeX
@misc{current2026differ,
  author = {Sean Current and Daniel Adu-Ampratwum and Xia Ning and Srinivasan Parthasarathy},
  title = {{DiffER$^2$: Diffusion Ensembles for Retrosynthesis Prediction with SMILES Adapted Particle Guidance}},
  year = {2026},
  eprint = {2611.33557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33557},
}
Figure