Adversarial Regression. Generative Adversarial Networks for Non-Linear Regression: Theory and Assessment

Yoann BogetarXiv 2019

Abstract

Adversarial Regression is a proposition to perform high-dimensional non-linear regression with uncertainty estimation. We use Conditional Generative Adversarial Networks (cGAN) to obtain an estimate of the full predictive distribution for a new observation. Generative Adversarial Networks (GAN) are implicit generative models which produce samples from a distribution approximating the distribution of the data. The conditional version of it (cGAN) takes the following expression: $\min\limits_G \max\limits_D V(D, G) = \mathbb{E}_{x\sim p_{r}(x)} [log(D(x, y))] + \mathbb{E}_{z\sim p_{z}(z)} [log (1-D(G(z, y)))]$. An approximate solution can be found by training simultaneously two neural networks to model $D$ and $G$ and feeding $G$ with a random noise vector $z$. After training, we have that $G(z, y)\mathrel{\dot\sim} p_{data}(x, y)$. By fixing $y$, we have $G(z|y) \mathrel{\dot\sim} p_{data}(x|y)$. By sampling $z$, we can therefore obtain samples following approximately $p(x|y)$, which is the predictive distribution of $x$ for a new $y$. We ran experiments to test various loss functions, data distributions, sample size, size of the noise vector, etc. Even if we observed differences, no experiment outperformed consistently the others. The quality of cGAN for regression relies on fine-tuning a range of hyperparameters. In a broader view, the results show that cGANs are very promising methods to perform uncertainty estimation for high-dimensional non-linear regression.

Introduction

In classical machine learning and statistics, regression is typically framed as the search for a point estimate—the mean or median value of a dependent variable $y$ given an input $X$. While effective for many tasks, point estimates are fundamentally "blind" to uncertainty. They fail to convey the model's confidence or identify cases where the underlying data is multimodal (possessing multiple likely outcomes).

While Bayesian Neural Networks and Variational Auto-Encoders (VAEs) provide frameworks for uncertainty estimation, they can become computationally prohibitive or mathematically intractable in high-dimensional, non-linear spaces. This paper explores Adversarial Regression, utilizing Conditional Generative Adversarial Networks (cGANs) to learn the entire conditional probability distribution of a target variable. This approach allows for robust predictive uncertainty quantification without making rigid parametric assumptions about error distributions.

Methodology

The cGAN Framework

The core of Adversarial Regression lies in the Conditional GAN. Unlike a standard GAN that generates data from pure noise, both the Generator ($G$) and the Discriminator ($D$) are conditioned on an input variable $y$.

  • The Generator: Maps a noise vector ($z$) and a conditional variable ($y$) to a synthetic observation $x$. Its objective is to produce $x$ values that are indistinguishable from real observations associated with $y$.
  • The Discriminator: Evaluates pairs of $(x, y)$ and attempts to distinguish between real data pairs and those produced by the Generator.

By sampling different noise vectors $z$ for a fixed $y$, the Generator effectively samples from the learned conditional distribution $p(x|y)$.

Architectures Evaluated

The study assesses three primary GAN formulations to determine their efficacy in a regression context:

  1. Standard GAN (SGAN): The original cross-entropy based minimax game.
  2. Wasserstein GAN with Gradient Penalty (WGAN-GP): A variant utilizing the Earth-Mover distance to improve training stability and prevent mode collapse.
  3. Relativistic Standard GAN (RSGAN): An approach where the Discriminator estimates the relative probability that real data is more realistic than generated data.

Experimental Setup

To evaluate the models against a known ground truth, the study utilizes three synthetic data models:

  • Model 1 (Linear): A baseline linear relationship with homoscedastic (constant) normal errors.
  • Model 2 (Heteroscedastic): A linear model where the error variance increases with the input $X$, testing the model's ability to capture changing uncertainty.
  • Model 3 (Non-Linear/Sinusoidal): A complex relationship combining a linear trend with sinusoidal oscillations.
  • Inverse Regression: A specific test involving "reversing" the non-linear relationship of Model 3. This creates multimodal distributions where a single $y$ value corresponds to multiple likely $x$ values—a scenario where traditional regression models typically fail by averaging the modes into a single, incorrect prediction.

Key Insights

The Simplicity Paradox

One of the most surprising findings was that the Standard GAN (SGAN) often performed as well as, or better than, the more modern WGAN-GP and RSGAN architectures. This suggests that advancements in GANs designed for high-resolution image synthesis do not always translate to superior performance in low-dimensional regression tasks.

Latent Space and Batch Dynamics

The dimensionality of the noise vector ($z$) proved to be a critical hyperparameter. While low-dimensional noise (1D or 2D) hindered the model's ability to capture complex distributions, higher dimensions (10–20) significantly improved the approximation of the target density. Additionally, SGAN and WGAN-GP benefited from larger batch sizes (up to 2000) for stable convergence, whereas RSGAN showed better stability with smaller batches (around 500).

Distributional Accuracy

The models were evaluated not just on their ability to predict a mean, but on their "moment matching" capabilities. The Adversarial Regression framework successfully approximated the variance, skewness, and kurtosis of the target distributions. Using metrics such as Jensen-Shannon (JS) Divergence and Kolmogorov-Smirnov (KS) distance, the study confirmed that the generated samples closely mirrored the true sliced densities of the synthetic data.

Conclusion

Adversarial Regression via cGANs represents a promising frontier for non-linear regression, particularly when uncertainty quantification is paramount. The ability to capture multimodality and higher-order moments of a distribution offers a significant advantage over traditional point-estimate methods. However, the approach remains sensitive to hyperparameter tuning and training instability. Future work should focus on scaling these methods to higher-dimensional datasets and conducting direct benchmarks against Variational Auto-Encoders and Bayesian Neural Networks.

Summary updated

BibTeX
@misc{boget2019adversarial,
  author = {Yoann Boget},
  title = {{Adversarial Regression. Generative Adversarial Networks for Non-Linear Regression: Theory and Assessment}},
  year = {2019},
  eprint = {1910.09106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.09106},
}
Figure