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

神经网络权重矩阵的Hessian特征向量与主成分分析

Hessian Eigenvectors and Principal Component Analysis of Neural Network Weight Matrices

Universität Leipzig(莱比锡大学);Fakultät für Physik und Geowissenschaften(物理与地球科学学院);Institut für Theoretische Physik(理论物理研究所)

David Haink

AI总结:

本文通过Hessian特征向量与权重的关系、奇异值分解和主成分分析揭示训练深度网络的关键参数方向,并据此提出缓解灾难性遗忘的策略。

摘要:

本研究深入探讨了训练后的深度神经网络的复杂动态及其与网络参数之间的关系。训练后的网络主要沿单一方向继续训练,该方向被称为漂移模式。这种漂移模式可以通过损失函数的二次势模型来解释,表明其朝着势能最小值方向呈缓慢指数衰减。我们揭示了Hessian特征向量与网络权重之间的相关性。这种关系依赖于特征值的大小,使我们能够识别网络内部的参数方向。值得注意的是,这些方向的重要性取决于两个决定性属性:其势阱的曲率(由Hessian特征值的大小表示)以及它们与权重向量的对齐程度。我们的探索扩展到通过奇异值分解对权重矩阵进行分解。这种方法在识别Hessian中的关键方向方面被证明是实用的,同时考虑了这些方向的大小和曲率。此外,我们的研究展示了主成分分析在近似Hessian方面的适用性,其中更新参数比权重更适合用于此目的。值得注意的是,我们的发现揭示了单个层与整个网络的最大Hessian特征值之间存在相似性。尤其值得注意的是,较高的特征值更多地集中在更深的层中。利用这些见解,我们着手解决灾难性遗忘问题,这是神经网络在学习新任务的同时保留先前任务知识时所面临的一个挑战。通过应用我们的发现,我们制定了一种有效的策略来缓解灾难性遗忘,提供了一种可应用于不同规模网络(包括更大架构)的可能解决方案。

英文摘要:

This study delves into the intricate dynamics of trained deep neural networks and their relationships with network parameters. Trained networks predominantly continue training in a single direction, known as the drift mode. This drift mode can be explained by the quadratic potential model of the loss function, suggesting a slow exponential decay towards the potential minima. We unveil a correlation between Hessian eigenvectors and network weights. This relationship, hinging on the magnitude of eigenvalues, allows us to discern parameter directions within the network. Notably, the significance of these directions relies on two defining attributes: the curvature of their potential wells (indicated by the magnitude of Hessian eigenvalues) and their alignment with the weight vectors. Our exploration extends to the decomposition of weight matrices through singular value decomposition. This approach proves practical in identifying critical directions within the Hessian, considering both their magnitude and curvature. Furthermore, our examination showcases the applicability of principal component analysis in approximating the Hessian, with update parameters emerging as a superior choice over weights for this purpose. Remarkably, our findings unveil a similarity between the largest Hessian eigenvalues of individual layers and the entire network. Notably, higher eigenvalues are concentrated more in deeper layers. Leveraging these insights, we venture into addressing catastrophic forgetting, a challenge of neural networks when learning new tasks while retaining knowledge from previous ones. By applying our discoveries, we formulate an effective strategy to mitigate catastrophic forgetting, offering a possible solution that can be applied to networks of varying scales, including larger architectures.

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

↑