Abstract
Neural Combinatorial Optimization (NCO) models for the Traveling Salesman Problem (TSP) often suffer from poor generalization when applied to non-uniform, real-world node distributions. We present COGS (Combinatorial Optimization with Generative Sampling), a framework that leverages a Variational Autoencoder (VAE) to generate a diverse curriculum of training instances. By interpolating across the latent space of problem geometries and integrating Hardness-Adaptive Curriculum (HAC) techniques, COGS significantly improves solver robustness. Our results on synthetic clustered distributions and the new TSPLib50 benchmark demonstrate state-of-the-art performance, particularly in worst-case scenarios where traditional neural solvers fail.
1. Introduction
The Traveling Salesman Problem (TSP) is a fundamental challenge in combinatorial optimization with vast industrial applications in logistics and manufacturing. While exact solvers like Concorde provide optimal solutions, their high computational latency makes them unsuitable for real-time decision-making. Deep Reinforcement Learning (DRL) offers a faster alternative; however, these models are notoriously "brittle." Most are trained on uniform distributions, causing them to fail catastrophically on clustered real-world data where "empty spaces" between nodes lead to sub-optimal routing decisions and self-intersecting paths.
2. The COGS Framework
To address this brittleness, we introduce COGS, which shifts the focus from the learning architecture to the diversity of the training data distribution.
The framework consists of three primary components:
- Generative Modeling: A VAE is trained to represent a wide range of TSP configurations, including clustered and uniform distributions.
- Generative Sampling: During RL training, the model samples from the VAE's continuous latent space. This allows the solver to encounter "interpolated" instances that bridge the gap between simple synthetic distributions, preventing overfitting to uniform patterns.
- Hardness-Adaptive Integration: COGS incorporates HAC, which uses gradient ascent to perturb instances, making them locally harder for the current model. This dual approach ensures both broad distribution coverage and targeted difficulty.
3. Robustness Benchmarking: TSPLib50
A key contribution of this work is the introduction of the TSPLib50 dataset. Traditional generalization tests often conflate distribution shifts with increases in problem size (number of nodes). By sampling 50-node sub-problems from the classic TSPLib, we isolate the impact of spatial distribution on model performance.
This benchmark proves that generalization in TSP is not merely about handling more nodes, but about handling different spatial patterns. Standard models perform poorly on these real-world patterns even at a fixed size of 50 nodes.
4. Experimental Results
COGS demonstrates significant improvements over the previous state-of-the-art (HAC) across multiple benchmarks. On Gaussian Mixture (clustered) instances, COGS reduced the optimality gap from 9.10% to 5.70%. On the "Diagonal" distribution, which maximizes empty space, the gap dropped from 3.90% to 2.97%.
Most importantly, the framework excels in "worst-case" scenarios; on the most difficult 1% of TSPLib50 instances, COGS improved the optimality gap by 5.05% compared to HAC. These results indicate that generative sampling effectively prepares NCO models for the irregularities and "empty space" challenges of real-world spatial data.
5. Conclusion
COGS provides a robust pathway for deploying DRL solvers in industrial settings. By utilizing generative models to create a more comprehensive training curriculum, we mitigate the brittleness inherent in standard NCO approaches. Future research will focus on scaling these generative techniques to larger problem instances and extending the framework to other combinatorial challenges like the Vehicle Routing Problem (VRP).
Summary updated