arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16309cs.NEcs.AI
收藏

面向基于LLM的启发式算法自动设计的循环超参数优化

In-the-loop Hyper-Parameter Optimization for LLM-Based Automated Design of Heuristics

LIACS, Leiden University(LIACS,莱顿大学)

Niki van Stein, Diederick Vermetten, Thomas Bäck

AI总结:

本文提出LLaMEA-HPO混合框架,将超参数优化纳入循环,使LLM专注算法结构创新,在多个基准问题上以更低计算成本实现优越或相当性能。

摘要:

大型语言模型(LLMs)在自动生成和优化(元)启发式算法方面展现出巨大潜力,使其成为启发式优化任务中的宝贵工具。然而,LLMs在微调所生成算法的超参数方面通常效率低下,往往需要过多的查询,导致高昂的计算和财务成本。本文提出了一种新颖的混合方法LLaMEA-HPO,它将开源LLaMEA(大型语言模型进化算法)框架与循环中的超参数优化(HPO)过程相结合。通过将超参数调优外包给HPO过程,LLaMEA-HPO框架使LLM能够专注于生成新颖的算法结构,减少了所需的LLM查询次数,并提高了优化过程的整体效率。我们在基准问题上对提出的混合框架进行了实证验证,包括在线装箱、黑盒优化和旅行商问题。我们的结果表明,与现有的LLM驱动框架相比,LLaMEA-HPO在显著降低计算成本的同时,实现了优越或相当的性能。这项工作强调了在LLM驱动的代码优化中,将算法创新和结构代码搜索与参数调优分离的重要性,并提供了一种可扩展的方法来提高基于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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑