The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Reproduction materials: Table 2 of arXiv:2502.01226v4 (HP/PE-GP-TS vs PE-GP-UCB)
Status: implementation prepared, experiment NOT run (code-only mode). No results are claimed.
Target claim — Table 2, Appendix F, p.28 of Adaptive Prior Selection in Gaussian Process Bandits with Thompson Sampling (Sandberg & Haghir Chehreghani, NeurIPS 2026):
On all three synthetic GP-bandit setups (T = 500, 500 seeds), both Thompson-sampling prior-selection methods have far lower total regret than PE-GP-UCB.
| Setup | HP-GP-TS | PE-GP-TS | PE-GP-UCB |
|---|---|---|---|
| Kernel | 39.2 ± 1.4 | 62.0 ± 0.6 | 121.6 ± 1.2 |
| Lengthscale | 31.4 ± 1.0 | 61.8 ± 0.5 | 114.2 ± 0.6 |
| Subspace | 88.3 ± 0.9 | 177.1 ± 1.4 | 389.0 ± 1.5 |
(mean total regret at T=500, ± 1 standard error over 500 seeds; lower is better)
Falsification criterion (verbatim from the task): the claim is falsified if on any of the three synthetic setups HP-GP-TS or PE-GP-TS does not have lower mean total regret than PE-GP-UCB by several standard errors.
What is here
bandit_repro.py— self-contained NumPy implementation of HP-GP-TS, PE-GP-TS, PE-GP-UCB and Oracle GP-TS on the paper's three synthetic setups, with a numerical self-test.- This README: the protocol, the deviations list and the run plan.
Implementation sources (no official code exists for HP-GP-TS / PE-GP-TS):
- HP-GP-TS: Algorithm 2, §3.2 (p.4) and the likelihood in §4.2 (p.5) of the paper.
- PE-GP-TS: Algorithm 1, §3.1 (p.4); constants β_t = 2 log(2|𝒳||𝒫|π²t²/3δ), ξ_t = 2σ² log(|𝒫|π²t²/3δ) from Theorem 4.2 (p.5); elimination |Σᵢ ηᵢ| > √(ξ_t|S_{t,p_t}|) + Σᵢ √βᵢ σᵢ,ₚ_t(xᵢ) with the |𝒫_t|>1 guard.
- PE-GP-UCB: Algorithm 1 of Ziomek et al. 2025 (arXiv:2402.01632, AISTATS 2025), cross-checked against the official implementation JuliuszZiomek/PE-GP-UCB (error buffer + β·σ buffer + √(ξ·n) threshold; ξ = 2σ² log(|𝒫|π²t²/6δ)).
- Setups: §5 (p.7) + Appendix E.1/D (p.26): six kernels (all lengthscale 1.0, scaled so k ≤ 1, zero means), eight RBF lengthscales in [1/2, 4], five 16-d subspace priors (4 wrapped sub-dimensions each, RBF ℓ = 8), σ² = 0.25², T = 500, 500 equidistant arms in [0,20] (setups 1–2) / 500 arms uniform on [0,20]¹⁶ (setup 3), true prior p* uniform over 𝒫, f ~ GP(p*), δ = 0.05.
Design
- Paired seeds: within a seed, all algorithms share the same f, p*, arm set and arm coordinates; each algorithm has an independent RNG stream for observation noise and internal sampling (same noise variance as the paper).
- One vectorized engine: exact GP regression with fixed known noise and no hyperparameter refitting; all priors conditioned on the shared dataset each round; incremental Sherman–Morrison updates of (K+σ²I)⁻¹ (algebraically identical to the paper's per-round O(t³|𝒫|) refactorization, ~1000× cheaper).
- Posterior samples via the prior-sample trick f̃ = F + k(A,X)(K+σ²I)⁻¹(y − F(X) − ε̃), with F a fixed per-prior prior draw over the discrete arm set and ε̃ ~ N(0,σ²) fresh per observed point.
- Oracle GP-TS (only the true prior) is run as an internal correctness check against the paper's Oracle GP-TS row: 35.0 / 28.1 / 86.0 (kernel / lengthscale / subspace).
- Everything float64.
Deviations and ambiguities (each with its flag)
| # | Item | Choice in code | Alternative flag | Risk |
|---|---|---|---|---|
| 1 | Periodic kernel formula | As printed in App. D: exp(−½Σᵢsin²(πΔᵢ/ρ)/ℓ) | --periodic-form standard (MacKay exp(−2Σsin²/ℓ²)) |
Low–medium: the printed form (ℓ=1) makes the periodic prior nearly constant (k ≥ e^{−0.5}); the standard form is more expressive. Either way k ≤ 1 holds. |
| 2 | PE-GP-UCB β_t | Theorem 4.1 finite-arm form √(2 log(2 | 𝒳 | π²t²/δ)) |
| 3 | Elimination test | |Σηᵢ| (with absolute value), as in the official Ziomek code | — | Very low: Alg. 1 line 9 as rendered omits the absolute value; the official code uses it. |
| 4 | Who can be eliminated | Only the selected prior p_t, with its own counters (paper Alg. 1) | — | Low: the official code loops over all active priors but appears to use n[best_ix] in every threshold (likely a typo); paper Alg. 1 is unambiguous. |
| 5 | ξ exponents | 6δ for PE-GP-UCB (official code), 3δ for PE-GP-TS (Thm 4.2) | — | Low. |
| 6 | Warm-up rounds | None (n_init = 0), following Alg. 1/2 literally | --n-init 5 (official code uses 5 random rounds) |
Low: affects the first ~5 rounds only. |
| 7 | Subspace arms | Re-drawn per seed (uniform on [0,20]¹⁶) | — | Low: the paper says arms are "sampled uniformly"; per-seed redraw is the natural reading. |
| 8 | Regret | r_t = max over the 500 discrete arms of f minus f(x_t) | — | Low: arms are the action set. |
| 9 | Engine | Incremental Sherman–Morrison in float64 instead of per-round refactorization | — | Addressed by --self-test, which compares against direct closed-form posterior mean/variance/inverse. |
How to run
# 0. sanity-check the engine (seconds, CPU)
python bandit_repro.py --self-test
# 1. full experiment, exactly the paper's metric
python bandit_repro.py --setup all --algos all --seeds 500 \
--seed-base 1000 --chunk 100 --out results
# -> results/summary.json plus per-chunk .npz files with per-seed final
# cumulative regret and regret trajectories (every 50 rounds)
Requires Python ≥ 3.10 and NumPy ≥ 1.24 (pip install "numpy>=1.24"). Set
OMP_NUM_THREADS/MKL_NUM_THREADS to the core count before running.
Pre-flight checklist (for whoever runs this)
-
--self-testpasses (max posterior-mean error < 1e-8). - Hardware: 32-vCPU CPU machine (HF Jobs
cpu-performance, $1.90/h) is the sizing target; 16 vCPU also works (~2× wall clock). - Expected wall clock: ~1–2 h for all 4 algorithms × 3 setups × 500 seeds (worst-case hold with a 3 h timeout: $5.70; expected actual cost $2–4).
- Expected output numbers to compare (paper values): the table at the top.
- If Oracle GP-TS does not land within a few SE of 35.0 / 28.1 / 86.0, stop and debug — the comparison is not meaningful until the engine matches the oracle row.
- Run the flagged variants (deviations 1, 2, 6) once at 100 seeds to confirm the conclusion does not hinge on them before reporting a verdict.
Interpretation rules
Report mean ± 1 SEM over seeds, next to the paper's numbers, per setup and per algorithm. The claim is verified if both HP-GP-TS and PE-GP-TS beat PE-GP-UCB by several SEs on all three setups; falsified if either fails on any setup; otherwise inconclusive (e.g. oracle row off, or margins within a few SE).
- Downloads last month
- -