On a Neural Implementation of Brenier's Polar Factorization

Nina Vesseron, Marco Cuturi · DOI

Abstract

Brenier’s Polar Factorization theorem establishes that any vector field can be decomposed into the composition of a convex gradient and a measure-preserving map. While theoretically significant, practical implementations in high-dimensional machine learning contexts have remained elusive. This paper introduces Neural Polar Factorization (NPF), the first scalable framework to compute these components using modern neural optimal transport and stochastic generators. By leveraging improved Input Convex Neural Networks (ICNNs) and bridge matching for stochastic inversion, the authors demonstrate the ability to "untangle" complex vector fields, enabling global exploration of non-convex optimization landscapes and high-fidelity reconstruction of physical gradients.

Introduction

In 1991, Yann Brenier proved a landmark theorem in vector calculus: any vector field, regardless of its complexity or irregularity, can be factored into two fundamental components. The first is the gradient of a convex function, representing a "clean" potential flow. The second is a measure-preserving map that reshuffles the underlying space without altering its density. This decomposition is analogous to the polar decomposition in linear algebra—where a matrix is factored into a positive semi-definite part and a unitary part—but extended to the infinite-dimensional space of functions.

Despite its theoretical elegance, applying Brenier’s theorem to high-dimensional machine learning has been historically difficult. Previous numerical methods were largely restricted to low-dimensional settings or rigid, grid-based computations. The inability to compute these factors in high dimensions has limited our understanding of the "chaotic" gradient fields inherent in deep learning models. This paper bridges the gap by providing a neural-based toolkit to compute these components, offering new insights into non-convex optimization and generative modeling.

Methodology: Neural Polar Factorization (NPF)

The authors propose a three-pillar architecture to realize Neural Polar Factorization:

1. Improved Input Convex Neural Networks (ICNNs)

To represent the convex potential $u$, the authors utilize ICNNs. Recognizing that standard linear ICNNs often struggle to capture the nuances of multi-modal distributions, they introduce a modified architecture incorporating quadratic layers (low-rank plus diagonal). This enhancement allows the model to better approximate complex optimal transport maps, significantly reducing unexplained variance in high-dimensional tasks.

2. Conjugate Solvers

The measure-preserving map $M$ is derived by solving for the convex conjugate of $u$. The framework supports two approaches: an implicit method using optimization routines (such as L-BFGS or Adam) and an explicit method involving the training of a separate regression network to approximate the conjugate directly.

3. Stochastic Inverse Maps ($I_\psi$)

A significant challenge in polar factorization is that the map $M$ is generally not one-to-one, making it difficult to invert. To address this, the authors employ Bridge Matching to train a stochastic generator. This generator can produce multiple "pre-images," allowing researchers to identify all points in a parameter space that map to a specific gradient value—such as identifying multiple distinct critical points where the gradient is zero.

LMC-NPF Algorithm

Building on these components, the authors introduce LMC-NPF, which integrates Langevin Monte Carlo with the factorization framework. This algorithm enables a sampler to "jump" between different basins in a non-convex loss landscape, facilitating global exploration and preventing the model from becoming trapped in local minima.

Experimental Evaluation

The NPF framework was evaluated across three distinct domains to test its versatility and accuracy:

  • Topographical Reconstruction: Using elevation gradients from locations such as Chamonix, London, and Cyprus, the authors demonstrated that NPF could reconstruct physical surfaces from gradient samples. In the Chamonix dataset, NPF achieved a reconstruction error ($L_2$ distance) of 0.96, with a Sinkhorn divergence of 0.36, closely matching the target distribution.
  • MNIST Loss Landscapes: The authors analyzed the gradient field of a LeNet classifier ($d=222$). Using LMC-NPF, they successfully sampled high-accuracy weights that were structurally distinct from those found by standard gradient descent, proving the method's ability to discover novel, valid local minima in complex landscapes.
  • Synthetic OT Benchmarks: In high-dimensional optimal transport tasks (e.g., a 128-dimensional Gaussian mapping), the modified ICNN architecture significantly outperformed standard models, achieving an $L_2$ unexplained variance of 0.082, compared to 1.26 for linear ICNNs.

Discussion and Future Work

The core contribution of this work is the ability to "untangle" complex gradients. By factoring out the measure-preserving "shuffler" map, researchers are left with a convex gradient field that is significantly easier to analyze and optimize. Furthermore, the stochastic inversion of the map $M$ allows for global moves in parameter space that are impossible with local gradient-based methods.

However, limitations remain. Estimating the inverse map $I_\psi$ in very high dimensions is computationally intensive. Additionally, while the method identifies critical points, it does not yet inherently distinguish between local minima, maxima, and saddle points without further Langevin steps. Future research will focus on reweighting generated samples based on probability density to improve the efficiency and precision of the stochastic generator.

Conclusion

Neural Polar Factorization provides a practical path toward applying one of the most fundamental theorems in vector analysis to modern machine learning. By providing the tools to decompose and invert complex vector fields, this work opens new avenues for understanding the geometry of deep learning and improving the robustness of non-convex optimization.

Summary updated

BibTeX
@inproceedings{vesseron2024neural,
  author = {Nina Vesseron and Marco Cuturi},
  title = {{On a Neural Implementation of Brenier's Polar Factorization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=zDCwJQY3eI},
}
Figure