Skip to content

Benchmark Experiments and Submissions

Executive Summary

This document specifies benchmark experiments and benchmark submissions (a registered use of an experiment on a benchmark instance for a specific benchmark target).

To register an experiment, see How to add a benchmark experiment. To bind an experiment to a problem, see How to bind an experiment to a problem. To add a submission, see How to add a benchmark submission.

Benchmark experiment registration and benchmark submissions live under the top-level experiments/ directory.

Key Design Decisions:

  1. experiments/<name>/experiment_package.yaml registers one or more benchmark experiment packages (for example, different pinned revisions of the same package) and lists the experiment identifiers, and optionally versions, each exposes
  2. experiments/<name>/submissions/<submission>/space.yaml is the per-submission ADO discoveryspace definition
  3. model.yaml remains focused on model metadata — it carries no benchmark references
  4. nexus.yaml carries only Nexus package identity (name) — benchmark package registrations have been removed from it
  5. Experiment package requirement_specifier values must be a PyPI package name or a GitHub URL — local paths are not allowed
  6. Every experiment package must follow the standardized ADO custom experiment packaging protocol
  7. The benchmark target is the experiment property that represents the model, algorithm, or experiment being evaluated
  8. Markdown documentation is updated before any schema, template, or validation implementation work

1. Requirements Analysis and Mapping

1.1 Benchmark System Components

Based on the benchmark requirements, the system has six core concepts. This document registers experiments and submissions. Logical benchmarks, instances, and results are specified in Logical Benchmarks and Instances.

  • Logical benchmark

  • Benchmark instance

    • a concrete realisation of a logical benchmark
    • registered under benchmarks/<id>/instances/; a submission's space.yaml records the instance property values used for that submission
  • Benchmark target

    • the model, algorithm, or experiment being evaluated
    • in this design, the experiment property that identifies which target is under evaluation
  • Benchmark experiment

    • a script, harness, or workflow that executes a benchmark target on a benchmark instance and collects measurements
    • in this design, experiments are declared in experiments/<name>/experiment_package.yaml
    • All benchmark experiments follow the ADO custom experiment template
  • Benchmark submission

    • one registered use of a benchmark experiment on a benchmark instance for a specific benchmark target
    • in this design, each benchmark submission is one folder under experiments/<name>/submissions/, containing a space.yaml file with the full ADO discoveryspace definition
    • the submission is not the experiment definition and is not an execution
  • Benchmark result

    • the measurements produced by executing a submission
    • used to compare benchmark targets on a given benchmark instance

1.2 Responsibilities by File and Directory

Location Responsibility
experiments/<name>/experiment_package.yaml Declares the experiment package (PyPI or GitHub) and the experiment identifiers it exposes
experiments/<name>/bindings/ Optional benchmark binding YAML files that map experiment outputs to logical benchmark metrics
experiments/<name>/submissions/<submission>/space.yaml Full ADO discoveryspace definition for one benchmark submission
packages/<pkg>/nexus.yaml Declares Nexus package identity (name) only — no benchmark package references
packages/<pkg>/models/<model>/model.yaml Declares model metadata — no benchmark references

1.3 Requirements to Design Mapping

Requirement Design interpretation
REQ 1.2 Benchmark experiments are distributed as Python packages published on PyPI or GitHub — local packages are not supported
REQ 2.3 A benchmark experiment is registered in experiments/<name>/experiment_package.yaml. A binding under experiments/<name>/bindings/ declares which logical benchmarks the experiment can address as well as the experiment target for that specific benchmark.
REQ 2.4 A benchmark submission is registered as experiments/<name>/submissions/<submission>/space.yaml
REQ 2.5 Experiments and submissions are listed by scanning experiments/ (see Section 5).
REQ 3.1 A benchmark submission is specified through the discoveryspace in experiments/<name>/submissions/<submission>/
REQ 3.2 A new experiment is added as a published Python package (PyPI or GitHub) and declared in experiment_package.yaml
REQ 3.3 An experiment identifier declared in experiment_package.yaml can be referenced by many submissions and across Nexus packages

2. Folder Structure Design

2.1 Complete Experiments Structure

experiments/
└── <experiment-name>/
    ├── experiment_package.yaml       # Required: experiment package specifier + experiment IDs
    ├── bindings/                     # Optional: benchmark binding YAML files
    │   └── <binding-name>.yaml
    └── submissions/                  # Optional: benchmark submissions
        ├── <submission-a>/
        │   └── space.yaml            # Required per submission
        └── <submission-b>/
            └── space.yaml

2.2 Ownership Model

The canonical benchmark metadata is split across two locations within each experiment folder:

  • experiments/<name>/experiment_package.yaml

    • registers the package(s) that provide benchmark experiments
    • records a requirement_specifier (PyPI name or GitHub URL) per package, as a list of one or more packages
    • records the experiments exposed by each package, optionally with the experiment version
  • experiments/<name>/submissions/

    • records which benchmark submissions belong to this experiment
    • stores one folder per benchmark submission
    • carries a space.yaml ADO discoveryspace definition for each submission
  • experiments/<name>/bindings/

    • optional; contains benchmark binding YAML files mapping experiment outputs to logical benchmark metrics

2.3 Experiment Package Specifiers

An experiment package specifier uses:

  • a requirement_specifier to identify how the experiment package should be resolved
  • an experiments list to declare which experiment identifiers from that package are made available

The requirement_specifier must be one of:

  1. a Python package name published on PyPI (optionally with a version constraint)
  2. a GitHub repository URL (HTTPS or git+ prefixed)

Local paths are explicitly not allowed. The package must be publicly accessible from either PyPI or a GitHub repository.

In all cases, the referenced package must follow the ADO custom experiment format and the standardized benchmark packaging protocol.


3. Schema Design

3.1 Experiment Package Registration in experiment_package.yaml

experiment_package is a list of packages. Each package lists the experiments it exposes as mappings with an experimentIdentifier and an optional experimentVersion.

experiment_package:
    - requirement_specifier: "sorting-benchmarks>=1.0.0" # PyPI package name
      experiments:
          - experimentIdentifier: bubble_sort
          - experimentIdentifier: merge_sort
          - experimentIdentifier: quick_sort

metadata:
    compute-type-bubble_sort: Classical
    compute-type-merge_sort: Classical
    compute-type-quick_sort: Classical

To pin two revisions of a repository that provide different versions of the same experiment, add one package entry per version:

experiment_package:
    - requirement_specifier: git+ssh://git@github.com/example-org/example-benchmarks.git@21e38a9
      experiments:
          - experimentIdentifier: sort_explore
            experimentVersion: 1.2.3
    - requirement_specifier: git+ssh://git@github.com/example-org/example-benchmarks.git@5489863
      experiments:
          - experimentIdentifier: sort_explore
            experimentVersion: 1.3.0

GitHub URL example:

experiment_package:
    - requirement_specifier: "https://github.com/example-org/example-benchmarks"
      experiments:
          - experimentIdentifier: leaderboard-baseline

Fields:

  • experiment_package — required; non-empty list of package objects. A single package object, as used in earlier versions of this format, is not accepted
  • experiment_package[].requirement_specifier — required; PyPI package name or GitHub URL (local paths are rejected by schema validation)
  • experiment_package[].experiments — required; non-empty list of experiments exposed by the package. Each item is a mapping with (plain identifier strings, as used in earlier versions of this format, are not accepted):

    • experimentIdentifier — required; the experiment identifier
    • experimentVersion — optional; strict SemVer (MAJOR.MINOR.PATCH) version of the experiment provided by that package. These names match ado's ExperimentReference

    An experiment identifier may appear only once within the same requirement_specifier, since a package exposes a single version of each experiment. To declare several versions of the same experiment, add one package entry per version, each with a different requirement_specifier, as in the example above.

    A requirement_specifier is needed for each version of the experiment for which data will be available, so that the right package can be installed to run or validate it. Bindings match runs by experiment version (from the binding's experimentVersion up to the next higher binding, see Experiment version matching), but a version can only have data if it can be installed and run.

    The requirement_specifier of each entry is assumed to be static: it is expected to always resolve to the same package contents, so that the right package, and therefore the right experiment version, is installed for the declared experimentVersion. Nexus does not verify this and accepts any specifier, whether an exact version (name==1.2.3), a commit (...repo.git@21e38a9), a tag (...repo.git@v1.2.3), a branch (...repo.git@main) or a version range (name>=1.0). It is the author's responsibility to make sure the specifier does not change; if a branch or tag is later moved, the installed package may no longer provide the declared experimentVersion. When declaring several versions of the same experiment, pin each entry to an exact package version or, preferably, a commit hash, since tags and branches can be moved. - metadata — optional; flat string-to-string dictionary for arbitrary key-value annotations (keys and values up to 4,096 characters).

3.2 Benchmark Submissions in submissions/

An experiment folder may define a submissions/ directory. That folder contains one subfolder per benchmark submission. Each benchmark submission folder must contain a file named space.yaml.

Example structure:

submissions/
└── flood-baseline-test/
    └── space.yaml

Example space.yaml:

entitySpace:
    - experimentIdentifier: dataset
      propertyDomain:
          values: ["sen1floods11"]
    - experimentIdentifier: split
      propertyDomain:
          values: ["test"]

experiments:
    - actuatorIdentifier: custom_experiments
      experimentIdentifier: local-segmentation-eval

Fields and expectations:

  • submissions/ is optional
  • each subfolder name identifies one benchmark submission
  • each benchmark submission subfolder must contain space.yaml
  • each space.yaml must define a complete ADO discoveryspace for the benchmark submission
  • the experiment referenced in space.yaml must be one of the experiment identifiers declared in the sibling experiment_package.yaml

For reference on the expected discoveryspace structure, see Using your custom experiment in a discoveryspace.


4. Validation Considerations

4.1 Experiment-Level Validation

Validation checks that:

  1. experiment_package.yaml is present in the experiment folder
  2. every requirement_specifier is a valid PyPI name or GitHub URL (local paths are rejected)
  3. experiment_package is a non-empty list when a list is used, and each experiments list is non-empty
  4. an experiment identifier is not listed more than once under the same requirement_specifier
  5. each package entry is installed in its own separate virtual environment, and the experiments it declares are verified to be discoverable there
  6. each submission is validated in the environment of the package entry that declares the experiment (and experimentVersion) its space.yaml references; an exact version match is preferred, then the same major version
  7. extra fields are forbidden (extra="forbid")

4.2 Benchmark Submission Validation

Validation checks that:

  1. every benchmark submission folder under submissions/ contains a space.yaml
  2. each space.yaml contains a valid ADO discoveryspace definition
  3. each space.yaml references experiment identifiers declared in experiment_package.yaml

5. Benchmarks Discovery

5.1 Experiments Discovery

The metadata available in each experiment folder (experiment_package.yaml) can be used to list all experiments available without installing the experiment package into the current environment. This also enables listing experiments distributed via a remote repository that would not be discoverable by just installing the package.

5.2 Submission Discovery

Benchmark submissions can be discovered by scanning the top-level experiments/ directory. Each experiments/<name>/submissions/ folder lists the benchmark submissions for that experiment. This supports listing all benchmark submissions without requiring a separate index.

5.3 Fetching Details About an Experiment or a Submission

Fetching details on experiments and submissions — such as expected input, metrics exported, etc. — can be obtained with a combination of the nexus CLI for listing and the ado CLI for full experiment details after installing the relevant experiment package.

5.4 Leaderboard and Discovery Filtering by Compute Type

Leaderboards and experiment discovery interfaces can use the optional metadata in experiment_package.yaml to filter and categorize experiments. For example, a user might want to search for, or filter a leaderboard by, experiments of a specific compute type (e.g. classical algorithms, AI-based approaches, or hybrid quantum workflows).

Using the metadata conventions, a discovery interface or leaderboard can parse labels like the following to automatically tag and filter results:

metadata:
    compute-type-bubble_sort: Classical
    compute-type-neural_sort: AI
    compute-type-merge_sort: AI-Classical

6. Compute Type Metadata

The optional metadata block of experiment_package.yaml can label the compute type of each experiment the package lists. Nexus does not interpret these keys directly. They are conventions that tools reading Nexus manifests can rely on.

Key Description
compute-type-<experiment> Compute type of <experiment>, which is one of the identifiers listed under experiment_package.experiments in the same file.

The value is a free-form string. Suggested values are Quantum, AI, and Classical. For a hybrid, join two of them with a hyphen, for example Quantum-Classical, Quantum-AI, or AI-Classical.