ST-GNN-AAAS: Spatio-Temporal Graph Neural Networks for Anytime Automatic Algorithm Selection in the Traveling Salesman Problem
Organizations: Division of Natural and Applied Sciences Duke Kunshan University Kunshan, China
Abstract
Anytime Automatic Algorithm Selection (AAAS) aims to make solver choices under varying time budgets. The existing AAAS approaches largely rely on static instance characteristics and make limited use of temporal information revealed during solver execution. We propose ST-GNN-AAAS, a Spatio-Temporal Graph Neural Network framework for AAAS in the Traveling Salesman Problem (TSP). The framework represents evolving incumbent tours using time-varying node features, including distances from each node to its neighbors in the current tour, and combines these features with solver performance observations over a short history window. Given this short history, ST-GNN-AAAS predicts solver selections over a longer future horizon. We evaluate the method on a subset of diverse TSP benchmarks from NATIONAL, TNM, TSPLIB, and VLSI, releasing the corresponding solver execution data to support reproducibility. Our model achieves a selection accuracy of 76.59% and closes 46.05% of the average rank gap between the single best solver (SBS) and the virtual best solver (VBS).
Figures & tables
| Method | Average Rank | Accuracy (%) |
|---|---|---|
| ST-GNN-AAAS | ||
| ST-GNN-AAAS w/o tour features | 69.02 | |
| Mamba [ 12 ] | 73.38 | |
| DLinear [ 51 ] | 69.99 | |
| TimeFilter [ 15 ] | 67.29 | |
| Persistence | 66.40 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Source | Number of instances | Retained set | ||||
| Original | euc_2d | Retained | range | Median | ||
| Training set | ||||||
| NETGEN | 600 | 600 | 600 | 600 | 500–2,000 | 1,250 |
| NETGENM | 600 | 600 | 600 | 600 | 500–2,000 | 1,250 |
| RUE | 3150 | 3150 | 3150 | 3150 | 500–2,000 | 1,500 |
| TSPGEN | 1981 | 499 | 499 | 496 | 31–4,999 | 2,518 |
| Solver | Parameter | Value | Default |
|---|---|---|---|
| LKH, VSR-LKH, LKH-Rlx. | RUNS | 99999999 | 10 |
| CLK ( linkern ) | -R | 99999999 | |
| MAOS | T | 99999999 | 500 |
| Solver | Training set ( ) | Test set ( ) | ||
|---|---|---|---|---|
| Avg Rank | Accuracy (%) | Avg Rank | Accuracy (%) | |
| LKH | 2.48 | 77.11 | 3.17 | 51.33 |
| LKH-Relaxation | 2.51 | 76.07 | 3.10 | 52.89 |
| VSR-LKH | 2.70 | 70.99 | 2.61 | 65.49 |
| CONCORDE | 3.62 | 48.25 | 2.82 | 60.13 |
| MAOS | 3.69 | 26.93 | 3.29 | 40.07 |
| ST-GNN-AAAS(ours) | Persistence and random forests | |||||
| Models | w/ tour features | w/o tour features | Persistence | RF (actual time) | RF (time-step) | RF (no time) |
| Avg. rank | {\color[rgb]{0.55,0,0}\mathbf{2.26}}\,{\pm}\,0.69 | |||||
| Acc. (%) | 76.59 | 69.02 | 66.40 | 55.48 | 54.28 | 51.81 |
| Window | Average Rank | Accuracy (%) | |||||
|---|---|---|---|---|---|---|---|
| Model | SBS | VBS | Model | SBS | VBS | ||
| ALL | 267 | 100.0 | |||||
| 100–150 | 267 | 100.0 | |||||
| 150–200 | 267 | 100.0 | |||||
| 200–300 | 267 | 100.0 | |||||
| 300–400 | 267 | 100.0 | |||||
| Source | Variant | Average Rank | Accuracy (%) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Model | SBS | VBS | Closed (%) | Model | SBS | VBS | Closed (%) | |||
| NAT. | Full | 8 | 38.76 | 100 | 26.82 | |||||
| w/o Tour | 32.56 | 16.54 | ||||||||
| TNM | Full | 126 | 58.00 | 100 | 37.11 | |||||
| w/o Tour | 14.00 | 14.09 | ||||||||
| TSPLIB | Full | 70 | 44.74 | 100 | 36.07 | |||||
| Method | Overall | NATIONAL | TNM | TSPLIB | VLSI |
|---|---|---|---|---|---|
| # Instances | 267 | 8 | 126 | 70 | 63 |
| # Evaluations | 106800 | 3200 | 50400 | 28000 | 25200 |
| VBS | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
| Ours | 0.2796 | 0.1623 | 0.3737 | 0.1820 | 0.2684 |
| CONCORDE | 1.0000 | 1.0000 | 1.0000 | 1.3426 | 1.0000 |
| VSR-LKH | 2.5795 | 2.3855 | 3.1363 | 1.6513 | 2.8132 |
Algorithm Selection
Algorithm selection predicts which solver, model, or strategy will work best for a given instance, context, or computational budget.
See all 57 papers