折叠正态分布与莱斯分布的隐式和显式重参数化
Implicit and explicit reparameterizations of the Folded Normal and Rice distributions
AI总结:
本研究在PyTorch中推导实现了折叠正态与莱斯分布的隐式、显式重参数化梯度估计器,对比其方差,将French-Wilson缩放化为变分推断问题,两种估计器表现优异且实现开源。
摘要:
变分推断是一种用于建模实验数据的灵活工具,已被证明在晶体学中十分有用。路径梯度估计器可为重参数化变分推断提供低方差梯度,但对于晶体学核心的某些分布,这类估计器并不容易获取。本研究在PyTorch中推导并实现了针对折叠正态分布与莱斯分布的隐式和显式重参数化梯度估计器,并从解析和经验两方面比较了它们的方差。对于两种分布,隐式估计器在位置导数上实现了更低的方差,尤其在位置与尺度比值较小时;而尺度导数的方差几乎相等。研究还证明,对于这两种分布,隐式估计器是显式估计器在给定采样幅度下的条件期望,因此其方差绝不会更大。作为实际应用,将French-Wilson缩放公式化为变分推断问题,分别使用折叠正态分布和莱斯分布作为中心反射和非中心反射的变分族。两种估计器在振幅上恢复的精确后验误差均小于1%,且收敛速率相同。相关实现可在开源包rs-distributions中获取。
英文摘要:
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\%$ on the amplitude, and converge at the same rate. The implementations are available in the open-source package \prog{rs-distributions}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。