Efficient Heuristics Generation for Solving Combinatorial Optimization Problems Using Large Language Models
Xuan Wu, Di Wang, Chunguo Wu, Lijie Wen, Chunyan Miao, Yubin Xiao, You Zhou

TL;DR
This paper introduces Hercules, a novel LLM-based heuristic generation method for combinatorial optimization that uses core abstraction prompting and performance prediction to improve specificity and resource efficiency, outperforming existing approaches.
Contribution
The paper presents Hercules, combining CAP and PPP techniques to generate specific heuristics efficiently, with theoretical validation and extensive empirical evaluation showing superior performance.
Findings
Hercules outperforms state-of-the-art LLM-based heuristic generation methods.
Hercules-P significantly reduces computational resources needed.
CAP effectively reduces unspecific search directions.
Abstract
Recent studies exploited Large Language Models (LLMs) to autonomously generate heuristics for solving Combinatorial Optimization Problems (COPs), by prompting LLMs to first provide search directions and then derive heuristics accordingly. However, the absence of task-specific knowledge in prompts often leads LLMs to provide unspecific search directions, obstructing the derivation of well-performing heuristics. Moreover, evaluating the derived heuristics remains resource-intensive, especially for those semantically equivalent ones, often requiring omissible resource expenditure. To enable LLMs to provide specific search directions, we propose the Hercules algorithm, which leverages our designed Core Abstraction Prompting (CAP) method to abstract the core components from elite heuristics and incorporate them as prior knowledge in prompts. We theoretically prove the effectiveness of CAP in…
Peer Reviews
Decision·Submitted to ICLR 2025
Strengths: - The topic is interesting and of recent interest - The approach (CAP and PPP) seems novel. - The experiments show significant gains over the baselines in deriving penalty heuristics for guided local search, as well as more moderate gains on constructive heuristics for TSP, heuristic measures for ant colony optimization, and reshaping of attention scores in neural combinatorial optimization,
Weaknesses: - I found the claim about information gain to be quite confusing. - First, a lot of information is missing: why the number of core components corresponds to the number of heuristics (can we not have multiple core components per heuristic or the same core component in multiple heuristics)? why do we assume that the set of all possible directions can be partitioned into mutually exclusive subsets that correspond to components (can we not have the same direction for multiple core comp
Integrating LLMs with heuristic solving is an exciting combination. The paper implements an end-to-end pipeline that starts with a seed query that then mimics evolutionary computing via LLMs, yielding heuristics that can be embedded in the Local Search Meta-Heuristics for different combinatorial problems. The connection with Information Gain is an excellent addition From a practical perspective, the paper considers several details into account such as reducing costs via LLM predictors.
As rightly noted in the paper, the idea of mimicking evolutionary computation via LLMs is not new. In fact, most (all?) crossover and mutation operators are from Ye et. al. 2024. On the one hand, the experiments and the ablation study show that the proposed modifications might offer some benefit in the results, and on the other hand, they can be regarded as incremental, and it is not clear what's the main takeaway. Regarding the presentation, I found it difficult/confusing that many moving par
The proposed framework is interesting and seems to work well in practice.
The choice of KGLS as seed heuristics should be justified as it was not designed for the general TSP. Why not LKH? This should also be considered in the empirical evaluation; in particular to answer the question of whether KGLS is a reasonable heuristic to start with in this case (improving over a weak heuristic is easier than improving over a strong heuristic). Figure 5 has no axis labels.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsConstraint Satisfaction and Optimization · Metaheuristic Optimization Algorithms Research · Vehicle Routing Optimization Methods
