BackPACK:将更多内容打包到backprop中
BackPACK: Packing more into backprop
摘要:
自动微分框架只针对一件事进行了优化:计算平均小批量梯度。然而,理论上可以有效地计算其他量,例如小批量梯度的方差或Hessian的许多近似值,并且与梯度同时计算。虽然研究人员和实践者对这些量非常感兴趣,但目前的深度学习软件不支持自动计算。手动实现它们是繁重的,如果天真地完成,效率低下,并且生成的代码很少共享。这阻碍了深度学习的进展,并不必要地将研究范围缩小到关注梯度下降及其变体;它还使需要这些量的新开发方法之间的复制研究和比较复杂化,达到了不可能的程度。为了解决这个问题,我们引入了BackPACK,这是一个建立在PyTorch之上的高效框架,它扩展了反向传播算法,可以从一阶和二阶导数中提取额外的信息。它的能力通过在深度神经网络上计算额外量的基准报告以及通过测试几个最近的曲率近似来优化的示例应用来说明。
英文摘要:
Automatic differentiation frameworks are optimized for exactly one thing: computing the average mini-batch gradient. Yet, other quantities such as the variance of the mini-batch gradients or many approximations to the Hessian can, in theory, be computed efficiently, and at the same time as the gradient. While these quantities are of great interest to researchers and practitioners, current deep-learning software does not support their automatic calculation. Manually implementing them is burdensome, inefficient if done naively, and the resulting code is rarely shared. This hampers progress in deep learning, and unnecessarily narrows research to focus on gradient descent and its variants; it also complicates replication studies and comparisons between newly developed methods that require those quantities, to the point of impossibility. To address this problem, we introduce BackPACK, an efficient framework built on top of PyTorch, that extends the backpropagation algorithm to extract additional information from first- and second-order derivatives. Its capabilities are illustrated by benchmark reports for computing additional quantities on deep neural networks, and an example application by testing several recent curvature approximations for optimization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。