Specificity-Aware Diffusion Steering via Variance-Reduced Sequential Monte Carlo
Organizations: CSAIL, Massachusetts Institute of Technology
Abstract
Inference-time steering enables pretrained diffusion models to satisfy new constraints without full retraining. However, specificity-aware generation is difficult: repelling samples from a negative reference distribution can also erode the positive distribution where the two overlap. The key challenge is to suppress negative mass while minimally distorting the positive distribution. We address this problem by formulating specificity-aware steering as a target-design problem and deriving a target distribution from an overlap-based objective. The resulting target keeps the desired reference distribution only in regions where it is sufficiently preferred over the undesired reference distribution, giving a likelihood-ratio interpretation of specificity. To sample from the corresponding time-dependent target path, we develop a Sequential Monte Carlo sampler with a variance-minimized local proposal. We further introduce a practical fixed-noise optimization procedure with the Jacobian--vector products with the desired and undesired score fields. Experiments on synthetic task, class-contrastive generation, text-to-image tasks and peptide-MHC (p-MHC) binder show that the proposed method suppresses undesired regions more effectively, reduces mode shift, and improves sampling stability by decreasing the SMC weight collapse compared with negative-guidance baselines. Code is available at: https://github.com/WangLuran/Specificity-Aware-Diffusion-Steering
Figures & tables
| Related Negative | Unrelated Negative | Overall | |||||
|---|---|---|---|---|---|---|---|
| Method | CLIP + | CLIP - | Margin | CLIP + | CLIP - | Margin | Margin |
| Ours (Proposition 2) | 0.2722 | 0.1413 | 0.1309 | 0.2679 | 0.0655 | 0.2024 | 0.1666 |
| CFG | 0.2475 | 0.1473 | 0.1002 | 0.2561 | 0.0632 | 0.1928 | 0.1465 |
| DNG | 0.2758 | 0.1766 | 0.0992 | 0.2748 | 0.0812 | 0.1937 | 0.1465 |
| FKC | 0.2788 | 0.1652 | 0.1136 | 0.2796 | 0.0822 | 0.1974 | 0.1555 |
| FK steering | 0.2695 | 0.1758 | 0.0937 | 0.2727 | 0.0843 | 0.1884 | 0.1411 |
| Method | Mean | Median | Q75 | ||
|---|---|---|---|---|---|
| BoltzGen (target A only) | 64 | 0.1786 | 0.1587 | 0.2862 | 87.5% |
| Fixed guidance | 64 | 0.1654 | 0.1453 | 0.2833 | 93.8% |
| DNG | 64 | 0.1483 | 0.1581 | 0.2623 | 89.1% |
| Ours (Proposition 2) | 64 | 0.1856 | 0.1822 | 0.3337 | 84.4% |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| No. | Scene | Positive prompt | Related negative | Unrelated negative |
|---|---|---|---|---|
| 1 | Medieval feast | A grand medieval feast set in a great hall, filled with long tables covered in bountiful platters of food, goblets, and flickering light, with knights and nobles enjoying the lavish spread. | Chalices, candles | Kids playing football |
| 2 | English breakfast | A classic British breakfast, featuring a diverse selection of cooked delights, perfect for a filling and flavorful start to the day. | Egg, sausage | The view of a skyline |
| 3 | Dinner table | A beautifully set dinner table, with elegant arrangements, a variety of enticing dishes, and delicate decor that speaks to the sophistication of the meal. | Flowers, wine glasses | A person wearing sunglasses |
| 4 | Art workshop | An inspiring art workshop filled with creativity, featuring a wide range of tools and materials used by participants working on their individual projects. | Paintbrush, canvases | A bicycle in the rain |
| 5 | Antique store | A charming antique store with shelves and tables filled with unique and historical treasures, offering a glimpse into the past. | Lamps, old books | An electric toothbrush |
| Proposition 2 surrogate | Pearson | Centered MAE | Centered rel. RMSE | Normalized-ESS MAE |
|---|---|---|---|---|
| Without JVP | ||||
| With JVP |
| Proposal | Unique roots | Resamples | |||
|---|---|---|---|---|---|
| Fixed | |||||
| Full-ESS optimized |
| Method | Mean | Median | Q75 | ||
|---|---|---|---|---|---|
| BoltzGen (target A only) | 64 | 0.1786 | 0.1587 | 0.2862 | 87.5% |
| Fixed guidance | 64 | 0.1654 | 0.1453 | 0.2833 | 93.8% |
| DNG | 64 | 0.1483 | 0.1581 | 0.2623 | 89.1% |
| Ours (Proposition 2) | 64 | 0.1856 | 0.1822 | 0.3337 | 84.4% |