Tensorized Ant Colony Optimization for GPU Acceleration (2404.04895v2)
Abstract: Ant Colony Optimization (ACO) is renowned for its effectiveness in solving Traveling Salesman Problems, yet it faces computational challenges in CPU-based environments, particularly with large-scale instances. In response, we introduce a Tensorized Ant Colony Optimization (TensorACO) to utilize the advancements of GPU acceleration. As the core, TensorACO fully transforms ant system and ant path into tensor forms, a process we refer to as tensorization. For the tensorization of ant system, we propose a preprocessing method to reduce the computational overhead by calculating the probability transition matrix. In the tensorization of ant path, we propose an index mapping method to accelerate the update of pheromone matrix by replacing the mechanism of sequential path update with parallel matrix operations. Additionally, we introduce an Adaptive Independent Roulette (AdaIR) method to overcome the challenges of parallelizing ACO's selection mechanism on GPUs. Comprehensive experiments demonstrate the superior performance of TensorACO achieving up to 1921$\times$ speedup over standard ACO. Moreover, the AdaIR method further improves TensorACO's convergence speed by 80% and solution quality by 2%. Source codes are available at https://github.com/EMI-Group/tensoraco.
- JAX: composable transformations of Python+NumPy programs. http://github.com/google/jax
- Ant system: optimization by a colony of cooperating agents. IEEE Trans. Syst. Man Cybern. Part B 26, 1 (1996), 29–41. https://doi.org/10.1109/3477.484436
- Ivars Dzalbs and Tatiana Kalganova. 2020. Accelerating supply chains with Ant Colony Optimization across a range of hardware solutions. Computers & Industrial Engineering 147 (2020), 106610.
- Tensorir: An abstraction for automatic tensorized program optimization. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2. 804–817.
- EvoX: A Distributed GPU-accelerated Framework for Scalable Evolutionary Computation. arXiv preprint arXiv:2301.12457 (2023). arXiv:2301.12457
- The traveling salesman problem. Handbooks in Operations Research and Management Science 7 (1995), 225–330.
- Robert Tjarko Lange. 2023. evosax: JAX-Based Evolution Strategies. In Proceedings of the Companion Conference on Genetic and Evolutionary Computation (Lisbon, Portugal) (GECCO ’23 Companion). Association for Computing Machinery, New York, NY, USA, 659–662.
- Gerhard Reinelt. 1991. TSPLIB-A traveling salesman problem library. ORSA Journal on Computing 3, 4 (1991), 376–384.
- Gerhard Reinelt. 1994. The Traveling Salesman, Computational Solutions for TSP Applications. Lecture Notes in Computer Science, Vol. 840. Springer. https://doi.org/10.1007/3-540-48661-5
- EvoJAX: hardware-accelerated neuroevolution. In Proceedings of the Genetic and Evolutionary Computation Conference Companion (Boston, Massachusetts) (GECCO ’22). Association for Computing Machinery, New York, NY, USA, 308–311.