Extending Pathwise Gradients to Discrete Random Variables via Finite-Order Relaxation
Donghan He, Luhuan Wu
Key points
From the paper's conclusion- We propose a general framework to construct finite-order exact pathwise gradient estimators for a range of common discrete variables such as Poisson.
Abstract
Pathwise gradients are preferred for continuous random variables because they are unbiased, low variance, and work with a single sample. For discrete variables, however, the pathwise identity cannot generally be exact for every differentiable function. We propose a general framework to construct finite-order exact pathwise gradient estimators for a range of common discrete variables such as Poisson. The estimator is the least-norm solution among all solutions that are unbiased for polynomials of degree at most. The resulting estimators preserve the hard forward sample, require no temperature tuning, and can be implemented in a few lines of codes. Against other admissible solutions, our estimator is unique and minimizes weight variance; in contrast, prior works use categorical variables or augmented representations to approximate non-categorical variables that induces excess variance and computations. To understand approximation bias for functions beyond the prescribed class, we also derive a non-asymptotic bias bound. In experiments our low order methods match or improve tuned baselines across linear, nonlinear and hierarchical latent-variable models, while out-speeding competitors in every runtime benchmark.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Model-Free Continuous-Time RL Algorithm from Discrete-Time Off-Policy Data with End-to-End GuaranteesarXiv · 2026
- Efficient Best-of-N policy evaluation for inference-time alignmentarXiv · 2026
- Sample complexity of variance-reduced policy gradient: weaker assumptions and lower boundsarXiv · 2026
- Distributionally-Robust Policy Learning with Observational DataarXiv · 2026
- Model Selection for Off-Policy Evaluation via Pairwise Bellman ValidationarXiv · 2026
- Reliability-Weighted Direct Preference Optimization: Penalized Weights for Robust Preference LearningarXiv · 2026