Hyperparameter Optimization via Interacting with Probabilistic Circuits

Jonas Seng, Fabrizio Ventola, Zhongjie Yu, Kristian Kersting

TL;DR

IBO-HPC introduces an interactive Bayesian optimization (BO) framework that uses tractable Probabilistic Circuits (PCs) as surrogate models. By modeling the exact joint distribution of hyperparameters and performance scores, it allows human domain experts to inject priors or constraints at any point during optimization via conditional sampling, faithfully honoring user intent without inner-loop acquisition optimization while seamlessly recovering from misleading advice.

What Problem Does This Paper Address?

Hyperparameter optimization (HPO) and neural architecture search (NAS) are notoriously expensive, often requiring dozens or hundreds of full model evaluations. While human practitioners typically hold valuable intuition about promising parameter ranges, standard BO algorithms treat optimization as an autonomous black box.

Recent attempts to incorporate human knowledge (such as $\pi$BO and BOPrO) suffer from three critical shortcomings:

  1. Rigid ex ante timing: Users must specify their beliefs before optimization begins, preventing dynamic guidance as intermediate results roll in.
  2. Prior distortion: They inject priors by mathematically warping the acquisition function. Because acquisition functions are non-linear and require secondary inner-loop optimization, the selected points frequently drift far from the user’s intended distribution.
  3. Fragility: Handling bad or contradictory human advice without restarting the entire search remains difficult.

Methods

The authors propose Interactive Bayesian Optimization via Hyperparameter Probabilistic Circuits (IBO-HPC):

  • Surrogate Modeling via Probabilistic Circuits: Rather than fitting Gaussian Processes or Random Forests to predict $y$ from $x$, IBO-HPC uses Mixed Sum-Product Networks (MSPNs)—a class of smooth, decomposable PCs capable of handling hybrid (discrete and continuous) variables. The MSPN learns the joint distribution $p(\mathcal{H}, F)$ over hyperparameters $\mathcal{H}$ and validation score $F$.
  • Acquisition-Free Candidate Generation: Instead of optimizing an acquisition function (e.g., Expected Improvement) in an expensive inner loop, IBO-HPC conditions the circuit directly on the best observed evaluation score ($F = f^*$) and user constraints $\hat{\mathcal{H}} = \hat{h}$, then tractably samples candidates top-down in linear time.
  • Dynamic, Feedback-Adhering Policy: Users can inject beliefs—either as fixed values or arbitrary marginal distributions $q(\hat{\mathcal{H}})$ over a subset of hyperparameters—at any iteration. The authors prove that the marginal distribution of sampled points across those hyperparameters precisely matches the user's prior $q(\hat{\mathcal{H}})$.
  • Resilience Mechanism: Misleading advice is mitigated by sampling candidates from the user-conditioned distribution with a Bernoulli probability $\rho$ that geometrically decays over subsequent steps ($\gamma^t \rho$), smoothly shifting control back to the surrogate model.
[Joint PC: p(H, F)] ── Condition on (F = f*) & User Prior q(H) ──> [Exact Conditional Sampling] ──> New Candidate

Datasets

The authors evaluated IBO-HPC across several established HPO and NAS benchmarks:

  • JAHS-Bench-201: Joint neural architecture and hyperparameter search across CIFAR-10, Colorectal Histology, and Fashion-MNIST (evaluated on newly extended, harder search spaces).
  • NAS-Bench-101 & NAS-Bench-201: Standard tabular NAS benchmarks on CIFAR-10.
  • HPO-B: Tabular benchmark on OpenML classification tasks (e.g., optimizing XGBoost and Random Forest on credit-g).

No new dataset was created; the authors used existing surrogate and tabular benchmarks to simulate realistic training costs.

Key Insights and Ideas

  • Conditioning beats reshaping: Reshaping an acquisition surface via prior weighting creates unpredictable bias. In contrast, conditioning a joint generative model directly enforces user beliefs while preserving the model's learned correlations across remaining variables.
  • Surrogates can be samplers: By framing the surrogate as a tractable joint density estimator, candidate generation simplifies to conditional generation, bypassing non-convex acquisition optimization entirely.
  • Decay enables iterative correction: Human guidance does not need to be infallible. A simple stochastic decay parameter allows the optimizer to exploit strong human intuition early on, gracefully abandon bad feedback, and digest iterative corrections.

Key Results

  • Competitive Baseline Performance: When running fully autonomously (zero human input), IBO-HPC matched or outperformed strong baselines (SMAC, BO-TPE, BO-RF) on 4 out of 5 NAS/JAHS tasks and across HPO-B tasks. (It trailed SMAC on NAS-Bench-101 due to the benchmark's extremely sparse binary adjacency encoding).
  • Speedup from Interaction: Injecting beneficial feedback yielded a $2\times$ to $10\times$ median speedup in reaching optimal performance configurations.
  • Resilience to Bad Feedback: When fed deliberately harmful interactions (fixing hyperparameters to known worst-case values), IBO-HPC successfully recovered within a few iterations, catching up to or surpassing $\pi$BO and BOPrO.
  • Computational Efficiency: Fitting the PC and conditionally sampling candidates was faster than SMAC's surrogate/acquisition step in 4 out of 5 benchmark configurations, with the efficiency margin widening as search space dimensionality grew.

Limitations and Future Work

  • Surrogate Refitting: The circuit is currently refit from scratch every $L$ iterations using LearnSPN. Integrating continual/online learning for PCs would significantly reduce overhead.
  • Representation for Sparse Graphs: IBO-HPC lagged behind SMAC on sparse, graph-based spaces like NAS-Bench-101, showing that current hybrid MSPNs need improvements to model high-dimensional binary adjacency matrices effectively.
  • Expressiveness of Leaf Distributions: The model relies on piecewise polynomials at the leaves; more expressive distribution families could improve density estimation in highly non-linear objective landscapes.

Summary updated

BibTeX
@inproceedings{seng2025hyperparameter,
  author = {Jonas Seng and Fabrizio Ventola and Zhongjie Yu and Kristian Kersting},
  title = {{Hyperparameter Optimization via Interacting with Probabilistic Circuits}},
  booktitle = {AutoML Methods Track},
  year = {2025},
  url = {https://openreview.net/forum?id=mHbPRg5UJW},
}
Figure