Quantile Regression for Large-scale Applications

Jiyan Yang, Xiangrui Meng, Michael W. Mahoney

Overview

Standard linear regression (least-squares) estimates the conditional mean of a response variable. However, in many real-world scenarios—like analyzing income inequality or housing prices—the mean doesn't tell the whole story. Quantile regression (QR) allows researchers to estimate any quantile (e.g., the median, the 10th percentile, or the 90th percentile), providing a much more nuanced view of the data.

While least-squares has a closed-form solution, QR is formulated as a Linear Programming (LP) problem. Traditional LP solvers, such as interior-point methods, work well for moderate datasets but choke when faced with "Big Data" (millions or billions of rows). The challenge is to find a way to solve QR problems at the terabyte scale without sacrificing too much accuracy.

This paper introduces a randomized algorithm for quantile regression that scales to terabyte-sized datasets by using "subspace-preserving embeddings." By intelligently sampling a tiny fraction of the data based on its geometric structure, the authors achieve $(1+\epsilon)$ approximate solutions in nearly linear time, vastly outperforming traditional solvers on massive problems.

The "Sketching" Methodology

The authors propose a randomized "sketching" approach. Instead of solving the QR problem on the full $n \times d$ matrix (where $n$ is massive), they create a much smaller "sketched" version that preserves the essential properties of the original data.

The key technical innovations include:

  1. Subspace-Preserving Sampling: The authors prove that if you sample rows according to a specific "importance sampling" distribution, the solution to the smaller problem will be a $(1+\epsilon)$ approximation of the original.
  2. Well-Conditioned Bases: To find those importance weights efficiently, they use a "well-conditioned basis" for the $\ell_1$ norm.
  3. Fast Construction: They provide sub-algorithms that use Fast Cauchy Transforms to construct this basis and estimate row norms in $O(nnz(A) \log n)$ time. This is nearly linear relative to the number of non-zero elements in the input.

The final result is a randomized solver that is "embarrassingly parallel" and suitable for distributed environments like MapReduce.

Key Insights: Geometry over Uniformity

Uniform sampling often fails in regression because it might miss "leverage points"—outliers in the predictor space that heavily influence the fit. This algorithm uses the geometry of the data (via the $\ell_1$ well-conditioned basis) to ensure these critical points are sampled.

Relative error comparison of sampling methods

A striking theoretical result is that the number of samples required depends on the lower dimension $d$ and the desired accuracy $\epsilon$, but is independent of the number of rows $n$. Furthermore, while sketching for least-squares ($\ell_2$) and $\ell_1$ regression was known, this paper successfully extends the theory to the asymmetric loss function of quantile regression, which is significantly more complex to bound.

Key Results

The authors evaluated their approach using simulated data, U.S. Census 2000 data, and a terabyte-scale synthetic dataset.

  • Speed and Scalability: For large $n$, the proposed Improved Sparse Cauchy (ISPC) method was significantly faster than standard interior-point methods (ipm) and optimized preprocessing-based solvers (prqfn). The algorithm was successfully implemented on Apache Hadoop, proving it can handle terabyte-scale problems that would be impossible to fit into the RAM of a single machine.
Computation time comparison across dataset sizes
  • Accuracy: On the Census data, the algorithm achieved 2-digit accuracy (relative error $\approx 1\%$) by sampling only about 0.001% of the data.
  • Economic Insights: The QR results on Census data showed that factors like education have a much stronger impact on income at the higher quantiles (the wealthy) than at the lower quantiles—a critical detail a standard mean-based regression would obscure.

Limitations and Future Work

  • Over-constrained Focus: The algorithm is specifically designed for "over-constrained" problems where $n \gg d$. It is not intended for "high-dimensional" settings where the number of features $d$ is large relative to $n$.
  • Constant Probability: As with most randomized algorithms, there is a small (but controllable) probability of failure, though the authors note it works reliably in practice.
  • Implementation Complexity: While the theory is elegant, implementing fast Cauchy transforms and well-conditioned basis constructions requires more engineering effort than simple uniform sampling.

Summary updated

BibTeX
@article{yang2014quantile,
  author = {Jiyan Yang and Xiangrui Meng and Michael W. Mahoney},
  title = {{Quantile Regression for Large-scale Applications}},
  journal = {SIAM J. Sci. Comput.},
  year = {2014},
  doi = {10.1137/130919258},
}
Figure