PyHessian:通过Hessian透镜的神经网络
PyHessian: Neural Networks Through the Lens of the Hessian
摘要:
我们提出了PYHESSIAN,一个新的可扩展框架,可以快速计算Hessian(即,二阶导数)信息。PYHESSIAN可以快速计算Hessian特征值、Hessian迹和完整的Hessian特征值/谱密度,它支持在云/超级计算机系统上的分布式内存执行,并作为开源提供。该通用框架可用于分析神经网络模型,包括损失景观的拓扑(即,曲率信息)以深入了解不同模型/优化器的行为。为了说明这一点,我们分析了剩余连接和批量归一化层对神经网络可训练性的影响。最近的一个基于更简单的一阶分析的主张是,剩余连接和批量归一化使损失景观更平滑,从而使随机梯度下降更容易收敛到一个好的解决方案。我们的广泛分析显示了新的更精细的见解,表明虽然传统智慧有时是有效的,但在其他情况下,它根本是不正确的。特别是,我们发现,批量归一化不一定使损失景观更平滑,特别是对于较浅的网络。
英文摘要:
We present PYHESSIAN, a new scalable framework that enables fast computation of Hessian (i.e., second-order derivative) information for deep neural networks. PYHESSIAN enables fast computations of the top Hessian eigenvalues, the Hessian trace, and the full Hessian eigenvalue/spectral density, and it supports distributed-memory execution on cloud/supercomputer systems and is available as open source. This general framework can be used to analyze neural network models, including the topology of the loss landscape (i.e., curvature information) to gain insight into the behavior of different models/optimizers. To illustrate this, we analyze the effect of residual connections and Batch Normalization layers on the trainability of neural networks. One recent claim, based on simpler first-order analysis, is that residual connections and Batch Normalization make the loss landscape smoother, thus making it easier for Stochastic Gradient Descent to converge to a good solution. Our extensive analysis shows new finer-scale insights, demonstrating that, while conventional wisdom is sometimes validated, in other cases it is simply incorrect. In particular, we find that Batch Normalization does not necessarily make the loss landscape smoother, especially for shallower networks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。