Fast Nonlinear Vector Quantile Regression

Aviv A. Rosenberg, Sanketh Vedula, Yaniv Romano, Alex M. Bronstein

Abstract

Quantile regression (QR) is a powerful tool for estimating one or more conditional quantiles of a target variable $\mathrm{Y}$ given explanatory features $\boldsymbol{\mathrm{X}}$. A limitation of QR is that it is only defined for scalar target variables, due to the formulation of its objective function, and since the notion of quantiles has no standard definition for multivariate distributions. Recently, vector quantile regression (VQR) was proposed as an extension of QR for vector-valued target variables, thanks to a meaningful generalization of the notion of quantiles to multivariate distributions via optimal transport. Despite its elegance, VQR is arguably not applicable in practice due to several limitations: (i) it assumes a linear model for the quantiles of the target $\boldsymbol{\mathrm{Y}}$ given the features $\boldsymbol{\mathrm{X}}$; (ii) its exact formulation is intractable even for modestly-sized problems in terms of target dimensions, number of regressed quantile levels, or number of features, and its relaxed dual formulation may violate the monotonicity of the estimated quantiles; (iii) no fast or scalable solvers for VQR currently exist. In this work we fully address these limitations, namely: (i) We extend VQR to the non-linear case, showing substantial improvement over linear VQR; (ii) We propose vector monotone rearrangement, a method which ensures the quantile functions estimated by VQR are monotone functions; (iii) We provide fast, GPU-accelerated solvers for linear and nonlinear VQR which maintain a fixed memory footprint, and demonstrate that they scale to millions of samples and thousands of quantile levels; (iv) We release an optimized python package of our solvers as to widespread the use of VQR in real-world applications.

Introduction

Quantile Regression (QR) is a staple in statistics for predicting ranges rather than single average values. However, standard QR is limited to scalar targets. In real-world scenarios, such as predicting both location and velocity or multiple financial indicators, we deal with vectors. Extending QR to vectors is challenging because there is no standard definition of a "quantile" in higher dimensions. Vector Quantile Regression (VQR) uses Optimal Transport theory to define quantiles as a mapping from a simple reference distribution to the target distribution.

Existing VQR methods face three major flaws: they are often restricted to linear relationships, they are computationally infeasible for large datasets, and they can produce "crossing" quantiles that violate mathematical consistency. This paper introduces Fast Nonlinear Vector Quantile Regression (NL-VQR) to resolve these issues.

Methodology

Our approach makes VQR practical and powerful through three main components:

  1. Nonlinear Extension: We use neural networks to learn nonlinear feature embeddings, enabling the model to capture complex, non-convex distributions.
  2. Scalable GPU Solver: We reformulate VQR into an entropic-regularized dual objective and develop a custom Stochastic Gradient Descent (SGD) solver. By sampling data points and quantile levels simultaneously, we maintain a constant memory footprint, allowing the model to scale to millions of samples.
  3. Vector Monotone Rearrangement (VMR): We introduce VMR as a post-processing step to ensure the estimated quantile functions are co-monotonic, resolving the "crossing" problem.
The vector quantile mapping process, showing how individual components $Q_1$ and $Q_2$ map a reference grid to a complex star-shaped target distribution.

Experimental Results

We evaluated NL-VQR on synthetic datasets (e.g., Rotating Stars, Conditional-banana) and real-world benchmarks (blog_data, bio, house, meps_20).

Accuracy and Precision

NL-VQR achieved a 70% lower error than linear VQR on the "Conditional-banana" dataset. In real-world applications, it produced confidence regions that were 34-60% smaller than competing methods while maintaining target coverage, indicating significantly higher precision.

Estimated conditional vector quantiles for the 'Rotating Stars' dataset, demonstrating the model's ability to capture complex, feature-dependent distribution shifts.

Computational Efficiency

The proposed solver is orders of magnitude faster than general-purpose linear program solvers, handling millions of samples and thousands of quantile levels in minutes.

Conclusion

NL-VQR addresses the primary bottlenecks of vector quantile regression, offering a scalable and flexible framework for multivariate uncertainty estimation. The release of the vqr Python package makes these advanced tools accessible for broad research and industrial use.

Summary updated

BibTeX
@inproceedings{rosenberg2023fast,
  author = {Aviv A. Rosenberg and Sanketh Vedula and Yaniv Romano and Alex M. Bronstein},
  title = {{Fast Nonlinear Vector Quantile Regression}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=UxqUgchwXkK},
}
Figure