Adaptive Optimization Algorithms for Machine Learning

Slavomír HanzelyarXiv 2023 · DOI

Introduction

Training modern machine learning models often involves a tedious process of hyperparameter tuning. Data scientists frequently spend significant time adjusting learning rates, batch sizes, and regularization parameters to achieve convergence. In the dissertation "Adaptive Optimization Algorithms for Machine Learning," Slavomír Hanzely proposes a shift toward "adaptivity" within optimization algorithms. By designing solvers that automatically adjust to the geometry of the data and the specific requirements of the task, this work provides a theoretical and practical toolkit for more robust and scalable artificial intelligence.

The Challenges of Modern Optimization

The research addresses three primary bottlenecks in contemporary machine learning:

  1. The Tuning Burden: Standard first-order methods, such as Stochastic Gradient Descent (SGD), are highly sensitive to hyperparameters. Incorrect settings for batch size or learning rate can lead to slow convergence or complete failure to optimize.
  2. Data Heterogeneity: In Federated Learning (FL) environments, data is distributed across numerous devices. A single global model often fails to account for the unique data distributions of individual users. There is a critical need for models that adapt to local data without sacrificing the benefits of collective learning.
  3. The Computational Cost of Second-Order Methods: While second-order methods (like Newton-type algorithms) utilize curvature information for faster convergence, they traditionally require a starting point very close to the solution and are computationally expensive in high-dimensional spaces.

Proposed Algorithmic Frameworks

Hanzely introduces several novel frameworks designed to embed adaptivity into the optimization process:

Personalized Federated Learning

The dissertation proposes a mixing objective that allows each client in a federated network to maintain a unique model. This is achieved by penalizing the distance between local models and the global average, balancing individual performance with shared knowledge.

First-Order Multistep Meta-Learning (FO-MuML)

By analyzing the popular Model-Agnostic Meta-Learning (MAML) algorithm through the lens of Moreau Envelopes, the research treats meta-learning as a smoothing problem. This theoretical connection provides tighter convergence guarantees and a clearer understanding of how meta-learning algorithms navigate the loss landscape.

Adaptive Batch Size SGD

To alleviate the burden of manual tuning, Hanzely introduces a heuristic that estimates gradient variance in real-time. This allows the algorithm to solve for the theoretically optimal minibatch size dynamically during training.

Affine-Invariant Cubic Newton (AICN) and Sketchy Global Newton (SGN)

Two new second-order methods are introduced to bridge the gap between theory and practice. AICN is a damped Newton method with a simple, explicit step-size schedule that achieves global convergence without solving expensive sub-problems. SGN utilizes "sketch-and-project" techniques to operate in random low-dimensional subspaces, bringing the $O(k^{-2})$ global convergence rate of Newton methods to high-dimensional problems with minimal per-iteration costs.

Key Insights and Theoretical Contributions

  • The Efficiency of Personalization: A significant finding is that training personalized models in a federated setting can be as computationally efficient as training a single centralized model. The research proves there is no inherent "price" for personalization regarding convergence rates.
  • Meta-Learning as a Moreau Solver: Identifying FO-MAML as an inexact solver for a Moreau Envelope objective allows for the application of classical optimization theory to meta-learning, resulting in faster proven convergence rates.
  • Geometric Robustness: By prioritizing Affine Invariance, the proposed algorithms remain effective regardless of how features are scaled. This ensures that the optimization path is determined by the underlying geometry of the problem rather than coordinate-specific units.
  • Subspace Sufficiency: The research demonstrates that the full Hessian matrix is not always necessary for second-order speed. Sketching the problem onto even a 1-dimensional random subspace can maintain a global $O(k^{-2})$ convergence rate.

Empirical Results

The algorithms were validated using standard benchmarks, including LIBSVM datasets (e.g., a1a, mushroom, phishing, gisette_scale), the MNIST image classification dataset, and regression benchmarks (bodyfat, mg).

  • Adaptive SGD Performance: The real-time batch size estimator matched the performance of SGD using the theoretically perfect batch size—a value usually unknown in practice. In specific tests, this led to a 250% speedup over fixed-batch methods.
  • Newton Method Scalability: The AICN algorithm achieved a global $O(k^{-2})$ rate, marking a first for simple damped Newton methods without complex cubic regularization. Meanwhile, the SGN algorithm outperformed first-order methods on ill-conditioned problems by scaling second-order benefits to high dimensions with an iteration cost of $O(1)$ for rank-1 sketches.

Limitations and Future Directions

While the dissertation establishes a strong theoretical foundation, certain limitations persist. The second-order results rely on "semi-strong self-concordance," a property that holds for many standard losses like Logistic Regression but may not apply to all deep neural network architectures. Additionally, while the adaptive batch size method is effective, further work is needed to formalize convergence proofs for its most aggressive versions. Future research may involve combining these adaptive techniques with variance-reduction methods (such as SAGA or SVRG) to create even more powerful, hyper-adaptive solvers.

Summary updated

Abstract

Machine learning assumes a pivotal role in our data-driven world. The increasing scale of models and datasets necessitates quick and reliable algorithms for model training. This dissertation investigates adaptivity in machine learning optimizers. The ensuing chapters are dedicated to various facets of adaptivity, including: 1. personalization and user-specific models via personalized loss, 2. provable post-training model adaptations via meta-learning, 3. learning unknown hyperparameters in real time via hyperparameter variance reduction, 4. fast O(1/k^2) global convergence of second-order methods via stepsized Newton method regardless of the initialization and choice basis, 5. fast and scalable second-order methods via low-dimensional updates. This thesis contributes novel insights, introduces new algorithms with improved convergence guarantees, and improves analyses of popular practical algorithms.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
a1a · Logistic Regression on a1aProposed adaptive batch-size methodSpeedup in epochs to converge to the ε-neighborhood of the solution250%Logistic Regression · sampling=τ-partition nice sampling
Source quote
L2090: \caption{Number of epochs to converge to \epsilon--neighborhood of the solution for different batch sizes, tested on Logistic Regression using \tau--partition nice sampling on a1a{} dataset. Our adaptive method outperforms {\tt SGD}{} with 87.9% of different fixed batch sizes, achieving speedup up to 250%.}
BibTeX
@misc{hanzely2023adaptive,
  author = {Slavomír Hanzely},
  title = {{Adaptive Optimization Algorithms for Machine Learning}},
  year = {2023},
  eprint = {2311.10203},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.10203},
}
Figure