Generative Modelling via Quantile Regression

Johannes Schmidt-Hieber, Petr ZamolodtchikovarXiv 2024 · DOI · arXiv

TL;DR

This paper provides a rigorous theoretical foundation for conditional generative modeling by linking it to the classical statistical framework of quantile regression. The authors propose a novel loss function based on the $L^1$ distance of conditional cumulative distribution functions (CDFs) and prove that their local polynomial estimator achieves the minimax optimal convergence rate.

What Problem Does This Paper Address?

Modern generative models—like GANs, Diffusion models, and Large Language Models—have achieved staggering empirical success. However, their theoretical underpinnings are often complex and lack a unified consensus (e.g., debates over the well-foundedness of certain GAN architectures).

The authors seek to simplify the problem of conditional generative modeling (generating a response $Y$ given a covariate $X$). They address the need for a more transparent theoretical framework by asking: Can we treat generative modeling as a problem of estimating the conditional quantile function?

In a univariate setting, if you know the quantile function $F_{Y|X}^{-1}$, you can generate a sample $Y$ simply by plugging a uniform random variable $U \sim [0,1]$ into it. While quantile regression is well-studied for specific levels (like the median), using it for generation requires estimating the entire function accurately, especially near the boundaries (0 and 1) where quantiles often diverge.

Methods

The paper introduces a framework that treats the conditional quantile function as a "transport map" from a simple uniform distribution to the target conditional distribution.

  1. The Loss Function: Instead of checking specific quantile levels, the authors propose a loss function $\mathcal{L}$ that averages the error over the entire range of quantile levels. Mathematically, this is equivalent to the $L^1$ distance between the true conditional CDF and the estimated conditional CDF. This choice is crucial because it circumvents the "thresholding issue" where quantile functions become unstable at the edges of the $[0,1]$ interval.
  2. Local Polynomial (LP) Estimators: To estimate the conditional CDF, the authors use LP estimators. This is a generalization of the Nadaraya-Watson (kernel) estimator. While a standard kernel estimator assumes the function is locally constant, LP estimators assume the function is locally a polynomial of degree $\ell$, allowing them to exploit higher-order smoothness in the data.
  3. Thresholding Step: To ensure the estimator is well-defined across the entire support of the covariates (even where data is sparse), they introduce a thresholding rule based on the smallest eigenvalue of the local design matrix.

Datasets

Not discussed in the paper. This is a purely theoretical work focused on proving mathematical convergence rates and establishing lower bounds within defined smoothness classes (Hölder-type classes).

Key Insights and Ideas

  • Generative Modeling = Distributional Regression: The paper formalizes the idea that "learning to generate" is essentially the same as "learning the conditional distribution." By focusing on the CDF, they turn a generative task into a regression task.
  • The $L^1$ Advantage: By using an integrated $L^1$ loss, the authors provide a metric that is finite even when the variables have only a first absolute moment. This makes the math much cleaner than using sup-norm losses, which struggle with quantiles that blow up at 0 or 1.
  • Minimax Optimality: The authors don't just provide an algorithm; they prove it's "as good as possible." They show that the rate of convergence for this generative task is $n^{-\beta/(2\beta+d)}$, where $\beta$ is the smoothness and $d$ is the dimension of the covariates. This matches the known optimal rates for standard nonparametric regression.
  • Regression as a Sub-problem: A key "aha" moment in the proof is showing that standard nonparametric regression (estimating the mean) is actually a sub-problem of this generative framework. This allows them to use known lower bounds from regression to prove the lower bounds for generative modeling.

Key Results

  • Upper Bound (Theorem 3): The proposed local polynomial estimator, with a specific choice of bandwidth $h \approx n^{-1/(2\beta+d)}$, achieves a risk bounded by $C_0 n^{-\beta/(2\beta+d)}$.
  • Lower Bound (Theorem 6): The authors prove that no estimator can converge faster than $cn^{-\beta/(2\beta+d)}$.
  • Conclusion: Together, these results establish that the proposed quantile-based approach is minimax rate optimal. It achieves the best possible theoretical performance for the given assumptions.

Limitations and Future Work

  • Univariate Restriction: The current theory is strictly for a univariate response $Y$. While the covariates $X$ can be high-dimensional, the output must be a single scalar.
  • Multivariate Extension: The authors briefly discuss extending this to multivariate $Y$ using the Knothe-Rosenblatt map (a generalization of the quantile transform). However, they note that it is currently "hard to predict" if this map will lead to similar minimax optimal rates, marking it as a significant open question for future research.
  • Smoothness Assumptions: The results rely on the conditional distribution being sufficiently smooth. In real-world data with sharp discontinuities, these rates might not hold.

Summary updated

Abstract

We link conditional generative modelling to quantile regression. We propose a suitable loss function and derive minimax convergence rates for the associated risk under smoothness assumptions imposed on the conditional distribution. To establish the lower bound, we show that nonparametric regression can be seen as a sub-problem of the considered generative modelling framework. Finally, we discuss extensions of our work to generate data from multivariate distributions.
BibTeX
@misc{schmidthieber2024generative,
  author = {Johannes Schmidt-Hieber and Petr Zamolodtchikov},
  title = {{Generative Modelling via Quantile Regression}},
  year = {2024},
  eprint = {2409.04231},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.04231},
}
Figure