Storchastic: A Framework for General Stochastic Automatic Differentiation

Emile van Krieken, Jakub M. Tomczak, Annette ten Teije
4/1/2021
stat.MLcs.AIcs.LG

Official code: HEmile/storchastic (209 stars, Python, GPL-3.0, PyTorch, last commit 2024-08-30).

Abstract

Modelers use automatic differentiation (AD) of computation graphs to implement complex Deep Learning models without defining gradient computations. Stochastic AD extends AD to stochastic computation graphs with sampling steps, which arise when modelers handle the intractable expectations common in Reinforcement Learning and Variational Inference.

Show full abstract

However, current methods for stochastic AD are limited: They are either only applicable to continuous random variables and differentiable functions, or can only use simple but high variance score-function estimators. To overcome these limitations, we introduce Storchastic, a new framework for AD of stochastic computation graphs. Storchastic allows the modeler to choose from a wide variety of gradient estimation methods at each sampling step, to optimally reduce the variance of the gradient estimates. Furthermore, Storchastic is provably unbiased for estimation of any-order gradients, and generalizes variance reduction techniques to higher-order gradient estimates. Finally, we implement Storchastic as a PyTorch library at https://github.com/HEmile/storchastic.

View on arXivView PDF

Code Implementations(1)

HEmile/storchasticOfficial100%
PyTorchGPL-3.0

Stochastic Automatic Differentiation library for PyTorch.

2095PythonDec 2, 20192 years agoGPL-3.0
gradient-estimatorspytorchreparameterizationstochastic-computation-graphsstochastic-deep-learning

Similar Papers

Cite this paper

@article{krieken2021storchastic,
  title  = {Storchastic: A Framework for General Stochastic Automatic Differentiation},
  author = {Emile van Krieken and Jakub M. Tomczak and Annette ten Teije},
  year   = {2021},
  eprint = {2104.00428},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.00428}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.00428.svg)](https://codeofpaper.com/paper/2104.00428)

Discussion