Improved algorithms and novel applications of the FrankWolfe.jl library

Mathieu Besançon, Sébastien Designolle, Jannis Halbey, Deborah Hendrych, Dominik Kuzinowicz, Sebastian Pokutta, Hannah Troppens, Daniel Viladrich Herrmannsdoerfer, Elias Wirth

Introduction

In large-scale machine learning and constrained optimization, traditional first-order methods like Projected Gradient Descent often encounter a significant computational bottleneck: the projection step. As the dimensionality and complexity of the feasible region grow, computing the projection back into the constraint set becomes increasingly expensive, and in many cases, computationally intractable.

Frank-Wolfe (FW) algorithms, also known as conditional gradient methods, address this by replacing the projection with a Linear Minimization Oracle (LMO). The LMO finds the best direction to move within the constraints by solving a linear subproblem, which is typically much cheaper than a full projection. As interest in FW methods has surged over the last decade, the need for a unified, high-performance software ecosystem has become critical. This paper details the evolution of FrankWolfe.jl, a Julia package designed to provide a modular and efficient toolbox for both researchers and practitioners.

Methodology and Library Enhancements

The recent updates to FrankWolfe.jl focus on modularity, performance, and the integration of state-of-the-art algorithmic variants. The library's architecture separates the algorithm logic from the step-size strategy and the LMO, allowing for seamless experimentation.

New Algorithmic Variants

The package now supports several advanced FW variants tailored for specific problem structures:

  • Blended Pairwise Conditional Gradients (BPCG): Designed to improve convergence speeds and maintain solution sparsity.
  • Decomposition-Invariant Conditional Gradients (DICG): Efficient for specific polytopes where storing an active set of vertices is impractical.
  • Block-Coordinate Frank-Wolfe (BCFW): Optimized for problems with block-separable constraints, common in structural SVMs and multi-task learning.

Advanced Step-Size Strategies

To ensure robust convergence across diverse objective functions, the authors implemented several new step-size rules. These include open-loop and monotonic open-loop strategies, as well as secant line searches. A notable addition is a numerically stable adaptive step-size strategy that dynamically estimates the local smoothness of the function, preventing numerical instability during optimization.

Specialized Data Structures and Caching

For quadratic objective functions, the library introduces ActiveSetQuadraticProductCaching. This structure exploits the linearity of gradients in quadratic problems by pre-computing and caching scalar products. This optimization drastically reduces the computational overhead associated with updating the active set, enabling "huge-scale" projections that were previously out of reach.

Benchmarking and Problem Classes

The authors evaluated the library using a continuous benchmarking repository covering a wide array of mathematical problem classes, including:

  • Birkhoff Polytope: Doubly stochastic matrices.
  • Nuclear Norm Ball: Essential for collaborative filtering and matrix completion.
  • Optimal Experiment Design: Focusing on A-criterion and D-criterion optimization.
  • Spectrahedron: Optimizing over positive semidefinite matrices.
  • K-sparse Polytope and Probability Simplex: Standard benchmarks for sparse recovery and probability distributions.

Key Insights

Sparsity and Interpretability

FW algorithms naturally construct solutions as convex combinations of a small number of extreme points (vertices). This inherent sparsity is a "superpower" for interpretability—such as finding sparse explanations for neural network outputs—and significantly reduces memory requirements.

The Power of Lazification

"Lazifying" algorithms—reusing previously discovered vertices from the active set instead of invoking the expensive LMO at every iteration—provides substantial speedups. This is particularly effective for problems where the LMO is the primary computational cost, such as in spectrahedron or nuclear norm ball optimization.

Decomposition-Invariance

For certain constraints, algorithms like DICG excel by avoiding the storage of an active set entirely. By using extended oracles to compute extreme points on the faces of polytopes, these methods bypass the memory bottlenecks associated with traditional active-set management.

Performance Results

Empirical results demonstrate that while standard FW remains competitive for problems with cheap LMOs and interior solutions (like the K-sparse polytope), active-set methods like Blended Conditional Gradients (BCG) and BPCG vastly outperform it in higher dimensions or when the LMO is expensive. Furthermore, the library's modularity has enabled its use as a core engine for other specialized tools, such as Boscia.jl for mixed-integer optimization and BellPolytopes.jl for quantum information theory.

To bridge the gap between Julia's performance and Python's accessibility, the authors also introduced frankwolfe-py, a wrapper that allows Python users to leverage the high-performance Julia backend with minimal overhead.

Limitations and Future Directions

Despite these advancements, standard FW still faces challenges when the optimal solution lies on a face of the feasible region or when the LMO is exceptionally costly. The advanced caching mechanisms, while powerful, introduce a minor overhead that may not be justified for very short optimization runs.

Future work will focus on extending FrankWolfe.jl to handle non-smooth and non-convex problems, as well as exploring the integration of FW subproblems within multi-layered machine learning architectures.

Summary updated

Abstract

Frank-Wolfe (FW) algorithms have emerged as an essential class of methods for constrained optimization, especially on large-scale problems. In this paper, we summarize the algorithmic design choices and progress made in the last years of the development of FrankWolfe.jl, a Julia package gathering high-performance implementations of state-of-the-art FW variants. We review key use cases of the library in the recent literature, which match its original dual purpose: first, becoming the de-facto toolbox for practitioners applying FW methods to their problem, and second, offering a modular ecosystem to algorithm designers who experiment with their own variants and implementations of algorithmic blocks. Finally, we demonstrate the performance of several FW variants on important problem classes in several experiments, which we curated in a separate repository for continuous benchmarking.
BibTeX
@misc{besancon2025improved,
  author = {Mathieu Besançon and Sébastien Designolle and Jannis Halbey and Deborah Hendrych and Dominik Kuzinowicz and Sebastian Pokutta and Hannah Troppens and Daniel Viladrich Herrmannsdoerfer and Elias Wirth},
  title = {{Improved algorithms and novel applications of the FrankWolfe.jl library}},
  year = {2025},
  eprint = {2501.14613},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.14613},
}
Figure