Skip to main content
QUICK REVIEW

[Paper Review] Flows for Flows: Training Normalizing Flows Between Arbitrary Distributions with Maximum Likelihood Estimation

Samuel Klein, J. A. Raine|arXiv (Cornell University)|Nov 4, 2022
Model Reduction and Neural NetworksPhysics and Astronomy6 citations
TL;DR

This paper introduces 'Flows for Flows,' a method that trains normalizing flows between any two arbitrary distributions using exact maximum likelihood estimation by parameterizing the base density with another normalizing flow. The approach enables flexible, continuous transport maps—especially effective for conditional distributions—outperforming standard flows in modeling discontinuous or complex distributions without explicit regularization.

ABSTRACT

Normalizing flows are constructed from a base distribution with a known density and a diffeomorphism with a tractable Jacobian. The base density of a normalizing flow can be parameterised by a different normalizing flow, thus allowing maps to be found between arbitrary distributions. We demonstrate and explore the utility of this approach and show it is particularly interesting in the case of conditional normalizing flows and for introducing optimal transport constraints on maps that are constructed using normalizing flows.

Motivation & Objective

  • To enable training of normalizing flows between any two arbitrary probability distributions, even when their densities are unknown a priori.
  • To improve modeling of complex or discontinuous distributions by using flows as base densities, avoiding issues with standard normal base distributions.
  • To explore the use of Flows for Flows in conditional settings, where maps between distributions at different conditional values are learned.
  • To investigate regularization strategies, such as optimal transport constraints, to improve semantic coherence of learned transport maps.
  • To demonstrate the utility of Flows for Flows in high-dimensional and domain-agnostic settings, including applications in high-energy physics and diffusion modeling.

Proposed method

  • The base density in a normalizing flow is replaced with another trained normalizing flow, enabling the model to learn a direct map between two arbitrary data distributions.
  • The model is trained via maximum likelihood estimation using the change of variables formula, with log-likelihoods computed for both input and output distributions.
  • For conditional distributions, the flow is conditioned on the difference between conditional values, allowing continuous transformation between distributions at different conditions.
  • A bidirectional training setup is used, where both $ f_{ ext{flow}}^{-1} $ and $ f_{ ext{flow}} $ are trained on data from both distributions to reduce dependence on base density quality.
  • An optimal transport penalty is introduced in the loss to encourage minimal displacement of points, improving semantic coherence of the learned map.
  • The framework is implemented in the ffflows package, built on top of the nflows library, enabling modular and reusable construction of flows between arbitrary distributions.

Experimental results

Research questions

  • RQ1Can normalizing flows be effectively trained between two arbitrary distributions using maximum likelihood, even when the densities are unknown?
  • RQ2How does using a flow as the base density improve modeling of complex or discontinuous distributions compared to a standard normal base?
  • RQ3To what extent does Flows for Flows outperform standard conditional normalizing flows in learning transport maps between conditional distributions?
  • RQ4Can explicit regularization, such as optimal transport constraints, enhance the semantic coherence of the learned transport map?
  • RQ5How does the bidirectional training setup reduce dependency on the quality of the base density in the flow for flows framework?

Key findings

  • Flows for Flows successfully learns continuous, invertible maps between arbitrary distributions, including those with discontinuities, such as four-overlapping-circles distributions.
  • The method outperforms standard conditional normalizing flows in conditional settings, producing fewer out-of-distribution samples due to the continuity of the learned map.
  • Even without explicit regularization, the Flows for Flows model learns maps with inherent semantic cohesion, as shown by color-coded point correspondence in visualizations.
  • The inclusion of an optimal transport penalty has negligible impact on performance in the tested settings, suggesting that the flow architecture already promotes meaningful transport.
  • Bidirectional training reduces dependence on the base density quality, improving stability and generalization of the learned map.
  • The ffflows package enables easy construction of flows between arbitrary (conditional) distributions, facilitating reproducibility and extension to new applications.

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.