Fine-Grain GPU Parallelization of the Generalized Partition Crossover for Large-Scale Traveling Salesman Problems

TL;DR

GPU fine-grain parallelization of GPX partitioning accelerates large-scale TSP solving by 48-625×, reducing memory use significantly.

cs.AI 🔴 Advanced 2026-08-21 55 views
Swetha Varadarajan Darrell Whitley
GPU parallelism Genetic Algorithm TSP Graph algorithms High-performance computing

Key Findings

Methodology

The approach reformulates GPX partitioning as a graph-level parallel problem, employing coalesced edge layouts, ghost-node transformations, and connected-component analysis. CUDA kernels perform union of parent tours, splitting degree-4 vertices, deleting common edges, and identifying recombining components, vastly improving scalability for large TSP instances. The edge-table structure enables efficient memory access, while ghost nodes simplify complex vertices, reducing branch divergence. Parallel connected-component algorithms ensure rapid component detection, all within a unified GPU framework, with the recombination phase remaining on CPU for efficiency.

Key Results

  • On instances from 10,000 to 2 million nodes, GPU partitioning achieved speedups from 48× to 625× over sequential CPU implementations, with processing times dropping from over 4000 seconds to under 7 seconds for 2 million nodes. Memory consumption was reduced by 17-28×, enabling handling of massive graphs. The results demonstrate that operator-level parallelism effectively addresses the bottleneck in large-scale GA-based TSP solvers, significantly enhancing scalability and efficiency.
  • In experiments, processing 2 million cities took only 6.6 seconds on GPU versus 4132 seconds on CPU, confirming the method's effectiveness and scalability. The approach maintained high solution quality while drastically reducing computational costs, validating the design choices of edge-based layouts and ghost-node transformations.
  • The framework's ability to handle large, irregular graph structures efficiently marks a breakthrough in GPU-based combinatorial optimization, opening avenues for real-time large-scale path planning and logistics applications.

Significance

This work addresses a critical scalability bottleneck in genetic algorithms for large-scale TSP by enabling fine-grain GPU parallelism at the operator level. It bridges the gap between graph algorithm efficiency and parallel hardware capabilities, paving the way for solving problems with millions of nodes in practical timeframes. The innovations in data layout and graph transformations set new standards for GPU-based graph analytics, with implications extending to other NP-hard problems and complex network analyses, thus significantly advancing both theoretical and applied aspects of high-performance combinatorial optimization.

Technical Contribution

The core contribution lies in transforming GPX's complex partitioning into a graph-parallel task suitable for GPU execution. The design introduces a fixed-width edge-table layout, ghost-node vertex splitting, and parallel connected-component detection, collectively reducing irregular memory accesses and branch divergence. This enables high-throughput, scalable processing of massive graphs, overcoming traditional GPU limitations in irregular graph traversal. The framework provides a new paradigm for operator-level parallelism in evolutionary algorithms, with potential to extend to multi-GPU and hybrid systems, broadening the scope of large-scale combinatorial optimization.

Novelty

This is the first implementation of the GPX partition phase at a fine-grain level on GPU for instances with up to 2 million nodes. It innovatively applies coalesced memory layouts, ghost-node transformations, and parallel connected-component algorithms to handle complex graph topologies efficiently. Unlike prior works that focus on population-level parallelism, this approach directly accelerates the core crossover operation, setting a new benchmark for large-scale evolutionary computation on GPU architectures.

Limitations

  • The current implementation only accelerates the partition phase; the recombination phase remains on CPU, limiting end-to-end speedup. Future work should migrate the entire process to GPU for maximal efficiency.
  • Handling extremely sparse or highly irregular graphs may still pose challenges due to memory access patterns, requiring further optimization.
  • Dependence on specific GPU architectures and tuning parameters may affect portability and generalization across different hardware platforms.

Future Work

Future efforts will focus on fully GPU-based recombination and evaluation phases, integrating multi-GPU strategies for even larger instances, and developing adaptive workload scheduling. Extending the framework to support dynamic graph updates and hybrid metaheuristics could further enhance scalability and solution quality, ultimately enabling real-time large-scale path optimization in industrial applications.

AI Executive Summary

This study introduces a novel GPU-based fine-grain parallel framework for accelerating the partition phase of the Generalized Partition Crossover (GPX) in large-scale Traveling Salesman Problems (TSP). As problem sizes grow to millions of nodes, traditional serial and coarse-grained parallel methods face severe performance bottlenecks. To address this, the authors reframe GPX partitioning as a graph-level parallel task, leveraging CUDA to implement key operations such as union, vertex splitting, edge deletion, and connected-component detection.

The core innovation involves using a coalesced edge-table layout combined with ghost-node transformations to simplify complex vertices and reduce irregular memory accesses. Parallel connected-component algorithms further enable rapid identification of recombining components, all within a unified GPU framework. This approach significantly reduces branch divergence and synchronization overhead, enabling processing speeds up to 625× faster than sequential CPU implementations, with memory usage dropping by 17-28×.

Experimental results across diverse large-scale TSP instances demonstrate the method’s scalability and robustness, handling 2 million nodes in under 7 seconds. The framework's design not only accelerates the critical partition step but also paves the way for fully GPU-resident evolutionary algorithms, promising transformative impacts on industrial logistics, network design, and bioinformatics. Despite current focus on partitioning, future work aims to extend GPU acceleration to the entire crossover and evaluation pipeline, enabling real-time solutions for massive combinatorial problems.

Deep Analysis

Background

TSP作为经典的组合优化问题,已在物流、芯片布局等领域得到广泛应用。早期采用启发式和局部搜索,遗传算法因其全局搜索能力逐渐成为主流。近年来,GPU加速成为提升大规模TSP求解效率的关键,但多为在种群层面实现并行,交叉操作的复杂性限制了扩展性。图算法在GPU上的应用逐步成熟,为解决图结构不规则带来的性能瓶颈提供了新思路。尽管如此,复杂图结构的高效处理仍是挑战。

Core Problem

GPX作为一种高效的交叉操作,能有效保留优质边,但其分区阶段在大规模实例中成为性能瓶颈。传统实现多依赖串行或粗粒度并行,难以满足百万级规模的性能需求。如何在GPU上实现细粒度、高效的分区操作,成为提升大规模TSP求解能力的核心难题。特别是在处理复杂顶点和不规则图结构时,现有方法难以兼顾速度和准确性。

Innovation

本研究提出将GPX的分区问题转化为图级别的并行任务,设计了共存存布局和虚节点变换,解决复杂顶点拆解和不规则访问的问题。采用CUDA实现边的合并、顶点拆分、公共边删除和连通分量识别,显著提升了处理速度。此方案突破了GPU在复杂图结构处理中的瓶颈,为大规模TSP提供了可行的高效方案。创新点还在于结合图算法和硬件优化,开创了操作级别并行的新范式。

Methodology

  • �� 构建父路径的边集合,存储在连续数组中,便于GPU高效访问。• 对度四顶点应用虚节点变换,将复杂结构拆解为简单的度二结构,减少分支分歧。• 利用CUDA实现边的合并和公共边删除,减少冗余信息。• 采用迭代指针跳转和钩子操作进行连通分量识别,确保图的正确分割。• 多线程同步机制确保操作正确性,避免数据竞争。• 最后,将分区结果传回CPU,用于后续的重组和优化。

Experiments

在包括TSPLIB、Art TSP和3D Star TSP在内的多种大规模实例上测试,使用NVIDIA Tesla K80 GPU,比较串行CPU和GPU版本的时间。指标涵盖处理速度、内存消耗和扩展性。每个实例重复30次,取平均值,验证方案的稳定性和优越性。实验还进行了不同规模和结构的对比分析,确保方案的普适性。

Results

GPU实现的分区阶段在百万级实例中,速度提升达到了625倍,内存使用减少17-28倍。处理2百万城市实例仅需6.6秒,而串行版本耗时4132秒。整体加速和内存优化极大推动了大规模TSP的可行性,为未来全流程GPU化奠定基础。实验还显示,减少反向遍历对解的影响微乎其微,但大幅度降低了时间成本。

Applications

该技术适用于物流调度、芯片设计、基因测序等大规模路径优化场景。只需输入图结构,即可实现快速求解,大幅提升工业效率。未来结合多GPU和异步调度,有望实现实时大规模路径优化,为智能交通、供应链等行业带来革命性变革。

Limitations & Outlook

目前仅优化了分区阶段,重组和评价仍在CPU上,整体流程受数据传输和同步限制。复杂或稀疏图结构在极端情况下仍可能遇到性能瓶颈。硬件依赖较强,需针对不同GPU调优参数,泛化能力有限。未来需实现全流程GPU化,提升整体效率。

Plain Language Accessible to non-experts

想象你在厨房准备一道复杂的菜肴。每个步骤都需要不同的食材和工具,有的可以同时进行,有的必须按顺序完成。以前厨师们用串行的方法逐一做菜,效率很低。现在,厨师们设计了一个新系统,把每个步骤拆成小任务,让多个厨师同时操作,极大提高了效率。这个系统就像把复杂的菜肴拆分成许多小任务,让厨房里的每个人都能同时工作,最后合成一道美味佳肴。在计算机里,这个方法让很多小任务同时跑,解决了大问题的瓶颈。

ELI14 Explained like you're 14

想象你在学校里组织一场大型运动会,要安排很多队伍跑不同的路线。以前,老师一个个安排,花了很多时间。现在,你用了一种新方法,把所有路线拆成很多小段,让很多同学同时安排自己的路线。这样,整个安排变得快多了!在电脑里也是一样,处理大规模路径问题很难,但用这个新方法,把任务拆成很多小部分,让GPU帮忙同时做,速度快得惊人。就像厨房里同时做多道菜一样,效率大大提高!

Abstract

The Traveling Salesman Problem (TSP) is one of the most extensively studied NP-hard optimization problems. Genetic Algorithm (GA)-based solvers, such as the Edge Assembly Crossover (EAX), achieve state-of-the-art performance on many benchmark instances. However, the scalability of these approaches in massively parallel architectures remains limited because crossover operations involve irregular memory access patterns, graph traversals, and sequential dependencies. Existing GPU-based TSP solvers primarily exploit population-level parallelism and are limited to relatively small problem sizes. This work presents a fine-grain GPU implementation of the partition phase of the Generalized Partition Crossover (GPX) operator for large-scale TSP instances. The proposed approach reformulates GPX partitioning as a graph-parallel problem using coalesced memory layouts, ghost-node transformations, and connected-component analysis. The im- plementation parallelizes the union of parent tours, the splitting of degree- four vertices, the deletion of common edges, and the identification of recombining components using CUDA. Experimental results on instances ranging from 10,000 to 2 million cities demonstrate substantial acceleration over a naive sequential CPU imple- mentation. The proposed GPU partitioning achieves speedups between 48x and 625x while significantly reducing memory overhead. The re- sults demonstrate that operator-level parallelism can substantially im- prove the scalability of GA-based TSP solvers on modern many-core architectures.

cs.AI cs.NE