Skip to main content
QUICK REVIEW

[Paper Review] Accelerating Genetic Programming using GPUs

Vimarsh Sathia, Venkataramana Ganesh|arXiv (Cornell University)|Oct 15, 2021
Evolutionary Algorithms and ApplicationsComputer Science12 references4 citations
TL;DR

This paper proposes a GPU-accelerated symbolic regression and classification framework using a stack-based genetic programming (GP) model with prefix-list representation for efficient evaluation on NVIDIA GPUs. By parallelizing selection and fitness evaluation via CUDA and leveraging vectorized loss computation, the approach achieves up to 119× speedup over gplearn on synthetic data and 40× on large-scale datasets, while maintaining comparable accuracy and loss performance.

ABSTRACT

Genetic Programming (GP), an evolutionary learning technique, has multiple applications in machine learning such as curve fitting, data modelling, feature selection, classification etc. GP has several inherent parallel steps, making it an ideal candidate for GPU based parallelization. This paper describes a GPU accelerated stack-based variant of the generational GP algorithm which can be used for symbolic regression and binary classification. The selection and evaluation steps of the generational GP algorithm are parallelized using CUDA. We introduce representing candidate solution expressions as prefix lists, which enables evaluation using a fixed-length stack in GPU memory. CUDA based matrix vector operations are also used for computation of the fitness of population programs. We evaluate our algorithm on synthetic datasets for the Pagie Polynomial (ranging in size from $4096$ to $16$ million points), profiling training times of our algorithm with other standard symbolic regression libraries viz. gplearn, TensorGP and KarooGP. In addition, using $6$ large-scale regression and classification datasets usually used for comparing gradient boosting algorithms, we run performance benchmarks on our algorithm and gplearn, profiling the training time, test accuracy, and loss. On an NVIDIA DGX-A100 GPU, our algorithm outperforms all the previously listed frameworks, and in particular, achieves average speedups of $119 imes$ and $40 imes$ against gplearn on the synthetic and large scale datasets respectively.

Motivation & Objective

  • To accelerate symbolic regression and binary classification using GPU parallelism in genetic programming.
  • To address the fitness evaluation bottleneck in GP by enabling efficient, massively parallel evaluation on GPUs.
  • To design a GPU-friendly program representation that supports fast stack-based evaluation and vectorized fitness computation.
  • To evaluate performance against existing CPU and GPU-based GP frameworks on both synthetic and real-world datasets.
  • To ensure comparable model quality (accuracy and loss) while drastically reducing training time.

Proposed method

  • Representing GP programs as prefix lists to enable fixed-length stack evaluation in GPU memory, improving memory coalescing and cache efficiency.
  • Parallelizing the selection and mutation steps using CUDA kernels to exploit massive parallelism in the generational GP algorithm.
  • Implementing fully vectorized CUDA kernels for standard loss functions (e.g., MSE, RMSE) to accelerate fitness evaluation across populations.
  • Using a stack-based evaluation engine that processes each program expression in parallel using single-instruction-multiple-data (SIMD) execution.
  • Optimizing memory access patterns by storing input data in column-major order to enable coalesced memory transactions on GPU.
  • Integrating the implementation into cuML, a GPU-accelerated machine learning library with scikit-learn-like API for usability.

Experimental results

Research questions

  • RQ1Can a stack-based GP representation with prefix-list encoding enable efficient and scalable GPU parallelization of symbolic regression?
  • RQ2How does GPU-accelerated GP compare in training speed to CPU-parallelized frameworks like gplearn on both synthetic and real-world datasets?
  • RQ3To what extent can vectorized loss computation and optimized memory access improve fitness evaluation performance on GPUs?
  • RQ4Does the GPU-accelerated GP framework maintain competitive predictive accuracy and loss compared to existing libraries?
  • RQ5What is the impact of dataset size and population size on the performance scaling of the GPU-accelerated GP implementation?

Key findings

  • On synthetic Pagie Polynomial datasets (4096 to 16 million points), the GPU-accelerated implementation achieved an average speedup of 119× over gplearn.
  • On six large-scale regression and classification datasets, the framework achieved an average speedup of 40× over gplearn, with a peak speedup of 713× on the Epsilon dataset.
  • The Epsilon dataset showed exceptional speedup (713×) due to coalesced memory access from column-major storage of input data in GPU memory.
  • For the Airline and Airline Regression datasets (over 100 million rows), the framework achieved average speedups of 42× and 32×, respectively, over gplearn (using 8 CPU jobs).
  • Test accuracy and RMS error were nearly identical between the proposed framework and gplearn across all datasets, indicating comparable model quality.
  • The proposed method returned the entire population of evolved programs across all generations, enabling analysis of evolutionary progress.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.