MAD: Manifold Attracted Diffusion

Dennis Elbrächter, Giovanni S Alberti, Matteo Santacesaria

Introduction

Score-based diffusion models are currently the gold standard for image synthesis. However, they inherently suffer from a "garbage in, garbage out" dilemma: if the training dataset is corrupted by measurement noise, compression artifacts, or sensor grain, a standard diffusion model will faithfully learn to reproduce that exact noise in every generated image.

Existing solutions typically rely on "Ambient Diffusion" techniques, which require modifying the training loss or having access to a small subset of clean data. Manifold Attracted Diffusion (MAD) takes a fundamentally different approach. It assumes you already have a model trained on noisy data (or a pre-trained model you wish to "purify") and modifies the inference procedure—the sampling steps—to suppress noise without requiring any network retraining. By leveraging the "manifold hypothesis" and introducing a mathematical construct called the extended score, MAD effectively filters out noise by attracting generated samples toward the low-dimensional data manifold during the sampling process.

Methodology: The Extended Score

The core innovation of MAD lies in its re-imagining of the score function to handle singular distributions.

  1. The Manifold Hypothesis: Meaningful high-dimensional data (such as faces or natural scenes) typically resides on a low-dimensional "manifold." Noise, by contrast, manifests as small variations in directions orthogonal (off-manifold) to this underlying structure.
  2. The Extended Score ($H_0$): In standard diffusion, the score function $\nabla \log p(x)$ points toward the data. However, if the data forms a "thin" manifold (mathematically, a Dirac delta distribution), the standard score becomes undefined or singular. The authors define an "extended score" that remains well-defined even for these singular distributions.
  3. Soft Thresholding: Mathematically, the extended score acts as a soft-thresholding operator. It treats low-magnitude variations (noise) as artifacts to be compressed to zero, while leaving large-magnitude variations (the actual data features) mostly untouched.
  4. Implementation: Applying MAD does not require a new neural network architecture. Instead, it modifies the Euler-method update step in the probability flow ODE. This requires calculating the derivative of the score network with respect to the noise level ($\sigma$). The authors achieve this efficiently using a finite difference approximation, meaning each sampling step requires roughly two evaluations of the neural network instead of one.

Key Insights and Capabilities

  • Attraction, Not Just Denoising: Unlike standard denoising, which attempts to guess the "clean" version of a specific pixel, MAD treats the manifold as an attractor. During sampling, the extended score pulls the sample toward the nearest point on the learned data manifold.
  • Training-Free Flexibility: Because MAD is strictly an inference-time modification, it can be applied to existing pre-trained models. For instance, increasing the "attraction" parameter on a clean FFHQ model progressively removes backgrounds and fine-grained "clutter," focusing the model purely on the primary manifold of facial features.
  • Handling Non-Gaussian Noise: While theoretically motivated by Gaussian noise, experiments demonstrate that MAD is surprisingly robust at handling "shot noise" (Poisson) and "pixel removal" noise, suggesting the manifold attraction principle is broadly applicable.

Experimental Validation and Results

The authors validated MAD across a wide spectrum of datasets, including toy 2D examples, standard vision benchmarks (FFHQ, AFHQv2, ImageNet, CIFAR-10), synthetic corrupted data, and real-world scientific data (the EMPIAR-11618 dataset containing extremely noisy 2D Cryo-Electron Microscopy images).

Quantitative results demonstrate a massive leap in sample quality when models are trained on noisy data. Using the Fréchet Inception Distance (FID)—where lower is better—MAD consistently outperformed standard generation:

Dataset (Noisy Training) Standard FID MAD (Extended) FID
CIFAR-10 (Gaussian noise) 147.47 77.15
FFHQ (Gaussian noise) 134.42 74.52
FFHQ (Pixel removal) 387.87 104.00

Qualitatively, the results on Cryo-EM data are particularly striking. Standard diffusion models trained on these images produce blurry, noisy blobs. MAD, however, successfully generated sharp, recognizable biological structures that matched ground-truth shapes identified by domain experts—despite the model never seeing a "clean" image during training.

Limitations and Future Work

While highly effective, MAD introduces a few challenges:

  • Hyperparameter Sensitivity: The method introduces new parameters (such as attraction strength). Finding the optimal "sweet spot" for these is currently a manual process that varies by dataset.
  • Computational Cost: Because of the extra network evaluations needed for the finite difference derivative, sampling takes about 1.5x to 2x longer than standard diffusion.
  • Inverse Problems: The current work focuses on unconditional generation (creating new samples from scratch). Extending MAD to "inverse problems"—such as denoising a specific existing image—represents a highly promising next step, particularly for fields like medical imaging and structural biology.

Summary updated

BibTeX
@inproceedings{elbrachter2026mad,
  author = {Dennis Elbrächter and Giovanni S Alberti and Matteo Santacesaria},
  title = {{MAD: Manifold Attracted Diffusion}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=CL6Byu4aIA},
}
Figure