Towards Learning Universal Hyperparameter Optimizers with Transformers

Yutian Chen, Xingyou Song, Chansoo Lee, Zi Wang, Qiuyi Zhang +7 more
5/26/2022
cs.LGcs.AIstat.ML
transformer-attention

Official code: google-research/optformer (244 stars, Python, Apache-2.0, last commit 2026-02-23).

Abstract

Meta-learning hyperparameter optimization (HPO) algorithms from prior experiments is a promising approach to improve optimization efficiency over objective functions from a similar distribution. However, existing methods are restricted to learning from experiments sharing the same set of hyperparameters.

Show full abstract

In this paper, we introduce the OptFormer, the first text-based Transformer HPO framework that provides a universal end-to-end interface for jointly learning policy and function prediction when trained on vast tuning data from the wild, such as Google's Vizier database, one of the world's largest HPO datasets. Our extensive experiments demonstrate that the OptFormer can simultaneously imitate at least 7 different HPO algorithms, which can be further improved via its function uncertainty estimates. Compared to a Gaussian Process, the OptFormer also learns a robust prior distribution for hyperparameter response functions, and can thereby provide more accurate and better calibrated predictions. This work paves the path to future extensions for training a Transformer-based model as a general HPO optimizer.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
24436PythonOct 4, 20229 months agoApache-2.0

Similar Papers

Cite this paper

@article{chen2022towards,
  title  = {Towards Learning Universal Hyperparameter Optimizers with Transformers},
  author = {Yutian Chen and Xingyou Song and Chansoo Lee and Zi Wang and Qiuyi Zhang and David Dohan and Kazuya Kawakami and Greg Kochanski and Arnaud Doucet and Marc'aurelio Ranzato and Sagi Perel and Nando de Freitas},
  year   = {2022},
  eprint = {2205.13320},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.13320}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.13320.svg)](https://codeofpaper.com/paper/2205.13320)

Discussion