arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.05559cs.LG
收藏

TensorFlow中Hessian矩阵的有效计算

Efficient Computation of Hessian Matrices in TensorFlow

University of Bergen(卑尔根大学)

Geir K. Nilsen, Antonella Z. Munthe-Kaas, Hans J. Skaug, Morten Brun

摘要:

Hessian矩阵在优化、图像处理和统计学等领域有着重要的应用。在本文中,我们重点关注在使用Python脚本语言和TensorFlow库的深度学习背景下有效计算Hessian矩阵的实际方面。我们定义了一个通用的前馈神经网络模型,并展示了如何有效地计算两个量:成本函数的精确Hessian矩阵,和成本函数的近似Hessian矩阵,被称为外积矩阵(OPG)。此外,由于深度学习中的参数(权重和偏差)的数量通常非常大,我们展示了如何通过基于近似特征分解的有效实现来降低二次空间复杂度。

英文摘要:

The Hessian matrix has a number of important applications in a variety of different fields, such as optimzation, image processing and statistics. In this paper we focus on the practical aspects of efficiently computing Hessian matrices in the context of deep learning using the Python scripting language and the TensorFlow library. We define a general feed-forward neural network model and show how to efficiently compute two quantities: the cost function's exact Hessian matrix, and the cost function's approximate Hessian matrix, known as the Outer Product of Gradients (OPG) matrix. Furthermore, as the number of parameters (weights and biases) in deep learning usually is very large, we show how to reduce the quadratic space complexity by an efficient implementation based on approximate eigendecompositions.

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

↑