NeurIPS 2026 · arXiv 2605.07020

FlashMol

High-Quality Molecule Generation in as Few as Four Steps

Xinyuan Wei1,2*   Zian Li1,3*   Shaoheng Yan1,2   Cai Zhou4   Muhan Zhang1,5†

1Institute for Artificial Intelligence, Peking University 2Yuanpei College, Peking University 3School of Intelligence Science and Technology, Peking University 4EECS, Massachusetts Institute of Technology 5State Key Laboratory of General Artificial Intelligence, Peking University

*Equal contribution  ·  †Correspondence: muhan@pku.edu.cn

4
steps, lower bound
83.89%
QM9 mol stable @ 4 NFE
94.87%
QM9 mol stable @ 8 NFE
250×
faster than the teacher

From Table 1. The 1000-step GeoLDM teacher reaches 89.4% molecule stability on QM9.

Samples

Molecules from the 8-step model

Forty QM9 molecules generated for this page by a FlashMol student running 8 sampling steps, where the GeoLDM teacher it was distilled from needs 1000. Drag to rotate, scroll to zoom. Nothing here was filtered by hand — these are the raw contents of one sampling run, decoded to coordinates and rendered from the model's own output. How the model gets there is further down.

The model behind these samples reproduces the paper's 8-NFE row to within about a tenth of a point on every metric: Table 1 reports 99.55 / 94.87 / 96.97 / 87.51 for atom stability, molecule stability, validity and valid-and-unique, and two independent evaluation runs of 10,000 samples give 99.55 / 94.87–94.92 / 96.89 / 87.45. So the molecules below come from a model performing at the paper's reported 8-step level, measured the same way — though the sampling run that produced these forty is its own small draw, far too small to carry those statistics itself.

Pick a molecule — 40 samples, ● marks the ten drawn from the stability-filtered pass

H C N O F QM9 atom decoder, Jmol colors · bonds inferred from interatomic distances

A dozen at once

Every cell is its own viewer; rotate them independently.

Loading grid…
40
molecules sampled
33
distinct formulas
18.0
mean atoms (8.5 heavy)
40 / 40
single connected fragment

Connectivity checked with a covalent-radius cutoff over the decoded coordinates; no atom exceeds its normal valence. A 40-molecule batch, far too small for the stability and uniqueness figures the paper reports over 10,000 samples.

Abstract

Generating chemically valid 3D molecular conformations is critical for computational drug discovery. Classical diffusion-based models like GeoLDM perform well but require hundreds of steps, making large-scale in silico screening impractical. Recent efforts on few-step molecular generation have accelerated this process to 12–50 steps, but they often largely sacrifice sample stability. In this work, we present FlashMol, an ultra-fast molecule generative model producing high-quality molecular conformations in as few as 4 steps. To achieve this, we adapt distribution matching distillation (DMD) — a reverse KL-divergence minimization objective — to the molecular domain for effective distillation. Considering the local minimization behavior of DMD, we respace the molecule generation timesteps, providing the generator with much better initialization and enables effective distillation. Additionally, to mitigate the mode-seeking behavior of DMD and improve diversity, we further regularize it with a Jensen-Shannon divergence term, which incorporates the mean-seeking behavior of the forward KL divergence. Extensive experiments on QM9 and GEOM-DRUG datasets demonstrate that FlashMol matches and even surpasses the original 1000-step teacher, achieving up to 250× acceleration in sampling speed while maintaining high molecular quality.

Contributions

What the paper adds

Diffusion models for 3D molecules work well and run slowly: EDM and GeoLDM need 1000 network evaluations per sample, flow-matching variants still want over a hundred, and the fastest prior methods reach 12–50 steps by giving up stability. Nothing reliably generated in ten steps or fewer. FlashMol closes that gap with four contributions.

  1. Distribution matching distillation integrated into molecular generation, on the GeoLDM latent backbone.
  2. Inference-time timestep scheduling identified as a key bottleneck for distillation, with an EDM-inspired respacing that improves the few-step generator even with no training and makes distillation work at all.
  3. The vanilla DMD objective extended with a Jensen–Shannon term, giving a unified treatment of KL-related objectives in the molecular setting.
  4. 83.89% molecular stability on QM9 and 84.72% atom stability on GEOM-DRUG with only 4 steps.
Molecule stability on QM9 plotted against number of function evaluations, with FlashMol at 4 to 8 NFE compared to GeoLDM, GeoLDM-respaced and recent few-step methods.
Figure 1 · Molecule generation quality on QM9. Comparable or superior performance with only 4 to 8 steps, against recent few-step molecule generative models. GeoLDM-respaced uses the respaced timesteps of §4.2; GeoLDM uses the original DDPM timesteps.
Background

Latent molecular diffusion, and DMD

A molecule with N atoms is a point cloud 𝒞 = ⟨x, h⟩ of coordinates and atom features. GeoLDM, the backbone here, encodes it into a continuous latent and decodes back, keeping the coordinate latent in the zero-center-of-mass subspace so the model is genuinely translation invariant. The denoisers are equivariant: rotating coordinate latents rotates predicted coordinates while feature channels stay fixed.

Forward processzt = αt z0 + σt ε,  with  ε ~ 𝒩(0, I)

Distribution matching distillation

DMD minimizes the reverse KL divergence between a few-step student and a multi-step teacher. Its gradient reduces to the gap between two score functions, evaluated on noised student samples. The teacher's score is frozen for the whole run; the student's own score has no closed form, so a proxy network stands in and has to be retrained continuously, because the student's distribution keeps moving. Following DMD2, each iteration updates that proxy for five steps before taking one generator step.

DMD gradient∇ ℒDMD = − 𝔼t ∫ ( sreal − sfake,φ ) dGθ(z)/dθ  dz

The student does not generate in one shot. It samples by consistency sampling — apply the generator, re-noise to the next level, repeat — and the number of times round that loop is the step count the whole paper is counting.

Consistency samplingxt+1 = G(zt),    zt+1 = αt+1 xt+1 + σt+1 ε

Reverse KL is one member of the f-divergence family. The general gradient puts an extra weight f″(r)r² on that same score difference, where r is the teacher-to-student density ratio — the machinery the diversity fix below spends.

Method

Geometric distribution matching distillation

Training runs three models: the few-step generator, the frozen teacher score estimator, and the proxy score estimator for the student. In each iteration the generator produces latent molecules from Gaussian noise by K-step consistency sampling, staying in latent space without decoding, and coordinates are projected back to the zero-mean subspace at every step to hold translation invariance. The proxy updates for five steps on a diffusion loss over those samples; then both score estimators evaluate the generated latents to form the DMD gradient for a single generator update.

Equivariance survives this construction. The paper states as a proposition that the DMD gradient is invariant to SE(3) — rotating the student's samples does not change it — and argues this improves data efficiency when distilling equivariant generators. The proof uses EGNN equivariance to pull the rotation out of the generator and orthogonality to cancel the paired rotation matrices; translation comes free from the zero-center-of-mass construction, so only SO(3) needs work. At inference, the generator produces latents in K steps and the pretrained GeoLDM decoder turns them into coordinates and atom types. Nothing in the autoencoder is retrained.

FlashMol training framework: the few-step generator maps noise to latents on respaced timesteps, the fake score network and discriminator update for five steps on noisy generated and real latents, then the teacher and fake scores form the DMD gradient, weighted by the discriminator-based JS term, to update the generator once. Side panels show the respaced timestep schedule, one training iteration, and inference.
Figure 2 · Training framework. Each iteration, the few-step generator G produces a batch of sampled molecules. The μfake model approximating the fake score and the discriminator D are updated first, for five steps each, with the diffusion loss and the GAN loss. Their outputs then give the DMD and Jensen–Shannon gradients, which are mixed and applied to G.
Key insight

Respaced timesteps

The paper's central finding: few-step molecular generation is bottlenecked by which timesteps you sample at, and fixing that needs no retraining.

In theory the DMD loss is complete — with unlimited capacity its optimum aligns student and teacher almost perfectly. In practice its expectation is taken over the student's samples, not the data's as forward KL would be, which makes it local: if the initial student cannot produce reasonable samples, even imperfect ones, the gradient carries little information.

Molecules make that failure mode acute. Generation is highly sensitive to noise, and bond lengths and angles need fine-grained precision, so the low-noise regime cannot be skipped. Initializing a few-step student from the teacher and sampling on uniformly spaced timesteps introduces severe discretization error and largely skips exactly that regime. The resulting 4-step samples are noisy and chemically invalid, often with disconnected atoms. Training on them does not merely underperform: the authors report gradient explosions before the first epoch finishes.

4-step sample on the original GeoLDM schedule: scattered, disconnected atoms. 4-step sample on the original GeoLDM schedule. 4-step sample on the original GeoLDM schedule. 4-step sample on the original GeoLDM schedule. 4-step sample on the respaced schedule: a connected, chemically plausible molecule. 4-step sample on the respaced schedule. 4-step sample on the respaced schedule. 4-step sample on the respaced schedule.
Figure 3 · Random 4-step samples from the multi-step teacher, no additional training. Top row: original GeoLDM schedule — noisy and chemically invalid, with atoms left disconnected. Bottom row: the respaced schedule. Both rows are the same teacher weights at the same 4-step budget; only the timestep selection differs.

The fix borrows EDM's design-space analysis, which gives the noise levels that minimize truncation error. The shape is what matters: large denoising steps front-loaded at high noise, many small steps reserved for the low-noise region where fine geometry is recovered. GeoLDM inherits a variance-preserving schedule that instead spreads steps roughly uniformly in noise variance, so the fix is a change of variables rather than a new model — choose noise levels from the EDM schedule, then solve for the GeoLDM discrete step that realizes each one, and apply the result to the generator and both score estimators so training and sampling stay consistent.

Respaced timestepst/T = √( 1 − √( 1 − (i/(N−1))2ρ ) )

The exponent needs retuning for molecules. EDM's default of ρ = 7 sends more than 38% of the 1000 steps to t ≈ 0, a degenerate allocation. ρ = 2.25 still resolves the t ∈ [0, 300] range while staying concentrated on low noise.

Noise schedules plotted for several values of the exponent rho, showing how large rho pushes most steps to near-zero diffusion time.
Figure 4 · Noise schedules for different ρ. The exponent in the respacing formula controls how steps are distributed between high and low noise. At ρ = 7, more than 38% of the 1000 steps land at t ≈ 0.

After respacing, samples are dramatically more stable. They are not good enough to ship — this is still the teacher sampled in four steps, before any distillation — but they are a starting point from which DMD can escape its poor initial modes, and training no longer explodes, even late in the run.

DMD training dynamics under two sampling noise schedules; the uniform-schedule run fails to optimize while the respaced run trains stably.
Figure 5 · Distillation training dynamics under different sampling noise schedules. The 8-step student on uniform timesteps (blue) fails to optimize; on the respaced schedule (orange) training proceeds without gradient explosion, including in later stages.
Method

Diversity via f-divergence regularization

Reverse KL punishes the student hard for placing probability mass outside the teacher's support, which is precisely what costs diversity. Jensen–Shannon divergence can be read as the mean of two KL terms, one in each direction, so it carries a forward-KL component and with it mean-seeking behavior that pulls against DMD's mode-seeking. FlashMol adds it as a regularizer rather than a replacement: the molecular setting is too noise-sensitive to optimize JS alone, so the coefficient stays small.

Final objectiveℒFlashMol = ℒDMD + λ · ℒJS,   with  λ = 0.1

Differentiating the JS term needs the ratio of student to teacher density for a given molecule, which is intractable. A GAN discriminator trained on generated and real molecules approximates it as r ≈ D(x)/(1−D(x)). To capture both coarse semantics and fine detail, the discriminator reads three intermediate layers of the proxy score network and, for each, uses cross-attention with a learnable query token to produce real/fake logits, averaging the three; R1 regularization stabilizes it.

Results

Unconditional generation

QM9 (130K molecules up to 29 atoms) and GEOM-DRUG (450K molecules averaging 44 atoms). Metrics follow the standard protocol: bonds are recovered from pairwise distances and atom types, and every figure is a mean over three runs of 10,000 samples. GeoLDM-respaced is the teacher sampled on FlashMol's schedule at the same budget, which separates what respacing buys from what distillation buys.

Table 1 · Unconditional molecule generation
MethodNFE QM9 Atom StaQM9 Mol StaQM9 ValidQM9 V&U DRUG Atom StaDRUG Valid
Data—99.095.297.797.786.599.9
GDM-aug100097.671.690.489.577.791.8
EDM100098.782.091.990.781.392.6
EDM-Bridge100098.884.692.090.782.492.8
GeoLDM (teacher)100098.989.493.892.784.499.3
EquiFM20098.988.394.793.584.198.9
GeoBFN10098.687.293.091.578.993.1
GOAT9099.2—92.992.084.896.2
SLDM5098.7088.0992.8489.53——
GeoRCG (EDM)5098.7589.0895.05—81.4495.70
AccGeoLDM1692.0851.0273.2272.39——
MOLTD1299.4092.5396.0492.086.8895.33
GeoLDM-respaced895.4970.7887.1381.4864.3590.44
FlashMol899.5594.8796.9787.5189.9899.86
GeoLDM-respaced582.1127.9662.1059.2018.2782.07
FlashMol598.7387.0592.6778.8387.6999.69
GeoLDM-respaced472.3512.4345.2442.538.3084.65
FlashMol497.7083.8990.7072.7084.7299.72

All values in percent. FlashMol rows beat the respaced teacher at the same NFE on every metric shown. QM9 figures are means over three runs of 10,000 samples; the paper reports standard deviations of 0.0–0.5. The MOLTD V&U entry is the authors' own estimate.

Three things stand out. With the fewest steps, FlashMol takes the best stability and validity on both datasets. At 8 NFE on QM9 it reaches 94.87% molecule stability against the respaced teacher's 70.78% at the same budget, beating GeoRCG at 50 NFE and MOLTD at 12. On GEOM-DRUG it posts 89.98% atom stability, above the dataset's own 86.5% — worth reading carefully, since that dataset figure is itself computed by the same distance-and-lookup procedure rather than being a ceiling on correctness.

At 4 and 5 steps it rescues a baseline that generates almost nothing. GeoLDM-respaced manages 12.43% and 27.96% molecule stability there, meaning essentially no stable molecules; FlashMol turns those into 83.89% and 87.05%, approaching 1000-NFE performance with 250× and 200× less computation.

Diversity is competitive but not leading. The 8-step model reaches 87.51% valid-and-unique against roughly 90% for baselines. This is the known reverse-KL trade: samples outside the teacher's support incur a large penalty, so the student concentrates on high-probability modes. The JS regularizer mitigates it, and the paper then argues — as a judgment, not a measurement — that steering toward high-confidence regions is often what you want when sample quality matters more than coverage. It is the paper's weakest metric.

Across distillation epochs, molecule stability rises while valid-and-unique declines slightly.
Figure 6 · Stability and diversity across training. Molecule stability keeps increasing as distillation proceeds while valid-and-unique declines by a small margin. This is why the paper's protocol stops training when valid-and-unique starts to drop.
Results

Conditional generation

Each property is injected as a node feature in the student, the proxy and the teacher, with a separate teacher and student trained per property and a pretrained classifier scoring the output. Because evaluation depends only on 3D coordinates, precision requirements rise, so the budget here is 32 steps rather than four — the headline few-step regime does not carry over to this task.

Table 2 · Conditional generation, MAE against the target property (lower is better)
MethodNFEα (Bohr³)Δε (meV)HOMO (meV)LUMO (meV)μ (D)Cv (cal/mol·K)
QM9 (lower bound)—0.106439360.0430.040
Random (upper bound)—9.01147064514571.6166.857
Natoms—3.868664268131.0531.971
EDM10002.766553565841.1111.101
GeoLDM10002.375873405221.1081.025
GeoBFN1002.345773285160.9980.949
GeoLDM-respaced322.145653424910.9850.933
FlashMol322.125563304890.9880.926

A separate teacher and student are trained per property. GeoLDM-respaced at the same 32 NFE is already close, so most of the conditional gain comes from respacing rather than from distillation.

FlashMol is comparable or better on nearly every property at the lowest step count. HOMO and LUMO are the cited cases: 330 meV and 489 meV against the 1000-step teacher's 340 meV and 522 meV. Note that GeoLDM-respaced at the same 32 steps is already close, so most of the conditional gain comes from respacing rather than from distillation.

Ablations

Which pieces matter

Schedule exponent ρ
ρMol StaV&U
269.9381.27
2.2570.7881.48
2.7568.4681.35
535.2361.95

Teacher only, no distillation.

Divergence regularizer
ObjectiveMol StaV&U
DMD only81.5168.84
Forward KL58.0959.10
JS only83.3472.36
DMD + JS83.8972.70

4 NFE, λ = 0.1.

Sampling method
NFERespacedDDIMConsist.
412.430.010.00
870.785.066.71
1694.6141.8459.94

Molecule stability, teacher only.

The schedule does most of the work. On the untrained teacher, respacing with consistency sampling reaches 94.61% molecule stability at 16 steps — above MOLTD, with no distillation at all. Consistency sampling by itself adds only a small gain over DDIM, which places essentially all the credit on which timesteps are chosen.

The exponent has a real optimum. ρ = 2.25 is best for both stability and uniqueness. Too large concentrates steps in the low-noise regime and loses the coarse structural deformation early high-noise steps provide, collapsing to 35.23% at ρ = 5. Too small reverts to something close to the original DDIM schedule. The curve is flat between 2 and 2.75, so the band matters more than the precise value.

JS helps diversity; forward KL alone breaks training. DMD alone gives 81.51% stability but only 68.84% valid-and-unique — collapsed support showing up directly. Adding JS at λ = 0.1 lifts both, to 83.89% and 72.70%, about four points of diversity. Substituting forward KL drops stability to 58.09%, which the paper attributes to high-variance estimation.

Limitations & outlook

Where it falls short

  • Diversity decays with training. Molecule stability keeps rising as distillation proceeds while valid-and-unique slowly declines, a known property of score-distillation objectives. It matters more for molecules than for images, because virtual screening needs chemical-space coverage; the paper's protocol therefore stops training when valid-and-unique starts to drop.
  • Generalization beyond GeoLDM is expected but untested. The approach should transfer to other 3D generative models over continuous latent coordinates, such as protein–ligand co-design or conformation generation, but the latent geometry and fake-score construction would likely need rework for different equivariance groups or non-Gaussian priors.
  • Misuse profile is the teacher's. FlashMol distills an existing model without adding generative capacity, so its risk profile is that of the teacher; the paper recommends standard toxicity filters, such as hERG and Ames screening, before any experimental follow-through.

Conclusion

FlashMol gets up to 250× acceleration over its 1000-step GeoLDM teacher while matching or exceeding teacher-level sample quality, from two designs: an EDM-inspired respacing of the generation timesteps that supplies the few-step student with a viable initialization, and a Jensen–Shannon term that regularizes the reverse-KL objective with a forward-KL component to mitigate mode-seeking. It attains comparable quality in as few as 4 steps, and state-of-the-art molecular stability and validity on QM9 and GEOM-DRUG in 8.

Citation
@article{wei2026flashmol,
  title   = {FlashMol: High-Quality Molecule Generation in as Few as Four Steps},
  author  = {Wei, Xinyuan and Li, Zian and Yan, Shaoheng and Zhou, Cai and Zhang, Muhan},
  journal = {arXiv preprint arXiv:2605.07020},
  year    = {2026}
}