arXiv:2603.24647cs.LGstat.ML2026-03被引 8

LLM优化器不如传统算法,但混合方法能超越两者。

Can LLMs Beat Classical Hyperparameter Optimization Algorithms? A Study on autoresearch

  • 让LLM直接修改代码调参,缩小与传统方法的差距
  • 传统方法在固定算力下更稳定,避免内存溢出更重要
  • 混合模型Centaur结合两者优势,0.8B模型即可胜出

autoresearch仓库使LLM代理能直接编辑训练代码来优化超参数。我们以此为测试平台,在固定计算预算下比较经典超参数优化(HPO)算法与基于LLM的方法对小型语言模型的调优表现。在限定搜索空间的情况下,CMA-ES和TPE等经典方法始终优于基于LLM的代理,因避免内存溢出比搜索多样性更为关键。允许LLM直接编辑源码虽缩小差距,但未能完全追平,即使使用当时前沿模型如Claude Opus 4.6和Gemini 3.1 Pro Preview亦然。我们发现LLM难以跨试验跟踪优化状态。相比之下,经典方法缺乏领域知识。为此我们提出Centaur:将CMA-ES的可解释内部状态(均值向量、步长、协方差矩阵)与LLM结合。实验中Centaur表现最佳,仅需0.8B规模的LLM即超越所有经典与纯LLM方法。无约束代码编辑需更大模型才能与经典方法竞争。我们进一步分析了搜索多样性、模型规模从0.8B到前沿模型的影响,以及Centaur中由LLM提出的试验比例。总体表明,LLM最有效的角色是作为经典优化器的补充,而非替代。

原文摘要 · Abstract (English)

The autoresearch repository enables an LLM agent to optimize hyperparameters by editing training code directly. We use it as a testbed to compare classical HPO algorithms against LLM-based methods on tuning the hyperparameters of a small language model under a fixed compute budget. When defining a fixed search space over autoresearch, classical methods such as CMA-ES and TPE consistently outperform LLM-based agents, where avoiding out-of-memory failures matters more than search diversity. Allowing the LLM to directly edit source code narrows the gap to the classical methods but does not close it, even with frontier models available at the time of writing such as Claude Opus 4.6 and Gemini 3.1 Pro Preview. We observe that LLMs struggle to track optimization state across trials. In contrast, classical methods lack the domain knowledge of LLMs. To combine the strengths of both, we introduce Centaur, a hybrid that shares CMA-ES's interpretable internal state, including mean vector, step-size, and covariance matrix, with an LLM. Centaur achieves the best result in our experiments, and a 0.8B LLM already suffices to outperform all classical and pure LLM methods. Unconstrained code editing requires larger models to be competitive with classical methods. We further analyze search diversity, model scaling from 0.8B to frontier models, and ablate the fraction of LLM-proposed trials in Centaur. All in all, our results suggest that LLMs are most effective as a complement to classical optimizers, not as a replacement. Code is available at https://github.com/ferreirafabio/autoresearch-automl & interactive demo at https://ferreirafabio.github.io/autoresearch-automl.

超参优化LLM代理混合方法自动化机器学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。