Skip to main content
QUICK REVIEW

[Paper Review] DistStat.jl: Towards Unified Programming for High-Performance Statistical Computing Environments in Julia

Seyoon Ko, Hua Zhou|arXiv (Cornell University)|Oct 30, 2020
Gene expression and cancer classificationBiochemistry, Genetics and Molecular Biology42 references4 citations
TL;DR

DistStat.jl is a Julia package that unifies high-performance statistical computing across CPU clusters and multi-GPU environments via a distributed array abstraction, enabling transparent, scalable execution of statistical algorithms. It accelerates large-scale genomic analysis—demonstrated by fitting a 500,000-variable Cox model on 400,000 UK Biobank subjects in under 50 minutes on AWS—outperforming equivalent Python implementations by 20–30% on CPUs and matching GPU performance with unoptimized kernels.

ABSTRACT

The demand for high-performance computing (HPC) is ever-increasing for everyday statistical computing purposes. The downside is that we need to write specialized code for each HPC environment. CPU-level parallelization needs to be explicitly coded for effective use of multiple nodes in cluster supercomputing environments. Acceleration via graphics processing units (GPUs) requires to write kernel code. The Julia software package DistStat.jl implements a data structure for distributed arrays that work on both multi-node CPU clusters and multi-GPU environments transparently. This package paves a way to developing high-performance statistical software in various HPC environments simultaneously. As a demonstration of the transparency and scalability of the package, we provide applications to large-scale nonnegative matrix factorization, multidimensional scaling, and $\ell_1$-regularized Cox proportional hazards model on an 8-GPU workstation and a 720-CPU-core virtual cluster in Amazon Web Services (AWS) cloud. As a case in point, we analyze the on-set of type-2 diabetes from the UK Biobank with 400,000 subjects and 500,000 single nucleotide polymorphisms using the $\ell_1$-regularized Cox proportional hazards model. Fitting a half-million-variate regression model took less than 50 minutes on AWS.

Motivation & Objective

  • To address the challenge of writing separate, low-level code for different high-performance computing (HPC) environments such as multi-CPU clusters and multi-GPU systems in statistical computing.
  • To unify programming across heterogeneous HPC environments—CPU clusters, multi-GPU workstations, and cloud-based virtual clusters—using a single, high-level interface.
  • To enable efficient, scalable execution of widely used statistical optimization algorithms like nonnegative matrix factorization, multidimensional scaling, and ℓ₁-regularized Cox regression across diverse HPC platforms.
  • To demonstrate that Julia’s multiple dispatch and native parallelism can outperform existing Python-based HPC tools in statistical workloads, especially for large-scale data.
  • To support the analysis of tera- to petabyte-scale datasets, such as whole-genome association studies, using unified, high-performance code.

Proposed method

  • The package implements a distributed array data structure abstracted over underlying array types (e.g., CPU arrays, CuArrays) that automatically adapts to the target HPC environment.
  • It leverages Julia’s multiple dispatch and built-in vectorization to provide a high-level, expressive syntax for elementwise and linear algebra operations across distributed data.
  • The package uses MPI as the underlying communication layer, enabling portability across any MPI-supported environment, including cloud-based virtual clusters and on-prem clusters.
  • It supports both CPU and GPU execution paths through transparent dispatch: users switch between backends via configuration, not code changes.
  • For GPU acceleration, it integrates with CUDA.jl and uses CUDA kernels for compute-intensive operations like matrix-vector products in ℓ₁-regularized regression.
  • It includes optimized, memory-efficient kernels for operations like P_{(n+1)}δ in Cox regression, using AVX intrinsics on CPUs and CUDA kernels on GPUs.

Experimental results

Research questions

  • RQ1Can a single high-level programming interface unify statistical computing across heterogeneous HPC environments, including multi-CPU clusters and multi-GPU systems?
  • RQ2How does the performance of a Julia-based distributed array library compare to existing Python-based HPC tools for statistical optimization?
  • RQ3To what extent can a unified codebase scale to tera-scale genomic datasets, such as 400,000 subjects and 500,000 SNPs, using a multivariate survival model?
  • RQ4Can the abstraction reduce developer burden in writing and maintaining separate GPU and CPU codebases for statistical algorithms?
  • RQ5What is the performance ceiling of a high-level language like Julia for large-scale statistical inference when combined with MPI and GPU acceleration?

Key findings

  • The ℓ₁-regularized Cox proportional hazards model was successfully fitted on a 400,000 × 500,000 genomic dataset in under 50 minutes on a 20-node AWS virtual cluster with 720 CPU cores.
  • The same analysis achieved 20–30% faster performance on CPUs compared to the Python-based dist_stat implementation, due to better thread control and Julia’s flexible threading model.
  • On an 8-GPU workstation, DistStat.jl achieved comparable performance to dist_stat despite using unoptimized GPU kernels, demonstrating strong potential for GPU acceleration.
  • The package successfully enabled the analysis of the largest known multivariate survival model on whole-genome data, doubling the number of subjects analyzed compared to prior work.
  • The distributed array abstraction enabled transparent switching between CPU and GPU backends with minimal configuration changes, proving the feasibility of unified HPC programming in statistical computing.
  • The implementation of memory-efficient kernels for P_{(n+1)}δ using AVX and CUDA showed significant performance gains, especially in CPU and GPU-optimized linear algebra operations.

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.