Pith. sign in

REVIEW 1 cited by

Automatic Differentiation of Programs with Discrete Randomness

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2210.08572 v3 pith:EJ4G3ZTK submitted 2022-10-16 cs.LG cs.MScs.NAmath.NAmath.PR

classification cs.LGcs.MScs.NAmath.NAmath.PR
keywords programsdiscreteparametersunbiasedautomaticderivativedifferentiationexpectation
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
abstract

Automatic differentiation (AD), a technique for constructing new programs which compute the derivative of an original program, has become ubiquitous throughout scientific computing and deep learning due to the improved performance afforded by gradient-based optimization. However, AD systems have been restricted to the subset of programs that have a continuous dependence on parameters. Programs that have discrete stochastic behaviors governed by distribution parameters, such as flipping a coin with probability $p$ of being heads, pose a challenge to these systems because the connection between the result (heads vs tails) and the parameters ($p$) is fundamentally discrete. In this paper we develop a new reparameterization-based methodology that allows for generating programs whose expectation is the derivative of the expectation of the original program. We showcase how this method gives an unbiased and low-variance estimator which is as automated as traditional AD mechanisms. We demonstrate unbiased forward-mode AD of discrete-time Markov chains, agent-based models such as Conway's Game of Life, and unbiased reverse-mode AD of a particle filter. Our code package is available at https://github.com/gaurav-arya/StochasticAD.jl.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. A Principled Bayesian Framework for Training Binary and Spiking Neural Networks

    cs.LG 2025-05 conditional novelty 5.0 of 10

    A variational Bayesian framework with importance-weighted straight-through estimators trains binary and spiking networks without normalization layers, matching surrogate-gradient baselines on CIFAR-10, DVS Gesture, and SHD.

Pith tools