TL;DR
This paper introduces novel quasi-Newton methods (S-LBFGS and S-LSR1) for machine learning that "forget the past" by sampling recent data to update curvature information. These methods outperform their classical counterparts on various tasks, offering a more robust and efficient approach to optimization by leveraging local, up-to-date information.
What Problem Does This Paper Address?
Machine learning optimization often deals with massive datasets and high-dimensional models, making traditional optimization methods computationally prohibitive. While stochastic gradient descent (SGD) methods are scalable, they can be sensitive to hyperparameters and suffer from ill-conditioning. Quasi-Newton methods, which use curvature information, can offer faster convergence and better conditioning but traditionally rely on historical data that might be stale. This paper addresses the challenge of efficiently incorporating second-order information into optimization for machine learning by developing quasi-Newton methods that use only recent, locally sampled data, thereby avoiding the pitfalls of stale information.
Methods
The core innovation lies in the "forget the past, just sample" philosophy. Instead of sequentially building Hessian or inverse Hessian approximations from all past data, the proposed methods (S-LBFGS and S-LSR1) sample a small number of random points around the current iterate at each step. These sampled points are used to construct new curvature pairs, which then update the Hessian approximations. This approach ensures that the approximations are based on more relevant and local information. The paper details two options for constructing these curvature pairs: Option I (using gradient differences) and Option II (using Hessian-vector products). Option II is shown to be more efficient and scale-invariant. The paper also provides theoretical convergence guarantees for these new methods, showing they match classical limited-memory counterparts.
Datasets
The paper evaluates the proposed methods on several datasets and tasks:
- Toy Classification Problem: A synthetic problem with three different network sizes (small, medium, large) used to illustrate performance and eigenvalue comparisons.
- Benchmarking Binary Classification: Datasets like
ijcnn1,rcv1,gisette, andw8aare used for logistic regression. - Neural Network Training: MNIST and CIFAR10 datasets are used for training neural networks.
Key Insights and Ideas
- "Forgetting the Past" is Beneficial: By discarding stale historical data and focusing on recent, local information through sampling, the quasi-Newton approximations become more accurate and relevant, leading to improved performance.
- Sampling Captures Local Curvature Better: The empirical results (e.g., eigenvalue comparisons in Figures 2 and 3) show that sampled Hessian approximations better match the true Hessian's spectrum, especially for S-LSR1.
- Option II for Curvature Pair Construction is Superior: Using Hessian-vector products (Option II) for constructing curvature pairs is more efficient and less sensitive to hyperparameters (like sampling radius) compared to using gradient differences (Option I).
- Quasi-Newton Methods Can Be Parallelized: The proposed methods are designed to take advantage of parallel and distributed computing environments, making them suitable for large-scale machine learning.
Key Results
- Outperformance of Classical Variants: Numerical tests consistently show that S-LBFGS and S-LSR1 outperform their classical LBFGS and LSR1 counterparts on toy classification, binary classification, and neural network training tasks.
- Competitive with First-Order Methods: While first-order methods like GD and ADAM are also tested, the sampled quasi-Newton methods often achieve better accuracy or faster convergence, especially in the initial stages of optimization.
- Efficiency: The methods are efficient in terms of epochs and communication costs, particularly in distributed settings.
- Theoretical Guarantees: The paper provides theoretical convergence guarantees for the proposed methods, matching those of their classical counterparts.
Limitations and Future Work
- Stochastic Setting Extension: The authors suggest extending the algorithms to the stochastic setting where gradients and/or Hessians are computed inexactly.
- Adaptive Algorithms: The possibility of making the algorithms adaptive, similar to ideas in [29, 48], is mentioned.
- Stronger Theoretical Results: The authors believe stronger theoretical results, such as superlinear convergence, could be proven for some variants.
- Large-Scale Numerical Investigation: A comprehensive numerical study on very large-scale problems is proposed to fully test the methods' limits.
- Hyperparameter Sensitivity (Option I): While Option II is scale-invariant, Option I's performance was shown to be dependent on the choice of sampling radius
r.
Summary updated