Abstract
Traditional supervised learning models are often designed as "mean-seekers," focusing on predicting the expected value of a response variable. However, these models frequently struggle with uncertainty quantification and multi-modal distributions. This paper introduces CARD (Classification and Regression Diffusion), a framework that repurposes the generative power of denoising diffusion to solve supervised learning tasks. By combining a conditional mean estimator with a diffusion process, CARD accurately recovers the full conditional distribution of a response variable, significantly outperforming traditional Bayesian Neural Networks (BNNs) in complex, multi-modal scenarios.
Introduction
In standard supervised learning, the goal is typically to learn a mapping from covariates $x$ to a response $y$. While effective for point estimates, these models often rely on an "additive noise" assumption—treating the true value as a predicted mean plus simple Gaussian noise. This assumption fails in real-world scenarios where data is multi-modal. For instance, predicting a person's height based on age and weight without gender information results in a bimodal distribution. A standard model would predict the average height, a value that may not accurately represent either group. CARD addresses this by treating classification and regression as conditional generation problems, allowing the model to learn the entire "shape" of the possible outcomes.
Methodology
CARD modifies the standard denoising diffusion probabilistic model (DDPM) framework to incorporate supervised guidance. The architecture is built on four key components:
- Conditional Guidance: Unlike unconditional generative models that start from pure noise, CARD injects covariate dependence into both the forward and reverse diffusion chains. This ensures the generated output is always anchored to the input features $x$.
- The Prior Mean Estimator: To guide the diffusion process, CARD utilizes a pre-trained model $f_\phi(x)$, such as a standard neural network, to provide an initial estimate of the conditional mean. In the forward process, the data $y_0$ is diffused toward a distribution centered at this prior estimate $f_\phi(x)$ rather than the origin.
- Reverse Denoising: The model learns a denoising function $\epsilon_\theta$ that predicts the noise added at each step. This function is conditioned on the covariates $x$, the current noisy state $y_t$, and the prior estimate $f_\phi(x)$.
- Classification via Prototypes: To adapt diffusion for categorical data, CARD treats one-hot encoded labels as "class prototypes" in a continuous space. It performs Gaussian diffusion on these vectors and converts the generated continuous outputs back into probabilities using a temperature-weighted Brier score.
Experimental Evaluation
The authors evaluated CARD across a diverse set of benchmarks to test its versatility and robustness:
- Synthetic Regression: CARD was tested on eight toy tasks designed with specific challenges like heteroscedasticity and complex geometries (e.g., "8 Gaussians" and "Full Circle").
- UCI Regression: Performance was measured across ten real-world datasets, including Boston Housing and Concrete.
- Image Classification: The framework was applied to CIFAR-10, FashionMNIST, and Noisy MNIST.
- Large-Scale Tasks: The model's scalability was tested on CIFAR-100 and ImageNet (up to 1000 classes).
To better assess distributional fit, the authors introduced the Quantile Interval Coverage Error (QICE). This metric measures how well a model's predicted quantiles match the actual data distribution, offering a more granular evaluation than standard Log-Likelihood.
Key Results
CARD demonstrated state-of-the-art performance across multiple domains:
- Regression Superiority: CARD outperformed BNNs and Deep Ensembles on 9 out of 10 UCI datasets regarding Root Mean Squared Error (RMSE) and 8 out of 10 for Negative Log-Likelihood (NLL).
- Classification Accuracy: On CIFAR-10, integrating the diffusion framework improved the test accuracy of a base ResNet-18 from 90.39% to 90.93%.
- Uncertainty Quantification: In the "Noisy MNIST" task, CARD achieved an NLL of 0.39, significantly better than the next best method, Gaussian Contextual (1.43). This highlights CARD's ability to handle noisy and complex distributions where traditional methods fail.
Discussion and Limitations
While CARD offers significant advantages in capturing uncertainty and multi-modality, it faces certain trade-offs. The primary limitation is computational overhead; like other diffusion models, CARD requires multiple iterations (e.g., $T=1000$ steps) to generate a prediction, making inference slower than deterministic networks.
Additionally, the authors raise privacy and safety concerns. Because CARD can recover multi-modal distributions, it could potentially be used to "reverse engineer" sensitive missing attributes (such as demographic data) from other covariates. Future research may focus on performing diffusion directly in discrete label spaces to further improve calibration and reduce the computational cost of the continuous prototype approach.
Summary updated