arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.08612cs.LGcs.AIcs.CLcs.CV
收藏

桥接离散与反向传播:直通及其超越

Bridging Discrete and Backpropagation: Straight-Through and Beyond

Microsoft Research(微软研究院)

Liyuan Liu, Chengyu Dong, Xiaodong Liu, Bin Yu, Jianfeng Gao

AI总结:

针对离散潜变量梯度计算难题,提出ReinMax方法,基于直通启发式,整合Heun方法实现二阶精度,无需二阶导数,计算开销小,实验验证优于现有方法。

摘要:

反向传播是深度学习的基石,但其仅限于计算连续变量的梯度。这一限制对涉及离散潜变量的问题构成了挑战。为解决此问题,我们提出了一种新颖的方法来近似生成离散潜变量所涉及参数的梯度。首先,我们考察了广泛使用的直通(ST)启发式方法,并证明其作为梯度的一阶近似有效。在发现的指导下,我们提出了ReinMax,它通过整合Heun方法(一种用于求解常微分方程的二阶数值方法)实现了二阶精度。ReinMax不需要Hessian或其他二阶导数,因此计算开销可忽略不计。在各种任务上的大量实验结果表明,ReinMax优于现有最先进方法。实现代码已在https://github.com/microsoft/ReinMax发布。

英文摘要:

Backpropagation, the cornerstone of deep learning, is limited to computing gradients for continuous variables. This limitation poses challenges for problems involving discrete latent variables. To address this issue, we propose a novel approach to approximate the gradient of parameters involved in generating discrete latent variables. First, we examine the widely used Straight-Through (ST) heuristic and demonstrate that it works as a first-order approximation of the gradient. Guided by our findings, we propose ReinMax, which achieves second-order accuracy by integrating Heun's method, a second-order numerical method for solving ODEs. ReinMax does not require Hessian or other second-order derivatives, thus having negligible computation overheads. Extensive experimental results on various tasks demonstrate the superiority of ReinMax over the state of the art. Implementations are released at https://github.com/microsoft/ReinMax.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑