SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.13424 · NeurIPS · 2022

Benchopt: Reproducible, efficient and collaborative optimization benchmarks

Alexandre Gramfort, Pierre Ablin, Thomas Moreau, Zaccharie Ramzi, Mathieu Dagréou, Samuel Vaiter, Alain Rakotomamonjy, Mathurin Massias, Pierre-Antoine Bannier, Benjamin Charlier, Tom Dupré La Tour, Ghislain Durif, and 9 more

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2206.13424.json · badge: /api/ran/2206.13424.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
benchopt/benchopt canonical (classifier label)
classifier basis not recorded on the link
6 ran · 4 no recorded run
FunctionStatusWhere it lives
buffer_iterator Ran
ran on a synthesized input
benchopt/benchopt/benchopt/_generate_runs.py
code served (permissive licence) · get_code("5e54113b03b3d98a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create a simple iterator that yields some values
def sample_iterator():
    yield 1
    yield 2
    yield 3
    yield "test"
    yield torch.tensor([1, 2, 3])

ARGS = {
    "it": sample_iterator()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_file_hash Ran
ran on a synthesized input
benchopt/benchopt/benchopt/utils/dynamic_modules.py
code served (permissive licence) · get_code("91a5c920fcf2ab00")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with some content to hash
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("test content for hashing")
temp_file.close()

ARGS = {
    'filename': temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_setting Ran
ran on a synthesized input
benchopt/benchopt/benchopt/config.py
code served (permissive licence) · get_code("25ccf1c080455614")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import sys
import tempfile
from pathlib import Path
import yaml

# Create temporary config file for testing
temp_dir = tempfile.mkdtemp()
config_file_path = Path(temp_dir) / 'benchopt.yml'

# Write a valid config file
config_content = {
    'debug': False,
    'raise_install_error': False,
    'github_token': 'test_token',
    'conda_cmd': 'conda',
    'default_timeout': 100,
}

with open(config_file_path, 'w') as f:
    yaml.dump(config_content, f)

# Prepare arguments for get_setting
ARGS = {
    'name': 'debug',
    'config_file': config_file_path,
    'benchmark_name': None,
    'default_config': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_solver_kwargs Ran
ran on a synthesized input
benchopt/benchopt/benchopt/_generate_runs.py
code served (permissive licence) · get_code("550d9e693411887a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned generator. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import copy
import inspect
from pathlib import Path
from unittest.mock import Mock, MagicMock


class RunContext:
    """Stand-in for RunContext."""
    def __init__(self):
        self.pdb = False
        self.run_output_base = None
        
    def set_run_context(self, objective=None, dataset=None, solver=None, repetition=0, base_seed=None):
        ctx = copy.copy(self)
        ctx.objective = objective
        ctx.dataset = dataset
        ctx.solver = solver
        ctx.repetition = repetition
        ctx.base_seed = base_seed
        return ctx


class BaseDataset:
    """Stand-in for BaseDataset."""
    def __init__(self):
        self._module_filename = Path('dataset.py')
        self._parameters = {'param1': 0.5}
    
    def __str__(self):
        return 'TestDataset'


class BaseObjective:
    """Stand-in for BaseObjective."""
    def __init__(self):
        self.__doc__ = 'Test objective function'
        self._module_filename = Path('objective.py')
        self._parameters = {'param2': 1.0}
        self.cv = None
        self.cv_metadata = {}
    
    def __str__(self):
        return 'TestObjective'
    
    def _set_dataset(self, dataset):
        return False, None


class BaseSolver:
    """Stand-in for BaseSolver."""
    def __init__(self):
        self.__doc__ = 'Test solver\n    with multiple lines'
        self._module_filename = Path('solver.py')
        self._parameters = {'param3': 2.0}
        self._solver_strategy = 'iteration'
    
    def __str__(self):
        return 'TestSolver'
    
    def _inherit_stopping_criterion(self, objective):
        pass


class Benchmark:
    """Stand-in for Benchmark."""
    def __init__(self):
        self.seed = 42


class TerminalOutput:
    """Stand-in for TerminalOutput."""
    def __init__(self):
        self.n_repetitions = 1
    
    def skip(self, reason, objective=False):
        pass


ARGS = {
    'benchmark': Benchmark(),
    'dataset': BaseDataset(),
    'objective': BaseObjective(),
    'solver': BaseSolver(),
    'n_repetitions': 2,
    'max_runs': 10,
    'timeout': 60.0,
    'force': False,
    'collect': False,
    'terminal': TerminalOutput(),
    'run_context': RunContext(),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_value Ran
ran on a synthesized input
benchopt/benchopt/benchopt/config.py
code served (permissive licence) · get_code("76f11a61835fb1c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import warnings

BOOLEAN_STATES = {'1': True, 'yes': True, 'true': True, 'on': True, '0': False, 'no': False, 'false': False, 'off': False}

def parse_value(value, default_value):
    if isinstance(default_value, bool):
        if isinstance(value, str):
            value = value.lower()
            try:
                value = BOOLEAN_STATES[value]
            except KeyError:
                warnings.warn(f'setting {value} could not be parsed as a boolean. Should be one of {list(BOOLEAN_STATES.keys())}')
                value = default_value
        assert isinstance(value, bool)
    elif isinstance(default_value, list):
        if isinstance(value, str):
            values = value.split()
            values = [v.strip() for value in values for v in value.split(',') if v != '']
            value = values
        assert isinstance(value, list), value
    elif isinstance(default_value, int):
        value = int(value)
    elif isinstance(default_value, float):
        value = float(value)
    return value


ARGS = {
    'value': 'true',
    'default_value': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (no_result)
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
propose_from_list Ran
ran on a synthesized input
benchopt/benchopt/benchopt/cli/completion.py
code served (permissive licence) · get_code("04cef2687413f0eb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

def propose_from_list(candidates, incomplete):
    candidates = [str(c) for c in candidates]
    proposals = [c for c in candidates if c.startswith(incomplete)]
    if len(proposals) > 0:
        return proposals
    return [c for c in candidates if incomplete in c]

ARGS = {
    "candidates": ["apple", "application", "apply", "banana", "band"],
    "incomplete": "app"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_data_path Not yet run
unverified (harvested, no recorded run)
benchopt/benchopt/benchopt/config.py
code served (permissive licence) · get_code("9484e5cb8dc4812e")
How it ran

no invocation recorded.

run_benchmark Not yet run
unverified (harvested, no recorded run)
benchopt/benchopt/benchopt/runner.py
code served (permissive licence) · get_code("7143d36d09390525")
How it ran

no invocation recorded.

run_one_resolution Not yet run
unverified (harvested, no recorded run)
benchopt/benchopt/benchopt/runner.py
code served (permissive licence) · get_code("7552746dabc0de85")
How it ran

no invocation recorded.

run_one_to_cvg Not yet run
unverified (harvested, no recorded run)
benchopt/benchopt/benchopt/runner.py
code served (permissive licence) · get_code("d601cf4f35f083ea")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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: 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2206.13424")
get_code_for_paper("2206.13424")
have("2206.13424")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2206.13424.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2206.13424.svg)](https://syntology.ai/paper/2206.13424)

Connect an agent — have() is free.