[Paper Review] Pathwise Derivatives Beyond the Reparameterization Trick
This paper introduces optimal mass transport (OMT) gradients as a generalization of the reparameterization trick, enabling low-variance pathwise gradients for distributions like Gamma, Beta, and Dirichlet that are not amenable to standard reparameterization. It shows that the reparameterization trick for Cholesky-factored multivariate normals is suboptimal in the optimal transport sense and derives improved gradients that reduce variance and improve performance in Gaussian process regression and variational inference tasks.
We observe that gradients computed via the reparameterization trick are in direct correspondence with solutions of the transport equation in the formalism of optimal transport. We use this perspective to compute (approximate) pathwise gradients for probability distributions not directly amenable to the reparameterization trick: Gamma, Beta, and Dirichlet. We further observe that when the reparameterization trick is applied to the Cholesky-factorized multivariate Normal distribution, the resulting gradients are suboptimal in the sense of optimal transport. We derive the optimal gradients and show that they have reduced variance in a Gaussian Process regression task. We demonstrate with a variety of synthetic experiments and stochastic variational inference tasks that our pathwise gradients are competitive with other methods.
Motivation & Objective
- To extend pathwise gradient estimation beyond the reparameterization trick to distributions not amenable to it, such as Gamma, Beta, and Dirichlet.
- To identify and derive optimal pathwise gradients using optimal transport theory, showing that standard reparameterization gradients are suboptimal in certain cases.
- To reduce gradient variance in stochastic variational inference, particularly for multivariate normal distributions parameterized via Cholesky decomposition.
- To demonstrate improved performance in practical applications, including Gaussian process regression and synthetic variational inference tasks.
Proposed method
- Establishes a correspondence between the reparameterization trick and solutions to the transport equation in optimal transport theory.
- Derives optimal pathwise gradients (OMT gradients) as solutions to the transport equation that minimize variance in the optimal transport sense.
- Applies the OMT framework to derive closed-form gradients for multivariate normal distributions parameterized via Cholesky factors, showing suboptimality of standard reparameterization.
- Develops high-precision approximate pathwise gradients for univariate distributions like Gamma, Beta, and Dirichlet using numerical solutions to the transport equation.
- Employs velocity field visualization to illustrate geometric differences between reparameterization and OMT gradients in multivariate settings.
- Validates performance using synthetic experiments and real-world tasks, including Gaussian process regression and sparse gamma def models, with single-sample gradient estimators.
Experimental results
Research questions
- RQ1Can pathwise gradients be systematically derived for distributions like Gamma, Beta, and Dirichlet that lack a standard reparameterization?
- RQ2Is the standard reparameterization trick suboptimal for Cholesky-factored multivariate normal distributions in the sense of optimal transport?
- RQ3Can OMT gradients reduce gradient variance and improve convergence in stochastic variational inference?
- RQ4How do OMT gradients compare to score function and reparameterization estimators in terms of ELBO optimization and training stability?
Key findings
- The reparameterization trick for Cholesky-factored multivariate normal distributions produces gradients with a large rotational component in the velocity field, indicating suboptimality in the optimal transport sense.
- OMT gradients for the multivariate normal distribution are derived analytically and shown to have lower variance than reparameterization gradients in a Gaussian process regression task.
- For the Gamma, Beta, and Dirichlet distributions, high-precision approximate pathwise gradients are successfully computed using the optimal transport framework.
- In synthetic experiments, OMT gradients achieve lower variance and faster convergence than the reparameterization trick and score function estimators.
- In a sparse gamma def model, the OMT gradient estimator outperforms the reparameterization trick, attaining a higher ELBO and converging more quickly.
- The OMT gradient estimator demonstrates consistent performance gains across multiple variational inference tasks, including those with complex, non-reparameterizable likelihoods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.