DiCE:不可微Monte-Carlo估计
DiCE: The Infinitely Differentiable Monte-Carlo Estimator
摘要:
分数函数估计器被广泛用于估计随机计算图(SCG)中的随机目标的梯度,例如在强化学习和元学习中。虽然通过区分替代损失(SL)目标来导出一阶梯度估计量在计算上和概念上都很简单,但对高阶导数使用相同的方法更具挑战性。首先,分析推导和实现这样的估计量是费力的,并且不符合自动微分。其次,重复应用SL为每个阶导数构造新目标涉及越来越繁琐的图形操作。最后,为了匹配微分下的一阶梯度,SL将部分成本视为固定样本,这会导致高阶导数估计的缺失和错误项。为了以统一的方式解决所有这些缺点,我们引入了DiCE,它提供了一个可以重复区分的单一目标,生成SCG中任何阶导数的正确估计。与SL不同,DiCE依赖于自动微分来执行必要的图形操作。我们验证了DiCE的正确性,通过证明和数值计算的DiCE衍生物的估计。我们还使用DiCE提出并评估了一种新的多智能体学习方法。我们的代码可在https://www.github.com/alshedivat/lola上获得。
英文摘要:
The score function estimator is widely used for estimating gradients of stochastic objectives in stochastic computation graphs (SCG), eg, in reinforcement learning and meta-learning. While deriving the first-order gradient estimators by differentiating a surrogate loss (SL) objective is computationally and conceptually simple, using the same approach for higher-order derivatives is more challenging. Firstly, analytically deriving and implementing such estimators is laborious and not compliant with automatic differentiation. Secondly, repeatedly applying SL to construct new objectives for each order derivative involves increasingly cumbersome graph manipulations. Lastly, to match the first-order gradient under differentiation, SL treats part of the cost as a fixed sample, which we show leads to missing and wrong terms for estimators of higher-order derivatives. To address all these shortcomings in a unified way, we introduce DiCE, which provides a single objective that can be differentiated repeatedly, generating correct estimators of derivatives of any order in SCGs. Unlike SL, DiCE relies on automatic differentiation for performing the requisite graph manipulations. We verify the correctness of DiCE both through a proof and numerical evaluation of the DiCE derivative estimates. We also use DiCE to propose and evaluate a novel approach for multi-agent learning. Our code is available at https://www.github.com/alshedivat/lola.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。