Skip to main content
QUICK REVIEW

[Paper Review] Ipanema-\beta : tools and examples for HEP analysis on GPU

D. Martínez Santos, P. Álvarez Cartelle|arXiv (Cornell University)|Jun 5, 2017
Statistical Methods and Bayesian InferenceMathematics4 citations
TL;DR

Ipanema-𝛽 provides a GPU-accelerated framework for high-energy physics (HEP) statistical analysis using Python and CUDA, enabling fast unbinned likelihood fits, MCMC sampling, pseudo-experiment generation, and convolution techniques. The framework leverages pyCUDA, iminuit, and reikna to achieve significant speedups—up to 100×—over CPU-based methods, with support for symbolic manipulation and automatic code generation for complex PDFs like those in $B_s^0 \to J/\psi\,KK$ decays.

ABSTRACT

We present here a set of examples, classes and tools which can be used for statistical analysis in Graphics Processing Units (GPU). This includes binned and unbinned maximum likelihood fits, pseudo-experiment generation, convolutions, Markov Chain Monte Carlo method implementations, and limit setting techniques.

Motivation & Objective

  • To enable high-performance statistical analysis in high-energy physics (HEP) using GPU acceleration.
  • To provide a flexible, reusable framework for GPU-based likelihood fitting, MCMC, and pseudo-experiment generation.
  • To support complex, real-world HEP analyses such as time-dependent $B_s^0 \to J/\psi\,KK$ decays using symbolic manipulation and CUDA code generation.
  • To bridge the gap between high-level Python workflows and low-level GPU kernels through modular, extensible tools.
  • To offer a practical, production-ready toolkit for HEP researchers to accelerate likelihood fits and parameter scans on GPU hardware.

Proposed method

  • Uses pyCUDA to compile and launch CUDA kernels from Python, enabling GPU execution of probability density functions (PDFs) and likelihood calculations.
  • Implements unbinned maximum likelihood fits using a device function for the signal PDF (e.g., log-normalized Gaussian) and global GPU kernels to evaluate likelihoods in parallel.
  • Integrates Minuit (via iminuit) for minimization, with the cost function $-2\log L$ computed on the GPU to accelerate convergence.
  • Employs reikna for optimized linear algebra and mathematical operations (e.g., error functions, exponentials) on GPU arrays.
  • Generates CUDA code automatically from symbolic expressions using sympy or Mathematica, enabling complex PDFs like those in $B_s^0 \to J/\psi\,\phi$ decays.
  • Supports simultaneous fits across multiple categories using the Cat class, which manages GPU arrays for data and likelihoods per category.

Experimental results

Research questions

  • RQ1Can GPU acceleration significantly reduce computation time for unbinned likelihood fits in HEP analyses?
  • RQ2How can symbolic manipulation and automatic code generation be used to implement complex, multi-dimensional PDFs on GPU?
  • RQ3What is the performance gain of using GPU-based MCMC sampling (via pyMultinest) compared to CPU-based methods in HEP?
  • RQ4How can GPU-optimized likelihood evaluation be integrated into standard HEP fitting frameworks like Minuit?
  • RQ5What are the practical challenges and solutions in porting real-world HEP analyses (e.g., $B_s^0 \to J/\psi\,KK$) to GPU execution?

Key findings

  • The framework achieves up to 100× speedup in likelihood evaluation for unbinned fits compared to CPU-based implementations, depending on data size and complexity.
  • GPU-based MCMC sampling using pyMultinest and reikna reduces parameter space exploration time by a factor of 10–50 in tested examples.
  • Symbolic manipulation via sympy and Mathematica enables automatic generation of CUDA kernels for complex PDFs, including Faddeeva functions and time-dependent $B_s^0 \to J/\psi\,\phi$ distributions.
  • The use of device functions and global kernels in CUDA allows parallel evaluation of likelihoods across millions of data points with minimal CPU-GPU data transfer.
  • The framework supports production-level HEP analyses, including the $B_s^0 \to J/\psi\,KK$ decay fit, with GPU-accelerated convolution and integral computation.
  • Hardware benchmarks show that the Tesla M2090 and GeForce 1080 GTX deliver 257 GFLOPS and 8873 GFLOPS in single-precision performance, respectively, enabling efficient large-scale fitting.

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.