All models

BOFormer (Non-Markovian RL Transformer for Multi-Objective BO)

A Transformer Q-network for multi-objective Bayesian optimization that conditions on the sampling history.

Reinforcement learning and control · 382 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (31 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.6M
Operations
382
Framework
PyTorch
Recurrent
No
Published
ICLR 2025
Cited by
0 (as of 29 October 2026)
Authors
Yu-Heng Hung, Kai-Jie Lin, Yu-Heng Lin and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14864
Graph hash
9447090e8fdf53df6785ed4ff38fe34d6cef8bdfc866bd411891e4cfa33f8918
Skeleton hash
985caeebde2b39ee6acccfb85e3a36e0bda40bffce5c840a4f1989cc3920628c
Architecture hash
d0269da52a34fc18afe8d8390ab337980f349bb7650b2f49c25bfba7642ea44e
Diagram SHA-256
c096807f08e27c888bbed9a9a870ba33c5940e8db6b907601cc6e4d60a82dcea
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

BOFormer is a Transformer that applies deep Q-learning to multi-objective Bayesian optimization (MOBO) through sequence modeling. Bayesian optimization optimizes black-box functions with a Gaussian process prior and an acquisition function (AF), and the paper asks how to learn a non-myopic AF for MOBO. The paper starts from the observation that learned acquisition functions from single-objective Bayesian optimization do not extend directly to MOBO, where they suffer from what the authors call the hypervolume identifiability issue. The cause is that the improvement in hypervolume is history-dependent.

The authors therefore define a Generalized DQN, which extends the standard DQN by learning a Q-function on the history of observations and actions. BOFormer implements it with a GPT-2-based Transformer. Each step's observation is the posterior of the candidate point augmented with its Q-value. This representation does not increase with the domain size. The paper's settings are 8 attention layers with 4 heads, a hidden size of 128 and a window size of 31.

The paper reports better performance than rule-based and learning-based baselines on synthetic MOBO problems and real-world multi-objective hyperparameter optimization problems. BOFormer is trained solely on synthetic GP functions and can then be deployed to optimize unseen test functions.

Key idea. BOFormer casts multi-objective Bayesian optimization as non-Markovian reinforcement learning and uses a Transformer to learn a Q-function over the history of observations and actions.

  • BOFormer
  • multi-objective Bayesian optimization
  • MOBO
  • learned acquisition function
  • non-Markovian reinforcement learning
  • Generalized DQN
  • hypervolume identifiability
  • Bayesian optimization
  • hyperparameter optimization

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{hung2025boformerlearningsolvemultiobjective,
      title={BOFormer: Learning to Solve Multi-Objective Bayesian Optimization via Non-Markovian RL}, 
      author={Yu-Heng Hung and Kai-Jie Lin and Yu-Heng Lin and Chien-Yi Wang and Cheng Sun and Ping-Chun Hsieh},
      year={2025},
      eprint={2505.21974},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2505.21974}, 
}