Introduction
The Traveling Salesman Problem (TSP) is a fundamental challenge in computer science: finding the shortest route to visit $N$ cities and return to a starting point. Its more complex variant, the Multiple Traveling Salesmen Problem (mTSP), involves $M$ salesmen starting from a single depot. In this scenario, every city must be visited exactly once by exactly one salesman, and all salesmen must return to the depot.
While traditional heuristic solvers are robust, applying deep learning to mTSP introduces structural complexities. Standard sequence-to-sequence models often struggle with the permutation invariance of cities and the strict constraints of the problem (e.g., ensuring no sub-tours and that every city is visited). This paper proposes a specialized neural network architecture that treats cities, salesmen, and depots as distinct sets, utilizing permutation-invariant pooling to achieve state-of-the-art results.
Methodology
The core of the proposed approach is the Permutation Invariant Pooling Network. The architecture is designed to reflect the inherent symmetries of the mTSP, ensuring that the order in which cities or salesmen are listed does not affect the final output.
Multi-Set Representation and Pooling
Instead of a single list, the model represents the problem as three interacting sets. To process these sets, the authors developed a Leave-One-Out (LOO) Pooling mechanism. For any given element (like a specific city), the network generates a "context" by pooling information from all other elements in that set. This prevents the network from overlapping an element's own embedding with its neighborhood context, allowing for a cleaner representation of spatial relationships.
Network Architecture
The model is composed of $N$ stacked blocks. Each block contains a Permutation Invariant Layer followed by normalization and a shared fully connected (FC) layer with residual connections. This modular design allows the network to iteratively refine the representations of cities and salesmen by considering the global state of the problem at each step.
Differentiable Constraints and Loss
To ensure the network produces valid routes, the authors integrated a differentiable Softassign layer. This subnetwork acts as a "soft" version of the constraints used in Integer Linear Programming (ILP), guiding the network toward valid solutions during training. Furthermore, a Representation Invariant Loss was designed to handle the fact that a single mTSP solution can be represented in many ways (e.g., swapping the order of two salesmen).
Experimental Results
The model was trained on a synthetic dataset of ~7.3 million instances with 4 to 20 cities. Despite this relatively small training scale, the model demonstrated remarkable generalization capabilities:
- mTSP-test: On synthetic benchmarks, the model achieved an average error of just 0.01%, outperforming both neural baselines and standard solvers like Google OR-Tools.
- mTSPLib: When tested on real-world-style problems with up to 99 cities—far beyond the size of the training data—the model's pipeline outperformed the best meta-heuristics in the OR-Tools suite in the majority of cases.
- Efficiency: The neural network provides a high-quality "smart guess" that makes the overall solving process as computationally efficient as traditional local search methods.
Conclusion
This research highlights that architecture design is as critical as data scale in combinatorial optimization. By embedding problem-specific symmetries (permutation invariance) and constraints (Softassign) directly into the network's structure, the authors created a model that learns the underlying logic of routing. Future work may extend this framework to more complex Vehicle Routing Problems (VRP) involving vehicle capacities and time windows.
Summary updated