TL;DR
Multi-step lookahead planning in Bayesian optimization promises better hyperparameter tuning by balancing exploration and exploitation, but traditional Gaussian process implementations are crippled by exponential computational complexity. By repurposing OptFormer—a Transformer that autoregressively generates both hyperparameter proposals and objective predictions—this paper demonstrates that multi-step rollouts can be executed cheaply and effectively, unlocking modest performance gains primarily by refining candidate generation.
What Problem Does This Paper Address?
Automated Hyperparameter Optimization (HPO) typically relies on Bayesian Optimization (BO) using Gaussian Process (GP) surrogate models and myopic acquisition functions (like Expected Improvement or Upper Confidence Bound). Because these acquisition functions only consider the immediate next evaluation, they tend to be greedy and suboptimal over a full optimization budget.
Non-myopic, multi-step planning approaches look ahead $h$ steps into the future, but they are rarely used in practice due to two severe bottlenecks:
- Intense Computation: Fantasizing future steps requires repeated GP matrix inversions and nested global continuous optimizations, exploding search complexity to $\mathcal{O}(q^h)$ and effectively restricting lookahead horizons to $h \in \{1, 2\}$.
- Implementation Complexity: Methods that bypass this (e.g., reparameterization tricks) are mathematically involved and difficult to engineer.
Methods
The authors build on OptFormer, a Transformer trained on large corpora of tuning trajectories to autoregressively predict both hyperparameter proposals $\tilde{x}_t$ and objective values $\tilde{y}_t$ as text tokens. Because rollouts simply amount to standard autoregressive generation, simulating future trajectories becomes fast and linear in horizon length ($\mathcal{O}(dh)$).
The paper integrates multi-step planning into the two stages of OptFormer’s workflow:
-
Rollout-Aware Candidate Generation: Instead of choosing among $n=100$ initial candidate seeds $\mathcal{C}_t$, the model generates a simulated trajectory of length $h$ for each candidate. Trajectories are ranked by their maximum fantasized return $\tilde{y}^*$. The top $k=50$ candidates are extracted via three filtering strategies:
-
First.$k$: Retains the initial seed hyperparameter that initiated a top trajectory.
- Max.$k$: Extracts the specific hyperparameter configuration within the trajectory that produced the peak fantasized score $\tilde{y}^*$.
- Last.$k$: Extracts the final hyperparameter configuration ($\tilde{x}_{t+h-1}$) of the top trajectory, betting that later rollout steps reflect a more mature optimization state.
- Planning-Based Candidate Evaluation: To evaluate these candidates, the authors compare standard 1-step Expected Improvement ($\alpha_{\text{EI}}$) against $\alpha_{\text{Plan}}$, an acquisition function that performs $d=64$ rollouts of length $h$ per candidate and averages the accumulated Expected Improvement across the full simulated horizon.
Datasets
- RealWorldData: An offline HPO corpus introduced with OptFormer consisting of 750,000 real-world tuning trajectories (averaging 300 trials per task) aggregated from Google Vizier across vision, NLP, speech, and robotics. Evaluation is conducted across 5 runs per test task.
- BBOB (Black-Box Optimization Benchmark): A synthetic benchmark suite comprising 24 continuous black-box objective functions with varied landscapes and properties, evaluated by averaging over 100 randomized instances per function type.
Key Insights and Ideas
- Planning excels at candidate generation, not evaluation: The biggest boost came from using lookahead to discover and refine candidate proposals (Max.$k$ and Last.$k$), rather than using a complex planning-based acquisition function ($\alpha_{\text{Plan}}$). Evaluating rollout-generated candidates with standard 1-step EI performed essentially identically to using $\alpha_{\text{Plan}}$, suggesting the candidate set already incorporated the necessary lookahead information.
- Search tree diversity matters: First.$k$ failed to improve over the baseline because it only filtered the original proposal distribution. In contrast, Max.$k$ and Last.$k$ introduced novel, highly diverse candidates unearthed deep within rollout trajectories.
- Compounding bias replaces compute as the primary bottleneck: Unlike classic GP methods that fail at $h > 2$ due to exponential compute costs, OptFormer makes long rollouts computationally trivial. However, model error compounds autoregressively over time: simulated trajectories deviate from reality, causing performance to degrade at $h=10$.
Key Results
- Real-World Benchmarks: On
RealWorldData, rollout-aware candidate generation outperformed both standard Google Vizier (GP-UCB) and baseline OptFormer (EI) over 100 trials. The final performance ranking was: $$\text{Max.50} \approx \text{Last.50} > \text{First.50} \approx \text{OptFormer (EI)} > \text{Vizier}$$ - Optimal Lookahead Horizon: Horizon ablation on
RealWorldDatashowed that moderate lookaheads ($h \in [2, 5]$) yielded the best results, while $h = 10$ degraded optimization performance due to error accumulation. - Synthetic Benchmarks: On the synthetic BBOB dataset, planning augmentations did not yield significant gains over baseline OptFormer (EI) under fixed hyperparameters ($h \in \{3, 5\}, k=50$).
Limitations and Future Work
- Compounding Autoregressive Bias: Because OptFormer was trained via behavioral cloning on historical data rather than explicitly for multi-step predictive accuracy, long rollout horizons suffer from drift. Future work could fine-tune foundation models explicitly to improve long-horizon rollout fidelity.
- Lack of Impact from Planning Acquisition Functions: The multi-rollout acquisition function ($\alpha_{\text{Plan}}$) added computational overhead without improving final performance over standard EI.
- Generalization Gaps: Improvements did not translate cleanly to synthetic benchmarks (BBOB), indicating that rollout hyperparameters ($h, k$) likely require task-specific tuning.
Summary updated