Hybrid Concentration-aware Gaussian Process Upper Confidence Bound for Bayesian optimization with tight regret guarantees.
Accepted in IEEE Transactions on Artificial Intelligence.
Reference implementation for the paper "HC-GPUCB: Hybrid Concentration-Aware Gaussian Process Upper Confidence Bound for Bayesian Optimization with Tight Regret Guarantees", Baobing Zhang and Wanxin Sui, IEEE Transactions on Artificial Intelligence, 2026.
Two algorithms and the engineering ingredients behind them:
| Algorithm | File | Theory | Wall-clock |
|---|---|---|---|
| HC-GPUCB (fixed schedule) | src/hc_gpucb.py |
|
constant-factor over vanilla |
| HC-GPUCB (adaptive trigger) | src/hc_gpucb.py |
same | small wall-clock benefit; degenerates to vanilla on rare-event paths |
| Rank-1 GP-UCB | src/baselines/rank1_gp_ucb.py |
Iwazaki regret bound applies directly |
3.5–7.1× at |
| HC-GPUCB-Rank1 (combined) | src/hc_gpucb_rank1.py |
|
scales to |
Plus the baselines used in the paper (vanilla GP-UCB, EI, Thompson Sampling, Sparse-GP-UCB, Vanilla-Checkpoint GP-UCB).
src/
hc_gpucb.py # Algorithm 1 (fixed + adaptive)
hc_gpucb_rank1.py # HC-GPUCB with rank-1 Phase-2
local_domain.py # local-ball construction, floored-regime logic
concentration_test.py # adaptive trigger (Eq. 7)
baselines/
rank1_gp_ucb.py # logarithmic-checkpoint hyperfit + incremental conditioning
vanilla_checkpoint_gpucb.py # decoupled ablation: hyperfit-only
vanilla_ucb.py # standard GP-UCB with Iwazaki β_t schedule
sparse_gp_ucb.py # inducing-point variant
ei.py / thompson_sampling.py / random_search.py
utils/
test_functions.py # Branin / Hartmann-3 / Hartmann-6 / Ackley / Levy-d
experiments/
exp1_main.py # entry point: --func --method --T --seed
analyze_exp1.py # generates main_table_T500.tex + figures
analyze_T2k3k.py # T=2000/3000 results table
analyze_phaseD.py # decoupled, hc-rank1, noise, highdim tables
analyze_compute_fair.py # cumulative regret + iters/1000s
stat_tests.py # Wilcoxon + TOST equivalence
scripts/
run_exp_T500.slurm # main T=500 grid (4 funcs × 8 methods × 10 seeds)
run_speedup_vs_T.slurm # exclusive single-node, controlled experiment
run_hc_rank1.slurm # HC-GPUCB-Rank1 at T={500,1000,2000,3000}
run_T2000_T3000.slurm # large-budget runs
# 1. Environment
conda create -n hcgpucb python=3.10
conda activate hcgpucb
pip install -r requirements.txt
# 2. Run a single experiment (T=500 on Hartmann-3 with HC-GPUCB-adaptive)
python -m experiments.exp1_main --func hartmann3 --method hc_adaptive --T 500 --seed 0
# 3. Reproduce a paper table
# Step 3a: full T=500 grid (10 seeds × 4 funcs × 8 methods)
sbatch scripts/run_exp_T500.slurm
# Step 3b: regenerate Table III + Figure 3
python experiments/analyze_exp1.py --raw results/raw/exp_T500 --tag T500Each run writes a pickle to results/raw/<exp_name>/<func>/<method>/seed<k>.pkl containing simple_regret, cumulative_regret, elapsed_total, X, Y, f_star. The analysis scripts read these pickles and emit paper/tables/*.tex + results/figures/*.png consumed by the paper.
(All on a shared CPU cluster, BoTorch 0.16.1 / PyTorch 2.5.1 / GPyTorch.)
At
- Vanilla GP-UCB: regret
$0.001$ , time$608.4$ s - Rank-1 GP-UCB: regret
$0.000$ , time$103.4$ s — 5.9× speedup - HC-GPUCB-adaptive: regret
$0.005$ , time$303.9$ s
At
- Vanilla GP-UCB:
$4678$ s - Rank-1 GP-UCB:
$289$ s — 16.3× speedup
At
- Vanilla GP-UCB: infeasible by extrapolation (
$\sim 10.6$ h,$T^{1.83}$ fit) - HC-GPUCB-Rank1 (adaptive):
$89$ min/seed (Table IV)
If you use this code or build on the ideas in your own work, please cite:
@article{zhang2026hcgpucb,
author = {Zhang, Baobing and Sui, Wanxin},
title = {{HC-GPUCB}: Hybrid Concentration-Aware {Gaussian} Process Upper Confidence Bound for {Bayesian} Optimization with Tight Regret Guarantees},
journal = {IEEE Transactions on Artificial Intelligence},
year = {2026},
note = {Accepted; DOI to be added upon publication.}
}MIT — see LICENSE.