Accelerating Dynamic Route Re-solving via Robust Solver Evolution in Automatic Heuristic Design

Yizhuo Ma, Haoran Sun, Shuang Liang, Muquan Li, Qizhi Chen, Renzhong Wang, Nan Chen, Lunxu Liu, Ke QinarXiv 2026

TL;DR

Large Language Models (LLMs) are surprisingly good at writing custom algorithms to plan delivery routes, until the real world happens—customers cancel, new orders pop up, and addresses change mid-transit. When forced to recalculate routes on the fly, these AI-evolved solvers suddenly bog down because they "overfit" to the original static maps they practiced on. This paper introduces ERDR, a plug-and-play training upgrade that cures this tunnel vision and speeds up real-time route recalculations by up to $4.4\times$ without sacrificing route quality.

What Problem Does This Paper Address?

Finding the shortest path through dozens or hundreds of stops—formally known as the Traveling Salesman Problem (TSP)—is computationally brutal. Instead of relying on human experts to hand-craft clever shortcuts (heuristics), researchers recently turned to Automatic Heuristic Design (AHD). In AHD, an LLM iteratively writes, tests, and mutates code inside an evolutionary loop until an elite route-planning algorithm emerges.

There is just one catch: these algorithms are evolved in a vacuum on static, unchanging maps.

In real-world logistics, a delivery driver might be 20% through their route when orders get canceled, new ones arrive, or destinations shift. You have to re-solve the remaining route from the vehicle's current location. When the authors tested standard LLM-evolved solvers in these dynamic scenarios, they hit a wall: reusing a static-trained solver took 2.8 to 3.3 times longer than using a solver freshly evolved for the modified map.

Methods

Standard AHD pipelines generate candidate code via an LLM, embed that code into classic search frameworks—specifically Guided Local Search (GLS) or Iterated Local Search (ILS)—and keep the code that produces the shortest average routes.

To stop these evolved solvers from choking when the map changes, the authors built ERDR (Efficient Re-solving in Dynamic Scenarios via Robust Solver Evolution), a plug-and-play wrapper that upgrades how candidate code is judged and selected:

  1. Validation-Guided Reselection: Borrowing a classic page from machine learning, ERDR splits problem instances into disjoint training and validation groups. Routine code mutations are tested on the training set, saving compute, while survival into the next generation is decided strictly by performance on the unseen validation set. This prevents the code from memorizing structural quirks of specific training maps.
  2. Runtime Robustness-Augmented Evaluation: Instead of judging a heuristic solely by average route length, ERDR adds two time-based penalties: inter-group variability (standard deviation of solving times across groups) and tail risk (average solving time on the slowest half of the groups). Candidates are then ranked using Pareto dominance—meaning to survive, an algorithm must be fast, consistent across diverse maps, and find short routes.

Datasets

  • Synthetic TSP Benchmarks: Following standard AHD protocols, the authors generated 50 synthetic Euclidean TSP maps each for 200 nodes (TSP200) and 500 nodes (TSP500), uniformly sampled in a $[0, 1]^2$ unit square.
  • TSPLIB: To test out-of-distribution generalization without retraining, they evaluated their TSP200-evolved solvers directly on six real-world benchmark maps from TSPLIB ranging from 70 to 493 stops (st70, pr76, ch150, a280, rd400, d493).
  • Dynamic Perturbations: Across both datasets, the authors constructed 9 dynamic test scenarios per map by triggering three types of changes—coordinate noise (location changes), adding 20% more unvisited stops, or canceling 20% of remaining stops—at 20%, 50%, and 80% route completion.

Key Insights and Ideas

  • Algorithms can "static-overfit" just like neural networks: When a static-evolved solver encounters a mid-route change, its search patterns become pathologically narrow, obsessively checking the same overlapping local neighborhoods over and over. ERDR forces heuristics to search more broadly across the map.
  • The trap of mean-based evolution: Tracking standard AHD evolution revealed how this overfitting sneaks in. Across generations, route-length improvements increasingly concentrated on a tiny handful of maps—and those exact maps took way longer to solve. Because standard evolution only looks at the average route length, a sluggish, hyper-specialized solver stays competitive as long as it scores big on a few outlier maps.
  • Smarter math beats brittle thresholds: Inspecting the actual Python code written by the LLMs showed why ERDR works. A baseline solver evolved rigid quantile thresholds on sparse matrices that accidentally collapsed to zero, applying flat penalties everywhere. The ERDR-evolved solver wrote an adaptive rule that calibrated edge penalties relative to the current tour's average step distance, naturally adjusting its guidance when nodes shifted.

Key Results

ERDR was plugged into four state-of-the-art AHD methods (EoH, ReEvo, Hercules, and MEoH):

  • Massive Re-solving Speedups: Across all synthetic scenarios, ERDR accelerated dynamic route recalculation in every single tested configuration, achieving average speedups of $2.2\times$ under GLS and $4.4\times$ under ILS.
  • Negligible Quality Trade-off: Despite running up to four times faster, mean final route lengths increased by at most ~1.93% (GLS) and ~2.04% (ILS)—and in several ReEvo and MEoH setups, ERDR actually found shorter routes than the baseline.
  • Zero-Shot Real-World Transfer: On real-world TSPLIB maps, TSP200-trained ERDR heuristics achieved a $1.89\times$ mean speedup out of the box.
  • Cheaper Training: Because routine evaluations only run on half the dataset (the 5:5 train-validation split), end-to-end LLM evolution time actually dropped in most setups (e.g., cutting EoH+ILS evolution on TSP500 from 22.06 hours down to 19.95 hours).

Limitations and Future Work

ERDR's speed advantage isn't invincible. In boundary stress tests, when coordinate shifts or new node additions became extreme (e.g., adding 40–50% new stops or heavy spatial noise late in a tour), ERDR's runtime advantage occasionally vanished or reversed. The authors note that massive map shakeups can trigger cascading route adjustments; if an ERDR solver perturbs connections more aggressively than a conservative baseline, the local-search cleanup ends up costing more time. Additionally, when routes are 80% finished or heavily canceled, the remaining problem is so small that everything runs fast anyway, leaving little room for speedup. Explicit future research directions are not discussed in the paper.

Summary updated

Abstract

Multi-goal route planning uses spatial data on service locations and pairwise travel costs to determine a visiting order that minimizes total travel cost. This task can be formulated as the traveling salesman problem (TSP) and has benefited from large language model-based automatic heuristic design (AHD) for constructing effective solvers. Despite their effectiveness in static settings, existing methods exhibit substantial re-solving inefficiency when location changes, new requests, or request cancellations alter the underlying request data during execution. Our empirical analysis suggests that ``static-overfitting'' contributes to this inefficiency, as evolved solvers may repeatedly direct search toward overlapping local neighborhoods after dynamic changes. We further find that this ``overfitting'' is associated with limitations in existing evolutionary processes, where lower objective values on some instances coincide with longer solving times. In this paper, we therefore propose ERDR, a plug-and-play framework that integrates two strategies into existing AHD pipelines to guide evolution toward solvers that re-solve dynamically changed instances faster. Specifically, 1) ERDR uses validation-guided reselection to reevaluate candidates on instances excluded from routine evolution, reducing specialization to fixed training instances. 2) ERDR applies runtime robustness-augmented evaluation, supplementing the original evaluation objective of AHD methods with inter-group variability and tail risk in solving time to discourage costly and uneven search. Experiments across multiple TSP scales and dynamic scenarios show that ERDR achieves average re-solving speedups of $2.2\times$ under guided local search and $4.4\times$ under iterated local search.
BibTeX
@misc{ma2026accelerating,
  author = {Yizhuo Ma and Haoran Sun and Shuang Liang and Muquan Li and Qizhi Chen and Renzhong Wang and Nan Chen and Lunxu Liu and Ke Qin},
  title = {{Accelerating Dynamic Route Re-solving via Robust Solver Evolution in Automatic Heuristic Design}},
  year = {2026},
  eprint = {2611.32576},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32576},
}
Figure