Skip to main content
QUICK REVIEW

[Paper Review] Parallel calculation of the median and order statistics on GPUs with application to robust regression

Gleb Beliakov|arXiv (Cornell University)|Apr 14, 2011
Advanced Statistical Methods and ModelsMathematics20 references12 citations
TL;DR

This paper proposes a novel GPU-accelerated method for computing medians and order statistics by minimizing a convex cost function using the cutting plane algorithm, achieving 3–6× speedup over GPU radix sort. The approach leverages parallel reduction and is highly scalable across multiple GPUs.

ABSTRACT

We present and compare various approaches to a classical selection problem on Graphics Processing Units (GPUs). The selection problem consists in selecting the $k$-th smallest element from an array of size $n$, called $k$-th order statistic. We focus on calculating the median of a sample, the $n/2$-th order statistic. We introduce a new method based on minimization of a convex function, and show its numerical superiority when calculating the order statistics of very large arrays on GPUs. We outline an application of this approach to efficient estimation of model parameters in high breakdown robust regression.

Motivation & Objective

  • Address the performance bottleneck in computing medians and order statistics for large-scale data on GPUs.
  • Overcome the lack of efficient parallel selection algorithms tailored for GPU archetypes like SIMT and warp-based execution.
  • Develop a scalable, high-performance alternative to sorting-based median computation for massive datasets.
  • Enable efficient computation of medians in high-breakdown robust regression and k-nearest neighbor methods.

Proposed method

  • Propose a new method based on minimizing a convex, piecewise linear cost function whose minimum corresponds to the median.
  • Use the cutting plane algorithm to iteratively refine the interval bracketing the median, leveraging convexity for fast convergence.
  • Implement the cost function evaluation via parallel reduction in Thrust, enabling efficient GPU execution.
  • Combine the cutting plane method with a final small-scale sort on the reduced set of candidates for robust median estimation.
  • Design the algorithm to minimize branching and memory transfers, aligning with GPU execution models.
  • Ensure scalability across multiple GPU devices by minimizing data movement between CPU and GPU.

Experimental results

Research questions

  • RQ1Can a convex optimization-based approach outperform sorting-based methods for median computation on GPUs?
  • RQ2How does the cutting plane method compare to other optimization techniques (e.g., bisection, Brent’s method) in terms of convergence speed and stability on GPU?
  • RQ3What is the performance gain of the proposed method over GPU radix sort for large-scale median computation?
  • RQ4To what extent can the proposed method be scaled across multiple GPU devices?
  • RQ5How does the method improve efficiency in real-world applications like robust regression and kNN?

Key findings

  • The proposed convex optimization method with cutting plane minimization achieves 3–6× speedup over GPU radix sort for median computation.
  • The cutting plane algorithm is numerically more stable and efficient than bisection and Brent’s method, especially with extreme values.
  • The method reduces the number of iterations needed to converge by avoiding exploration of uninformative intervals.
  • The algorithm is highly scalable and requires only minimal data transfers between CPU and GPU, even across multiple devices.
  • The approach is easily implementable using the Thrust library, leveraging standard GPU reduction primitives.
  • The method enables efficient computation of medians in robust regression (LTS) and kNN by replacing partial sorting with order statistic computation.

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.