[Paper Review] Practical Gauss-Newton Optimisation for Deep Learning
This paper proposes KFRA, a practical Gauss-Newton optimization method for deep learning that uses a recursive, block-diagonal approximation of the Gauss-Newton matrix, enabling efficient second-order optimization. It achieves competitive performance against state-of-the-art first-order methods like Adam, even with default hyperparameters, and demonstrates improved alignment with exact Gauss-Newton updates compared to KFAC.
We present an efficient block-diagonal ap- proximation to the Gauss-Newton matrix for feedforward neural networks. Our result- ing algorithm is competitive against state- of-the-art first order optimisation methods, with sometimes significant improvement in optimisation performance. Unlike first-order methods, for which hyperparameter tuning of the optimisation parameters is often a labo- rious process, our approach can provide good performance even when used with default set- tings. A side result of our work is that for piecewise linear transfer functions, the net- work objective function can have no differ- entiable local maxima, which may partially explain why such transfer functions facilitate effective optimisation.
Motivation & Objective
- To develop an efficient second-order optimization method for deep neural networks that avoids the computational infeasibility of full Hessian computation.
- To address the challenge of hyperparameter sensitivity in first-order methods like SGD and Adam, which require extensive tuning for optimal performance.
- To provide a scalable, second-order optimization approach that leverages curvature information without explicit Hessian storage or computation.
- To establish theoretical and empirical connections between Gauss-Newton approximation and the absence of differentiable local maxima in networks with piecewise linear activations.
Proposed method
- The method recursively computes block-diagonal approximations of the Gauss-Newton matrix, where each block corresponds to the weights of a single layer in the network.
- Each block is approximated as a Kronecker product of two matrices: one derived from activations (input statistics), and one from the second-order gradient of the loss (Hessian of the pre-activation).
- The algorithm uses a single backward pass to compute both gradients and curvature approximations via extended automatic differentiation, including the R-operator for Hessian-vector products.
- It applies regularization via Tikhonov-like terms (η and γ) to stabilize inversion and improve generalization.
- The method is designed to be compatible with standard deep learning frameworks and integrates naturally with existing backpropagation pipelines.
- The approach is shown to be equivalent to KFAC for exponential family models but differs in its approximation of the Gauss-Newton matrix rather than the Fisher information matrix.
Experimental results
Research questions
- RQ1Can a block-diagonal, Kronecker-factored approximation of the Gauss-Newton matrix be computed efficiently in a single backward pass for feedforward networks?
- RQ2Does this approximation lead to second-order optimization that outperforms or matches first-order methods like Adam without extensive hyperparameter tuning?
- RQ3Why do piecewise linear activation functions facilitate effective optimization, and does this relate to the absence of differentiable local maxima in the loss surface?
- RQ4How well does the proposed method align with the exact Gauss-Newton update compared to existing methods like KFAC?
- RQ5What is the impact of curvature approximation quality on optimization convergence and generalization?
Key findings
- The proposed KFRA method achieves competitive training performance on standard benchmarks (CURVES, FACES, MNIST), often matching or exceeding well-tuned first-order methods like Adam without requiring learning rate scheduling or hyperparameter tuning.
- The method demonstrates significantly better alignment with the exact Gauss-Newton update than KFAC, especially in early training, indicating a more accurate curvature approximation.
- For networks with piecewise linear activation functions, the error surface has no differentiable strict local maxima, which may explain their favorable optimization behavior.
- The block-diagonal Gauss-Newton approximation is more accurate than KFAC’s Fisher approximation in non-exponential family models, where the two matrices differ.
- The use of a single backward pass to compute both gradients and curvature approximations enables efficient implementation, making second-order optimization practical for large-scale deep networks.
- Empirical results show that the approximation quality, particularly in alignment with the full Gauss-Newton matrix, remains high throughout training, especially on MNIST and CURVES, with only minor degradation on FACES due to ill-conditioning in conjugate gradient solves.
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.