Enabling Population-Level Parallelism in Tree-Based Genetic Programming for GPU Acceleration

Zhihong Wu, Lishuang Wang, Kebin Sun, Zhuozhao Li, Ran Cheng
1/21/2025
10 citations
cs.NEcs.AI

Official code: EMI-Group/evogp (292 stars, Python, GPL-3.0, PyTorch, last commit 2026-02-28).

Abstract

Tree-based Genetic Programming (TGP) is a widely used evolutionary algorithm for tasks such as symbolic regression, classification, and robotic control. Due to the intensive computational demands of running TGP, GPU acceleration is crucial for achieving scalable performance.

Show full abstract

However, efficient GPU-based execution of TGP remains challenging, primarily due to three core issues: (1) the structural heterogeneity of program individuals, (2) the complexity of integrating multiple levels of parallelism, and (3) the incompatibility between high-performance CUDA execution and flexible Python-based environments. To address these issues, we propose EvoGP, a high-performance framework tailored for GPU acceleration of TGP via population-level parallel execution. First, EvoGP introduces a tensorized representation that encodes variable-sized trees into fixed-shape, memory-aligned arrays, enabling uniform memory access and parallel computation across diverse individuals. Second, EvoGP adopts an adaptive parallelism strategy that dynamically combines intra- and inter-individual parallelism based on dataset size, ensuring high GPU utilization across a broad spectrum of tasks. Third, EvoGP embeds custom CUDA kernels into the PyTorch runtime, achieving seamless integration with Python-based environments such as Gym, MuJoCo, Brax, and Genesis. Experimental results demonstrate that EvoGP achieves a peak throughput exceeding $10^{11}$ GPops/s. Specifically, this performance represents a speedup of up to $304\times$ over existing GPU-based TGP implementations and $18\times$ over state-of-the-art CPU-based libraries. Furthermore, EvoGP maintains comparable accuracy and exhibits improved scalability across large population sizes. EvoGP is open source and accessible at: https://github.com/EMI-Group/evogp.

View on arXivView PDF

Code Implementations(1)

EMI-Group/evogpOfficial100%
PyTorchGPL-3.0

A GPU-accelerated library for Tree-based Genetic Programming, leveraging PyTorch and custom CUDA kernels for high-performance evolutionary computation. It supports symbolic regression, classification, and policy optimization with advanced features like multi-output trees and benchmark tools.

29249Python, Jupyter NotebookOct 18, 20249 months agoGPL-3.0
cudaevolutionary-computationgenetic-programminggpu-accelerationpytorch+1 more

Similar Papers

Cite this paper

@article{wu2025enabling,
  title  = {Enabling Population-Level Parallelism in Tree-Based Genetic Programming for GPU Acceleration},
  author = {Zhihong Wu and Lishuang Wang and Kebin Sun and Zhuozhao Li and Ran Cheng},
  year   = {2025},
  eprint = {2501.17168},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.17168v7}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.17168.svg)](https://codeofpaper.com/paper/2501.17168)

Discussion