PathWise: Planning through World Model for Automated Heuristic Design via Self-Evolving LLMs
Oguzhan Gungordu, Siheng Xiong, Faramarz Fekri
TL;DR
PathWise reframes automated heuristic design for COPs as stateful, plan-driven reasoning over an entailment graph, guided by a policy agent, a world model, and rhetorical critics. This two-timescale framework enables memory of derivations, diverse exploration, and critique-informed refinement, yielding faster convergence and stronger generalization across multiple COPs and LLM backbones. Empirical results across TSP, KP, CVRP, MKP, OP, and BPP demonstrate superior performance to existing LLM-based AHD methods and robustness to backbone differences, with ablations confirming the value of critics and prompt diversity. The work advances scalable, memory-aware AHD, reducing manual heuristic engineering and enabling broader applicability in real-world optimization tasks.
Abstract
Large Language Models (LLMs) have enabled automated heuristic design (AHD) for combinatorial optimization problems (COPs), but existing frameworks' reliance on fixed evolutionary rules and static prompt templates often leads to myopic heuristic generation, redundant evaluations, and limited reasoning about how new heuristics should be derived. We propose a novel multi-agent reasoning framework, referred to as Planning through World Model for Automated Heuristic Design via Self-Evolving LLMs (PathWise), which formulates heuristic generation as a sequential decision process over an entailment graph serving as a compact, stateful memory of the search trajectory. This approach allows the system to carry forward past decisions and reuse or avoid derivation information across generations. A policy agent plans evolutionary actions, a world model agent generates heuristic rollouts conditioned on those actions, and critic agents provide routed reflections summarizing lessons from prior steps, shifting LLM-based AHD from trial-and-error evolution toward state-aware planning through reasoning. Experiments across diverse COPs show that PathWise converges faster to better heuristics, generalizes across different LLM backbones, and scales to larger problem sizes.
