Efficient Molecular Conformer Generation with SO(3)-Averaged Flow Matching and Reflow

Zhonglin Cao, Mario Geiger, Allan dos Santos Costa, Danny Reidenbach, Karsten Kreis, Tomas Geffner, Franco Pellegrini, Guoqing Zhou, Emine Kucukbenli

TL;DR

This paper introduces SO(3)-Averaged Flow Matching and Reflow, a novel framework that drastically accelerates both the training and sampling of deep generative models for 3D molecular conformer generation. By analytically integrating out rotational symmetries during training and straightening the resulting flow trajectories, the method achieves state-of-the-art conformer quality with few-step or even one-step generation. This provides a massive speedup over existing diffusion and flow-based baselines, opening the door for ultra-fast, large-scale virtual screening in drug discovery.

What Problem Does This Paper Address?

Predicting the 3D spatial arrangements of atoms (conformers) from a 2D molecular graph is a foundational task in computational chemistry and drug discovery, as a molecule's physical and chemical properties are heavily dictated by its 3D structure. Traditional methods like molecular dynamics or quantum chemistry simulations are highly accurate but computationally exhausting.

Recently, deep generative models (like diffusion and flow-matching models) have emerged as powerful alternatives. However, they face two major bottlenecks:

  1. Training Efficiency: Because molecular properties are invariant to global rotations, models must learn to handle rotational symmetries. Current methods rely on computationally expensive or stochastic rotational alignment (like the Kabsch algorithm) during training to align the starting noise with the target data.
  2. Sampling Speed: Generating a conformer requires iteratively solving ordinary or stochastic differential equations (ODEs/SDEs) over dozens or hundreds of steps. This makes running these models across virtual libraries of billions of compounds prohibitively slow.

This paper tackles both challenges simultaneously, aiming for fast training and near-instantaneous (one-step) inference.

Methods

The authors build upon the framework of Flow Matching and introduce two key mechanisms:

  • SO(3)-Averaged Flow: Instead of explicitly aligning the noise and data distributions using rigid rotations during training, the authors propose a new objective that analytically integrates the probability flow over the entire rotation group ($SO(3)$) using a closed-form solution derived from matrix Fisher distributions. This eliminates the need for rotational alignment entirely.
  • Reflow and Distillation: To accelerate inference, the authors leverage "rectified flow" techniques. First, Reflow straightens the curved trajectories between the noise and data distributions, minimizing transport costs. Second, Distillation trains the model to map the noise directly to the final conformer in a single step, bypassing the need for iterative ODE solving.
Figure 1. SO(3)-Averaged Flow and Reflow (a) We illustrate a comparison between our approach Averaged Flow, conditional OT and Kabsch + Flow. While conditional OT randomly assigns any rotation of the data, Kabsch + Flow assigns the rotation of largest overlap. Our method instead computes the expected flow across all rotations. (b) Flow trajectory visualization before and after the reflow with 100 Euler steps. The flow trajectories are effectively straightened after reflow. Carbon, hydrogen, oxygen, and nitrogen are colored as black, gray, red, and blue, respectively.

Crucially, these training techniques are architecture-agnostic. The authors demonstrate their efficacy on two distinct neural networks: an $SE(3)$-equivariant graph neural network (NequIP) and a highly scalable, non-equivariant Diffusion Transformer with pairwise bias (DiT).

Datasets

The models were trained and evaluated on two standard benchmarks in the molecular generation literature:

  • GEOM-QM9: A dataset consisting of smaller molecules.
  • GEOM-Drugs: A dataset containing larger, flexible, drug-like molecules.

The authors utilized the standard train/val/test splits established by prior work, evaluating performance on a test set of 1,000 molecules for each dataset.

Key Insights and Ideas

  • Symmetry Integration over Alignment: Mathematically integrating out the rotation group directly within the loss function provides a much smoother and more stable training signal than trying to force the model to learn via discrete alignments (like Kabsch alignment).
  • Non-Equivariant Models Benefit Most: While equivariant models inherently understand rotations, non-equivariant architectures (like DiT) typically struggle with them. Remarkably, applying the SO(3)-Averaged Flow objective to the non-equivariant DiT architecture yielded the most dramatic improvements, allowing it to learn spatial relationships far more efficiently.
  • Trajectory Straightening is Essential: Molecular flow paths naturally exhibit high curvature near the noise boundary ($t=0$). Straightening these paths via Reflow is what prevents the generation quality from collapsing when reducing the number of sampling steps.

Key Results

  • Dramatically Faster Convergence: Models trained with the Averaged Flow objective converged significantly faster than baseline objectives. For instance, the DiT model trained with Averaged Flow for just 12 epochs outperformed the same architecture trained with Kabsch alignment for 100 epochs.
Convergence comparison showing Averaged Flow outperforming baselines in fewer epochs
  • State-of-the-Art Quality: On the GEOM-QM9 dataset, AvgFlow-DiT established a new state-of-the-art across all coverage and precision metrics. On the more challenging GEOM-Drugs dataset, the scaled-up AvgFlow-DiT-L outperformed existing baselines in precision metrics.
  • Exceptional One-Step Generation: After reflow and distillation, the one-step model (AvgFlow-DiT-D) outperformed full 1,000-step SDE simulations of baseline models (like MCF-S) in precision, while taking only 14.6 milliseconds per molecule. Meanwhile, the 2-step GNN variant (AvgFlow-NequIP-R) achieved an average sampling time of 2.68 milliseconds—21$\times$ to 50$\times$ faster than competing transformer baselines.

Limitations and Future Work

  • Minor Quality Trade-off: Although the distilled one-step model delivers unprecedented speed and beats many multi-step baselines, it still suffers a slight performance drop in recall metrics compared to its own full 100-step ODE simulation.
  • Training Overhead for Non-Equivariant Models: For non-equivariant architectures, calculating the training interpolant requires simulating the probability flow ODE with a fixed number of Euler steps (the authors used 20), which introduces some computational overhead during the training phase.
  • Broader Applications: The authors note that the concept of Averaged Flow can be extended to any domain where the target data possesses global rotational symmetries, suggesting future extensions to tasks like protein backbone generation or macrocycle conformation prediction.

Summary updated

BibTeX
@inproceedings{cao2025efficient,
  author = {Zhonglin Cao and Mario Geiger and Allan dos Santos Costa and Danny Reidenbach and Karsten Kreis and Tomas Geffner and Franco Pellegrini and Guoqing Zhou and Emine Kucukbenli},
  title = {{Efficient Molecular Conformer Generation with SO(3)-Averaged Flow Matching and Reflow}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=6uPcJtMgWN},
}
Figure