Skip to main content
QUICK REVIEW

[Paper Review] Benchopt: Reproducible, efficient and collaborative optimization benchmarks

Thomas Moreau, Mathurin Massias|arXiv (Cornell University)|Jun 27, 2022
Advanced Neural Network ApplicationsComputer Science9 citations
TL;DR

Benchopt is a collaborative, reproducible, and language-agnostic framework for benchmarking optimization algorithms in machine learning. It enables automated, version-controlled, and extensible comparisons across solvers, datasets, and objectives—demonstrated on logistic regression, Lasso, and ResNet18 training—revealing nuanced performance differences that highlight the importance of implementation details in practice.

ABSTRACT

Numerical validation is at the core of machine learning research as it allows to assess the actual impact of new methods, and to confirm the agreement between theory and practice. Yet, the rapid development of the field poses several challenges: researchers are confronted with a profusion of methods to compare, limited transparency and consensus on best practices, as well as tedious re-implementation work. As a result, validation is often very partial, which can lead to wrong conclusions that slow down the progress of research. We propose Benchopt, a collaborative framework to automate, reproduce and publish optimization benchmarks in machine learning across programming languages and hardware architectures. Benchopt simplifies benchmarking for the community by providing an off-the-shelf tool for running, sharing and extending experiments. To demonstrate its broad usability, we showcase benchmarks on three standard learning tasks: $\ell_2$-regularized logistic regression, Lasso, and ResNet18 training for image classification. These benchmarks highlight key practical findings that give a more nuanced view of the state-of-the-art for these problems, showing that for practical evaluation, the devil is in the details. We hope that Benchopt will foster collaborative work in the community hence improving the reproducibility of research findings.

Motivation & Objective

  • To address the reproducibility crisis in optimization for machine learning by enabling standardized, collaborative, and version-controlled benchmarking.
  • To reduce the burden of re-implementing baseline solvers by providing a modular, extensible framework that supports multiple programming languages and hardware.
  • To foster community-driven maintenance of up-to-date, living benchmarks that evolve with new algorithms and hardware.
  • To provide a unified infrastructure for sharing, visualizing, and comparing optimization results across diverse problems and settings.
  • To demonstrate the framework's utility through benchmarks on three canonical ML problems: logistic regression, Lasso, and ResNet18 training.

Proposed method

  • Benchopt uses a modular, plugin-based architecture where each solver, dataset, and objective is defined as a separate component, enabling easy extension.
  • It supports execution in Python, R, Julia, and C/C++ via binaries, ensuring broad language interoperability.
  • The framework automates benchmarking with parallel execution, caching, and automatic result archiving in CSV format for reproducibility.
  • Results are visualized via interactive HTML or PDF plots, and benchmarks are version-controlled using Git for traceability.
  • The system integrates with existing tools like PyBenchFCN for zero-order optimization and supports both convex and non-convex problems.
  • It monitors convergence via optimality conditions, such as the distance to the Fréchet subdifferential, to assess solution quality in non-smooth or non-convex settings.

Experimental results

Research questions

  • RQ1How can optimization benchmarks be made reproducible, version-controlled, and collaboratively maintained across different programming languages and hardware platforms?
  • RQ2What are the practical performance differences between state-of-the-art solvers when implemented with consistent hyperparameters and preprocessing?
  • RQ3To what extent do implementation details—such as line search, initialization, or stopping criteria—affect solver performance in real-world ML problems?
  • RQ4Can a unified, modular framework reduce the effort required to compare new optimization algorithms against existing baselines?
  • RQ5How do different solvers perform on non-convex, non-smooth problems like MCP regression, and what convergence metrics best reflect solution quality?

Key findings

  • Benchopt enables fully reproducible and automated benchmarking across multiple languages and hardware, significantly reducing the effort required to compare optimization methods.
  • On $β_{2}$-regularized logistic regression, solver performance varied significantly based on implementation details, even when using the same algorithm.
  • For the Lasso problem, coordinate descent and proximal gradient methods showed different convergence behaviors depending on the condition number of the design matrix.
  • In MCP regression, a non-convex sparsity-inducing problem, solvers converged to different local minima, and the choice of algorithm strongly influenced the final sparsity and objective value.
  • The zero-order optimization benchmark showed that evolution strategies and Bayesian optimization outperformed random search on high-dimensional functions like Ackley and Rastrigin, especially in early iterations.
  • The framework revealed that static benchmarks quickly become outdated, underscoring the need for living, community-maintained benchmarks that evolve with new algorithms and hardware.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.