[Paper Review] In-the-loop Hyper-Parameter Optimization for LLM-Based Automated Design of Heuristics
This paper proposes LLaMEA-HPO, a hybrid framework that integrates the LLaMEA LLM-based evolutionary algorithm with SMAC-based hyper-parameter optimization (HPO) to reduce LLM query costs. By offloading hyper-parameter tuning to an HPO procedure, the LLM focuses on generating novel algorithmic structures, achieving state-of-the-art performance on Online Bin Packing, Black-Box Optimization, and TSP benchmarks with significantly fewer LLM queries and lower computational costs.
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.
Motivation & Objective
- To address the high computational and financial cost of using LLMs for hyper-parameter tuning in automated heuristic design.
- To improve the efficiency of LLM-driven evolutionary code optimization by decoupling algorithmic innovation from numerical parameter tuning.
- To validate a hybrid framework that combines LLaMEA with SMAC-based HPO on standard benchmark problems.
- To demonstrate that LLMs are more effective at generating novel algorithmic structures than at fine-tuning hyper-parameters.
- To provide a scalable, cost-effective framework for LLM-based code generation in computationally expensive optimization domains.
Proposed method
- Integrates the open-source LLaMEA framework with SMAC3 for automated hyper-parameter optimization.
- Offloads numerical hyper-parameter tuning from the LLM to SMAC, allowing the LLM to focus on generating algorithmic structures and control flows.
- Uses an evolutionary algorithm with island model to maintain diversity in the search space.
- Employs SMAC3 to efficiently explore the hyper-parameter space of generated heuristics, reducing the need for repeated LLM queries.
- Applies the hybrid framework to benchmark problems including Online Bin Packing, Black-Box Optimization, and TSP.
- Evaluates performance using Wilcoxon signed-rank tests and solution quality metrics across multiple problem instances.

Experimental results
Research questions
- RQ1Can offloading hyper-parameter tuning from LLMs to a dedicated HPO procedure reduce computational and financial costs in LLM-driven heuristic generation?
- RQ2Does separating algorithmic innovation from parameter tuning improve the convergence and quality of solutions in LLM-based evolutionary optimization?
- RQ3How does LLaMEA-HPO compare to existing LLM-driven frameworks like EoH in terms of solution quality and query efficiency?
- RQ4To what extent does the hybrid approach maintain or improve solution diversity and performance across diverse optimization problems?
- RQ5Can the framework be generalized to other computationally expensive optimization domains with minimal reconfiguration?
Key findings
- LLaMEA-HPO significantly reduces the number of LLM queries required for hyper-parameter tuning while maintaining or improving solution quality on benchmark problems.
- The framework achieved superior or comparable performance on Online Bin Packing, Black-Box Optimization, and TSP benchmarks compared to existing LLM-driven approaches.
- On the TSP problem, LLaMEA-HPO achieved a mean relative gap of 0.000 for 14 out of 26 instances, indicating near-optimal solutions.
- The Wilcoxon signed-rank test showed a mean rank of 4.918 for LLaMEA-HPO across all benchmarks, indicating strong statistical performance relative to baselines.
- The approach reduced computational overhead by minimizing redundant LLM interactions, particularly in high-dimensional hyper-parameter spaces.
- The results confirm that LLMs are more effective at generating novel algorithmic structures than at numerically optimizing hyper-parameters, validating the separation of concerns.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.