Support-guided OOD Removal with Diffusion
Organizations: Georgia Institute of Technology, Atlanta, GA, USA
Abstract
Many real-world signals are corrupted by localized, structured perturbations whose distribution is unknown: an intermittent background noise in a music recording, a watermark stamped on a photograph, a cast shadow. We study the task of recovering a clean signal from an observation containing such a localized out-of-distribution (OOD) corruption. We propose Support-guided OOD Removal with Diffusion, SORD, an iterative algorithm to recover using only two ingredients: a binary map of the corruption support and a single diffusion model pretrained on clean signals. SORD does not require any paired data or any statistical model of the corruption. We evaluate SORD on natural images and human faces with spatially localized corruptions including handwritten digits, other images, watermarks, and shadows, as well as audio recordings of different musical instruments with temporally localized corruptions including other instruments and human speech. SORD is competitive with, and often outperforms, posterior-sampling inpainting given the same diffusion prior and the same mask, source-separation baselines that require a separate diffusion model for each source, and, on several benchmarks, supervised networks trained on paired clean and corrupted signals. The code is released here: https://github.com/voilalab/SORD.
Figures & tables
| Image Corruption | Input | DPS Inpaint | DPS | DPS | SGM 2 priors | SGM 2 priors + mask | |
|---|---|---|---|---|---|---|---|
| MNIST | |||||||
| Natural patch | |||||||
| CIFAR-10 patch | |||||||
| Audio Interferer | Mix | DPS Inpaint | DPS | DPS | MSDM | ||
| IV instrument | SIR | ||||||
| IV instrument | SIR |
| Benchmark | Input | DPS Inpaint | DPS | DPS | SLBR | PatchWiper | |
|---|---|---|---|---|---|---|---|
| FFHQ | |||||||
| CLWD | |||||||
| Imagenette | |||||||
| Benchmark | Input | DPS Inpaint | DPS | DPS | Shadow Diffusion | Shadow Former | |
| ISTD | |||||||
| FFHQ |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Natural patch | MNIST digit | CIFAR-10 patch | CLWD watermark | ISTD shadow | |
|---|---|---|---|---|---|
| (default) | |||||
| Bench | All levels (default) | 8 DDIM levels | 4 DDIM levels | |
|---|---|---|---|---|
| Natural patch on CelebA | 100 | [1640] | [1352] | [840] |
| MNIST digit on CelebA | 100 | [1190] | [966] | [614] |
| CIFAR-10 patch on CelebA | 100 | [1640] | [1352] | [840] |
| CLWD watermark (declared ) | 99 | [1184] | [960] | [608] |
| PRWD watermark (declared ) | 100 | [1184] | [960] | [608] |
| FFHQ watermark (declared ) | 25 | [416] | [336] | [208] |
| Benchmark | Exact | Dilate 3 px | Dilate 5 px | Erode 1 px | Shift 2 px |
|---|---|---|---|---|---|
| Natural patch | |||||
| MNIST digit | |||||
| CLWD watermark | |||||
| CIFAR-10 patch |
| Method | Natural | MNIST | CIFAR-10 | CLWD WM | PRWD WM | FFHQ WM |
|---|---|---|---|---|---|---|
| DM -step | ||||||
| No DM -step | ||||||
| Method | Imagenette WM | ISTD | ISTD on FFHQ | ISTD on Imagenette | Slakh piano IV+OOV, | Slakh guitar IV+OOV, |
| DM -step | ||||||
| No DM -step |
| schedule | Natural | MNIST | CIFAR-10 |
|---|---|---|---|
| , | |||
| Constant | |||
| Method | MNIST No mask | MNIST Exact | Natural No mask | Natural Exact | CIFAR-10 No mask | CIFAR-10 Exact |
|---|---|---|---|---|---|---|
| Input | ||||||
| + matched contaminant DM | ||||||
| SGM / PiGDM, one prior | ||||||
| SGM / PiGDM, two priors |
| Audio Interferer | Mix | DPS Inpaint | DPS | DPS | MSDM | ||
|---|---|---|---|---|---|---|---|
| Piano target | |||||||
| IV instrument | SIR | ||||||
| IV instrument | SIR | ||||||
| IV instrument | |||||||
| Speech (IV) | SIR | ||||||
| Speech (IV) | SIR | ||||||
Diffusion Models for Image Restoration
Diffusion models for image restoration use generative priors to denoise, deblur, upscale, and reconstruct images from incomplete or corrupted measurements.
See all 189 papers