Risk-Sensitive Diffusion: Robustly Optimizing Diffusion Models with Noisy Samples

Yangming Li, Max Ruiz Luyten, Mihaela van der Schaar

TL;DR

Diffusion models usually assume training data is perfectly clean, but real-world datasets—especially tabular and time-series data—are often riddled with measurement errors and missing values. This paper introduces "risk-sensitive diffusion," a method that pairs each training sample with a "risk vector" indicating its noise level. By modifying the underlying stochastic differential equation (SDE), this approach mathematically neutralizes the negative impact of noise. The result is a robust diffusion model that learns the true, clean data distribution even when trained on highly corrupted data.

What Problem Does This Paper Address?

Current diffusion models are primarily designed for high-quality image datasets. However, in real-world applications like medicine or finance, data is predominantly non-image (tabular or time-series) and inherently noisy. For instance, sensor data might have measurement errors, or missing values might be filled in using imperfect imputation algorithms.

When you train a standard diffusion model on this noisy data, it suffers from a "misguidance effect." Because the noisy data has a different starting distribution than the hypothetical clean data, the forward diffusion process creates shifted marginal distributions at every time step. Consequently, the model learns the wrong score function—it learns to generate noisy data rather than the underlying clean data.

Example of a risk vector represented as a confidence interval in time-series data.

The authors tackle the challenge of robustly training diffusion models when the dataset is corrupted, assuming we have access to a "risk vector" (e.g., a confidence interval or variance estimate from an imputation algorithm, as seen above) that quantifies the noise level of each sample.

Methods: Risk-Sensitive SDE

Standard diffusion models use a Stochastic Differential Equation (SDE) to gradually add noise to data. To combat the misguidance effect, the authors propose a novel Risk-sensitive SDE.

Instead of treating all samples equally, the Risk-sensitive SDE parameterizes the forward diffusion process using the sample's specific risk vector. The authors define a metric called perturbation instability, which measures the discrepancy between the trajectory of a noisy sample (under the risk-sensitive SDE) and a clean sample (under a standard SDE). They then mathematically solve for the optimal drift and diffusion coefficients to minimize this instability.

Comparison of forward diffusion trajectories between a risk-unaware SDE on clean data and a risk-sensitive SDE on noisy data.
  • For Gaussian Noise: They prove that you can achieve perfect "perturbation stability" (zero discrepancy). The math reveals a stability interval—a specific window of time steps during the diffusion process where the noisy sample's distribution perfectly aligns with the clean distribution. During training, noisy samples are only used to update the model within their specific stability interval.
  • For Non-Gaussian Noise: Perfect stability is mathematically impossible. However, the authors provide analytical solutions to find the coefficients that minimize the instability, allowing the model to handle complex, heavy-tailed noise like Cauchy distributions.

Key Insights and Ideas

  • Noisy samples are only useful sometimes: A massive mathematical insight of the paper is the "stability interval." A noisy sample cannot be used to train the model at every noise scale. The noisier the sample, the smaller its stability interval, meaning it is only used to guide the model at the highest noise levels where its initial corruption is "washed out."
  • Conditional generation is a flawed baseline: A naive approach to this problem would be to train a conditional diffusion model (conditioning on the risk vector) and then ask it to generate samples with "zero risk." The authors show this causes severe sampling bias. It over-represents regions of the data space that naturally had less noise in the training set. Risk-sensitive SDE avoids this by fixing the SDE itself, ensuring unbiased generation.
  • Gaussian assumptions are surprisingly robust: Even when the actual noise in the data isn't perfectly Gaussian (such as the errors introduced by KNN imputation on tabular datasets), assuming Gaussian perturbation and using the simplified Gaussian Risk-sensitive SDE still yields excellent, state-of-the-art results.

Experimental Results

The authors tested their method across synthetic, time-series (MIMIC-III, WARDS), tabular (UCI datasets), and image (CIFAR-10) datasets.

  • Quantitative Improvements: The proposed method drastically outperforms standard diffusion models (VE SDE, VP SDE) and risk-conditional baselines. For example, on the MIMIC-III dataset, the standard VE SDE achieved a Wasserstein distance of 10.083 (lower is better). The Risk-sensitive VE SDE slashed this to 1.865.
  • Qualitative Robustness: On synthetic data corrupted by heavy-tailed Cauchy noise, standard models and conditional baselines generated massive outliers. The Risk-sensitive SDE successfully ignored the extreme noise and recovered the clean underlying distribution without generating outliers.
  • Precision-Recall: On the Telemonitoring dataset, the Risk-sensitive SDE maintained significantly higher recall at identical precision scores compared to baselines, indicating it captures the full diversity of the clean data distribution without hallucinating garbage.

Limitations and Future Work

  • Requirement of Risk Vectors: The method fundamentally relies on having access to, or being able to accurately estimate, the risk vector for each sample. While the authors argue this is often available (e.g., via uncertainty quantification in imputation), it is an extra requirement compared to standard training.
  • Mathematical Complexity: The analytical solutions for non-Gaussian noise (like Cauchy) result in highly complex SDE coefficients.
  • Future Work: The authors defined "perturbation instability" using the mean square error of cumulant-generating functions. They suggest that future research could explore other statistical divergence measures (like KL divergence) to quantify and minimize the discrepancy between noisy and clean distributions.

Summary updated

BibTeX
@inproceedings{li2025risk,
  author = {Yangming Li and Max Ruiz Luyten and Mihaela van der Schaar},
  title = {{Risk-Sensitive Diffusion: Robustly Optimizing Diffusion Models with Noisy Samples}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=b0WpXBABdu},
}
Figure