TL;DR
When optimizing complex systems, engineers rarely start from scratch—they start from a carefully vetted default configuration and want to change as few knobs as possible. Standard Bayesian Optimization (BO) ignores this, happily tweaking dozens of irrelevant parameters for negligible gains. BONSAI is a lightweight wrapper for BO that prunes away low-impact parameter changes at each step, delivering cleaner, sparse configurations with virtually no loss in performance or compute speed.
What Problem Does This Paper Address?
Bayesian Optimization (BO) is a go-to method for tuning expensive "black-box" systems—like compiler flags, cell-tower antennas, or machine learning hyperparameters—by building a probabilistic surrogate model of the system and using an acquisition function to decide what configuration to test next.
In the real world, systems usually ship with a trusted "status quo" or default configuration. Changing 50 parameters at once to squeeze out a 1% gain is an operational nightmare: every altered knob increases technical debt, review burden, and the risk of unintended side effects not captured by the test metric. Practitioners really want to know: What is the minimal set of changes I need to make to optimize my system?
Conventional BO is indifferent to defaults. Worse, because uncertainty is often highest at the edges of a search space, standard BO routinely pushes irrelevant or weakly relevant parameters all the way to their extreme boundaries. Existing "sparse BO" methods try to fix this by adding non-differentiable $\ell_0$ penalties (counting changed parameters), which require expensive, finicky math and slow down candidate generation by an order of magnitude.
Methods
Rather than altering the underlying surrogate model or wrestling with complex regularization penalties, BONSAI acts as a simple, acquisition-agnostic transformation layer during the BO loop:
- Standard Maximization: At round $t$, let standard BO propose its ideal candidate configuration $x^*_t$ by maximizing whatever acquisition function you prefer (e.g., Expected Improvement or Upper Confidence Bound).
- Measure Incremental Value: BONSAI calculates how much acquisition utility $x^*_t$ gains over a baseline $b_t$ (the best current-round acquisition value among previously evaluated designs).
- Sequential Greedy Pruning: Starting from $x^*_t$, BONSAI tests resetting altered parameters back to their default values one by one. It greedily resets the parameter that causes the smallest drop in acquisition value, repeating this process until any further reset would drop the utility by more than a user-defined relative fraction $\rho_t$ (e.g., 20% of the incremental gain).
- Evaluate & Repeat: The newly pruned, sparser candidate $\tilde{x}_t$ is evaluated on the true black-box function, becoming part of the training data for the next round.
Because checking single-parameter resets only requires at most $O(d^2)$ cheap evaluations of the acquisition function (for $d$ dimensions), it adds minimal computational overhead.
Datasets
The authors evaluate BONSAI across default-aware synthetic and real-world benchmarks (no newly invented datasets are introduced, though existing benchmarks are adapted with status-quo defaults):
- Synthetic 50D Embeddings: Classic low-dimensional test functions—Branin (2D), Hartmann (6D), constrained PressureVessel (4D), and multi-objective DTLZ2 (6D)—embedded into 50-dimensional spaces by adding 44–48 completely useless "dummy" parameters, using the center of the search space as the default.
- Real-World Tasks: Joint NAS/HPO (26D neural architecture and hyperparameter tuning at a web service), Optical Design (146D AR display geometry simulation, 2-objective), LassoDNA (180D feature-penalty tuning on a DNA dataset, using zero penalty as default), and Cell Network (30D antenna power and downtilt tuning, 2-objective), plus noisy A/B test ranking problems in the appendix.
Key Insights and Ideas
- Pruning inside the loop beats post-hoc cleanup: Because BONSAI feeds the pruned points directly back into the GP surrogate, it actively shapes exploration—sometimes even outperforming standard dense BO on high-dimensional tasks (like LassoDNA and Optical Design) by keeping the search focused.
- Principled sacrifice: Using GP-UCB, the authors prove that BONSAI's cumulative regret is simply standard GP-UCB regret plus an explicit penalty proportional to the sum of thresholds ($\sum \rho_t$). If you shrink $\rho_t$ over time (e.g., $\rho_t = 1/t$), BONSAI retains asymptotic no-regret guarantees—a theoretical backing prior sparse-BO methods lack.
- Greedy is good enough: Checking all $2^d$ parameter subsets is impossible in high dimensions, and greedy one-by-one resets could theoretically miss clever joint resets. Yet on low-dimensional problems where exact enumeration is possible, greedy pruning picked the exact same initial post-warmup candidate 85.7% of the time.
Key Results
- Drastic Sparsity: On 50D synthetic problems, BONSAI recovers near-optimal performance while modifying roughly the true number of active dimensions (2 to 6 knobs), whereas standard BO alters nearly all 50. On the 146D Optical Design task, BONSAI finds strong Pareto frontiers using fewer than 60 active parameters (<50%).
- Massive Speedups over Sparse Baselines: BONSAI's candidate generation takes only 1.5$\times$–1.6$\times$ the wall-clock time of vanilla BO, whereas prior sparse methods (IR, ER, SEBO) suffer 7.4$\times$ to 35.2$\times$ slowdowns.
- Consistent Reliability: Against prior-guided BO (PiBO, which uses a soft probabilistic pull toward the default), BONSAI is far more reliable at finding sparse, high-performing solutions—succeeding in 16/20 to 20/20 runs across the four real-world tasks, where PiBO succeeded in 0/20 runs on three of them.
Limitations and Future Work
- Default Placement Matters: Because sparsity is measured strictly relative to the supplied default, a default sitting on a search-space boundary might make standard boundary-seeking BO look sparse by sheer coincidence.
- Single-Coordinate Blind Spots: Greedy one-at-a-time pruning can miss configurations that only look good when two coupled parameters are reset simultaneously, and coordinate-wise $\ell_0$ doesn't capture grouped or structured engineering costs.
- Theory-Practice Gap: The formal regret bounds apply to GP-UCB with fixed hyperparameters (and exact sparsity recovery assumes idealized infinite lengthscales on irrelevant dimensions), whereas practical deployments often rely on Expected Improvement (EI) with learned GP parameters. Extending theoretical guarantees to EI and grouped parameter resets are natural next steps.
Summary updated