[论文解读] In-the-loop Hyper-Parameter Optimization for LLM-Based Automated Design of Heuristics
该论文提出 LLaMEA-HPO,一种混合框架,将基于 LLaMEA 的 LLM 驱动进化算法与基于 SMAC 的超参数优化(HPO)相结合,以降低 LLM 查询成本。通过将超参数调优任务交由 HPO 程序处理,LLM 专注于生成新颖的算法结构,在在线装箱问题、黑箱优化和 TSP 基准测试中实现了最先进性能,同时显著减少了 LLM 查询次数和计算成本。
Large Language Models (LLMs) have shown great potential in automatically generating and optimizing (meta)heuristics, making them valuable tools in heuristic optimization tasks. However, LLMs are generally inefficient when it comes to fine-tuning hyper-parameters of the generated algorithms, often requiring excessive queries that lead to high computational and financial costs. This paper presents a novel hybrid approach, LLaMEA-HPO, which integrates the open source LLaMEA (Large Language Model Evolutionary Algorithm) framework with a Hyper-Parameter Optimization (HPO) procedure in the loop. By offloading hyper-parameter tuning to an HPO procedure, the LLaMEA-HPO framework allows the LLM to focus on generating novel algorithmic structures, reducing the number of required LLM queries and improving the overall efficiency of the optimization process. We empirically validate the proposed hybrid framework on benchmark problems, including Online Bin Packing, Black-Box Optimization, and the Traveling Salesperson Problem. Our results demonstrate that LLaMEA-HPO achieves superior or comparable performance compared to existing LLM-driven frameworks while significantly reducing computational costs. This work highlights the importance of separating algorithmic innovation and structural code search from parameter tuning in LLM-driven code optimization and offers a scalable approach to improve the efficiency and effectiveness of LLM-based code generation.
研究动机与目标
- 解决在自动化启发式设计中使用 LLM 进行超参数调优所带来的高计算和财务成本问题。
- 通过将算法创新与数值参数调优解耦,提升基于 LLM 的进化代码优化效率。
- 在标准基准问题上验证结合 LLaMEA 与基于 SMAC 的 HPO 的混合框架的有效性。
- 证明 LLM 在生成新颖算法结构方面比在超参数精细调优方面更具优势。
- 为计算成本高昂的优化领域提供一种可扩展、成本效益高的基于 LLM 的代码生成框架。
提出的方法
- 将开源的 LLaMEA 框架与 SMAC3 集成,实现自动化超参数优化。
- 将数值超参数调优从 LLM 中卸载至 SMAC,使 LLM 能够专注于生成算法结构和控制流。
- 采用具有岛屿模型的进化算法,以在搜索空间中保持多样性。
- 利用 SMAC3 高效探索生成启发式算法的超参数空间,减少对重复 LLM 查询的依赖。
- 将该混合框架应用于包括在线装箱问题、黑箱优化和 TSP 在内的基准问题。
- 通过 Wilcoxon 符号秩检验和多种问题实例的解质量指标评估性能。

实验结果
研究问题
- RQ1将超参数调优从 LLM 卸载至专用 HPO 程序,是否能降低在 LLM 驱动启发式生成中的计算和财务成本?
- RQ2将算法创新与参数调优分离,是否能提升基于 LLM 的进化优化中解的收敛性和质量?
- RQ3LLaMEA-HPO 与现有 LLM 驱动框架(如 EoH)相比,在解质量与查询效率方面表现如何?
- RQ4该混合方法在多样化优化问题中,对解的多样性与性能的维持或提升程度如何?
- RQ5该框架是否可推广至其他计算成本高昂的优化领域,且仅需极少配置调整?
主要发现
- LLaMEA-HPO 显著减少了在基准问题上进行超参数调优所需的 LLM 查询次数,同时保持或提升了解的质量。
- 在在线装箱问题、黑箱优化和 TSP 基准测试中,该框架实现了优于或相当的性能,相较于现有基于 LLM 的方法。
- 在 TSP 问题中,LLaMEA-HPO 在 26 个实例中的 14 个实现了平均相对差距为 0.000 的结果,表明解接近最优。
- Wilcoxon 符号秩检验显示,LLaMEA-HPO 在所有基准测试中的平均秩为 4.918,表明其相对于基线具有强大的统计性能。
- 该方法通过最小化冗余的 LLM 交互,显著降低了计算开销,尤其在高维超参数空间中效果显著。
- 结果证实,LLM 在生成新颖算法结构方面比在数值上优化超参数更有效,验证了职责分离的合理性。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。