TL;DR
DynaBO introduces a novel Bayesian Optimization (BO) framework that allows machine learning practitioners to continuously inject expert knowledge during the optimization process, rather than just at initialization. By dynamically stacking and decaying user priors and incorporating a data-driven safeguard against misleading advice, DynaBO accelerates hyperparameter optimization while maintaining strong theoretical convergence guarantees.
What Problem Does This Paper Address?
Hyperparameter optimization (HPO) is crucial for maximizing the performance of machine learning models, but it is often treated as a rigid, automated black-box process. While modern Bayesian Optimization (BO) variants allow experts to guide the search space using "priors" (beliefs about where the optimal hyperparameters lie), they typically only accept this input at the very beginning of the run.
In real-world machine learning workflows, development is highly iterative. Engineers gain new insights about their models and datasets as the optimization progresses. Currently, if a practitioner wants to act on a new insight halfway through a BO run, they have to either abort and restart the entire process or wait out a suboptimal run. DynaBO addresses this lack of online control, bridging the gap between fully automated HPO and manual, human-driven tuning.
Methods
The authors propose DynaBO (Dynamic Bayesian Optimization), which introduces three core components to standard BO:
- Dynamic Prior Stacking & Decay: Instead of a single static prior, DynaBO accommodates a sequence of user-specified priors injected at arbitrary time steps. Crucially, these priors are combined via summation rather than multiplication. Summation treats multiple priors as a union of beliefs (preserving multi-modal exploration regions), whereas multiplication acts as an intersection that can numerically collapse the acquisition function if the priors don't perfectly overlap. Each prior decays individually based on its age, allowing older human insights to naturally fade as the surrogate model accumulates real empirical data.
- Data-Driven Safeguard Mechanism: Human intuition can be flawed or misleading. To protect the optimization loop, DynaBO features a surrogate-model-based safeguard. When a user provides a new prior, the system samples configurations from it and compares their predicted potential (using Lower Confidence Bound, LCB) against the area surrounding the current best-found configuration (the incumbent). If the prior's potential does not exceed the incumbent's area by a specified threshold ($\tau$), it is rejected.
- Prior-Guided Candidate Sampling: To ensure the acquisition function optimizer actually explores the regions favored by the new priors, the authors modify the standard local/random search routine to explicitly draw a fraction of candidate starting points directly from the active prior distributions.
Datasets
The framework was evaluated using surrogate models across several established HPO benchmarks:
- PD1 Benchmarks: Deep learning tasks including a Wide ResNet on CIFAR100 (
widernet), a ResNet-512 on ImageNet (resnet), and Transformers trained on LM1B (transf) and WMT15 (xformer). - YAHPO Gym: Traditional machine learning benchmarks, specifically XGBoost tuning (
rbv2_xgboost) and multi-layer perceptrons (lcbench) evaluated across dozens of datasets.
Key Insights and Ideas
- Summation beats Multiplication for Priors: A major takeaway is the mathematical choice of how to aggregate multiple priors. Multiplying priors penalizes any region that scores poorly under even a single prior, leading to unintended cancellations. Summing them preserves the multi-modal structure, allowing the algorithm to respect diverse, shifting user preferences over time.
- Guaranteed Safety Against Bad Advice: The authors mathematically prove that even if a user injects completely terrible ("deceptive") priors, DynaBO's asymptotic simple regret matches vanilla GP-UCB. The misleading influence completely vanishes in the limit, meaning human errors only cause a finite amount of extra exploration rather than breaking the system.
- Finite-Time Acceleration: While previous works focused on asymptotic consistency, this paper provides a proof showing that informative dynamic priors yield actual finite-time acceleration by effectively shrinking the active search domain.
Key Results
- Consistent Superiority: DynaBO consistently outperformed Vanilla BO, standard $\pi$BO (which only takes a prior at step 0), and Interactive Probabilistic Circuits (i-PC) across all evaluated benchmarks and prior types.
- Handling Deceptive Advice: When tested with intentionally "deceptive" priors, standard $\pi$BO suffered severe performance degradation. DynaBO, thanks to its safeguard mechanism, successfully filtered out the bad advice and maintained performance competitive with vanilla BO.
- Low Overhead: The safeguard mechanism is highly efficient. It added roughly 12 seconds of computational overhead to an optimization run with a virtual runtime of approximately 26 hours.
Limitations and Future Work
- Synthetically Generated Priors: To run rigorous, reproducible benchmarks, the authors simulated user behavior by synthetically generating priors using data-driven clustering. Evaluating DynaBO with real human practitioners in live, interactive user studies remains an open next step.
- Expanding Prior Types: The current framework assumes priors are continuous or categorical distributions over the parameter space. Future work could expand this to support more complex structural properties or multi-fidelity optimization.
- LLM Integration: The authors suggest that Large Language Models (LLMs) could be integrated into the loop to automatically translate natural language user insights into the dynamic mathematical priors required by DynaBO.
Summary updated