NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Benchopt: Reproducible, efficient and collaborative optimization benchmarks

Thomas Moreau, Mathurin Massias, Alexandre Gramfort, Pierre Ablin, Pierre-Antoine Bannier, Benjamin Charlier, Mathieu Dagréou, Tom Dupré la Tour, Ghislain Durif, Cássio F. Dantas, Quentin Klopfenstein, Johan Larsson, En Lai, Tanguy Lefort, Benoît Malézieux, Badr Moufad, Binh T. Nguyen, Alain Rakotomamonjy, Zaccharie Ramzi, Joseph Salmon, Samuel Vaiter

Abstract

Benchopt is an open-source, collaborative framework designed to automate and standardize optimization benchmarks in machine learning. By providing a modular structure that works across multiple programming languages and hardware, it transforms static performance comparisons into "living" benchmarks that the community can easily extend and reproduce. This paper introduces the framework's architecture and demonstrates its utility across various canonical machine learning tasks.

Introduction

In machine learning research, numerical validation is the cornerstone of proving an algorithm's efficacy. However, the field currently faces a "reproducibility crisis." Researchers often struggle with a vast array of methods to compare against, leading to partial validations, inconsistent best practices, and significant time spent on re-implementation.

Furthermore, traditional benchmarks are "static"—once a paper is published, its results are frozen. As hardware evolves (e.g., new GPU architectures) or better solvers emerge, these benchmarks quickly become obsolete. There is a lack of a central, transparent mechanism to determine the optimal optimizer for a specific task on given hardware. Benchopt addresses these challenges by providing a framework for "living" benchmarks.

The Benchopt Framework

Benchopt standardizes the benchmarking process through three modular object classes:

  • Objective: Defines the mathematical function to minimize (e.g., Lasso) and the metrics to track, such as objective value or gradient norm.
  • Datasets: Manages data loading and preprocessing steps.
  • Solvers: Implements the actual optimization algorithms.
The Benchopt workflow: from modular components to reproducible results.

What distinguishes Benchopt is its collaborative and cross-language design. It supports solvers written in Python, R, Julia, or C++ and can execute them in parallel across CPUs and GPUs. The framework automatically handles caching and result archiving, exporting data into shareable CSVs or interactive HTML visualizations. Its modularity allows researchers to add a new solver by writing a single file, which Benchopt then automatically runs against all existing datasets and objectives in that benchmark.

Experimental Setup

The utility of Benchopt is demonstrated across several canonical machine learning tasks:

  • $ℓ_2$-regularized Logistic Regression: Evaluated using datasets such as ijcnn1, madelon, news20.binary, and the large-scale criteo dataset.
  • Lasso: Tested on MEG, rcv1.binary, news20.binary, and MillionSong.
  • ResNet18 Image Classification: Conducted on CIFAR-10, SVHN, and MNIST.
  • Additional Benchmarks: The framework also supports Ridge regression, MCP regression, and standard zero-order test functions like Rosenbrock and Ackley.

Key Insights and Results

Benchopt's rigorous benchmarking reveals several critical insights into optimization performance:

The Impact of Dataset Properties: The "best" algorithm is highly dependent on dataset characteristics like sparsity and size. For instance, coordinate descent is particularly effective for sparse Lasso problems, but its advantage diminishes on other data types.

Precision vs. Speed: GPU-accelerated solvers (e.g., cuML, snapML) offer significant speedups but often utilize 32-bit float precision. This can result in a performance "floor" that 64-bit CPU solvers can surpass when high precision is required.

Framework Discrepancies: Comparing deep learning frameworks fairly is notoriously difficult. Benchopt highlights how PyTorch and TensorFlow handle standard operations like weight decay and batch normalization differently. Without rigorous alignment, performance gains might be incorrectly attributed to an optimizer rather than framework defaults.

Benchmark results for Logistic Regression across various datasets and preprocessing steps.

In Logistic Regression benchmarks, GPU solvers generally outperform CPU counterparts, but rankings shift significantly based on data scaling. For the madelon dataset, scaling improved the condition number and accelerated convergence by an order of magnitude. In Lasso tasks, coordinate descent methods with "working set" strategies (like celer or blitz) consistently outperformed standard gradient-based methods.

Conclusion and Future Work

Benchopt aims to foster a culture where "Benchopt-verified" results become a standard requirement for optimization research. While currently focused on convex and standard deep learning problems, future work will extend the framework to more complex, higher-dimensional tasks like 2D Total Variation for image processing and more diverse deep learning architectures. By hosting these benchmarks on GitHub, they become community assets that evolve alongside the state-of-the-art.

Summary updated

BibTeX
@inproceedings{moreau2022benchopt,
  author = {Thomas Moreau and Mathurin Massias and Alexandre Gramfort and Pierre Ablin and Pierre-Antoine Bannier and Benjamin Charlier and Mathieu Dagréou and Tom Dupré la Tour and Ghislain Durif and Cássio F. Dantas and Quentin Klopfenstein and Johan Larsson and En Lai and Tanguy Lefort and Benoît Malézieux and Badr Moufad and Binh T. Nguyen and Alain Rakotomamonjy and Zaccharie Ramzi and Joseph Salmon and Samuel Vaiter},
  title = {{Benchopt: Reproducible, efficient and collaborative optimization benchmarks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure