Abstract
MEoH (Multi-objective Evolution of Heuristic) is a novel framework that leverages Large Language Models (LLMs) to automate the design of heuristics while balancing multiple conflicting objectives, such as solution quality and computational efficiency. By integrating LLM-driven semantic mutation with a dominance-dissimilarity selection mechanism, MEoH explores the trade-off space effectively, discovering diverse heuristics that significantly outperform single-objective baselines in both speed and robustness. This approach marks a shift from finding a single "best" solution to providing a Pareto front of high-performing heuristics tailored for varied real-world constraints.
Introduction
In combinatorial optimization, heuristics are essential for finding near-optimal solutions to complex problems like the Traveling Salesman Problem (TSP) or Bin Packing Problem (BPP) within reasonable timeframes. Traditionally, these heuristics are hand-crafted by domain experts. Recent advancements have introduced Large Language Models (LLMs) to automate this process (e.g., FunSearch or EoH). However, these existing methods primarily focus on single-objective optimization—maximizing solution quality.
In practical engineering, a heuristic's value is often determined by a trade-off between its accuracy and its computational cost. A highly accurate algorithm that is excessively slow is often impractical. MEoH addresses this gap by treating heuristic design as a Multi-Objective Optimization Problem (MOP), enabling the discovery of a diverse set of algorithms that represent optimal trade-offs between performance, efficiency, and complexity.
The MEoH Framework
MEoH introduces a structured evolutionary loop that utilizes the semantic understanding of LLMs to navigate the space of heuristic logic. Unlike traditional evolutionary algorithms that struggle with the brittle syntax of code, LLMs act as "semantic mutators," understanding the underlying logic to perform meaningful crossovers and refinements.
Dominance-Dissimilarity Mechanism
The core innovation of MEoH is its selection mechanism, which ensures both performance and diversity in the heuristic population:
- Objective Space (Dominance): Heuristics are evaluated based on multiple metrics (e.g., solution gap and running time). A heuristic is retained if it is not "dominated" by others—meaning it is better in at least one objective.
- Search Space (Dissimilarity): To avoid the search converging on minor variations of the same logic, MEoH compares the code structure of heuristics using Abstract Syntax Trees (AST). This rewards structural novelty and prevents the population from stagnating in a local "idea space."
Experimental Evaluation
The framework was tested on two benchmark combinatorial problems:
- Online Bin Packing Problem (BPP): Evaluated on instances ranging from 5,000 to 100,000 items with Weibull distributions.
- Traveling Salesman Problem (TSP): Tested on random instances (100–1,000 nodes) and the standard TSPLIB benchmark library.
Results and Discussion
MEoH demonstrated significant improvements over single-objective baselines like EoH. In the Bin Packing Problem, MEoH discovered heuristics that achieved competitive accuracy while being up to 10 times faster than those generated by single-objective methods.
As shown in the performance metrics, MEoH achieves superior convergence and diversity:
- Hypervolume (HV): MEoH reaches a higher HV faster, indicating it covers the trade-off space more effectively.
- Inverted Generational Distance (IGD): The lower IGD for MEoH suggests its discovered Pareto front is much closer to the true optimal front compared to baselines.
- Generalization: Heuristics evolved on smaller problem instances (e.g., 5k items) maintained their performance when scaled to much larger instances (100k items), proving that the LLM is discovering robust logic rather than overfitting to specific data.
Conclusion
MEoH represents a significant step forward in automated heuristic design by moving beyond single-objective optimization. By leveraging the semantic power of LLMs and a rigorous multi-objective selection process, it provides developers with a "toolbox" of heuristics. Future work will explore scaling the framework to many-objective scenarios (e.g., including code readability and memory usage) and applying it to a broader range of industrial optimization tasks.
Summary updated