stat.MEOct 12, 2026

Implicit and explicit reparameterizations of the Folded Normal and Rice distributions

Authors: Luis Aldama, Kevin Dalton, Minhuan Li, Doeke Hekstra

Organizations: The Harvard Biophysics Graduate Program, Harvard University, Cambridge, Massachusetts, United States · Department of Molecular and Cellular Biology, and John A. Paulson School of Engineering and Applied Sciences, Harvard University, Cambridge, Massachusetts, United States · LCLS Data Systems, SLAC National Accelerator Laboratory, Menlo Park, CA 94025. · Center for Computational Mathematics, Flatiron Institute, New York, NY, USA

Abstract

Variational inference is a flexible tool for modeling experimental data and has proven useful in crystallography. Pathwise gradient estimators provide low-variance gradients for reparameterized variational inference, but are not readily available for some distributions central to crystallography. This work derives and implements implicit and explicit reparameterized gradient estimators for the folded Normal and Rice distributions in \prog{PyTorch}, and compares their variance analytically and empirically. In each case the implicit estimator achieves lower variance for the location derivative, particularly at small location-to-scale ratios, while the scale-derivative variances are nearly equal. For both distributions, implicit estimator is proved to be the conditional expectation of the explicit estimator given the sampled magnitude, so its variance is never larger. As a practical application, French-Wilson scaling is formulated as a variational inference problem, using the folded Normal and Rice distributions as variational families for centric and acentric reflections, respectively. Both estimators recover the exact posterior to better than 1%1\% on the amplitude, and converge at the same rate. The implementations are available in the open-source package \prog{rs-distributions}.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Variational inference via radial transport

    Feb 19, 2026Luca Ghafourpour, Sinho Chewi, Alessio Figalli +1Variational Inference

  2. 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

  3. Symmetry Guarantees Statistic Recovery in Variational Inference

    Apr 20, 2026Daniel Marks, Dario Paccagnan, Mark van der WilkVariational Inference