English

Pathwise Derivatives Beyond the Reparameterization Trick

Machine Learning 2018-07-06 v2 Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.1806.01851,
  title  = {Pathwise Derivatives Beyond the Reparameterization Trick},
  author = {Martin Jankowiak and Fritz Obermeyer},
  journal= {arXiv preprint arXiv:1806.01851},
  year   = {2018}
}

Comments

ICML 2018

R2 v1 2026-06-23T02:20:08.549Z