TL;DR
Deep learning solvers for the Traveling Salesman Problem (TSP) notoriously overfit to uniformly distributed cities and falter on out-of-distribution instances. This paper reframes neural TSP generalization as a two-player zero-sum game using Policy Space Response Oracle (PSRO), pitting a solver against an adversarial data generator that learns how to perturb city distributions to expose the solver's weaknesses. Ensembling the resulting solver population via Nash equilibrium weights achieves state-of-the-art generalization on perturbed benchmarks and real-world TSPLib problems.
What Problem Does This Paper Address?
While deep reinforcement learning has shown strong promise for combinatorial optimization, neural solvers typically train exclusively on node coordinates drawn from a uniform random distribution ($\mathcal{U}(0,1)$). Consequently, their performance deteriorates sharply when applied to real-world topologies, clustered instances, or any distribution shift.
Standard heuristic approaches (such as Concorde or LKH) do not suffer from distribution shift in the same way, while neural methods overfit to spatial regularities present only in uniform noise. The authors seek a generalizable, solver-agnostic training paradigm that forces neural solvers to handle hard, diverse, and previously unseen problem distributions without requiring manual dataset engineering.
Methods
The authors cast generalization as a two-player asymmetric zero-sum normal-form game between two entities:
- Solver Selector ($\text{SS}$): A population of deep learning-based TSP heuristics parameterized by $\theta$, seeking to minimize the expected optimality gap against an oracle.
- Data Generator ($\text{DG}$): An adversarial generator parameterized by $\gamma$, learning to craft problem distributions (both the coordinate distribution and the number of nodes) that maximize the solver's optimality gap.
To train these agents, the authors adopt the Policy Space Response Oracle (PSRO) meta-game algorithm:
- Adversarial Coordinate Attacks: Given uniform base coordinates, an attack neural network $f_{\gamma_C}$ outputs the variance matrix $\Sigma$ of Gaussian perturbations, shifting node locations to target solver failure modes.
- Oracle Training via Best Responses: At each PSRO loop, an approximate best-response solver is trained against the generator's mixed meta-strategy, while a new attack generator is trained via policy gradients against the solver's meta-strategy.
- Meta-Strategy & Mixing Model: The meta-game payoff matrix (expected optimality gap) is solved for its Nash Equilibrium (NE) at each round. Rather than relying on a single final network, the framework combines the solver population into a mixture model (either ensembling Q-values or weighting action probabilities) weighted by their equilibrium strategy probabilities. In practice, only the top solvers making up 99% of the probability mass (typically 1–3 models) are retained to prevent runaway inference overhead.
The base architecture evaluated is the Learning Improvement Heuristics (LIH) model (Wu et al., 2021), evaluated both trained from scratch within PSRO ($\text{LIH(FS)}$) and fine-tuned from uniform pretraining ($\text{LIH(FT)}$).
┌────────────────────────────────────────────────────────┐
│ PSRO Loop │
│ │
│ ┌──────────────────┐ ┌───────────────┐ │
│ │ Solver Selector │◄── Minimizes ─┤ Optimality │ │
│ │ (Base: LIH) │ Gap │ Gap Payoff │ │
│ └────────┬─────────┘ └───────▲───────┘ │
│ │ │ │
│ Plays against Maximizes Gap │
│ │ │ │
│ ▼ │ │
│ ┌──────────────────┐ ┌───────┴───────┐ │
│ │ Data Generator │── Perturbs ──►│ Challenging │ │
│ │ (Gaussian Noise) │ Instances │ Distributions │ │
│ └──────────────────┘ └───────────────┘ │
└────────────────────────────────────────────────────────┘
Datasets
The authors evaluate models on both synthetic and standard benchmark distributions:
- Synthetic Perturbed Instances: 1,000 instances generated for $n = 20, 50, 100$ nodes. Starting from a unit square, points are perturbed by $y \sim \mathcal{N}(0, \Sigma)$, with $\Sigma$ diagonally scaled in $[0, \lambda]$ and $\lambda \sim \mathcal{U}(0, 1)$, followed by min-max normalization.
- TSPLib: A standard benchmark library of real-world TSP instances ranging from 51 to 159 nodes (e.g.,
eil51,berlin52,kroB100,bier127).
Key Insights and Ideas
- Adversarial Vulnerability of TSP Models: Standard neural solvers trained on uniform data degrade drastically when subjected to tiny, learned Gaussian perturbations (e.g., optimality gaps jump by 5–15 percentage points under attack).
- Generalization as Low Exploitability: Rather than treating generalization as training on a static, arbitrary data mixture, framing it as minimizing exploitability in a zero-sum game guarantees performance against the worst-case distributions the generator can synthesize.
- Empirical Nash Convergence: Across 15 PSRO iterations, the exploitability of the solver population monotonically decreases, empirically confirming convergence toward an approximate Nash equilibrium.
- Game-Theoretic Ensembling Outperforms Uniform Ensembling: Combining solvers using exact Nash equilibrium weights significantly outperformed uniform weighting across all models, because uniform ensembling assigns unwarranted weight to early, weaker solvers in the population history.
Key Results
- Synthetic OOD Performance ($n=100$):
- Baseline LIH with $T=3000$ improvement steps has a 6.24% gap; classical Attention Model (AM) exhibits a 16.45% gap.
- The proposed framework drops the gap substantially: $\text{LIH(FS)}$ achieves 2.77%, and $\text{LIH(FT)}$ achieves 2.50%.
- TSPLib Real-World Benchmarks:
- Standard AM achieves a 36.86%–42.96% average gap, and baseline LIH sits at 17.12%.
- $\text{LIH(FS)}$ achieves an average gap of 5.13%, while $\text{LIH(FT)}$ achieves 5.49%.
- On 12 out of 13 evaluated TSPLib instances (such as
pr124,kroB150, andbier127), the PSRO-trained models outperform the classical operations research solver OR-Tools.
Limitations and Future Work
- Inference Runtime Overhead: Evaluating a mixture model requires multiple forward passes per decision step. While thresholding the cumulative distribution to 99% restricts the ensemble to 1–3 models, runtime still increases roughly linearly with the number of active solvers.
- Approximations in Adversarial Training: Computing the score function gradient for the Data Generator requires evaluating log densities over perturbed coordinates, necessitating numerical Monte Carlo integration.
- Scope of Problems: The paper exclusively investigates 2D Euclidean Traveling Salesman Problems. The authors note that extending the PSRO framework to broader routing problems (e.g., Capacitated Vehicle Routing, CVRP) and exploring more efficient fine-tuning regimes remain important future directions.
Summary updated