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
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 reducing unspecificity and provide empirical results in this work. To reduce computing resources required for evaluating the derived heuristics, we propose few-shot Performance Prediction Prompting (PPP), a first-of-its-kind method for the Heuristic Generation (HG) task. PPP leverages LLMs to predict the fitness values of newly derived heuristics by analyzing their semantic similarity to previously evaluated ones. We further develop two tailored mechanisms for PPP to enhance predictive accuracy and determine unreliable predictions, respectively. The use of PPP makes Hercules more resource-efficient and we name this variant Hercules-P. Extensive experiments across four HG tasks, five COPs, and eight LLMs demonstrate that Hercules outperforms the state-of-the-art LLM-based HG algorithms, while Hercules-P excels at minimizing required computing resources. In addition, we illustrate the effectiveness of CAP, PPP, and the other proposed mechanisms by conducting relevant ablation studies.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- OptiHive: Ensemble Selection for LLM-Based Optimization via Statistical Modeling cites Large Language Models as Optimizers
- OptiHive: Ensemble Selection for LLM-Based Optimization via Statistical Modeling cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Efficient Few-Step Solution Generation via Discrete Flow Matching for Combinatorial Optimization cites POMO: Policy Optimization with Multiple Optima for Reinforcement Learning
- Efficient Few-Step Solution Generation via Discrete Flow Matching for Combinatorial Optimization cites DIFUSCO: Graph-based Diffusion Solvers for Combinatorial Optimization
- Efficient Few-Step Solution Generation via Discrete Flow Matching for Combinatorial Optimization cites Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization
- Large Language Models as Optimizers cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Refining Hybrid Genetic Search for CVRP via Reinforcement Learning-Finetuned LLM cites POMO: Policy Optimization with Multiple Optima for Reinforcement Learning
- Refining Hybrid Genetic Search for CVRP via Reinforcement Learning-Finetuned LLM cites Large Language Models as Optimizers
- Refining Hybrid Genetic Search for CVRP via Reinforcement Learning-Finetuned LLM cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- DIFUSCO: Graph-based Diffusion Solvers for Combinatorial Optimization cites POMO: Policy Optimization with Multiple Optima for Reinforcement Learning
- Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization cites POMO: Policy Optimization with Multiple Optima for Reinforcement Learning
Cited by top-tier papers5
- AlphaOPT: Formulating Optimization Programs with Self-Improving LLM Experience LibraryMinwei Kong, Ao Qu, Xiaotong Guo, Wenbin Ouyang et al.KDD 2026 · 16 citations
- Refining Hybrid Genetic Search for CVRP via Reinforcement Learning-Finetuned LLMRongjie Zhu, Cong Zhang, Zhiguang CaoICLR 2026 · 5 citations
- Efficient Few-Step Solution Generation via Discrete Flow Matching for Combinatorial OptimizationYuanshu Li, Di Wang, Wei Du, Xuan Wu et al.AAAI 2026 · 1 citation
- OptiHive: Ensemble Selection for LLM-Based Optimization via Statistical ModelingMaxime Bouscary, Saurabh AminAAAI 2026
- Learning Memory-Enhanced Improvement Heuristics for Flexible Job Shop SchedulingJiaqi Wang, Zhiguang Cao, Peng Zhao, Rui Cao et al.NeurIPS 2025
Builds on20
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- Large Language Models as OptimizersChengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu et al.ICLR 2024 · 817 citations
- POMO: Policy Optimization with Multiple Optima for Reinforcement LearningYeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon et al.NeurIPS 2020 · 731 citations
- DIFUSCO: Graph-based Diffusion Solvers for Combinatorial OptimizationZhiqing Sun, Yiming YangNeurIPS 2023 · 356 citations
- Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale GeneralizationFu Luo, Xi Lin, Fei Liu, Qingfu Zhang et al.NeurIPS 2023 · 248 citations
Related papers
- HiFo-Prompt: Prompting with Hindsight and Foresight for LLM-based Automatic Heuristic DesignChentongChen, Mengyuan Zhong, Jialong Shi, Jianyong Sun et al.ICLR 2026 · 17 citations
- HPSS: Heuristic Prompting Strategy Search for LLM EvaluatorsBosi Wen, Pei Ke, Yufei Sun, Cunxiang Wang et al.ACL Findings 2025 · 3 citations
- Experience-Driven Reflective Co-Evolution of Prompts and Heuristics for Autonomous Algorithm DesignYihong Liu, Junyi Li, Hongyu Lu, Xin Zhao et al.ACL Findings 2026
- ORPP: Self-Optimizing Role-playing Prompts to Enhance Language Model CapabilitiesYifan Duan, Yihong Tang, Kehai Chen, Liqiang Nie et al.EMNLP 2025
- DEPT: Large Language Model–Driven Automated Algorithm Design via Evolutionary Program TreesBin Chen, Shouliang Zhu, Beidan Liu, Yong Zhao et al.ICML 2026 · 3 citations
