SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.06940 · ICLR · 2023

PASHA: Efficient HPO and NAS with Progressive Resource Allocation

Martin Wistuba, Ondrej Bohdal, Cédric Archambeau, Giovanni Zappella, Lukas Balles, Beyza Ermis

arXiv · PDF · Open in the Atlas

Code that ran

3 of 8 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 1 has no contract verdict; 2 failures of our instrument; 5 no recorded run), measured 2026-11-23; 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/2207.06940.json · badge: /api/ran/2207.06940.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
ondrejbohdal/pasha canonical (classifier label)
classifier basis: classifier_2025
3 ran · 5 no recorded run
FunctionStatusWhere it lives
RungSystem Ran
ran on a synthesized input
ondrejbohdal/pasha/syne_tune/optimizer/schedulers/hyperband_pasha.py
code served (permissive licence) · get_code("5a8f9bbc368d3c57")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned int, ndim 0, dtype family int; 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

# INIT_ARGS for RungSystem.__init__
INIT_ARGS = {
    'rung_levels': [1, 3, 9, 27],
    'promote_quantiles': [0.8, 0.6, 0.4, 0.2],
    'metric': 'accuracy',
    'mode': 'max',
    'resource_attr': 'epoch'
}

# The class has abstract methods (on_task_schedule, on_task_report) that raise NotImplementedError
# We need to call a concrete method that actually works
# Looking at the available methods: get_first_milestone, get_milestones, snapshot_rungs are concrete

# Let's call get_first_milestone which is a concrete method
METHOD = 'get_first_milestone'

ARGS = {
    'skip_rungs': 1
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
quantile_cutoff Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ondrejbohdal/pasha/syne_tune/optimizer/schedulers/hyperband_pasha.py
code served (permissive licence) · get_code("00e4275e609885c6")
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) and returned float64, 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 numpy as np

# Construct arguments for quantile_cutoff function
values = np.array([1.2, 3.5, 2.1, 4.8, 5.3, 2.9])
prom_quant = 0.25
mode = 'min'

ARGS = {
    'values': values,
    'prom_quant': prom_quant,
    'mode': mode
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
sample_from Ran
ran; our contract draft was wrong, not the code
ondrejbohdal/pasha/syne_tune/config_space.py
code served (permissive licence) · get_code("825d52030c3b8b14")
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) and returned Function. 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 numpy as np
from typing import Dict, Any

# Define the Domain class and related classes as they appear in the function signature
class Domain:
    """Base class to specify a type and valid range to sample parameters from."""
    sampler = None
    default_sampler_cls = None

    @property
    def value_type(self):
        raise NotImplementedError

    def cast(self, value):
        """Cast value to domain type"""
        return self.value_type(value)

    def set_sampler(self, sampler, allow_override=False):
        if self.sampler and (not allow_override):
            raise ValueError('You can only choose one sampler for parameter domains.')
        self.sampler = sampler

    def get_sampler(self):
        sampler = self.sampler
        if not sampler:
            sampler = self.default_sampler_cls()
        return sampler

    def sample(self, spec=None, size=1, random_state=None):
        sampler = self.get_sampler()
        return sampler.sample(self, spec=spec, size=size, random_state=random_state)

    def is_grid(self):
        return isinstance(self.sampler, Grid)

    def is_function(self):
        return False

    def is_valid(self, value):
        raise NotImplementedError

    @property
    def domain_str(self):
        return '(unknown)'

    def __len__(self):
        raise NotImplementedError

    def match_string(self, value):
        raise NotImplementedError

    def __eq__(self, other):
        if self.sampler is None:
            return other.sampler is None
        else:
            return self.sampler == other.sampler


class Sampler:
    def sample(self, domain, spec=None, size=1, random_state=None):
        raise NotImplementedError

    def __eq__(self, other):
        raise NotImplementedError


class BaseSampler(Sampler):
    def __str__(self):
        return 'Base'


class Grid(Sampler):
    """Dummy sampler used for grid search"""
    def sample(self, domain, spec=None, size=1, random_state=None):
        raise RuntimeError('Do not call `sample()` on grid.')

    def __eq__(self, other):
        return isinstance(other, Grid)


def _sanitize_sample_result(items, domain):
    if len(items) > 1:
        return [domain.cast(x) for x in items]
    else:
        return domain.cast(items[0])


class Function(Domain):
    class _CallSampler(BaseSampler):
        def sample(self, domain, spec=None, size=1, random_state=None):
            if random_state is not None:
                raise NotImplementedError()
            if domain.pass_spec:
                items = [domain.func(spec[i] if isinstance(spec, list) else spec) for i in range(size)]
            else:
                items = [domain.func() for i in range(size)]
            return _sanitize_sample_result(items, domain)

    default_sampler_cls = _CallSampler

    def __init__(self, func):
        from inspect import signature
        sig = signature(func)
        pass_spec = True
        try:
            sig.bind({})
        except TypeError:
            pass_spec = False
        if not pass_spec:
            try:
                sig.bind()
            except TypeError as exc:
                raise ValueError('The function passed to a `Function` parameter must be callable with either 0 or 1 parameters.') from exc
        self.pass_spec = pass_spec
        self.func = func

    def is_function(self):
        return True


# Create test instances for the Function class
def simple_func():
    return 42

def func_with_spec(spec):
    return spec.get('value', 10)

# Create Function domain instances
func_domain_no_args = Function(simple_func)
func_domain_with_spec = Function(func_with_spec)

# Create ARGS dictionary with all parameters for the Function class
ARGS = {
    'func': simple_func,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Function — a Function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Function 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
PASHARungSystem Not yet run
unverified (harvested, no recorded run)
ondrejbohdal/pasha/syne_tune/optimizer/schedulers/hyperband_pasha.py
code served (permissive licence) · get_code("3935bbebc91b89c0")
How it ran

no invocation recorded.

PromotionRungSystem Not yet run
unverified (harvested, no recorded run)
ondrejbohdal/pasha/syne_tune/optimizer/schedulers/hyperband_pasha.py
code served (permissive licence) · get_code("6af06857393d0a84")
How it ran

no invocation recorded.

RungEntry Not yet run
unverified (harvested, no recorded run)
ondrejbohdal/pasha/syne_tune/optimizer/schedulers/hyperband_pasha.py
code served (permissive licence) · get_code("77e592568b6dfa03")
How it ran

no invocation recorded.

quniform Not yet run
unverified (harvested, no recorded run)
ondrejbohdal/pasha/syne_tune/config_space.py
code served (permissive licence) · get_code("336ab457a51d227c")
How it ran

no invocation recorded.

uniform Not yet run
unverified (harvested, no recorded run)
ondrejbohdal/pasha/syne_tune/config_space.py
code served (permissive licence) · get_code("5ae9da9325fddc0b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 8 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-23.

Repositories linked to this paper

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

Abstract

Hyperparameter optimization (HPO) and neural architecture search (NAS) are methods of choice to obtain the best-in-class machine learning models, but in practice they can be costly to run. When models are trained on large datasets, tuning them with HPO or NAS rapidly becomes prohibitively expensive for practitioners, even when efficient multi-fidelity methods are employed. We propose an approach to tackle the challenge of tuning machine learning models trained on large datasets with limited computational resources. Our approach, named PASHA, extends ASHA and is able to dynamically allocate maximum resources for the tuning procedure depending on the need. The experimental comparison shows that PASHA identifies well-performing hyperparameter configurations and architectures while consuming significantly fewer computational resources than ASHA.

For agents

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

get_harvested_code_for_paper("2207.06940")
get_code_for_paper("2207.06940")
have("2207.06940")

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

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

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

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

Connect an agent — have() is free.