HiFo-Prompt: Prompting with Hindsight and Foresight for LLM-based Automatic Heuristic Design
Not on the map. Why?
Abstract (arXiv)
LLM-based Automatic Heuristic Design (AHD) within Evolutionary Computation (EC) frameworks has shown promising results. However, its effectiveness is hindered by the use of static operators and the lack of knowledge accumulation mechanisms. We introduce HiFo-Prompt, a framework that guides LLMs with two synergistic prompting strategies: Foresight and Hindsight. Foresight-based prompts adaptively steer the search based on population dynamics, managing the exploration-exploitation trade-off. In addition, hindsight-based prompts mimic human expertise by distilling successful heuristics from past generations into fundamental, reusable design principles. This dual mechanism transforms transient discoveries into a persistent knowledge base, enabling the LLM to learn from its own experience. Empirical results demonstrate that HiFo-Prompt significantly outperforms state-of-the-art LLM-based AHD methods, generating higher-quality heuristics while achieving substantially faster convergence and superior query efficiency. Our code is available at https://github.com/Challenger-XJTU/HiFo-Prompt.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 25 of its 94 references that are in the map. First posted on arXiv 18 Aug 2025.
Builds on
25 of 94 references.
References · 25
- 2017Attention Is All You Needcited by 60,361
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2015Pointer Networkscited by 895
- 2023Large Language Models as Optimizerscited by 864
- 2020POMO: Policy Optimization with Multiple Optima for Reinforcement Learningcited by 348
- 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolutioncited by 276
- 2024Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Modelcited by 268
- 2023Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalizationcited by 142
- 2025Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Designcited by 109
- 2024LLaMEA: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristicscited by 97
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
- 2024HSEvo: Elevating Automatic Heuristic Design with Diversity-Driven Harmony Search and Genetic Algorithm Using LLMscited by 73
13 more
- 2024Self-Contrast: Better Reflection Through Inconsistent Solving Perspectivescited by 71
- 2024A Systematic Survey on Large Language Models for Algorithm Designcited by 69
- 2024Multi-objective Evolution of Heuristic Using Large Language Modelcited by 54
- 2023Algorithm Evolution Using Large Language Modelcited by 53
- 2024A Sober Look at LLMs for Material Discovery: Are They Actually Good for Bayesian Optimization Over Molecules?cited by 48
- 2024UDC: A Unified Neural Divide-and-Conquer Framework for Large-Scale Combinatorial Optimization Problemscited by 47
- 2025Algorithm Discovery With LLMs: Evolutionary Search Meets Reinforcement Learningcited by 46
- 2020Cost-aware Bayesian Optimizationcited by 42
- 2025CALM: Co-evolution of Algorithms and Language Model for Automatic Heuristic Designcited by 29
- 2024Understanding the Importance of Evolutionary Search in Automated Heuristic Design with Large Language Modelscited by 22
- 2024Evolve Cost-aware Acquisition Functions Using Large Language Modelscited by 17
- 2024Deep Insights into Automated Optimization with Large Language Models and Evolutionary Algorithmscited by 12
- 2025RedAHD: Reduction-Based End-to-End Automatic Heuristic Design with Large Language Modelscited by 4
Built on by
Citing papers per year: 2026: 16.
16 papers.
Sort:
By area:
- 2026G-LNS: Generative Large Neighborhood Search for LLM-Based Automatic Heuristic Designcited by 7
- 2026TIDE: Tuning-Integrated Dynamic Evolution for LLM-Based Automated Heuristic Designcited by 3
- 2026SeaEvo: Advancing Algorithm Discovery with Strategy Space Evolutioncited by 3
- 2026RefineEvo: Planning-Guided Heuristic Evolution with Bidirectional Experiencecited by 2
- 2026Breaking Validity-Induced Boundaries to Expand Algorithm Search Space: A Two-Stage AST-Based Operator for LLM-Driven Automated Heuristic Evolutioncited by 1
- 2026MicroEvo: Knowledge-Guided LLM Sampling for Efficient Microarchitecture Design Space Explorationcited by 1
- 2026Language-Grounded Multi-Agent Planning for Personalized and Fair Participatory Urban Sensingcited by 0
- 2026CoupleEvo: Evolving Heuristics for Coupled Optimization Problems Using Large Language Modelscited by 0
- 2026MeEvo: Metacognitive Evolution Combined with Natural Evolution for Automatic Heuristic Designcited by 0
- 2026RELIC: Revealed Principles for Learning Interpretable Composable Skills in Multi-Agent Planningcited by 0
- 2026SCOPE: Synthetic Conditional Objectives for Policy Evolution in Black-Box Combinatorial Optimizationcited by 0
- 2026AutoSND: From Execution Evidence to Structural Policies for Automated Network Dismantling Heuristic Discoverycited by 0
4 more
- 2026From Hand-Crafted to LLM-Based Variation Operators in Metaheuristics: A Tutorialcited by 0
- 2026LLMs as Adaptive Meta-Solvers: Strategy-Diverse RL for Industrial-Scale Optimizationcited by 0
- 2026SimpleEvol: An Agent-Loop Framework for LLM-Driven Automated Heuristic Design with Minimal Human Priorscited by 0
- 2026AdaEva: Accelerating LLM-Driven Algorithm Design with Adaptive Partial Evaluationcited by 0
- 2026AdaEva: Accelerating LLM-Driven Algorithm Design with Adaptive Partial Evaluation2 Oct 2026
- 2026SimpleEvol: An Agent-Loop Framework for LLM-Driven Automated Heuristic Design with Minimal Human Priors29 Sep 2026
- 2026LLMs as Adaptive Meta-Solvers: Strategy-Diverse RL for Industrial-Scale Optimization28 Sep 2026
- 2026From Hand-Crafted to LLM-Based Variation Operators in Metaheuristics: A Tutorial13 Sep 2026
- 2026MicroEvo: Knowledge-Guided LLM Sampling for Efficient Microarchitecture Design Space Exploration6 Aug 2026
- 2026AutoSND: From Execution Evidence to Structural Policies for Automated Network Dismantling Heuristic Discovery4 Aug 2026
- 2026SCOPE: Synthetic Conditional Objectives for Policy Evolution in Black-Box Combinatorial Optimization30 Jul 2026
- 2026RELIC: Revealed Principles for Learning Interpretable Composable Skills in Multi-Agent Planning18 Jul 2026
- 2026RefineEvo: Planning-Guided Heuristic Evolution with Bidirectional Experience13 Jul 2026
- 2026MeEvo: Metacognitive Evolution Combined with Natural Evolution for Automatic Heuristic Design12 Jun 2026
- 2026CoupleEvo: Evolving Heuristics for Coupled Optimization Problems Using Large Language Models7 May 2026
- 2026SeaEvo: Advancing Algorithm Discovery with Strategy Space Evolution27 Apr 2026
4 more
- 2026Breaking Validity-Induced Boundaries to Expand Algorithm Search Space: A Two-Stage AST-Based Operator for LLM-Driven Automated Heuristic Evolution3 Apr 2026
- 2026Language-Grounded Multi-Agent Planning for Personalized and Fair Participatory Urban Sensing25 Mar 2026
- 2026G-LNS: Generative Large Neighborhood Search for LLM-Based Automatic Heuristic Design9 Feb 2026
- 2026TIDE: Tuning-Integrated Dynamic Evolution for LLM-Based Automated Heuristic Design29 Jan 2026
- 2026Language-Grounded Multi-Agent Planning for Personalized and Fair Participatory Urban Sensingcited by 0
- 2026RELIC: Revealed Principles for Learning Interpretable Composable Skills in Multi-Agent Planningcited by 0
- 2026SimpleEvol: An Agent-Loop Framework for LLM-Driven Automated Heuristic Design with Minimal Human Priorscited by 0
- 2026SimpleEvol: An Agent-Loop Framework for LLM-Driven Automated Heuristic Design with Minimal Human Priors29 Sep 2026
- 2026RELIC: Revealed Principles for Learning Interpretable Composable Skills in Multi-Agent Planning18 Jul 2026
- 2026Language-Grounded Multi-Agent Planning for Personalized and Fair Participatory Urban Sensing25 Mar 2026
- 2026G-LNS: Generative Large Neighborhood Search for LLM-Based Automatic Heuristic Designcited by 7
- 2026TIDE: Tuning-Integrated Dynamic Evolution for LLM-Based Automated Heuristic Designcited by 3
- 2026SeaEvo: Advancing Algorithm Discovery with Strategy Space Evolutioncited by 3
- 2026RefineEvo: Planning-Guided Heuristic Evolution with Bidirectional Experiencecited by 2
- 2026Breaking Validity-Induced Boundaries to Expand Algorithm Search Space: A Two-Stage AST-Based Operator for LLM-Driven Automated Heuristic Evolutioncited by 1
- 2026MicroEvo: Knowledge-Guided LLM Sampling for Efficient Microarchitecture Design Space Explorationcited by 1
- 2026CoupleEvo: Evolving Heuristics for Coupled Optimization Problems Using Large Language Modelscited by 0
- 2026MeEvo: Metacognitive Evolution Combined with Natural Evolution for Automatic Heuristic Designcited by 0
- 2026SCOPE: Synthetic Conditional Objectives for Policy Evolution in Black-Box Combinatorial Optimizationcited by 0
- 2026AutoSND: From Execution Evidence to Structural Policies for Automated Network Dismantling Heuristic Discoverycited by 0
- 2026From Hand-Crafted to LLM-Based Variation Operators in Metaheuristics: A Tutorialcited by 0
- 2026LLMs as Adaptive Meta-Solvers: Strategy-Diverse RL for Industrial-Scale Optimizationcited by 0
12 most cited of 13 All 13 (JSON)
- 2026AdaEva: Accelerating LLM-Driven Algorithm Design with Adaptive Partial Evaluation2 Oct 2026
- 2026LLMs as Adaptive Meta-Solvers: Strategy-Diverse RL for Industrial-Scale Optimization28 Sep 2026
- 2026From Hand-Crafted to LLM-Based Variation Operators in Metaheuristics: A Tutorial13 Sep 2026
- 2026MicroEvo: Knowledge-Guided LLM Sampling for Efficient Microarchitecture Design Space Exploration6 Aug 2026
- 2026AutoSND: From Execution Evidence to Structural Policies for Automated Network Dismantling Heuristic Discovery4 Aug 2026
- 2026SCOPE: Synthetic Conditional Objectives for Policy Evolution in Black-Box Combinatorial Optimization30 Jul 2026
- 2026RefineEvo: Planning-Guided Heuristic Evolution with Bidirectional Experience13 Jul 2026
- 2026MeEvo: Metacognitive Evolution Combined with Natural Evolution for Automatic Heuristic Design12 Jun 2026
- 2026CoupleEvo: Evolving Heuristics for Coupled Optimization Problems Using Large Language Models7 May 2026
- 2026SeaEvo: Advancing Algorithm Discovery with Strategy Space Evolution27 Apr 2026
- 2026Breaking Validity-Induced Boundaries to Expand Algorithm Search Space: A Two-Stage AST-Based Operator for LLM-Driven Automated Heuristic Evolution3 Apr 2026
- 2026G-LNS: Generative Large Neighborhood Search for LLM-Based Automatic Heuristic Design9 Feb 2026
12 newest of 13 All 13 (JSON)