Executive Summary
Presented at NeurIPS 2020, this research introduces a highly efficient method for training generative models by leveraging the "natural" geometry of probability distributions, rather than relying solely on the raw numerical updates of a neural network's weight matrix. The authors propose SiNG (Sinkhorn Natural Gradient), an optimization algorithm that utilizes the Sinkhorn divergence to navigate the curved landscape of probability measures. Unlike previous natural gradient methods that become computationally intractable in high dimensions, SiNG provides an explicit, efficiently computable update rule that outperforms standard solvers like Adam in both speed and generated image quality.
The Optimization Challenge
Training a generative model, such as a Generative Adversarial Network (GAN), essentially involves moving a noise distribution toward a real data distribution. Standard optimizers like Stochastic Gradient Descent (SGD) or Adam perform this movement in parameter space—the high-dimensional space of neural network weights.
However, the relationship between network weights and the resulting probability distribution is highly non-linear. This creates an optimization landscape riddled with artificial saddle points and local minima. Natural Gradient methods attempt to resolve this by optimizing directly in the probability space.
Historically, natural gradient methods have faced severe practical limitations:
- Fisher-Rao Natural Gradient (FNG): Requires "score functions," which are nearly impossible to compute for the complex mappings typical in deep learning.
- Wasserstein Natural Gradient (WNG): While theoretically elegant, its core component—the Wasserstein Information Matrix—lacks a closed-form expression in dimensions higher than one, rendering it computationally unviable for image generation.
Methodology: The Sinkhorn Solution
The authors bridge this computational gap by employing the Sinkhorn divergence, a variant of Optimal Transport that incorporates an entropy regularization term. This regularization smooths the transport problem, making it mathematically tractable.
The key technical contributions include:
- The Sinkhorn Information Matrix (SIM): The authors derive an explicit expression for the SIM, which functions as the "metric tensor" for the parameter space.
- Computational Efficiency: They prove that the SIM can be evaluated with a complexity that scales logarithmically with the desired accuracy, representing a massive leap over the intractable Wasserstein approach.
- Empirical Estimator (eSIM): Because deep learning relies on batches of data (Monte Carlo samples) rather than full distributions, the authors designed a stable empirical estimator for the SIM.
- The SiNG Algorithm: These components are combined into a steepest-descent algorithm. By utilizing the Conjugate Gradient (CG) method, the natural gradient update can be computed using only matrix-vector products, ensuring compatibility with modern auto-differentiation libraries like PyTorch.
Key Insights
- Geometry over Arithmetic: The Sinkhorn divergence provides a crucial middle ground. It captures the geometric structure of the data (similar to Wasserstein distance) but remains computationally "soft" enough to allow for an explicit Hessian (the SIM).
- Invariance to Reparameterization: In its continuous-time limit, SiNG is invariant to model parameterization. The optimizer prioritizes the output distribution rather than specific layer structures or weight initializations.
- Vanishing Hessians: The SiNG update direction depends on the Hessian of the Sinkhorn divergence, but notably not the Hessian of the objective function itself. This significantly simplifies the underlying mathematics without sacrificing optimization power.
Experimental Results
The authors evaluated SiNG on standard computer vision benchmarks, including CelebA (celebrity faces) and CIFAR-10, focusing on distribution matching and full GAN training.
- Faster Convergence: In distribution matching tasks on CelebA, SiNG reduced the generator loss significantly faster than Adam when measured against wall-clock time.
- Superior Image Quality: When training GANs, SiNG produced images that were notably more vivid and detailed than those generated by SGD-based solvers.
- High-Dimensional Viability: The authors demonstrated that SiNG is the first "natural" approach that is genuinely practical for high-dimensional generative tasks ($d > 1$).
Limitations and Future Work
- Implementation Complexity: While a PyTorch-friendly approach is provided, SiNG remains more complex to implement and tune than plug-and-play optimizers like Adam.
- Hyperparameter Tuning: The Sinkhorn divergence introduces a regularization parameter ($\gamma$). Finding the optimal $\gamma$ for different architectures requires experimental tuning.
- Scaling to Larger Architectures: Initial experiments utilized DC-GAN, a relatively simple architecture. Testing SiNG with massive modern architectures, such as ResNets or Transformers, is a promising direction for future research.
- Discrete vs. Continuous Dynamics: The proof of reparameterization invariance holds for the continuous-time limit; the behavior of large discrete steps in practical, real-world settings warrants further exploration.
Summary updated