arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.04895cs.NE
收藏

面向GPU加速的张量蚁群优化算法

Tensorized Ant Colony Optimization for GPU Acceleration

Luming Yang, Tao Jiang, Ran Cheng

AI总结:

针对CPU环境下蚁群优化算法计算效率低的问题,提出张量化的TensorACO算法,通过预处理、索引映射和AdaIR方法实现GPU加速,最高提速1921倍,收敛速度和解质量也有提升。

摘要:

蚁群优化(Ant Colony Optimization, ACO)因求解旅行商问题的有效性而闻名,但在基于CPU的环境中面临计算挑战,处理大规模算例时尤为突出。针对这一问题,我们提出张量蚁群优化算法(Tensorized Ant Colony Optimization, TensorACO)以利用GPU加速的技术优势。作为核心,TensorACO将蚁群系统和蚂蚁路径完全转换为张量形式,我们将这一过程称为张量化。在蚁群系统的张量化方面,我们提出一种预处理方法,通过计算概率转移矩阵降低计算开销。在蚂蚁路径的张量化方面,我们提出一种索引映射方法,用并行矩阵运算替代顺序路径更新机制,以加速信息素矩阵的更新。此外,我们引入自适应独立轮盘赌(Adaptive Independent Roulette, AdaIR)方法,解决ACO选择机制在GPU上的并行化难题。综合实验表明,TensorACO性能优异,相比标准ACO最高实现1921倍加速。此外,AdaIR方法进一步将TensorACO的收敛速度提升80%,解的质量提升2%。源代码可在https://github.com/EMI-Group/tensoraco获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑