Finite-sum smooth optimization with SARAH

Lam M. Nguyen, Marten van Dijk, Dzung T. Phan, Phuong Ha Nguyen, Tsui-Wei Weng, Jayant R. Kalagnanam · DOI

TL;DR

This paper introduces SARAH++, a novel algorithm for optimizing complex, non-convex functions common in machine learning. It achieves state-of-the-art convergence rates, matching theoretical lower bounds, while offering practical advantages like flexible step sizes and minibatch selection, outperforming existing methods in experiments.

What Problem Does This Paper Address?

Many machine learning problems, especially those involving large datasets and complex models like neural networks, can be framed as minimizing a "finite-sum smooth optimization" problem. This means finding the best set of parameters (weights) for a model by minimizing an objective function that's a sum of many individual functions (e.g., one for each data point). The challenge is that these objective functions can be "non-convex," meaning they have many local minima, making it hard to find the true best solution. Traditional methods struggle with the sheer scale of data (large 'n') and the non-convexity. While variance reduction techniques like SARAH have shown promise, they often come with limitations such as fixed minibatch sizes or restrictive step sizes, hindering practical performance. This paper aims to bridge this gap by developing a SARAH variant that is both theoretically sound and practically efficient for non-convex problems.

Methods

The core of this work is the development and analysis of a modified SARAH algorithm, termed SARAH++, for non-convex optimization. The key innovation lies in its convergence analysis, which relies on a weaker "average-L-smooth" assumption compared to standard L-smoothness, making it applicable to a broader range of problems.

For non-convex optimization, the paper analyzes a modified SARAH algorithm (Algorithm 1) with multiple outer iterations. They provide a convergence analysis that matches the theoretical lower bound for finding a first-order stationary point, achieving a total complexity of $O(L\sqrt{n/\epsilon})$ for $n \le O(\epsilon^{-2})$. This is achieved without requiring a bounded variance assumption, which is a common limitation in other methods. They also extend this to a mini-batch setting.

For convex optimization, they propose SARAH++, a variant of SARAH+ that incorporates a more effective stopping criterion for the inner loop. This variant achieves sublinear convergence for general convex problems and linear convergence for strongly convex problems. They also introduce a practical version, SARAH Adaptive, which shows promising empirical performance.

Datasets

The paper uses standard datasets for evaluation:

  • covtype: A large dataset for classification.
  • ijcnn1: A dataset for classification.
  • w8a: A dataset for classification.
  • phishing: A dataset for classification.

These are common benchmarks in machine learning for evaluating optimization algorithms.

Key Insights and Ideas

  • Weaker Assumption, Stronger Results: The paper demonstrates that using an "average-L-smooth" assumption instead of the standard L-smoothness for non-convex problems is sufficient to achieve optimal convergence rates. This broadens the applicability of their method.
  • SARAH++ Matches Lower Bounds: For non-convex problems, the proposed SARAH variant achieves a convergence rate that matches the theoretical worst-case lower bound, a significant theoretical achievement.
  • Practicality Matters: While theoretical guarantees are crucial, the paper emphasizes practical performance. SARAH++ and its adaptive variant show improved convergence in experiments compared to the original SARAH, especially by effectively managing inner loop iterations.
  • Stopping Criteria are Key: The effectiveness of SARAH++ and SARAH Adaptive is linked to their carefully designed stopping criteria for inner loops, preventing unnecessary computations and accelerating convergence.

Key Results

  • Non-Convex Optimization: The proposed SARAH algorithm achieves a total complexity of $O(L\sqrt{n/\epsilon})$ for finding an $\epsilon$-accurate first-order stationary point, matching the lower bound for $n \le O(\epsilon^{-2})$. This holds under the average-L-smooth assumption.
  • Convex Optimization: SARAH++ demonstrates sublinear convergence for general convex problems and linear convergence for strongly convex problems.
  • Numerical Experiments: Experiments on datasets like covtype and ijcnn1 show that SARAH++ and SARAH Adaptive outperform the original SARAH, especially when using appropriate learning rates and stopping criteria. SARAH Adaptive, in particular, shows improved performance over SARAH and SARAH++ without explicit tuning.

Limitations and Future Work

  • Total Complexity of SARAH++: While the paper provides iteration complexity for SARAH++, deriving its total complexity (which includes full gradient computations) remains an open question. This is noted as a direction for future research.
  • Theoretical Guarantees for SARAH Adaptive: The SARAH Adaptive method, while showing promising empirical results, lacks theoretical convergence guarantees. This is another area for future investigation.
  • Condition Number Dependency: For strongly convex problems, the convergence rate of SARAH++ depends on the condition number $\kappa = L/\mu$. While this is standard, further research could explore methods less sensitive to ill-conditioned problems.

Summary updated

BibTeX
@article{nguyen2022finite,
  author = {Lam M. Nguyen and Marten van Dijk and Dzung T. Phan and Phuong Ha Nguyen and Tsui-Wei Weng and Jayant R. Kalagnanam},
  title = {{Finite-sum smooth optimization with SARAH}},
  journal = {Comput. Optim. Appl.},
  year = {2022},
  doi = {10.1007/s10589-022-00375-x},
}
Figure