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

BOFormer: Learning to Solve Multi-Objective Bayesian Optimization via Non-Markovian RL

Yu Heng Hung, Kai-Jie Lin, Yu-Heng Lin, Chien-Yi Wang, Cheng Sun, Ping-Chun Hsieh

Introduction

Multi-Objective Bayesian Optimization (MOBO) is a critical framework for optimizing expensive black-box functions where multiple, often conflicting, objectives must be balanced simultaneously—such as maximizing a neural network's accuracy while minimizing its computational footprint. While Bayesian Optimization (BO) has traditionally relied on handcrafted, "myopic" acquisition functions (AFs) that look only one step ahead, recent research has pivoted toward using Reinforcement Learning (RL) to learn "non-myopic" policies capable of long-term planning.

However, standard RL approaches often struggle with MOBO due to the hypervolume identifiability issue. This paper introduces BOFormer, a novel framework that treats MOBO as a non-Markovian RL problem, leveraging Transformer architectures to capture the full history of optimization trajectories and outperform traditional methods.

The Non-Markovian Challenge in MOBO

The core insight of this work is the formal identification of MOBO as inherently non-Markovian. In single-objective BO, the current best-observed value often suffices as a state representation. In MOBO, however, the potential improvement in the "Pareto front" (the set of optimal trade-offs) depends on the entire history of samples, not just the most recent observation.

The authors prove that the same current "state" can lead to different hypervolume gains depending on the specific sequence of previous samples. Standard RL techniques, which rely on the Markov property (where the future depends only on the current state), fail to capture this complexity. This necessitates a model that can process the entire search history to make optimal decisions.

Methodology: The BOFormer Framework

BOFormer rethinks MOBO through the lens of sequence modeling and deep Q-learning. The architecture is built on several key innovations:

  1. Generalized DQN: The authors propose a version of the Deep Q-Network that defines the optimal Q-function over the entire history of observations and actions, rather than a single state.
  2. Transformer Backbone: To process these histories, BOFormer utilizes a GPT-2 based Transformer architecture. This allows the model to attend to all past samples, identifying which regions of the search space have been explored and where the most promising trade-offs lie.
  3. Q-Augmented Representation: To ensure the model is "domain-agnostic" and can transfer across different search spaces, the authors represent each step using posterior distributions (mean and variance) and the predicted Q-value. This prevents the model from being tied to specific input dimensions or scales.
  4. Prioritized Trajectory Replay: Training involves a specialized buffer that stores and prioritizes entire search trajectories, ensuring the model learns from the most informative sequences of exploration and exploitation.
  5. Demo-Policy Guidance: To overcome the inefficiency of random exploration in high-dimensional spaces, the model is guided during early training stages by "helper" policies, such as the Expected Hypervolume Improvement (EHVI) algorithm.

Experimental Evaluation

Synthetic Benchmarks

BOFormer was evaluated against a diverse set of standard synthetic functions, including Ackley-Rastrigin, Branin-Currin, and Dixon-Rastrigin. These benchmarks test the model's resilience against local optima and its ability to navigate both smooth and non-smooth surfaces. Across these tasks, BOFormer consistently achieved the highest hypervolume, outperforming state-of-the-art methods like qNEHVI and JES.

Real-World Application: HPO-3DGS

The authors introduced a new real-world dataset, HPO-3DGS, focused on the Hyperparameter Optimization of 3D Gaussian Splatting. This dataset contains 68,000 data points across five different scenes (e.g., Lego, Materials, Mic). The goal is to balance rendering quality (PSNR) against model size. BOFormer demonstrated exceptional zero-shot transfer capabilities, performing at the top of the leaderboard on these real-world engineering tasks despite being trained entirely on synthetic Gaussian Process functions.

Computational Efficiency

One of the most significant advantages of BOFormer is its scalability. In 3-objective settings, BOFormer maintains a stable inference time of approximately 14ms. In contrast, competitive baselines like qNEHVI saw computation times explode from 6ms to 224ms as the complexity of the objectives increased. Because BOFormer is a neural network, its inference time remains nearly constant, making it ideal for complex, multi-objective problems.

Discussion and Future Work

While BOFormer represents a significant leap forward, some limitations remain. The model currently relies on Sobol grids to find the maximum of the acquisition function, which can become a bottleneck in search spaces exceeding 50 dimensions. Additionally, the model showed some sensitivity to functions with very large length scales, suggesting that the synthetic training distribution could benefit from greater variety in spatial correlation.

Future research directions include exploring "cross-objective" transfer—such as training on 2-objective problems and deploying on 5-objective problems—to further push the boundaries of meta-learning in Bayesian Optimization. By framing MOBO as a sequence modeling task, BOFormer opens the door to more robust, efficient, and generalizable optimization tools.

Summary updated

BibTeX
@inproceedings{hung2025boformer,
  author = {Yu Heng Hung and Kai-Jie Lin and Yu-Heng Lin and Chien-Yi Wang and Cheng Sun and Ping-Chun Hsieh},
  title = {{BOFormer: Learning to Solve Multi-Objective Bayesian Optimization via Non-Markovian RL}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=UnCKU8pZVe},
}
Figure