Revisiting Learning to Delegate: LLM Discovered Heuristics for Large-Scale Vehicle Routing
Organizations: University of Michigan · Massachusetts Institute of Technology · Purdue University
Abstract
Efficient vehicle routing is critical to logistics and transportation, yet solving large-scale capacitated vehicle routing problems (CVRP) remains computationally challenging due to their combinatorial complexity. One approach to solve large-scale vehicle routing optimization is to identify promising subproblems and then optimize them using solvers. In this paper, we propose a framework of automatic heuristic design (AHD) in which a large language model (LLM) autonomously refines heuristics for selecting subproblems, enabling effective optimization of large-scale CVRP instances. Compared to prior approaches that train task-specific neural networks to select among heuristically constructed subproblems, our method discovers generalizable, interpretable LLM-generated heuristics to directly construct subproblems. Experiments show that our approach achieves comparable in-distribution performance while outperforming neural network-based policies on out-of-distribution instances with large-scale problems.
Figures & tables
| Validation rank | Policy | Mean reduction (%) | Role |
|---|---|---|---|
| 1 | 135 | 5.24 | Primary |
| 2 | 143 | 5.20 | Exploratory |
| 3 | 147 | 5.18 | Exploratory |
| Panel | Centroid | L2D Uniform | L2D C/M |
|---|---|---|---|
| Mean [95% simultaneous interval] | |||
| S500/LKH | |||
| X500/LKH | |||
| X1000/LKH | |||
| X2000/LKH | |||
| X500/HGS | |||
| Panel | Centroid | L2D Uniform | L2D C/M |
|---|---|---|---|
| Mean [95% simultaneous interval] | |||
| Policy 143 (rank 2) | |||
| S500/LKH | |||
| X500/LKH | |||
| X1000/LKH | |||
| X2000/LKH | |||
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Panel | 135 | 143 | 147 | Centroid | L2D Uniform | L2D C/M |
|---|---|---|---|---|---|---|
| CVRP-S 500/LKH | 5.2014 | 5.2560 | 5.2267 | 5.2676 | 5.3484 | 5.3666 |
| CVRP-X 500/LKH | 7.5110 | 7.6397 | 7.6212 | 7.5490 | 7.2735 | 7.0039 |
| CVRP-X 1000/LKH | 4.1048 | 4.2460 | 4.2373 | 4.0576 | 3.7285 | 3.4968 |
| CVRP-X 2000/LKH | 2.7091 | 2.7530 | 2.7648 | 2.7021 | 2.2207 | 2.0938 |
| CVRP-X 500/HGS | 7.8440 | 7.9395 | 7.8802 | 7.9146 | 7.8760 | 7.8036 |
| CVRP-X 1000/HGS | 4.5296 | 4.6563 | 4.6065 | 4.5562 | 4.4442 | 4.3516 |
| Panel | 135 | 143 | 147 | Centroid | L2D Uniform | L2D C/M |
|---|---|---|---|---|---|---|
| CVRP-S 500/LKH | 56.8317 | 56.8000 | 56.8152 | 56.7896 | 56.7405 | 56.7331 |
| CVRP-X 500/LKH | 73.5889 | 73.4878 | 73.4936 | 73.4494 | 73.7899 | 74.0497 |
| CVRP-X 1000/LKH | 140.8941 | 140.6423 | 140.6375 | 140.6817 | 141.2484 | 141.6377 |
| CVRP-X 2000/LKH | 280.0833 | 279.9599 | 279.8886 | 279.7306 | 281.0309 | 281.2842 |
| CVRP-X 500/HGS | 73.3577 | 73.2551 | 73.2808 | 73.1377 | 73.2247 | 73.3476 |
| CVRP-X 1000/HGS | 140.3110 | 140.1387 | 140.2318 | 139.9861 | 140.2749 | 140.4223 |
| Rank | Policy | Disc. rank | Disc. (%) | Val. (%) |
|---|---|---|---|---|
| 1 | 135 (primary) | 8 | 5.3319 | 5.2403 |
| 2 | 143 | 2 | 5.3498 | 5.2002 |
| 3 | 147 | 4 | 5.3455 | 5.1835 |
| 4 | 65 | 11 | 5.3244 | 5.1800 |
| 5 | 155 | 3 | 5.3491 | 5.1798 |
| 6 | 153 | 1 | 5.3583 | 5.1778 |
| Method | Overall | Uniform | Clustered | Mixed |
|---|---|---|---|---|
| Policy 135 (primary) | 5.2014 | 4.4392 | 6.0529 | 5.1121 |
| Policy 143 | 5.2560 | 4.4686 | 6.1125 | 5.1870 |
| Policy 147 | 5.2267 | 4.4342 | 6.0859 | 5.1601 |
| Centroid-min-count | 5.2676 | 4.4972 | 6.1022 | 5.2035 |
| L2D Uniform | 5.3484 | 4.6234 | 6.0708 | 5.3511 |
| L2D C/M | 5.3666 | 4.5893 | 6.2094 | 5.3012 |
| Panel | 135 (rank 1) | 143 (rank 2) | 147 (rank 3) |
|---|---|---|---|
| CVRP-S validation | 5.2403 | 5.2002 | 5.1835 |
| CVRP-S test | 5.2014 | 5.2560 | 5.2267 |
| CVRP-X 500/LKH | 7.5110 | 7.6397 | 7.6212 |
| CVRP-X 1000/LKH | 4.1048 | 4.2460 | 4.2373 |
| CVRP-X 2000/LKH | 2.7091 | 2.7530 | 2.7648 |
| CVRP-X 500/HGS | 7.8440 | 7.9395 | 7.8802 |
| Panel | Routing budget | Solver seeds |
|---|---|---|
| Discovery | 60 s | 0 |
| Discovery | 120 s | 1 |
| Validation | 120 s |
| Quantity | Value |
|---|---|
| Proposals / allowance | 157 / 200 |
| Completed discovery screens (60 s) | 149 |
| Completed discovery evaluations (120 s) | 65 |
| Initial discovery reduction | 4.7417% |
| Highest discovery reduction | 5.3583% |
| Accounted API charges | $109.79 |
| Feature | CVRP-S | CVRP-X |
|---|---|---|
| Study role | Discovery, validation and source-distribution testing | Transfer testing only |
| Customers ( ) | 500 | 500, 1000 and 2000 |
| Test instances | 270 at | 90 at each size |
| Customer distribution | Uniform, clustered and mixed; clustered components use 3, 5 or 7 clusters | Random, clustered and mixed from the X-family generator |
| Depot-type groups | Not a separate design factor | Random, central and corner |
| Customer demands | Integers 1–9 | Seven regimes spanning unit, uniform, quadrant-dependent and many-small/few-large demands |
| Panel | 135 | 143 | 147 | Centroid | L2D Uniform | L2D C/M | |
|---|---|---|---|---|---|---|---|
| CVRP-S 500/LKH | 270 | -0.8080 | -0.8649 | -0.8343 | -0.8766 | -0.9618 | -0.9804 |
| CVRP-X 500/LKH | 90 | 0.2149 | 0.0752 | 0.0964 | 0.1895 | 0.4796 | 0.7664 |
| CVRP-X 1000/LKH | 90 | 0.0070 | -0.1405 | -0.1316 | 0.0654 | 0.4081 | 0.6458 |
| CVRP-X 2000/LKH | 90 | -0.2322 | -0.2771 | -0.2891 | -0.2226 | 0.2719 | 0.4016 |
| CVRP-X 500/HGS | 90 | -0.1470 | -0.2504 | -0.1847 | -0.2031 | -0.1654 | -0.0898 |
| CVRP-X 1000/HGS | 90 | -0.4371 | -0.5679 | -0.5181 | -0.4552 | -0.3393 | -0.2436 |
| Panel | 135 | 143 | 147 | Centroid | L2D Uniform | L2D C/M |
|---|---|---|---|---|---|---|
| CVRP-S 500/LKH | +1.1771 | +1.1189 | +1.1501 | +1.1066 | +1.0206 | +1.0008 |
| CVRP-X 500/LKH | +1.2129 | +1.0718 | +1.0932 | +1.1879 | +1.4807 | +1.7689 |
| CVRP-X 1000/LKH | +0.9653 | +0.8163 | +0.8253 | +1.0259 | +1.3719 | +1.6105 |
| CVRP-X 2000/LKH | +0.5364 | +0.4911 | +0.4791 | +0.5469 | +1.0453 | +1.1761 |
| CVRP-X 500/HGS | +0.8458 | +0.7415 | +0.8082 | +0.7897 | +0.8277 | +0.9039 |
| CVRP-X 1000/HGS | +0.5154 | +0.3829 | +0.4333 | +0.4983 | +0.6152 | +0.7115 |
Vehicle Routing
Vehicle routing studies how to assign and sequence trips for fleets while meeting capacity, time, energy, and service constraints.
See all 148 papers