Back to the Beginning of Heuristic Design: Bridging Code and Knowledge with LLMs
About
Large language models (LLMs) have recently advanced automatic heuristic design (AHD) for combinatorial optimization (CO), where candidate heuristics are iteratively proposed, evaluated, and refined. Most existing approaches search over executable programs and distill insights from execution feedback to guide later iterations. Because this process moves from low-level implementations to high-level principles, we refer to it as a bottom-up paradigm. We argue that this view is incomplete and introduce a complementary top-down perspective: knowledge becomes the primary search object and code merely instantiates and tests it, making what is learned explicit and reusable across problems and trajectories. We formalize this shift through a statistical-learning view that exposes a distortion--compression trade-off, and instantiate it in both population-based and tree-based AHD frameworks. Across CO and tasks beyond it, knowledge-first search improves discovery efficiency, transfer, and generalization, often outperforming code-centric pipelines, while combining both strategies yields further gains. Our results suggest that progress in AHD depends on iteratively constructing and evolving interpretable hypotheses that retain value beyond a single search trajectory.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Traveling Salesman Problem | Uniform-TSP100 | Optimality Gap1.71 | 41 | |
| Traveling Salesman Problem | TSP Clustered-200 | Performance Gap (%)6.2 | 18 | |
| Traveling Salesman Problem | TSP Clustered-500 | Performance Gap (%)10.09 | 18 | |
| Traveling Salesman Problem | TSP Diagonal-100 | Performance Gap (%)0.27 | 18 | |
| Traveling Salesman Problem | TSP Diagonal-200 | Performance Gap4.54 | 18 | |
| Traveling Salesman Problem | TSP Diagonal-500 | Performance Gap (%)6.49 | 18 | |
| Traveling Salesman Problem | TSP Barbell-100 | Performance Gap (%)6.95 | 18 | |
| Traveling Salesman Problem | TSP Barbell-200 | Performance Gap9.5 | 18 | |
| Traveling Salesman Problem | TSP Barbell-500 | Performance Gap (%)10.72 | 18 | |
| Traveling Salesman Problem | TSP Clustered-100 | Performance Gap3.28 | 18 |