Efficient Regression-based Training of Normalizing Flows for Boltzmann Generators

Danyal Rehman, Oscar Davis, Jiarui Lu, Jian Tang, Michael M. Bronstein, Yoshua Bengio, Alexander Tong, Joey Bose

Introduction

In the rapidly evolving landscape of generative modeling, a tug-of-war exists between Continuous Normalizing Flows (CNFs)—such as Flow Matching and Diffusion models—and classical Normalizing Flows (NFs). While CNFs are relatively easy to train and yield high-quality samples, they suffer from slow inference times because they require solving an Ordinary Differential Equation (ODE) over many steps.

Conversely, classical NFs (like RealNVP or Neural Spline Flows) offer "one-step" generation and exact likelihood evaluation. These properties are critical for scientific applications like Boltzmann Generators (BGs), which are used to sample complex molecular conformations. However, training classical NFs using the standard Maximum Likelihood Estimation (MLE) objective is notoriously difficult. MLE training often leads to numerical instability, requires expensive Jacobian determinant calculations, and frequently fails to converge on complex molecular architectures.

To bridge this gap, researchers have introduced RegFlow (Regression Training of Normalizing Flows). RegFlow asks a pivotal question: Can we train fast, exact-likelihood NFs using the stable, regression-based objectives that made Diffusion models so successful?

The RegFlow Methodology

Instead of relying on the standard MLE approach, RegFlow frames the training of Normalizing Flows as a supervised matching problem. The methodology breaks down into several key steps:

  1. Target Generation: The framework first establishes "targets" ($x_1$) for prior noise samples ($x_0$). These pairings are generated using either an offline Optimal Transport (OT) step (finding the "cheapest" mapping from noise to data) or a "Reflow" process (using a pre-trained, high-quality CNF to generate noise-data pairings).
  2. Regression Objective: The NF is then trained to minimize the simple $\ell_2$ distance between its output and these targets: $\mathcal{L}(\theta) = \|f_\theta(x_0) - x_1\|^2$.
  3. Regularization for Invertibility: To guarantee the model remains a valid, invertible flow and avoids representation collapse, RegFlow introduces two strategies: a log-determinant penalty and a novel Forward-Backward Self-Consistency loss. The latter ensures that $f^{-1}(f(x)) = x$ without the need to compute expensive Jacobians.
  4. Uni-directional Training: For autoregressive flows where the inverse operation is computationally heavy, RegFlow allows training directly in the "fast" direction (noise to data), providing a massive boost in inference speed.

Key Insights and Model Capabilities

A major insight from the paper is the distinction between pointwise and gradient convergence. Simply matching points (pointwise convergence) is insufficient for scientific models; if the gradients of the mapping do not converge, the resulting likelihoods will be incorrect. This is why RegFlow utilizes explicitly invertible architectures rather than standard "shortcut" neural networks.

By bypassing MLE, RegFlow unlocks the ability to train powerful architectures—such as Neural Spline Flows (NSF) and Jet—that were previously considered too unstable for Boltzmann Generators.

Experimental Results

The method was rigorously evaluated on standard computational chemistry benchmarks, including Alanine Dipeptide (ALDP), Tripeptide (AL3), and Tetrapeptide (AL4), alongside synthetic checkerboard datasets used to demonstrate the failure modes of shortcut models.

Inference Speed and Training Efficiency

Because RegFlow avoids the complex forward-and-backward passes required by MLE, it trains significantly faster, often reaching superior performance in 27-35% less time. During inference, RegFlow-trained Neural Spline Flows achieved a 34x speedup in likelihood computation compared to their MLE-trained counterparts, and were 450x to 7700x faster than CNFs.

Convergence of the Energy-W1 metric over time for various peptides.

Accuracy and Stability

On the ALDP, AL3, and AL4 datasets, RegFlow consistently outperformed MLE across energy distribution ($E-W_1$) and dihedral angle ($T-W_2$) metrics. Crucially, while MLE-trained models frequently suffered from mode collapse (missing certain molecular shapes), RegFlow-trained models captured the full distribution of molecular conformations much more faithfully.

Comparison of energy distributions and Ramachandran plots between MLE and RegFlow.

Furthermore, the authors demonstrated a new method for Targeted Free Energy Perturbation that avoids expensive energy evaluations during training—a potential game-changer for drug discovery and materials science.

Limitations and Future Directions

While RegFlow presents a massive leap forward, it is not without limitations. The quality of the RegFlow model is inherently tied to the quality of the initial coupling (the OT or pre-trained CNF). If this "teacher" model is poor, the "student" NF will be fundamentally limited. Additionally, while the likelihoods are exact and highly useful for importance sampling, they do not theoretically match the likelihood of the base coupling perfectly, even if they are empirically very close.

Future work will likely explore scaling RegFlow to even more complex molecular systems and investigating how different types of "good" couplings could further improve model generalization.

Code is available at: https://github.com/danyalrehman/RegFlow

Summary updated

BibTeX
@inproceedings{rehman2026efficient,
  author = {Danyal Rehman and Oscar Davis and Jiarui Lu and Jian Tang and Michael M. Bronstein and Yoshua Bengio and Alexander Tong and Joey Bose},
  title = {{Efficient Regression-based Training of Normalizing Flows for Boltzmann Generators}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ctdnzPxDI3},
}
Figure