Skip to main content
QUICK REVIEW

[Paper Review] Smooth Normalizing Flows

Jonas Köhler, Andreas Krämer|arXiv (Cornell University)|Oct 1, 2021
Protein Structure and DynamicsBiochemistry, Genetics and Molecular Biology15 citations
TL;DR

This paper introduces smooth normalizing flows with C∞-smooth mixture transformations for modeling probability distributions on compact intervals and hypertori—critical for molecular systems with internal coordinates. By enabling differentiable inversion via the inverse function theorem, the method supports bi-directional training, force matching, and use in molecular dynamics simulations, achieving accurate, smooth potentials with well-behaved forces and high sampling efficiency.

ABSTRACT

Normalizing flows are a promising tool for modeling probability distributions in physical systems. While state-of-the-art flows accurately approximate distributions and energies, applications in physics additionally require smooth energies to compute forces and higher-order derivatives. Furthermore, such densities are often defined on non-trivial topologies. A recent example are Boltzmann Generators for generating 3D-structures of peptides and small proteins. These generative models leverage the space of internal coordinates (dihedrals, angles, and bonds), which is a product of hypertori and compact intervals. In this work, we introduce a class of smooth mixture transformations working on both compact intervals and hypertori. Mixture transformations employ root-finding methods to invert them in practice, which has so far prevented bi-directional flow training. To this end, we show that parameter gradients and forces of such inverses can be computed from forward evaluations via the inverse function theorem. We demonstrate two advantages of such smooth flows: they allow training by force matching to simulation data and can be used as potentials in molecular dynamics simulations.

Motivation & Objective

  • Address the lack of C∞-smooth normalizing flows on compact intervals and hypertori, essential for modeling molecular internal coordinates.
  • Enable bi-directional training of flows with non-analytic inverses via gradient computation through the inverse function theorem.
  • Develop smooth, differentiable potentials suitable for molecular dynamics simulations with accurate forces.
  • Overcome limitations of prior methods that produce discontinuous forces or require a priori knowledge of support.

Proposed method

  • Propose a class of C∞-smooth mixture transformations using bump functions with learnable shape parameters for compact intervals and hypertori.
  • Use black-box root-finding methods (e.g., multi-bin search) to invert the flow in the reverse direction.
  • Compute gradients of the inverse via the inverse function theorem, enabling backpropagation through the root-finding step.
  • Train flows using a hybrid loss combining maximum likelihood estimation (MLE), force matching (FM), and reverse KL divergence.
  • Apply the learned flows as potentials in molecular dynamics simulations using velocity Verlet integrators.
  • Use OpenMM for energy and force evaluation, and validate via sampling efficiency and energy conservation.

Experimental results

Research questions

  • RQ1Can C∞-smooth normalizing flows be constructed to support both compact intervals and hypertori, enabling smooth modeling of molecular internal coordinates?
  • RQ2Is it possible to backpropagate gradients through non-analytic inverse flows using the inverse function theorem?
  • RQ3Can force matching combined with density estimation improve the accuracy of learned potentials in molecular systems?
  • RQ4Do smooth flows produce stable, energy-conserving molecular dynamics simulations comparable to classical force fields?
  • RQ5Can smooth flows outperform spline-based or affine flows in sampling efficiency and force accuracy?

Key findings

  • The smooth flow model achieved a sampling efficiency of 42% on alanine dipeptide, outperforming spline-based flows (38%) and affine flows (<1%).
  • The smooth flow trained with force matching and MLE achieved a reverse KL divergence of 0.0003, indicating near-perfect density matching.
  • Energy fluctuations in MD simulations with the smooth flow were comparable to those of the Amber ff99SB-ILDN force field, indicating numerical stability.
  • Forces computed from the smooth flow were significantly more accurate than those from spline-based flows, with lower force residue on test data.
  • The method enabled bi-directional training of non-analytic inverse flows by computing gradients via the inverse function theorem, overcoming a key limitation in prior work.
  • The smooth flow architecture produced well-behaved forces and energies, enabling direct use in molecular dynamics simulations without force discontinuities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.