TL;DR
When solving the Traveling Salesman Problem (TSP), no single heuristic reigns supreme across all problem shapes and time budgets; the lead solver changes dynamically as the clock ticks. Instead of picking an algorithm blindly based on static map coordinates, ST-GNN-AAAS watches a brief snippet of solvers in action—tracking both their scores and how their candidate routes physically evolve—to accurately forecast which solver will lead at future moments. By fusing spatial graph structures with temporal execution trajectories, it significantly outperforms standalone solvers and pure time-series forecasters.
What Problem Does This Paper Address?
If you have a complex routing problem like the TSP, you have an enviable menu of high-performance heuristic algorithms (like LKH or Concorde). Because their performance varies wildly from map to map, researchers use Automatic Algorithm Selection (AAS) to pick the right tool for the job.
Standard AAS assumes a fixed runtime budget. Anytime AAS (AAAS) raises the stakes: what if you don't know when you'll need to pull the plug, and you want to know the best solver for any given time budget? Existing AAAS approaches mostly look at static, pre-execution features—like city coordinates—before a single line of solver code runs. They ignore the rich telemetry generated during execution. As a TSP solver runs, not only does its best-found cost drop, but the actual geometry of its best-so-far ("incumbent") tour mutates. The authors ask: can we watch a short initial window of these evolving spatial and temporal dynamics to predict the winning solver far into the future?
Methods
The authors propose ST-GNN-AAAS, a spatio-temporal encoder-decoder framework that treats algorithm selection like traffic forecasting on a graph.
First, continuous solver runs (up to 2 hours) are discretized onto an exponential 500-step time grid. The model observes a short 50-step history window ($L=50$, starting at step $s=50$) and predicts the best solver across the remaining 400-step future horizon ($P=400$).
What makes the method novel is how it represents the state of each solver:
- Static Spatial Graph: Each TSP instance is wired as a fixed 10-nearest-neighbor ($k$-NN) graph using city $(x, y)$ coordinates.
- Dynamic Tour Features (New): At each historical step, every city node is tagged with the distances to its immediate predecessor and successor ($d_{\text{prev}}, d_{\text{next}}$) in the solver's current incumbent tour. Whenever a solver untangles a crossing or swaps edges, these node features shift.
- Solver-Level Temporal Features: Alongside spatial data, a GRU tracks relative performance metrics within the observation window—normalized cost, gap to the current best, solver rank, and whether the score is actively improving.
An attention-based temporal graph network (A3T-GCN) digests the city graph and dynamic tour features, pooling them with the GRU's trajectory embeddings. Finally, a GRUCell decoder steps through future time embeddings to score every solver at each of the 400 future steps.
Datasets
The authors build upon TSP benchmarks curated by Huerta et al. (2022), filtering for instances with fewer than 5,000 cities (evaluating on 267 test instances) across four diverse families: NATIONAL, TNM, TSPLIB, and VLSI.
Crucially, they introduce a rich new execution dataset to support reproducibility. Rather than just logging final runtimes, they ran an expanded portfolio of seven TSP solvers (CLK, GA-EAX-restart, Concorde, LKH, VSR-LKH, LKH-Relaxation, and MAOS) for up to 2 hours per instance, recording every incumbent improvement along with its exact timestamp, objective value, and full tour permutation. (Note: Because CLK and GA-EAX-restart dominated the full pool, the main experiments focus on selecting among the remaining five competitive solvers).
Key Insights and Ideas
- Tour geometry carries predictive signal: Watching objective scores drop isn't enough. When the authors ablated the dynamic tour features ($d_{\text{prev}}, d_{\text{next}}$), selection accuracy fell by over 7.5 percentage points (from 76.59% down to 69.02%), proving that how a tour is shaped in early stages hints at whether a solver will stall or break through later.
- Spatial-temporal beats pure temporal: Even state-of-the-art sequence models like Mamba and DLinear—fed the exact same historical performance curves—couldn't match ST-GNN-AAAS, highlighting the value of grounding trajectories in the underlying TSP graph.
- Early momentum doesn't guarantee a late win: A "Persistence" baseline (simply betting that whichever solver is winning at the end of the observation window stays ahead) achieved an average rank of 2.66—worse than just picking the Single Best Solver, VSR-LKH, every time (2.61). Lead changes in TSP heuristics are real and frequent.
Key Results
Performance is measured primarily by Average Rank across the 5-solver pool over all future steps (lower is better), alongside selection accuracy and how much of the gap is closed between the Single Best Solver (SBS, always picking VSR-LKH) and the oracle Virtual Best Solver (VBS, picking the true winner at every step).
- Overall Accuracy & Rank: Across 267 test instances, ST-GNN-AAAS achieves an average rank of 2.26 ± 0.69 and 76.59% selection accuracy, beating the SBS (rank 2.61, accuracy 65.49%) with high statistical significance ($p = 6.13 \times 10^{-13}$).
- Closing the Oracle Gap: The model closes 46.05% of the average-rank gap between SBS and the ideal VBS (1.85), winning outright against SBS on 53.2% of instances and tying on 27.3%.
- Outperforming Baselines: It handily beats strong time-series models like Mamba (rank 2.40, 73.38% accuracy) and static-feature Random Forests (rank ~3.07–3.14, ~52–55% accuracy).
Limitations and Future Work
Not explicitly discussed in a dedicated section in the provided text, though two practical boundaries are apparent from the setup:
- Instance Scale: Experiments were restricted to TSP instances with fewer than 5,000 cities.
- Portfolio Dominance & Observation Overhead: Two top solvers (CLK and GA-EAX-restart) had to be excluded from the main 5-solver experiment because they dominated the pool. Furthermore, the framework requires observing execution history from the portfolio during the initial observation window ($T_{\text{obs}}$) before making long-horizon predictions.
Summary updated