Learning to Solve Travelling Salesman Problem with Hardness-Adaptive Curriculum
Zeyang Zhang, Ziwei Zhang, Xin Wang, Wenwu Zhu
Abstract
Various neural network models have been proposed to tackle combinatorial optimization problems such as the travelling salesman problem (TSP). Existing learning-based TSP methods adopt a simple setting that the training and testing data are independent and identically distributed. However, the existing literature fails to solve TSP instances when training and testing data have different distributions. Concretely, we find that different training and testing distribution will result in more difficult TSP instances, i.e., the solution obtained by the model has a large gap from the optimal solution. To tackle this problem, in this work, we study learning-based TSP methods when training and testing data have different distributions using adaptive-hardness, i.e., how difficult a TSP instance can be for a solver. This problem is challenging because it is non-trivial to (1) define hardness measurement quantitatively; (2) efficiently and continuously generate sufficiently hard TSP instances upon model training; (3) fully utilize instances with different levels of hardness to learn a more powerful TSP solver. To solve these challenges, we first propose a principled hardness measurement to quantify the hardness of TSP instances. Then, we propose a hardness-adaptive generator to generate instances with different hardness. We further propose a curriculum learner fully utilizing these instances to train the TSP solver. Experiments show that our hardness-adaptive generator can generate instances ten times harder than the existing methods, and our proposed method achieves significant improvement over state-of-the-art models in terms of the optimality gap. The codes are publicly available.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers27
- Learning Invariant Graph Representations for Out-of-Distribution GeneralizationHaoyang Li, Ziwei Zhang, Xin Wang, Wenwu ZhuNeurIPS 2022 · 170 citations
- Dynamic Graph Neural Networks Under Spatio-Temporal Distribution ShiftZeyang Zhang, Xin Wang, Ziwei Zhang, Haoyang Li et al.NeurIPS 2022 · 122 citations
- Learning Generalizable Models for Vehicle Routing Problems via Knowledge DistillationJieyi Bi, Yining Ma, Jiahai Wang, Zhiguang Cao et al.NeurIPS 2022 · 114 citations
- GLOP: Learning Global Partition and Local Construction for Solving Large-Scale Routing Problems in Real-TimeHaoran Ye, Jiarui Wang, Helan Liang, Zhiguang Cao et al.AAAI 2024 · 100 citations
- Towards Omni-generalizable Neural Methods for Vehicle Routing ProblemsJianan Zhou, Yaoxin Wu, Wen Song, Zhiguang Cao et al.ICML 2023 · 90 citations
Builds on2
Related papers
- Neural Solver Selection for Combinatorial OptimizationChengrui Gao, Haopu Shang, Ke Xue, Chao QianICML 2025
- From Distribution Learning in Training to Gradient Search in Testing for Combinatorial OptimizationYang Li, Jinpei Guo, Runzhong Wang, Junchi YanNeurIPS 2023 · 115 citations
- Neural TSP Solver with Progressive DistillationDongxiang Zhang, Ziyang Xiao, Yuan Wang, Mingli Song et al.AAAI 2023 · 19 citations
- Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale GeneralizationFu Luo, Xi Lin, Fei Liu, Qingfu Zhang et al.NeurIPS 2023 · 248 citations
- Diversity Optimization for Travelling Salesman Problem via Deep Reinforcement LearningQi Li, Zhiguang Cao, Yining Ma, Yaoxin Wu et al.KDD 2025 · 1 citation
