Diverse Sampling in Diffusion Models with Marginal Preserving Particle Guidance

Gal Vinograd, Idan Achituve, Ethan FetayaarXiv 2026

TL;DR

EDDY (Exact-marginal Diversification via Divergence-free dYnamics) is a training-free particle guidance mechanism that boosts sample diversity in diffusion and flow-matching models without sacrificing image quality. By exploiting mathematical symmetries in the Fokker-Planck equation, it repels generated samples from one another using divergence-free dynamics, ensuring each individual sample strictly adheres to its intended distribution.

What Problem Does This Paper Address?

State-of-the-art generative models like diffusion and flow matching produce stunning, high-fidelity images. However, when asked to generate a batch of images for the same prompt (e.g., "chairs in an empty room"), they often suffer from low diversity, producing highly repetitive outputs. This problem is worsened by standard guidance techniques like Classifier-Free Guidance (CFG), which improve prompt adherence at the direct expense of sample variety.

Existing methods to fix this either optimize initial noise latents (which yields limited diversity) or add naive repulsive forces between particles during the sampling process. Unfortunately, standard repulsive forces distort the underlying data distribution, introducing severe visual artifacts or causing the model to ignore the prompt entirely.

Qualitative comparison showing that EDDY preserves photorealism and prompt fidelity while maximizing diversity compared to other baselines.

Methods

The authors introduce EDDY, a particle guidance mechanism that operates entirely at inference time without additional training.

To resolve the trade-off between diversity and quality, EDDY leverages a clever mathematical loophole: the Fokker-Planck equation (which governs how probability distributions evolve over time) possesses non-trivial symmetries. Specifically, you can add an anti-symmetric matrix field to the model's drift via a matrix Stein operator. This perturbation alters the joint trajectories of a batch of particles (pushing them apart) but contributes exactly zero to the single-particle marginal distribution.

To implement this, EDDY constructs kernel-based anti-symmetric pairwise matrix fields from repulsive directions. For complex text-to-image tasks where similarity is best measured in a perceptual feature space (like DINOv2 embeddings) rather than raw pixels, computing exact second-order derivatives is computationally prohibitive. To scale EDDY to high dimensions, the authors develop practical approximations using central finite-differences and Hutchinson trace estimation.

Visualizing transport fields: Particle Guidance (left) distorts the distribution, while EDDY (right) creates a divergence-free field that repels particles while preserving the target marginal.

Datasets

The method was evaluated on two primary setups:

  1. Synthetic 2D Gaussian Mixture Model (GMM): A toy dataset consisting of an equal mixture of five Gaussians, used to analytically verify marginal preservation.
  2. MS-COCO val2017: A benchmark of 2,048 randomly sampled validation prompts used for large-scale text-to-image evaluation. The authors tested EDDY on top of two state-of-the-art base models: FLUX.1-dev (flow matching) and Stable Diffusion XL (SDXL) (latent diffusion).

Key Insights and Ideas

  • Symmetry as a Safeguard: The core "aha moment" is realizing that we don't have to choose between diversity and distribution fidelity. Because the mapping of particle dynamics to probability paths is not one-to-one, we can inject "eddy-like" rotational or divergence-free perturbations that force particles to explore different modes without altering their individual probability paths.
  • High-Dimensional Dominance: In high dimensions, the divergence-free component of the kernel naturally dominates the guidance field. This means the system behaves like a fluid eddy, circulating particles into unexplored regions of the distribution space while maintaining robust sample quality.
  • Perceptual Space Guidance: Rather than forcing diversity in pixel space (which causes artifacts), applying EDDY to deep feature spaces (like DINOv2) ensures that the diversity generated is semantic rather than structural or noisy.

Key Results

  • Perfect Marginal Preservation: On the synthetic GMM, EDDY significantly increased mode coverage while passing all standard two-sample statistical tests (Kolmogorov-Smirnov, Mann-Whitney, and Welch t-test), proving it is statistically indistinguishable from independent sampling at the marginal level.
  • Pareto-Dominating Performance: In text-to-image generation on MS-COCO, EDDY consistently Pareto-dominated standard Particle Guidance (PG) across all evaluated quality metrics—including CLIPScore, Aesthetic score, CMMD, and FID—at matched diversity levels.
  • Preserved Prompt Alignment: While competing methods like CADS achieve diversity by degrading prompt alignment (resulting in lower CLIPScores), EDDY maintains strong prompt adherence while successfully pushing particles into distinct visual modes.
Diversity-quality trade-off curves showing EDDY consistently Pareto-dominating Particle Guidance (PG) across both FLUX and SDXL models.

Limitations and Future Work

  • Computational Cost: EDDY introduces a roughly 25% runtime overhead on FLUX due to the forward passes required for finite-difference and Hutchinson trace estimation.
  • Approximation Sacrifices: Because approximations are required for high-dimensional feature spaces, the exact theoretical guarantee of marginal preservation no longer holds perfectly in practice (though it remains highly effective empirically).
  • Model-Specific Artifacts: The authors observed occasional blurriness in images generated with FLUX.1-dev, an issue that did not appear in SDXL, suggesting that latent space characteristics of the underlying base model can still impact the final output.

Summary updated

BibTeX
@misc{vinograd2026diverse,
  author = {Gal Vinograd and Idan Achituve and Ethan Fetaya},
  title = {{Diverse Sampling in Diffusion Models with Marginal Preserving Particle Guidance}},
  year = {2026},
  eprint = {2605.06553},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.06553},
}
Figure