Kaijing Ma

Paper Notes

Dynamic Negative Guidance of Diffusion Models

Paper Notes

Explore the method

Synthetic teaching values, not paper results. Nothing plays automatically; all steps remain available in the static explanation.

Static explanation and limits

Dynamic Negative Guidance targets the complement of an unwanted concept rather than indefinitely repelling its score field.

  1. Input: a noisy state and an estimate of the posterior probability of an undesired class. This is not a classifier certainty about the final image.
  2. Complement conditioning asks for the probability of not belonging to that class. Differentiating its log introduces posterior odds.
  3. Negative-guidance strength is proportional to u/(1−u). It shrinks when the undesired class is already unlikely and grows sharply near one.
  4. The practical sampler estimates posteriors using transition likelihoods and stabilizes them. The toy slider assumes an exact posterior and does not reproduce those estimation errors.

Felix Koulischer, Johannes Deleu, Gabriel Raya, Thomas Demeester, Luca Ambrogioni

Original reading note; cited methods and evidence, not an experimental reproduction. · 2410.14398v3

2410.14398v3 · Author code

Negation is not just a negative coefficient

Dynamic Negative Guidance targets the complement of an unwanted concept rather than indefinitely repelling its score field.

Let u(x,t) be the probability that the current noisy state belongs to the unwanted concept.

Conditioning on its complement multiplies the base density by 1 − u.

p_allowed(x,t) ∝ p(x,t)[1 − u(x,t)]^λ₀

Applying the chain rule and Bayes' rule yields an odds-dependent correction.

s_DNG = s_base − λ₀ u/(1 − u) (s_unwanted − s_base)

The correction vanishes when unwanted-concept probability approaches zero and grows rapidly near one.

For a synthetic example with λ₀ = 1, probabilities 0.1 and 0.8 give strengths 1/9 and 4.

The asymmetry is the core mechanism and also a source of sensitivity to posterior estimation error.

1 / 52410.14398v3

How the missing posterior is estimated

A score model does not directly return a normalized concept probability.

The paper tracks likelihood ratios of conditional and unconditional Gaussian reverse transitions along the trajectory.

With equal transition variances, the log-ratio increment is a difference of squared distances to their predicted means.

log u_new ≈ log u_old − [||x_new − μ_unwanted||² − ||x_new − μ_base||²]/(2σ²)

An undesired-model mean closer to the new sample increases the estimated concept evidence.

The practical estimator adds temperature scaling, an offset, and probability clamping.

These stabilizers separate the implementation from exact Bayesian conditioning.

The method also staggers posterior estimation and the next guided step to resolve their mutual dependence.

2 / 52410.14398v3

Experimental evidence

The one-dimensional Gaussian-mixture experiment permits exact posterior calculations and tests removal of one mode.

It is a diagnostic with known distributions, not a proof that estimated posteriors remain calibrated in image models.

MNIST and CIFAR10 experiments remove one class and measure forbidden-class frequency, retained class balance, and FID.

FID uses 10,240 generated images and reference data excluding the unwanted class.

This reference choice matters when comparing with studies whose FID reference is an unmodified model's samples.

The strongest reported advantage is less disruption of allowed classes in high-removal regimes.

3 / 52410.14398v3

Limits and reproducible checks

The ideal complement requires compatible concept-conditioned and base distributions with nonzero allowed mass.

Clamping prevents numerical divergence but changes the theoretical score rule.

A reproduction should report posterior trajectories, clamping frequency, scale sensitivity, retained diversity, and the exact sampler.

The derivation concerns state-dependent guidance; it does not imply that every negative prompt corresponds to a well-calibrated binary event.

4 / 52410.14398v3

Sources and reading scope

This original note covers the method and selected experimental evidence discussed above. It is not a full-paper translation. No model experiments were run for this note. Source license: https://creativecommons.org/licenses/by/4.0/

Author-code links in the source: https://github.com/FelixKoulischer/Dynamic-Negative-Guidance.git

5 / 52410.14398v3

Original figures and data come from the cited paper. Explanations and comparisons are reading notes. Source versions and figure labels appear beside the material.