HiFo-Prompt: Prompting with Hindsight and Foresight for LLM-based Automatic Heuristic Design
ChentongChen, Mengyuan Zhong, Jialong Shi, Jianyong Sun, Ye Fan
摘要
This paper investigates the application of Large Language Models (LLMs) in Automated Heuristic Design (AHD), where their integration into evolutionary frameworks reveals a significant gap in global control and long-term learning. We propose the Hindsight-Foresight Prompt (HiFo-Prompt), a novel framework for LLM-based AHD designed to overcome these limitations. This is achieved through two synergistic strategies: Foresight and Hindsight. Foresight acts as a high-level meta-controller, monitoring population dynamics(e.g., stagnation and diversity collapse) to switch the global search strategy between exploration and exploitation explicitly. Hindsight builds a persistent knowledge base by distilling successful design principles from past generations, making this knowledge reusable. This dual mechanism ensures that the LLM is not just a passive operator but an active reasoner, guided by a global plan (Foresight) while continuously improving from its cumulative experience (Hindsight). Empirical results demonstrate that HiFo-Prompt significantly outperforms a comprehensive suite of state-of-the-art AHD methods, discovering higher-quality heuristics with substantially improved convergence speed and query efficiency. Our code is available at https://github.com/Challenger- XJTU/HiFo-Prompt. Introduction Combinatorial Optimization (CO) problems, which involve finding an optimal solution from a discrete set of possibilities, are ubiquitous in science and engineering. Because of their NP-hardness, designing effective heuristics for these problems is a complex task, traditionally based on extensive human experience and intuition [1] . The advent of Large Language Models (LLMs) has catalyzed a paradigm shift toward Automated Heuristic Design (AHD) [2, 3] . A particularly potent approach marries LLMs with Evolutionary Computation (EC), casting the LLM as a high-level semantic mutation operator. Foundational works such as FunSearch [4] and EoH [5] established the viability of this LLM+EC paradigm, demonstrating its capacity to discover novel and effective heuristics. However, as the field progresses, two fundamental challenges have emerged in AHD: the inability to steer the heuristic generation process based on population dynamics and the failure to distill and manage the core design principles of high-performance heuristics to guide the subsequent heuristic generation process. First, many approaches lack a mechanism for global adaptive guidance. They often rely on local or reactive signals; for instance, ReEvo [6] performs reflection on a single candidate, while methods such as MCTS-AHD [7] passively embed the exploration-exploitation trade-off within their search structure. This localized control does not respond to the macroscopical dynamics of the population and cannot proactively intervene when the search encounters systemic issues such as premature convergence or a decline in diversity. A more aggressive strategy involves in-weight adaptation (e.g., EvoTune [8], CALM [9]), which uses numerical gradients to fine-tune the LLM. Although powerful, this approach incurs
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- RefineEvo: Planning-Guided Heuristic Evolution with Bidirectional Experience 引用了 Reflexion: language agents with verbal reinforcement learning
- RefineEvo: Planning-Guided Heuristic Evolution with Bidirectional Experience 引用了 Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model
- ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution 引用了 POMO: Policy Optimization with Multiple Optima for Reinforcement Learning
- ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution 引用了 Reflexion: language agents with verbal reinforcement learning
- ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution 引用了 Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization
- Hierarchical Representations for Cross-task Automated Heuristic Design using LLMs 引用了 Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model
- Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization 引用了 POMO: Policy Optimization with Multiple Optima for Reinforcement Learning
- Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model 引用了 Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization
引用它的顶会 Paper2
它引用的 Paper11
- Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan 等NeurIPS 2023 · 5,828 次引用
- POMO: Policy Optimization with Multiple Optima for Reinforcement LearningYeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon 等NeurIPS 2020 · 731 次引用
- ReEvo: Large Language Models as Hyper-Heuristics with Reflective EvolutionHaoran Ye, Jiarui Wang, Zhiguang Cao, Federico Berto 等NeurIPS 2024 · 424 次引用
- Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale GeneralizationFu Luo, Xi Lin, Fei Liu, Qingfu Zhang 等NeurIPS 2023 · 248 次引用
- Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language ModelFei Liu, Xialiang Tong, Mingxuan Yuan, Xi Lin 等ICML 2024 · 238 次引用
相关 Paper
- Experience-Driven Reflective Co-Evolution of Prompts and Heuristics for Autonomous Algorithm DesignYihong Liu, Junyi Li, Hongyu Lu, Xin Zhao 等ACL Findings 2026
- DEPT: Large Language Model–Driven Automated Algorithm Design via Evolutionary Program TreesBin Chen, Shouliang Zhu, Beidan Liu, Yong Zhao 等ICML 2026 · 3 次引用
- PathWise: Planning through World Model for Automated Heuristic Design via Self-Evolving LLMsOguzhan Gungordu, Siheng Xiong, Faramarz FekriICML 2026 · 4 次引用
- EoH-S: Evolution of Heuristic Set Using LLMs for Automated Heuristic DesignFei Liu, Yilu Liu, Qingfu Zhang, Xialiang Tong 等AAAI 2026 · 11 次引用
- HSEvo: Elevating Automatic Heuristic Design with Diversity-Driven Harmony Search and Genetic Algorithm Using LLMsPham Vu Tuan Dat, Long Doan, Huynh Thi Thanh BinhAAAI 2025 · 3 次引用
