[Paper Review] Negative eigenvalues of the Hessian in deep neural networks
This paper investigates the role of negative eigenvalues in the Hessian of deep neural networks, showing that they contain significant potential for loss reduction yet are poorly exploited by current optimizers. Using Hessian eigendecomposition on LeNet trained on MNIST, the authors find that negative curvature directions offer stable, substantial improvements throughout training, unlike positive curvature directions where gains diminish over time.
The loss function of deep networks is known to be non-convex but the precise nature of this nonconvexity is still an active area of research. In this work, we study the loss landscape of deep networks through the eigendecompositions of their Hessian matrix. In particular, we examine how important the negative eigenvalues are and the benefits one can observe in handling them appropriately.
Motivation & Objective
- Understand the role of negative curvature directions in the loss landscape of deep neural networks.
- Assess how effectively current optimization methods exploit directions of negative curvature.
- Investigate the accuracy of second-order approximations of the loss function in regions of negative curvature.
- Explore the relationship between curvature magnitude and optimal step size in both positive and negative curvature directions.
- Evaluate the stability and potential of negative curvature directions for improving training efficiency and convergence.
Proposed method
- Computed the Hessian matrix's eigenvalues and eigenvectors using the Jacobian-vector product technique to avoid full Hessian storage.
- Tracked the top and bottom eigenvectors (LA(k) and SA(k)) of the Hessian during training to monitor curvature evolution.
- Used RMSProp with fixed hyperparameters on MNIST to generate a training trajectory for Hessian analysis.
- Evaluated the maximum possible loss improvement along each eigenvector direction using analytically derived optimal step sizes.
- Compared the performance of second-order approximation of the loss function in positive vs. negative curvature directions.
- Employed sparse symmetric eigensolvers (e.g., SciPy's eigsh) with function-based Hessian-vector products to scale to large models.
Experimental results
Research questions
- RQ1How do the eigenvalues of the Hessian, especially negative ones, evolve during training of a deep network?
- RQ2To what extent do current first-order optimizers exploit directions of negative curvature in the loss landscape?
- RQ3How accurate is the second-order approximation of the loss function in directions of negative curvature compared to positive curvature?
- RQ4What is the relationship between curvature magnitude and the optimal step size in directions of negative curvature?
- RQ5How much of the potential loss reduction lies in directions of negative curvature, and does this potential diminish over time?
Key findings
- The largest negative eigenvalue remains stable throughout training on MNIST, indicating persistent negative curvature in specific directions.
- Directions of negative curvature consistently offer higher potential loss improvement than positive curvature directions, with gains remaining stable over time.
- The optimal step size in negative curvature directions does not follow the $\alpha^* = 1/|\rho|$ rule observed in positive curvature directions.
- Second-order approximations of the loss function break down significantly in directions of negative curvature, indicating poor local approximation quality.
- Despite having fewer negative eigenvalues, the total potential loss reduction from negative curvature directions exceeds that from positive curvature directions.
- Current optimizers fail to exploit negative curvature directions effectively, suggesting a key opportunity for improved optimization algorithms.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.