Sarah Frank-Wolfe: Methods for Constrained Optimization with Best Rates and Practical Features

Aleksandr Beznosikov, David Dobre, Gauthier Gidel

In machine learning, we frequently encounter the need to minimize a loss function subject to specific structural constraints, such as sparsity or bounded norms. The Frank-Wolfe (FW) algorithm is a popular choice for these problems because it is "projection-free." Instead of performing a computationally expensive projection onto a complex constraint set at every step, FW relies on a Linear Minimization Oracle (LMO), which is significantly faster for many practical constraints.

However, when dealing with massive datasets—often referred to as the "finite-sum" setting—standard FW hits a computational wall. Stochastic versions of FW have been developed to address this, but they typically introduce new bottlenecks by requiring either:

  1. Full Gradients: Periodically calculating the gradient over the entire dataset, which is prohibitively slow.
  2. Large Batches: Using massive mini-batches that must grow over time to reduce variance and noise, which is highly memory-intensive and inefficient.

Recent research addresses these limitations by introducing two new variants of the Frank-Wolfe algorithm: Sarah Frank-Wolfe and Saga Sarah Frank-Wolfe. These methods achieve state-of-the-art convergence rates for stochastic constrained optimization while eliminating the need for massive mini-batches and, in the case of the "Saga" variant, removing the requirement for expensive full gradient computations entirely.

The Proposed Methods

The authors propose two algorithms based on the SARAH (Stochastic Recursive Gradient Algorithm) variance reduction technique:

  • Algorithm 1 (Sarah Frank-Wolfe): This method utilizes a "loopless" SARAH update. In each step, it flips a biased coin: with a small probability, it computes a full gradient; otherwise, it performs a clever recursive update using a small mini-batch. This keeps the gradient estimate "fresh" without the rigid, nested inner-loop structure of previous variance-reduction methods like SVRG.
  • Algorithm 2 (Saga Sarah Frank-Wolfe): Designed as the more practical sibling, this algorithm combines the recursive SARAH update with a SAGA-style memory buffer. By storing previous gradient information, it completely avoids full gradient computations, relying solely on stochastic mini-batches while maintaining the same high-speed convergence.

Theoretical Breakthroughs

The most significant contribution of these algorithms is their optimal complexity. The authors prove that their methods reach the theoretical lower bounds for stochastic first-order oracles (SFO) in the convex case, meaning they are essentially as fast as mathematically possible for this class of algorithms.

Complexity Comparison

As shown in the complexity comparison, the proposed methods achieve an SFO complexity of $\tilde{O}(n + \sqrt{n}/\epsilon)$ for convex problems. This is the best rate in existing literature for projection-free methods. Furthermore, for non-convex problems, these are the first projection-free methods to achieve non-exponential complexity (relative to accuracy $\epsilon$) using only small mini-batches. Unlike previous state-of-the-art methods that required batch sizes to grow or be very large to handle non-convexity, these algorithms work efficiently even with a batch size of $b=1$.

Empirical Performance

To validate the theoretical claims, the algorithms were evaluated using several standard benchmarks from the LibSVM repository, including datasets like a9a, breast cancer, madelon, mushrooms, and w8a. The tests covered both convex tasks (Logistic Regression) and non-convex tasks (Non-linear Least Squares).

Logistic Regression Convergence

In head-to-head tests against other modern stochastic FW variants (such as those by Mokhtari et al. or Négiar et al.), the Sarah FW variants consistently reached lower suboptimality levels with significantly fewer gradient evaluations. The synergy of SARAH's recursive accuracy and SAGA's memory-based approach successfully bridges the gap between theoretical speed and practical "full-stochastic" requirements.

Limitations and Future Work

While highly effective, the proposed methods do have a few limitations:

  • Memory Overhead: Algorithm 2 (Saga Sarah FW) requires storing $n$ gradient vectors (where $n$ is the dataset size). For extremely high-dimensional problems with millions of samples, this $O(nd)$ memory cost could be a limiting factor.
  • Strong Convexity: The paper covers convex and non-convex cases but does not explicitly optimize for "strongly convex" functions, which might allow for even faster linear convergence rates if exploited.
  • Parameter Tuning: Although the algorithms are "parameter-free" regarding the objective function's smoothness, they still require choosing a probability $p$ or momentum $\lambda$. Fortunately, the authors provide solid theoretical guidance for selecting these values.

Overall, Sarah Frank-Wolfe and its Saga variant represent a major step forward for constrained optimization, offering the best of both worlds: rigorous, optimal theoretical guarantees and highly efficient, practical performance on real-world datasets.

Summary updated

BibTeX
@inproceedings{beznosikov2024sarah,
  author = {Aleksandr Beznosikov and David Dobre and Gauthier Gidel},
  title = {{Sarah Frank-Wolfe: Methods for Constrained Optimization with Best Rates and Practical Features}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Zw52bJCZXc},
}
Figure