Neural Re-Insertion Improvement Algorithm for Large-Scale TSP

Expand
  • School of Mathematical Sciences, University of Chinese Academy of Sciences, Beijing 100049, China

Received date: 2025-04-28

  Revised date: 2025-11-26

  Accepted date: 2025-12-25

  Online published: 2026-10-15

Supported by

This paper was supported by the National Key R&D Program of China (No. 2021YFA1000403), the National Natural Science Foundation of China (Nos. 12431012 and U23B2012).

Abstract

Traveling salesman problem (TSP) is an important problem in combinatorial optimization, which serves as the foundation for significant frontier scientific issues, including integrated circuit design and genomics. Learning-based methods have shown impressive results in solving the TSP, demonstrating efficient perception and decision-making abilities. However, as the scale of modern scenarios continues to expand, efficiently improving existing solutions through learning approaches remains a challenging and urgent task. A general framework for re-insertion improvement in the TSP is proposed. Focusing the core decision on the selection of re-insertion positions, we design a neural re-insertion improvement (NRII) algorithm based on deep reinforcement learning. NRII integrates multiple attention mechanisms and neural components to achieve the perception and parameterization of re-insertion positions, followed by model training through a policy optimization method. Extensive numerical experiments validate that the NRII algorithm can be combined with various solving methods to efficiently improve the solution quality across different scales and distributions. Additionally, detailed sensitivity analyses of the hyperparameter in NRII are also conducted.

Cite this article

Wen-Zhao Liu, Cong-Ying Han, Tian-De Guo . Neural Re-Insertion Improvement Algorithm for Large-Scale TSP[J]. Journal of the Operations Research Society of China, 2026 , 14(3) : 806 -832 . DOI: 10.1007/s40305-025-00669-x

References

[1] Bengio, Y., Lodi, A., Prouvost, A.: Machine learning for combinatorial optimization: amethodological tour d’horizon. Eur. J. Oper. Res. 209(2), 405-421(2021)
[2] Chaitanya K.J., Thomas L., Xavier B.: An efficient graph convolutional network technique for the travelling salesman problem (2019). arXiv:1906.01227
[3] Christofides, N.: Worst-case analysis of a new heuristic for the travelling salesman problem. CarnegieMellon University, Graduate School of Industrial Administration (1976)
[4] Dantzig, G.B., Fulkerson, R., Johnson, S.M.: Solution of a large-scale traveling salesman problem. J. Oper. Res. Soc. Am. 2(4), 393-410(1954)
[5] Dorigo, M., Gambardella, L.M.: Ant colony system: a cooperative learning approach to the traveling salesman problem. IEEE Trans. Evol. Comput. 1(1), 53-66(1996)
[6] Fang, H., Song, Z., Weng, P., Ban, Y.: INViT: a generalizable routing problem solver with invariant nested view transformer. In: the Proceedings of the International Conference on Machine Learning (2024)
[7] Fu, Z.-H., Qiu, K.-B., Zha, H.: Generalize a small pre-trained model to arbitrarily large TSP instances. Proceedings of the AAAI Conference on Artificial Intelligence 35(8), 7474-7482(2020)
[8] Gerhard, R.: TSPLIB-A traveling salesman problem library. ORSA J. Comput. 3(4), 376-384(1991)
[9] Guo, T., Han, C., Tang, S., Ding, M.: Solving combinatorial problems with machine learning methods. In: Nonlinear Combinatorial Optimization, pp. 207-229(2019)
[10] Guo, T., Li, A., Han, C.: Machine learning method for combinatorial optimization problems. SCIENTIA SINICA Mathematica 55(2), 451(2025)
[11] Hartmanis, J.: Computers and intractability: a guide to the theory of np-completeness. SIAM Rev. 24(1), 90(1982)
[12] Held, G., Luder, A.: Robotic assembly planning for printed circuit boards. Assembly Automation, pp. 317-322(2001)
[13] Held, M., Karp, R.M.: A dynamic programming approach to sequencing problems. J. Soc. Ind. Appl. Math. 10(1), 196-210(1962)
[14] Helsgaun, K.: An effective implementation of the Lin-Kernighan traveling salesman heuristic. Eur. J. Oper. Res. 126(1), 106-130(2000)
[15] Irwan, B., Hieu, P., Quoc, V.L., Mohammad, N., Samy, B.: Neural combinatorial optimization with reinforcement learning (2017). arXiv:1611.09940
[16] Kingma, D., Ba, J.: Adam: a method for stochastic optimization (2017). arXiv:1412.6980v9
[17] Kool, W., van Hoof, H., Welling, M.: Attention, learn to solve routing problems. In: International Conference on Learning Representations (2018)
[18] Liu, W., Han, C., Guo, T., Li, H., Zhang, Z.: Fusion of multi-level information: solve large-scale traveling salesman problem with an efficient framework. In: Neural Information Processing, pp. 89- 103(2025)
[19] Lu, H., Zhang, X., Yang, S.: A learning-based iterative method for solving vehicle routing problems. In: International Conference on Learning Representations (2020)
[20] Luo, F., Lin, X., Zhong, M., Liu, F., Wang, Z., Sun, J., Zhang, Q.: Learning to insert for constructive neural vehicle routing solver (2025). arXiv:2505.13904
[21] Ma, Y., Li, J., Cao, Z., Song, W., Zhang, L., Chen, Z., Tang, J.: Learning to iteratively solve routing problems with dual-aspect collaborative transformer. In: Advances in Neural Information Processing Systems 34, pp. 11096-11107(2021)
[22] Oriol, V., Meire, F., Navdeep, J.: Pointer networks. In: Advances in Neural Information Processing Systems, pp. 2692-2700(2015)
[23] Pan,X.,Jin,Y.,Ding,Y.,Feng,M.,Zhao,L.,Song,L.,Bian,J.:H-TSP:hierarchicallysolvingthelargescale traveling salesman problem. Proceedings of the AAAI Conference on Artificial Intelligence 37(8), 9345-9353(2023)
[24] Rooker, T.: Review of genetic algorithms in search, optimization, and machine learning. AI Mag. 12(1), 102-103(1991)
[25] Sutton, R.S., McAllester, D., Singh, S., Mansour, Y.: Policy gradient methods for reinforcement learning with function approximation. In: Advances in Neural Information Processing Systems, pp. 1057-1063(1999)
[26] Vijay, S., Ghosh, D.: Protein structure prediction using TSP-based optimization. Journal of Bioinformatics, pp. 2074-2082(2018)
[27] Wang, C., Yang, Y., Slumbers, O., Han, C., Guo, T., Zhang, H., Wang, J.: A game-theoretic approach for improving generalization ability of TSP solvers (2021). arXiv:2110.15105
[28] Xin,L.,Song,W.,Cao,Z.,Zhang,J.:NeuroLKH:combining deep learning model with Lin-Kernig han Helsgaun heuristic for solving the traveling salesman problem (2021). arXiv:2110.07983
[29] Ye, H., Wang, J., Liang, H., Cao, Z., Li, Y., Li, F.: GLOP: Learning global partition and local construction for solving large-scale routing problems in real-time. Proceedings of the AAAI Conference on Artificial Intelligence 38(18), 20284-20292(2024)
Options
Outlines

/

〈 〉