[Paper Review] Training Neural Networks with Stochastic Hessian-Free Optimization
This paper proposes Stochastic Hessian-Free (SHF) optimization, a mini-batch variant of Hessian-free (HF) training that uses stochastic gradient and curvature-vector products independent of dataset size. SHF combines the generalization benefits of SGD with second-order curvature information, achieving competitive performance on image classification and deep autoencoder tasks without learning rate tuning, while integrating dropout to prevent overfitting.
Hessian-free (HF) optimization has been successfully used for training deep autoencoders and recurrent networks. HF uses the conjugate gradient algorithm to construct update directions through curvature-vector products that can be computed on the same order of time as gradients. In this paper we exploit this property and study stochastic HF with gradient and curvature mini-batches independent of the dataset size. We modify Martens' HF for these settings and integrate dropout, a method for preventing co-adaptation of feature detectors, to guard against overfitting. Stochastic Hessian-free optimization gives an intermediary between SGD and HF that achieves competitive performance on both classification and deep autoencoder experiments.
Motivation & Objective
- To develop a scalable, stochastic variant of Hessian-free (HF) optimization that operates on gradient and curvature mini-batches independent of dataset size.
- To integrate dropout into HF optimization to prevent co-adaptation of feature detectors and reduce overfitting.
- To combine the generalization advantages of SGD with the curvature-aware updates of HF, enabling adaptive behavior through batch size and conjugate gradient (CG) iteration control.
- To evaluate SHF on both classification and deep autoencoder tasks, comparing it to SGD, HF, momentum, and Nesterov-accelerated gradient methods.
- To demonstrate that SHF eliminates the need for manual learning rate tuning while maintaining competitive performance across diverse architectures and tasks.
Proposed method
- Adapt Martens’ Hessian-free (HF) framework to use stochastic gradient and curvature-vector products computed on mini-batches, decoupling computational cost from dataset size.
- Use conjugate gradient (CG) iterations to compute update directions via Hessian-vector products, avoiding explicit Hessian matrix computation.
- Integrate dropout as a regularizer during training to prevent feature detector co-adaptation and improve generalization.
- Control the behavior of SHF by adjusting mini-batch sizes for gradients and curvature, allowing interpolation between SGD-like and HF-like dynamics.
- Apply a dynamic CG decay parameter that is turned off when training diverges, enabling fine-tuning in high-curvature regions, similar to momentum annealing.
- Use variance-based batch size control for gradient and curvature estimates, inspired by prior work, though batch sizes are fixed in this study.
Experimental results
Research questions
- RQ1Can a stochastic variant of Hessian-free optimization be designed to scale efficiently with large datasets by using mini-batches for gradients and curvature-vector products?
- RQ2Does integrating dropout into Hessian-free optimization improve generalization and reduce overfitting on both classification and autoencoder tasks?
- RQ3Can SHF achieve performance competitive with SGD and HF across diverse neural network architectures without requiring manual learning rate tuning?
- RQ4How does the interplay between mini-batch size and number of conjugate gradient iterations affect optimization dynamics and convergence?
- RQ5To what extent does the dynamic CG decay mechanism improve convergence in high-curvature regions compared to fixed momentum schedules?
Key findings
- On the CURVES dataset, SHF achieved a training error of 0.089, outperforming HF (0.110) and matching the best-performing methods, demonstrating improved optimization on hard-to-optimize autoencoder tasks.
- On MNIST, SHF achieved a training error of 0.877, comparable to HF (0.780) and momentum-based methods, indicating strong performance on standard autoencoder benchmarks.
- On the Reuters text classification dataset, SHF with dropout achieved competitive test accuracy, while SHF without dropout overfit the training data, confirming the importance of dropout for generalization.
- SHF eliminated the need for manual learning rate tuning, maintaining stable performance across experiments, unlike first-order methods that require careful hyperparameter scheduling.
- Experiments with smaller batches and only 5 CG iterations yielded worse results (e.g., 0.19 on CURVES), indicating that noisy updates can hinder progress in high-curvature regions.
- The dynamic CG decay mechanism, which disables decay after divergence, significantly reduced training error, especially on CURVES, and was effective in navigating complex loss landscapes.
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.