about
Using Large Language Models for Hyperparameter Optimization (arxiv.org)
1 point by famouswaffles on Dec 9, 2023 | hide | past | pdf | discuss on HN

In plain words: Instead of hand-tuning settings, a language model reads descriptions of the data and model, suggests settings, then revises them based on how well the model scores. With only a few tries it matched or beat the usual smart search that learns from past trials.

Abstract

This paper explores the use of foundational large language models (LLMs) in hyperparameter optimization (HPO). Hyperparameters are critical in determining the effectiveness of machine learning models, yet their optimization often relies on manual approaches in limited-budget settings. By prompting LLMs with dataset and model descriptions, we develop a methodology where LLMs suggest hyperparameter configurations, which are iteratively refined based on model performance. Our empirical evaluations on standard benchmarks reveal that within constrained search budgets, LLMs can match or outperform traditional HPO methods like Bayesian optimization across different models on standard benchmarks. Furthermore, we propose to treat the code specifying our model as a hyperparameter, which the LLM outputs and affords greater flexibility than existing HPO approaches.

Michael R. Zhang, Nishkrit Desai, Juhan Bae, Jonathan Lorraine, Jimmy Ba
arXiv:2312.04528 · cs.LG, cs.AI · submitted Dec 7, 2023 · updated Nov 11, 2024
abstract · pdf · html · 28 pages

add comment on HN