SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.17745 · NeurIPS · 2025

MetaBox-v2: A Unified Benchmark Platform for Meta-Black-Box Optimization

Yining Ma, Chen Wang, Zeyuan Ma, Hongshu Guo, Yue-Jiao Gong, Wenjie Qiu, Sijie Ma, Hongqiao Lian, Jiajun Zhan, Kaixu Chen, Zhiyang Huang, Zechuan Huang, and 3 more

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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; 2 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 1 failure of our instrument; 1 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/2505.17745.json · badge: /api/ran/2505.17745.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
GMC-DRL/MetaBox canonical (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
MetaEvo/MetaBox canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
cal_t0 Ran
ran, honoured the contract we drafted
GMC-DRL/MetaBox/src/tester.py
code served (permissive licence) · get_code("51243b02b43cb569")
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 float, 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 numpy as np
import time

def cal_t0(dim, fes):
    """
    # Introduction
    Estimates the average time (in milliseconds) required to perform a set of basic NumPy vectorized operations.
    '''T0 will be used to calculate the complexity of algorithms.'''
    # Args:
    - dim (int): The dimensionality of the random NumPy arrays to generate.
    - fes (int): The number of function evaluations (iterations of operations) to perform in each timing loop.
    # Returns:
    - float: The average elapsed time in milliseconds over 10 runs for performing the specified operations.
    # Notes:
    - The function performs addition, division, multiplication, square root, logarithm, and exponential operations on randomly generated NumPy arrays.
    - The timing is measured using `time.perf_counter()` for higher precision.
    """
    T0 = 0
    for i in range(10):
        start = time.perf_counter()
        for _ in range(fes):
            x = np.random.rand(dim)
            x + x
            x / (x + 2)
            x * x
            np.sqrt(x)
            np.log(x)
            np.exp(x)
        end = time.perf_counter()
        T0 += (end - start) * 1000
    return T0 / 10


ARGS = {
    "dim": 10,
    "fes": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
cal_t1 Ran
ran, honoured the contract we drafted
GMC-DRL/MetaBox/src/tester.py
code served (permissive licence) · get_code("36d76d20ab7a9762")
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 float, 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 numpy as np
import time

class SimpleProblem:
    """A minimal problem object with an eval method."""
    def eval(self, x):
        """
        Evaluate the objective function.
        Args:
            x: array of shape (fes, dim) containing solutions
        Returns:
            array of fitness values
        """
        # Simple sphere function: sum of squares
        return np.sum(x ** 2, axis=1)

# Create a minimal problem instance
problem = SimpleProblem()

# Set parameters
dim = 4
fes = 2

ARGS = {
    "problem": problem,
    "dim": dim,
    "fes": fes,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
data_wrapper_cost Ran
ran on a synthesized input
GMC-DRL/MetaBox/src/logger.py
code served (permissive licence) · get_code("f1930632d23bcc09")
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 ndarray, ndim 2, dtype family float, shape (2, 4) 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 numpy as np

# The function takes 'data' and converts it to a numpy array,
# then indexes it with [:, :, -1] to get the last element along the third dimension.
# This means 'data' should be array-like with at least 3 dimensions.

# Create a 3D array with shape (batch_size=2, seq_len=4, features=3)
# The function will return shape (2, 4) by taking the last feature
data = np.random.randn(2, 4, 3)

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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_config Ran
ran on a synthesized input
GMC-DRL/MetaBox/src/config.py
code served (permissive licence) · get_code("2d7f6913346d4407")
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 Namespace. 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 argparse
import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'args': None  # Will use default values from parser
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
init_config Ran
ran on a synthesized input
GMC-DRL/MetaBox/src/config.py
code served (permissive licence) · get_code("4bce2c6fb57b5789")
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 Config. 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 time

class Config:
    def __init__(self):
        self.n_logpoint = None
        self.test_problem = None
        self.train_problem = None
        self.test_difficulty = None
        self.train_difficulty = None
        self.end_mode = None
        self.max_learning_step = None
        self.dim = None
        self.maxFEs = None
        self.run_time = None
        self.train_name = None
        self.test_log_dir = None
        self.rollout_log_dir = None
        self.mgd_test_log_dir = None
        self.mte_test_log_dir = None
        self.log_dir = None
        self.save_interval = None
        self.n_checkpoint = None
        self.max_epoch = None
        self.log_interval = None

config = Config()
config.train_problem = "bbob_30D"
config.train_difficulty = "easy"
config.test_problem = None
config.test_difficulty = None
config.end_mode = "epoch"
config.max_learning_step = 100000.0
config.max_epoch = 1000
config.n_checkpoint = 10
config.log_dir = "/tmp/logs/"

ARGS = {
    "config": config
}
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 Config — a Config output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Config 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
linkcode_resolve Ran
ran; our contract draft was wrong, not the code
MetaEvo/MetaBox/docs/source/conf.py
code served (permissive licence) · get_code("daf038787b61bb0c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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.

ARGS = {
    'domain': 'py',
    'info': {
        'module': 'metabox.core.agent',
        'fullname': 'Agent.train'
    }
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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
record_data Ran
ran on a synthesized input
GMC-DRL/MetaBox/src/tester.py
code served (permissive licence) · get_code("1b351a84d5397dd3")
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, 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
from collections import defaultdict

torch.manual_seed(0)

class MockProblem:
    def __init__(self, name):
        self.name = name
    
    def __str__(self):
        return self.name

class MockTestSet:
    def __init__(self):
        self.data = [
            MockProblem("problem_1"),
            MockProblem("problem_2"),
        ]

class MockConfig:
    def __init__(self):
        self.full_meta_data = True

# Create test data with metadata
data = [
    {
        'problem_name': 'problem_1',
        'agent_name': 'agent-checkpoint_0',
        'T2': 5,
        'reward': 10.5,
        'success': True,
        'metadata': {
            'steps': 42,
            'exploration_rate': 0.1,
        }
    },
    {
        'problem_name': 'problem_2',
        'agent_name': 'agent-checkpoint_1',
        'T2': 3,
        'reward': 8.2,
        'success': False,
        'metadata': {
            'steps': 25,
            'exploration_rate': 0.05,
        }
    },
]

test_set = MockTestSet()

agent_for_rollout = 'agent'

checkpoints = ['checkpoint_0', 'checkpoint_1']

# Initialize results with proper nested structure
results = {
    'config_info': {'initialized': True}
}

# Initialize meta_results with nested defaultdicts
meta_results = defaultdict(lambda: defaultdict(list))
for problem in test_set.data:
    problem_name = problem.__str__()
    meta_results[problem_name] = defaultdict(list)
    for agent_id in checkpoints:
        agent_name = agent_for_rollout + f'-{agent_id}'
        meta_results[problem_name][agent_name] = []

config = MockConfig()

ARGS = {
    'data': data,
    'test_set': test_set,
    'agent_for_rollout': agent_for_rollout,
    'checkpoints': checkpoints,
    'results': results,
    'meta_results': meta_results,
    'config': config,
}
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, ndim 1, dtype family float — a tuple 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
to_label Ran
ran on a synthesized input
GMC-DRL/MetaBox/src/logger.py
code served (permissive licence) · get_code("e2b95e15487396d1")
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 torch

torch.manual_seed(0)

# The function to_label takes a single parameter: agent_name (str)
# It performs string operations on this parameter:
# - Checks if it equals 'L2L_Agent'
# - Checks if it ends with '_Agent' or '_agent'
# - Returns a modified or original string

ARGS = {
    "agent_name": "MyCustom_Agent"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
Config Not yet run
unverified (harvested, no recorded run)
GMC-DRL/MetaBox/src/config.py
code served (permissive licence) · get_code("9f290edd06105751")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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.

FunctionAlso present inEarliest-datedOthers named
cal_t0 1 other paper
1 dated earlier
2503.18060 (2025-03)
Surrogate Learning in Meta-Black-Box Optimization: A Preliminary Study
cal_t1 1 other paper
1 dated earlier
2503.18060 (2025-03)
Surrogate Learning in Meta-Black-Box Optimization: A Preliminary Study
linkcode_resolve 1 other paper
1 dated earlier
2310.08252 (2023-10)
MetaBox: A Benchmark Platform for Meta-Black-Box Optimization with Reinforcement Learning

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

Meta-Black-Box Optimization (MetaBBO) streamlines the automation of optimization algorithm design through meta-learning. It typically employs a bi-level structure: the meta-level policy undergoes meta-training to reduce the manual effort required in developing algorithms for low-level optimization tasks. The original MetaBox (2023) provided the first open-source framework for reinforcement learning-based single-objective MetaBBO. However, its relatively narrow scope no longer keep pace with the swift advancement in this field. In this paper, we introduce MetaBox-v2 (https://github.com/MetaEvo/MetaBox) as a milestone upgrade with four novel features: 1) a unified architecture supporting RL, evolutionary, and gradient-based approaches, by which we reproduce 23 up-to-date baselines; 2) efficient parallelization schemes, which reduce the training/testing time by 10-40x; 3) a comprehensive benchmark suite of 18 synthetic/realistic tasks (1900+ instances) spanning single-objective, multi-objective, multi-model, and multi-task optimization scenarios; 4) plentiful and extensible interfaces for custom analysis/visualization and integrating to external optimization tools/benchmarks. To show the utility of MetaBox-v2, we carry out a systematic case study that evaluates the built-in baselines in terms of the optimization performance, generalization ability and learning efficiency. Valuable insights are concluded from thorough and detailed analysis for practitioners and those new to the field.

For agents

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

get_harvested_code_for_paper("2505.17745")
get_code_for_paper("2505.17745")
have("2505.17745")

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

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

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

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

Connect an agent — have() is free.