Large Language Model Agent for Hyper-Parameter Optimization

Siyi Liu, Chen Gao, Yong Li
2/2/2024
cs.LGcs.AI

No official code found. Best implementation: michaelrzhang/LLM-HyperOpt (32 stars, last commit 2024-05-13).

Abstract

Hyperparameter optimization is critical in modern machine learning, requiring expert knowledge, numerous trials, and high computational and human resources. Despite the advancements in Automated Machine Learning (AutoML), challenges in terms of trial efficiency, setup complexity, and interoperability still persist. To address these issues, we introduce a novel paradigm leveraging Large Language Models (LLMs) to automate hyperparameter optimization across diverse machine learning tasks, which is named AgentHPO (short for LLM Agent-based Hyperparameter Optimization). Specifically, AgentHPO processes the task information autonomously, conducts experiments with specific hyperparameters (HPs), and iteratively optimizes them based on historical trials. This human-like optimization process largely reduces the number of required trials, simplifies the setup process, and enhances interpretability and user trust, compared to traditional AutoML methods. Extensive empirical experiments conducted on 12 representative machine-learning tasks indicate that AgentHPO not only matches but also often surpasses the best human trials in terms of performance while simultaneously providing explainable results. Further analysis sheds light on the strategies employed by the LLM in optimizing these tasks, highlighting its effectiveness and adaptability in various scenarios.

View on arXivView PDF

Code Implementations(1)

Using Large Language Models for Hyperparameter Optimization

327Python, Jupyter NotebookFeb 15, 20242 years ago

Similar Papers

Cite this paper

@article{liu2024large,
  title  = {Large Language Model Agent for Hyper-Parameter Optimization},
  author = {Siyi Liu and Chen Gao and Yong Li},
  year   = {2024},
  eprint = {2402.01881},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.01881v3}
}

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/2402.01881.svg)](https://codeofpaper.com/paper/2402.01881)

Discussion