# Asymptotically Exact Negative Guidance of Diffusion Models via Positive-Unlabeled Learning

*Hirohane Takagi, Masashi Sugiyama*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148530) · [Open on the map](../papers.html#p148530)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Drifting Generative Modeling](../pgroup/690.md) · Type: new method · Keywords: negative guidance, diffusion models, positive-unlabeled learning, sequential Monte Carlo, sample avoidance, image generation

Areas: [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Diffusion Model Optimization › Diffusion Model Guidance

## Summary
The paper introduces a negative-guidance method for diffusion models that samples from an explicit target density by estimating undesired-condition likelihood via Positive-Unlabeled learning and correcting drift with Sequential Monte Carlo, achieving asymptotically exact guidance and improved trade-offs between avoidance and generation quality.

## Explained to a 5-year-old
We want to draw pictures that do not show something we don't like. The old way just pushes the drawing away a little, but it never fully gets rid of it. The new idea makes a special rule that says how likely each picture is to be the unwanted thing. It learns this rule while drawing, and then uses a clever trick to make sure the final picture follows the rule exactly. This helps us get better pictures that avoid the bad thing.

## Explained to a 5-year-old, longer
Imagine you have a magic paint program that can make pictures. Sometimes you want the picture to not include something you don't like, like a scary monster. The old way of doing this just nudges the monster away a bit, but the monster can still show up. The new idea creates a clear rule that says how likely each picture is to have the monster. It learns this rule while the picture is being drawn, using a simple way of learning from examples of what you don't want. Then it uses a special method that checks the picture many times and fixes any mistakes, making sure the final picture follows the rule perfectly. This makes the pictures better and more reliable, and it works for many kinds of pictures, even those made by advanced computer programs.

## For a technical reader
The paper addresses the bias issue in existing negative guidance for diffusion models by targeting an explicit density rather than using local repulsive terms. It estimates the probability of undesired content via an online Positive-Unlabeled learning step and corrects particle drift with Sequential Monte Carlo, yielding an asymptotically exact sampler. This sampler can serve as a proposal kernel for any prior negative-guidance method, improving trade-offs between avoidance and generation quality. Experiments on synthetic and image-generation benchmarks confirm superior performance.

## Problem
Existing negative guidance for diffusion models uses repulsive terms that do not target an explicit density, leading to bias that cannot be reduced by more computation. This paper addresses the challenge of generating samples that avoid an undesired condition while allowing the bias to be systematically minimized.

## Method
The approach formulates negative guidance as sampling from an explicit target density that penalizes the undesired condition. It estimates, at each diffusion step, the probability that a sample belongs to the undesired condition using a Positive-Unlabeled learning framework trained online along the diffusion trajectory. A Sequential Monte Carlo correction removes residual drift, yielding a sampler that is asymptotically exact and can serve as a proposal kernel for any existing negative-guidance method.

## Results
On Gaussian mixture benchmarks the method approaches the ground-truth target, and it Pareto-dominates existing techniques across trade-offs between avoidance strength, generation quality, distributional bias, and diversity, including in an image-generation setting with a pretrained score network.

## Contributions
The work provides a principled negative-guidance framework that unifies reference-sample and score-based specifications, introduces an online PU-learning estimator for undesired-condition likelihood, and leverages Sequential Monte Carlo to achieve asymptotic exactness. Empirically, it demonstrates superior performance on multiple evaluation metrics.

## Practical relevance
This method enables more reliable control over diffusion model generation, allowing practitioners to avoid undesirable content while maintaining high-quality outputs in real-world image synthesis tasks.

## Research questions this paper is counted under

- [How can diffusion models enforce complex constraints during generation without compromising desired outputs?](../q/249.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148530)
