stat.MLMar 9, 2026

Beyond ReinMax: Low-Variance Gradient Estimators for Discrete Latent Variables

Authors: Daniel Wang, Thang D. Bui

Organizations: School of Computing, College of Systems and Society, Australian National University

Abstract

Machine learning models involving discrete latent variables require gradient estimators to facilitate backpropagation in a computationally efficient manner. The most recent addition to the Straight-Through family of estimators, ReinMax, can be viewed from a numerical ODE perspective as incorporating an approximation via Heun's method to reduce bias, but at the cost of high variance. In this work, we introduce the ReinMax-Rao and ReinMax-CV estimators which incorporate Rao-Blackwellisation and control variate techniques into ReinMax to reduce its variance. Our estimators demonstrate superior performance on training variational autoencoders with discrete latent spaces. Furthermore, we investigate the possibility of leveraging alternative numerical methods for constructing more accurate gradient approximations and present an alternative view of ReinMax from a simpler numerical integration perspective.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Extending Pathwise Gradients to Discrete Random Variables via Finite-Order Relaxation

    Oct 6, 2026Donghan He, Luhuan Wu

  2. Control Variate Design for Score-Function Gradient Estimators in Importance-Weighted Variational Inference

    Feb 1, 2026Kamélia Daudel, Minh-Ngoc Tran, Cheng ZhangVariational InferenceVariance Reduction

  3. Stochastic Gradient Variational Inference with Price's Gradient Estimator from Bures-Wasserstein to Parameter Space

    Feb 21, 2026Kyurae Kim, Qiang Fu, Yi-An Ma +2Variational Inference