Variational conditional normalizing flows for computing second-order mean field control problems

Jiaxi Zhao, Mo Zhou, Xinzhe Zuo, Wuchen Li

TL;DR

This paper introduces Variational Conditional Normalizing Flows (VCNF), a novel neural network-based framework for solving complex second-order mean field control (MFC) problems in high-dimensional spaces. VCNF leverages conditional normalizing flows and neural spline flows to efficiently model the temporal evolution of probability distributions, enabling accurate and robust solutions for problems like optimal transport and Fokker-Planck equations.

What Problem Does This Paper Address?

Mean field control (MFC) problems are crucial for modeling large-scale collective behaviors in fields like artificial intelligence, engineering, and economics. However, solving these problems, especially second-order MFCs involving diffusion processes, becomes computationally intractable in high-dimensional spaces using traditional methods. Existing machine learning approaches have shown promise but often struggle with the complexity and diffusion inherent in these second-order problems. This paper aims to bridge this gap by developing a scalable and accurate method for solving these challenging problems.

Methods

The core contribution is the Variational Conditional Normalizing Flow (VCNF). VCNF builds upon conditional normalizing flows and neural spline flows, allowing for the modeling of probability distributions that evolve continuously over time. This temporal modeling is key to capturing the dynamics of MFC problems. VCNF uses a Lagrangian formulation, parameterizing the evolution of probability densities via a family of invertible maps. Key components include:

  • Conditional Normalizing Flows (CNFs): These allow for the modeling of probability distributions that change over time, conditioned on time itself.
  • Neural Spline Flows: These provide a flexible and efficient way to construct the invertible transformations needed for the flow maps, enabling efficient computation of Jacobian determinants and score functions.
  • Lagrangian Formulation: Instead of directly controlling the velocity field, VCNF models the push-forward map, which implicitly defines the velocity and density evolution.
  • Monte Carlo Sampling: Used to efficiently estimate the objective functional, balancing computational cost and accuracy.
  • Numerical Differentiation: Employed to approximate temporal derivatives of the push-forward map and spatial derivatives of the log-density (score function), which is more efficient than auto-differentiation in high dimensions.

Datasets

The paper does not introduce new datasets. Instead, it uses standard distributions and problem formulations for evaluation:

  • Gaussian Distributions: Used for optimal transport (OT) problems, comparing against closed-form solutions.
  • Gaussian Mixture Distributions: Used to test the model's ability to handle multimodal distributions in OT.
  • Standard Gaussian Distribution: Used as the reference measure ($q$) for the normalizing flows.

Key Insights and Ideas

  • Temporal Evolution Modeling: The ability of VCNF to model probability distributions that evolve continuously over time is a significant advantage for trajectory-wise MFC problems.
  • Lagrangian Perspective for Diffusion: By framing MFC problems in Lagrangian coordinates and using flow maps, VCNF effectively handles the diffusion terms present in second-order problems like Fokker-Planck equations.
  • Score Function Approximation: Leveraging neural networks to approximate score functions (gradient of log-density) is crucial for efficiently solving diffusion-related dynamics.
  • Scalability to High Dimensions: The framework demonstrates impressive scalability, solving 20D OT problems and 10D FP equations with reasonable computational cost and accuracy.
  • Robustness: VCNF shows robustness across various penalty parameters and problem settings, achieving good accuracy with minimal parameter tuning.

Key Results

The paper demonstrates VCNF's effectiveness across several MFC problem types:

  • Optimal Transport (OT): Achieved competitive accuracy on 2D Gaussian-to-Gaussian transport problems, with relative errors as low as 0.37% for certain penalty parameters. It also successfully handled Gaussian mixture to Gaussian transport.
  • Regularized Wasserstein Proximal Operator (RWPO): Showed reasonable results for a wide range of penalty parameters, with accuracy generally deteriorating as diffusion coefficients decreased or time horizons increased.
  • Flow Matching for Fokker-Planck (FP) Equation: Demonstrated robustness and sensitivity to penalty parameters, achieving RMSE errors on the order of $10^{-4}$ to $10^{-3}$ for a 2D Ornstein-Uhlenbeck process.
  • Scalability: Solved 20D OT problems in 17 minutes with 1% relative error and 10D FP problems in 34 minutes with $10^{-5}$ absolute L2 error.

Limitations and Future Work

  • Limitations:
    • The paper notes that as the time horizon ($T$) increases and the diffusion coefficient ($\beta$) decreases in RWPO problems, the accuracy of the model deteriorates, suggesting that greater density evolution can be challenging.
  • While efficient, the Monte Carlo sampling method introduces approximation errors.
  • Future Work:
    • Explore using VCNF for general FP equations with nonlinear drift vector fields.
  • Apply the framework to real image datasets for solving time-reversible diffusion models.
  • Investigate the use of VCNF on flow matching problems to simulate general FP equations.

Summary updated

BibTeX
@misc{zhao2026variational,
  author = {Jiaxi Zhao and Mo Zhou and Xinzhe Zuo and Wuchen Li},
  title = {{Variational conditional normalizing flows for computing second-order mean field control problems}},
  year = {2026},
  doi = {10.2139/ssrn.6221288},
  howpublished = {SSRN},
}
Figure