CALM: Co-evolution of Algorithms and Language Model for Automatic Heuristic Design
Ziyao Huang, Weiwei Wu, Kui Wu, Wei-Bin Lee, Jianping Wang
Abstract
Tackling complex optimization problems often relies on expert-designed heuristics, typically crafted through extensive trial and error. Recent advances demonstrate that large language models (LLMs), when integrated into well-designed evolutionary search frameworks, can autonomously discover high-performing heuristics at a fraction of the traditional cost. However, existing approaches predominantly rely on verbal guidance, i.e., manipulating the prompt generation process, to steer the evolution of heuristics, without adapting the underlying LLM. We propose a hybrid framework that combines verbal and numerical guidance, the latter achieved by fine-tuning the LLM via reinforcement learning based on the quality of generated heuristics. This joint optimization allows the LLM to co-evolve with the search process. Our method outperforms state-of-the-art (SOTA) baselines across various optimization tasks, running locally on a single 24GB GPU using a 7B model with INT4 quantization. It surpasses methods that rely solely on verbal guidance, even when those use significantly more powerful API-based models. Searching superior heuristics on the problem.name problem in an evolutionary manner through conversation between User and Assistant. In this problem, problem.description The User provides existing algorithms and requests a new one. ## Your Task You should first present a concise conceptual description, followed by a complete code implementation. * The description must: * Be enclosed with a double brace and starts with "The idea of the algorithm is to". * Ensure it is self-contained, insightful, and creatively original. * Not reference or rely on any prior ideas or existing code. * The code must: * Strictly follow the input-output variable names and types used in the provided implementation. * Be a single Python function formatted within Python code blocks. * Exclude any usage examples. * Ensure the algorithm is deterministic.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 255d6bbb-7c69-420e-a091-4d40b335ad65Cited by top-tier papers5
- 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
- EoH-S: Evolution of Heuristic Set Using LLMs for Automated Heuristic DesignFei Liu, Yilu Liu, Qingfu Zhang, Xialiang Tong et al.AAAI 2026 · 11 citations
- Refining Hybrid Genetic Search for CVRP via Reinforcement Learning-Finetuned LLMRongjie Zhu, Cong Zhang, Zhiguang CaoICLR 2026 · 5 citations
- MCCE: A Framework for Multi-LLM Collaborative Search in Discrete Spaces with Similarity-Filtered Preference LearningNian Ran, Zhongzheng Li, Yue Wang, Qingsong Ran et al.ICML 2026
- OptMaster: A DAG-Based Framework for Formulation and Heuristic Discovery in OptimizationHang Lin, Yuanpeng Gao, Yuzhi Zhang, Kun Yuan et al.ICML 2026
Builds on10
- POMO: Policy Optimization with Multiple Optima for Reinforcement LearningYeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon et al.NeurIPS 2020 · 731 citations
- ReEvo: Large Language Models as Hyper-Heuristics with Reflective EvolutionHaoran Ye, Jiarui Wang, Zhiguang Cao, Federico Berto et al.NeurIPS 2024 · 424 citations
- Statistical Rejection Sampling Improves Preference OptimizationTianqi Liu, Yao Zhao, Rishabh Joshi, Misha Khalman et al.ICLR 2024 · 346 citations
- Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language ModelFei Liu, Xialiang Tong, Mingxuan Yuan, Xi Lin et al.ICML 2024 · 238 citations
- NetLLM: Adapting Large Language Models for NetworkingDuo Wu, Xianda Wang, Yaqi Qiao, Zhi Wang et al.SIGCOMM 2024 · 162 citations
Related papers
- Hierarchical Representations for Cross-task Automated Heuristic Design using LLMsFei Liu, Rui Zhang, Shunyu Yao, Qinglong Hu et al.ICML 2026
- 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
- Generalizable Heuristic Generation Through LLMs with Meta-OptimizationYiding Shi, Jianan Zhou, Wen Song, Jieyi Bi et al.ICLR 2026 · 14 citations
- DecAEvolve: Decompose, Adapt, and Evolve for Effective LLM-based Scientific Equation DiscoveryPouya Behzadifar, Parshin Shojaee, Sanchit Kabra, Kazem Meidani et al.ICML 2026
- CoEvo: Continual Evolution of Symbolic Solutions Using Large Language ModelsPing Guo, Qingfu Zhang, Xi LinAAAI 2026 · 6 citations
