NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A General Framework for User-Guided Bayesian Optimization

Carl Hvarfner, Frank Hutter, Luigi Nardi

Introduction

Bayesian Optimization (BO) is the gold standard for finding the optimal settings of "black-box" systems that are expensive to evaluate, such as tuning deep learning hyperparameters or designing new chemicals. While BO is highly sample-efficient, it traditionally operates as a "take it or leave it" tool. Domain experts often possess valuable intuition—for example, knowing that the best learning rate likely falls within a specific range, or that the maximum possible accuracy of a model is 100%.

Standard BO struggles to incorporate these specific "beliefs" beyond the selection of a basic kernel structure. Previous attempts to inject user knowledge were often heuristic-based and prone to catastrophic failure if the user’s advice proved misleading. To address this gap, researchers have introduced ColaBO (Collaborative Bayesian Optimization), a mathematically principled framework designed to reshape the model's internal "map" (the Gaussian Process) based on user input.

The ColaBO Framework

ColaBO treats user knowledge as a formal prior over function properties, allowing practitioners to "guide" the optimization process directly.

  • Principled Reshaping: Instead of merely tweaking the acquisition function, ColaBO modifies the surrogate model's posterior. It defines a "belief-weighted" posterior $p(f | \mathcal{D}, \rho) \propto \rho(f) p(f | \mathcal{D})$, where $\rho(f)$ represents the user's belief.
  • Decoupled Sampling: To make this computationally feasible, the framework employs Decoupled Posterior Sampling. It generates many possible versions of the objective function using Random Fourier Features (RFF) and then applies rejection sampling to retain only the functions that align with the user's beliefs.
  • Generality: Because it operates by filtering samples of the function, ColaBO is compatible with any Monte Carlo (MC) acquisition function, such as Expected Improvement (EI) or Max-value Entropy Search (MES).
ColaBO accommodates diverse user priors, seamlessly integrating beliefs about the optimum's location, the function's maximum value, or preference relations into the prior and posterior moments.

Key Insights and Results

The framework was rigorously evaluated on a mix of synthetic benchmarks (Hartmann, Levy, Rosenbrock) and real-world deep learning hyperparameter tuning tasks (PD1 Benchmark, LCBench).

  • Beyond Location: Most prior work focused exclusively on where the optimum might be located. ColaBO is a generalized framework that can handle beliefs about the optimal value (e.g., "the loss won't go below zero") or even preference relations (e.g., "Configuration A is known to be better than Configuration B").
  • The "Safety Net" of Data: A striking feature of ColaBO is its robustness. In standard BO, a "bad" prior usually traps the algorithm in a local optimum. ColaBO is designed so that as more real data ($\mathcal{D}$) is collected, the empirical evidence eventually overrides the user's potentially incorrect belief ($\rho$), allowing the model to self-correct.
  • Massive Speedups: On the PD1 deep learning tasks (like CIFAR image classification and LM1B language modeling), ColaBO reached near-terminal performance significantly faster than vanilla BO, often surpassing the baseline's final performance within just a third of the total budget.
  • Robustness to Misleading Advice: When tested with deliberately misleading priors, ColaBO successfully recovered to baseline performance within 20 iterations per dimension, whereas competing methods often remained derailed and performed worse than a standard search.

Limitations and Future Directions

While powerful, ColaBO does have limitations. The reliance on rejection sampling introduces computational overhead; processing samples can take tens of seconds per iteration. This is acceptable for expensive experiments (like training Large Language Models) but may be inefficient for cheaper evaluations. Furthermore, obtaining samples that satisfy the user's belief scales poorly as the dimensionality of the prior increases, potentially making rejection sampling impractical for highly complex priors. Finally, the use of Random Fourier Features introduces a slight approximation bias.

Future work may explore more efficient sampling methods, such as variational inference, to reduce runtime. Extending the framework to "multi-fidelity" optimization—where cheap, lower-quality tests help refine the search—also presents a promising avenue for development.

Summary updated

BibTeX
@inproceedings{hvarfner2024general,
  author = {Carl Hvarfner and Frank Hutter and Luigi Nardi},
  title = {{A General Framework for User-Guided Bayesian Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=NjU0jtXcYn},
}
Figure