TL;DR
When we ask Large Language Models (LLMs) to invent optimization algorithms through trial and error, they usually suffer from amnesia—forgetting why a successful piece of code actually worked from one generation to the next. This paper gives LLMs a structured "design notebook" by extracting, testing, and recombining explicit, human-readable design principles on the fly. The result is an evolutionary system that discovers algorithms balancing top-tier accuracy with blazing execution speeds far better than code-only evolution.
What Problem Does This Paper Address?
For massive, real-world headaches like routing delivery fleets, finding the mathematically perfect answer takes way too long. Instead, engineers rely on heuristics—clever rules of thumb that find "good enough" answers fast. Designing these heuristics by hand is a grueling art form, especially when balancing conflicting goals like solution accuracy versus runtime speed (a challenge known as multi-objective optimization).
Recently, researchers started pairing LLMs with Evolutionary Computation (EC) to automate this process—letting LLMs mutate and breed code over generations. However, existing pipelines treat design knowledge poorly. Valuable rationales for why an algorithm works remain buried implicitly inside raw code, or get squished into a single, monolithic text summary. The authors ask: What if we explicitly extract discrete design principles, track which ones actually work, and smartly recombine them to guide future code generation?
Methods
Building on an existing multi-objective evolutionary framework (MEoH), the authors introduce MEoH-IDS (Multi-objective Evolution of Heuristics with Insight-Driven Search). Instead of just evolving code, the system maintains a fixed-size pool of reusable textual design principles—called "insights"—in a closed loop.
Here is how the loop operates:
- Warm-Start Extraction: Before evolution begins, the LLM acts as a domain expert to brainstorm an initial pool of diverse textual insights, writes a heuristic for each, and scores them.
- Bandit-Guided Selection (What's New): Selecting which insights to feed into the next prompt is framed as a combinatorial multi-armed bandit problem (think of a gambler choosing the best combination of slot machines to pull). Each insight gets an Upper Confidence Bound (UCB) score balancing its past success with how rarely it has been tried. Crucially, instead of greedily picking the top-scoring insights—which kills diversity—the system samples subsets probabilistically based on their UCB scores.
- Reward via Pareto Dominance: How do we reward a set of insights? If the resulting heuristic enters the Pareto archive—meaning no other discovered algorithm is both faster and more accurate—every insight used to create it gets a binary reward of
1(otherwise0). - Reverse-Engineering & Pruning: Whenever a newly generated heuristic makes it into that elite Pareto set, the LLM analyzes the winning code to reverse-engineer and synthesize a brand-new design insight, adding it to the pool while pruning the lowest-scoring insight to keep memory bounded.
Datasets
The authors evaluate MEoH-IDS on three classic routing problems, optimizing for both total travel distance and heuristic execution time:
- Training/Search Environments: Synthetic 50-customer instances (64 training instances) for the Capacitated Vehicle Routing Problem (CVRP) and Vehicle Routing Problem with Time Windows (VRPTW), where the LLM designs node-scoring functions inside a greedy framework. For the Traveling Salesman Problem (TSP), they use 100-node instances (with a preliminary check on 200-node instances) where the LLM must invent the entire heuristic from scratch.
- Evaluation Benchmarks: Synthetic test sets alongside three standard, real-world operations research benchmarks to test out-of-distribution generalization: TSPLIB (for TSP), Augerat benchmarks (for CVRP), and Solomon benchmarks (for VRPTW). No new datasets are introduced.
Key Insights and Ideas
- Reverse-engineering code into concepts pays off: Ablation studies show that even if you select insights completely at random, dynamically distilling new textual insights from winning code outperforms relying on a static pool of initial ideas. Adding bandit-guided selection on top provides another distinct leap in performance.
- Greedy knowledge selection is a trap: Deterministically picking the highest-scoring insights causes the search to converge prematurely. Probabilistic UCB sampling keeps the semantic gene pool diverse.
- Almost free lunch in token costs: Maintaining an explicit memory of insights sounds expensive, yet under the same evaluation budget, MEoH-IDS uses only about 5% more LLM tokens than its base framework (MEoH) while converging noticeably faster.
- Unconstrained algorithm design works: Even when stripped of a safety-net template and forced to write an entire TSP solver from scratch, insight-driven search discovers diverse algorithms ranging from sub-millisecond approximations to slower, high-precision solvers.
Key Results
Across CVRP, VRPTW, and unconstrained TSP, MEoH-IDS consistently achieves superior Hypervolume (higher is better) and Inverted Generational Distance (lower is better) compared to single-objective baselines (ReEvo, MCTS-AHD) and multi-objective MEoH.
Looking at concrete numbers on the TSP test set:
- Quality-Oriented ("Best") Heuristics: MEoH-IDS achieves a 2.613% optimality gap in 0.063s, beating MEoH (4.021% in 0.055s) and single-objective ReEvo (4.116% in 1.511s—making MEoH-IDS over 20× faster and more accurate).
- Speed-Oriented ("Fastest") Heuristics: MEoH-IDS finds millisecond-scale solvers (0.001s) across TSP and CVRP while shaving ~1.3% to 5.1% off the optimality gap compared to MEoH at that same 1-millisecond mark.
- Model Scaling: Upgrading the default
GPT-3.5-turbobackbone toGPT-4o-miniyields even tighter Pareto fronts on TSP100, showing the framework scales cleanly with smarter models.
Limitations and Future Work
- Not beating battle-tested OR solvers yet: On classical TSPLIB benchmarks, the gold-standard human-engineered solver
LKH-3hits a 0.249% gap (in 3.097s), whereas MEoH-IDS's best automated TSP heuristic lands at 4.370% (in 0.722s). Furthermore, the CVRP/VRPTW setups omit local search, serving as fast constructive components rather than standalone replacements for mature solvers. - Coarse credit assignment: When a subset of $k$ insights generates a winning heuristic, every insight in that subset gets an equal reward of
1—even if one insight did all the heavy lifting and another was dead weight. Developing finer-grained credit assignment and expanding beyond routing problems are key next steps.
Summary updated