Manuscript Offprint
arXiv:2610.33194Support-guided OOD Removal with Diffusion
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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 x from an observation y containing such a localized out-of-distribution (OOD) corruption. We propose Support-guided OOD Removal with Diffusion, SORD, an iterative algorithm to recover x 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.
1 INTRODUCTION

Figure 1: SORD removes diverse localized OOD corruptions without prior knowledge of the corruption distribution. Examples span semantic image patches, watermarks, shadows, and localized audio interference. Rows show the corrupted observation (top), our reconstruction (middle), and the clean target (bottom).
Localized corruptions arise in many restoration problems: a limited region of an image may be affected by structured noise, a watermark may cover part of an image, a cast shadow may alter a region, or an interfering sound may overlap a musical recording for a short time. These corruptions can be highly structured and semantically meaningful, rendering simple (e.g., Gaussian) noise models inadequate. At the same time, collecting paired examples or training a generative model for every possible corruption type can be impractical in the face of unexpected corruptions.
Existing approaches for removing localized corruptions generally fall into three categories. Supervised restoration methods learn a direct mapping from corrupted to clean signals (Liu et al., 2021; Liang et al., 2021; Guo et al., 2023b); these methods can perform well on specific tasks, but require paired clean and corrupted training data and are then restricted to removing corruptions similar to those seen during training. Posterior-sampling approaches combine a pretrained generative prior over clean signals with a known measurement model or like-lihood (Kawar et al., 2022; Chung et al., 2023). While these methods have achieved strong performance on many inverse problems (Lugmayr et al., 2022; Wang et al., 2023; Song et al., 2023), including inpainting a masked region, they generally require the corruption statistics to be known (Legin et al., 2023), often assuming relatively simple likelihood models such as Gaussian or Poisson noise (Chung et al., 2023) rather than corruptions with complex spatial, semantic, or temporal structure. Finally, source-separation approaches explicitly learn distributions for both the clean signal class and the corruption class, for example using separate generative models (Stevens et al., 2025; Mariani et al., 2024). These approaches can represent substantially richer corruption types, but require training data or learned generative priors for the anticipated corruption classes.
In many applications, these requirements can be restrictive or impractical. Paired clean and corrupted examples may be unavailable, and the corruption distribution may be too complex or unexpected to model accurately. We therefore consider a more weakly specified setting in which a strong generative prior is available for the clean signal class and the corruption is localized to a known support ; we do not assume access to any paired corruption data, parametric corruption distribution, or generative model of the corruption class.
Our key idea is to replace statistical prior knowledge of the corruption distribution with structural prior knowledge of where or when the corruption occurs. In many applications, the corruption is localized: it affects only a spatial subset of an image, as with watermarks, shadows, or localized artifacts, or only a temporal segment of an audio signal, as when an interfering sound briefly overlaps with a recording. The corruption within this region may have complex and unknown structure, but identifying its support is often substantially easier than modeling its distribution. A broad class of anomaly-detection and segmentation methods have already been proposed to estimate the support of such localized corruptions (Defard et al., 2021; Roth et al., 2022; Wyatt et al., 2022; Zhang et al., 2023; Kheirandish et al., 2026).
Rather than attempting to model the corruption distribution, we treat localized corruptions as out-of-distribution (OOD) relative to a generative prior over clean signals. The observations outside the corrupted region are regarded as clean and are preserved, while the region inside is reconstructed using the clean-signal generative prior. Unlike standard inpainting, however, the corrupted observations inside may still carry information about the underlying clean signal. Our algorithm, SORD, therefore alternates between explaining the observed corrupted region and reconstructing a signal that is consistent with both the learned clean-data distribution and the trusted observations outside . At each iteration, SORD uses its estimated uncertainty to adapt its effective step size and evaluate an adaptive stopping criterion. Empirically, we find that knowledge of the clean-signal prior and corruption support alone can be sufficient to match or outperform approaches that rely on paired training data or explicit corruption models.
We evaluate SORD across localized structured corruptions in both images and audio, as shown in Figure 1. For images, we consider both controlled additive corruptions to face images as well as specific applications in watermark removal and shadow removal in which the corruptions are not purely additive. For audio, we consider temporally localized additive audio interference in which a musical recording of one instrument is corrupted by another instrument or by human speech. Across these settings, we compare SORD with posterior-sampling (inpainting) methods using the same clean-signal prior and corruption support, supervised restoration models trained for specific corruption types, and multi-source diffusion models that explicitly model possible interfering sources. The results show that support information can substantially reduce the need for an explicit corruption model, while corruption-specific supervision remains advantageous when the test corruption is well represented by its training distribution. To summarize, our main contributions are:
-
We introduce SORD, an iterative algorithm for removing localized, highly structured OOD corruptions without requiring prior knowledge, training examples, or a generative model of the corruption. Instead, our method requires only a mask specifying the corruption support and a diffusion model trained on the clean signal distribution.
-
We demonstrate the generality of our approach across both image and audio restoration tasks, where corruptions are localized spatially or temporally. Across a diverse range of structured corruption types, SORD is competitive with approaches with substantially stronger modeling or training requirements, including supervised methods that require paired clean and corrupted data and source-separation methods that require an additional generative model trained on the corruption class.
Diffusion priors for inverse problems. Diffusion models have been widely used as learned priors for inverse problems (Song et al., 2023; Chung et al., 2023; Zhu et al., 2023; Zhang et al., 2025), including inpainting a masked region (Lugmayr et al., 2022; Kawar et al., 2022; Wang et al., 2023). These methods typically assume a specified observation or measurement model together with a known or modeled noise distribution such as Gaussian noise, Poisson noise, and other non-Gaussian likelihoods (Chung et al., 2023; Legin et al., 2023). In contrast, localized structured corruptions need not follow a known parametric noise model or likelihood, motivating restoration under support information alone.
Corruption-specific image restoration. A complementary line of work trains supervised or generative restoration models for a particular family of corruptions. For example, specialized methods have been proposed for image watermark removal (Cun & Pun, 2021; Liu et al., 2021; Liang et al., 2021) and shadow removal (Guo et al., 2023b;a), using either classical supervised learning (Cun & Pun, 2021; Liu et al., 2021; Liang et al., 2021), conditional diffusion (Guo et al., 2023b) or an attention-based model (Guo et al., 2023a). However, these approaches all require paired clean and corrupted training images and are specialized to specific types of corruption, whereas we seek a single general-purpose algorithm that can remove any structured localized corruption without retraining for each corruption class.
Generative priors for source separation. A broad family of methods focuses on source separation, treating a single observation as a mixture of multiple constituent sources and using learned generative priors to recover the individual components. For images, Stevens et al. (2025) model an observation as the combination of a clean image and structured noise, using separate diffusion priors for the signal and noise distributions and jointly inferring the two components. For audio, Multi-Source Diffusion Models (MSDM) (Mariani et al., 2024) learns the joint distribution of a fixed set of musical sources, such as different instruments, and uses the resulting model for both generation and source separation. Related diffusion-based approaches learn source distributions for speech (Scheibler et al., 2023) or separately trained priors for constituent communication signals (Jayashankar et al., 2023). These approaches rely on training data that represent the possible constituent source and corruption classes. In contrast, we assume a generative prior only for the desired clean signal; the localized corruption may come from an unknown class, may vary across observations, and need not be anticipated during training.
Localized anomaly and OOD detection. Localized anomaly and out-of-distribution (OOD) detection methods aim to identify spatial regions that deviate from the distribution of inlier data. A broad range of methods estimate such localized supports using feature-space deviations (Defard et al., 2021; Roth et al., 2022; Liu et al., 2023) or learned anomaly representations (Zavrtanik et al., 2021). More recently, diffusion models have been used as expressive representations of the inlier distribution, enabling anomalies to be localized from discrepancies produced during denoising or reconstruction (Wyatt et al., 2022; Zhang et al., 2023; He et al., 2024). These works demonstrate that the support of an anomalous or out-of-distribution component can often be estimated without explicitly modeling its distribution; our work assumes access to this corruption support and uses it towards recovering the underlying clean signal.
3 METHOD
We propose SORD, a diffusion-based method for removing localized structured corruptions without modeling their distribution. We assume access only to the support identifying where or when the corruption occurs, and a diffusion prior pretrained on clean signals. A natural strategy under these assumptions is diffusion inpainting: discard the measurements inside and generate the missing content conditioned on the uncorrupted observations outside . However, such a strategy also discards potentially useful information. In our setting, the values inside are not missing; rather, they contain a superposition of the clean signal and an unknown structured corruption. Our key insight is that these measurements can be progressively reused to improve an initial inpainting estimate.
SORD operationalizes this insight through three main components. First, we use diffusion inpainting as an initialization, and subsequently recover information from the measurements inside the corrupted
Algorithm 1 SORD: Support-Guided OOD Removal with Diffusion
Require: Observation , corruption support , corruption mask , clean-signal diffusion denoiser , inpainting operator , number of diffusion samples , maximum iterations , , stopping threshold .
Notation: denotes generic diffusion denoising of from noise level , denotes inpainting conditioned on the clean measurements . Our experiments instantiate via DDIM (Song et al., 2021) and via RePaint (Lugmayr et al., 2022).
1: for do 2: , 3: 4: end for 5: for do 6: for do 7: 8: 9: 10: , 11: 12: end for 13: 14: if then 15: return 16: end if 17: end for 18: return
region through an alternating signal–corruption decomposition. Second, because the residual between the measurement and the current reconstruction can contain both corruption and incorrectly reconstructed clean content, we use variance across multiple diffusion samples to quantify uncertainty in the current reconstruction. This uncertainty determines the scale of the subsequent diffusion-based refinement. Third, we use the same uncertainty estimate to inform an adaptive stopping criterion. The complete procedure is summarized in Algorithm 1, with key steps explained below.
We assume that the measurement consists of the clean signal additively corrupted by an arbitrary structured corruption within a localized region :
where is a mask that restricts the corruption to its known support . Importantly, we make no formal distributional assumption on and do not require examples from its corruption class.
A straightforward approach is to ignore the corrupted measurements entirely and perform diffusion inpainting to generate content inside while preserving the trusted observations . We initialize SORD by drawing such inpainting samples via RePaint (Lugmayr et al., 2022), though SORD is fairly robust to this choice of inpainting method. The resulting samples are consistent with the clean-signal diffusion prior and the uncorrupted measurements , but they need not recover the true content inside . In particular, inpainting treats the corrupted region as completely unobserved even though may still contain substantial information about .
Our first key idea is to iteratively reintroduce this information after inpainting. At iteration , given the current signal estimate , we form the estimated residual
If the current signal estimate were exact, this residual would equal the true corruption . In practice, however, is imperfect, and consequently can contain a mixture of the true corruption and errors in the estimated clean signal. We therefore refine the raw residual before using it to update the clean signal. Let denote a generic diffusion denoising process starting from noise level . In our experiments, we instantiate using the DDIM sampler (Song et al., 2021) initialized at noise level , though SORD is fairly robust to the choice of diffusion denoiser. We apply this diffusion refinement operator to each estimated corruption :
using refinement scale . This scale is adaptive:
and quantifies how much uncertainty remains in the current signal estimation and corresponding noise estimation. This diffusion refinement step helps to resolve fine-scale errors in the estimated corruption, even though it uses a diffusion model trained on the signal class rather than the corruption class. We evaluate this refinement step via an ablation study in Table 6.
We then use the refined residual in conjunction with the measurements and corruption support to update our estimate of the clean signal by enforcing measurement consistency:
This update ensures consistency with but does not guarantee that the resulting signal estimate lies in the clean-signal distribution captured by the diffusion prior. We therefore alternate the measurement update with a diffusion-prior refinement following a fixed noise schedule :
SORD yields stable performance across a wide range of noise schedules ; we provide a sensitivity study in Table 7.
SORD alternates between two complementary sources of information: the measurement, which reveals what remains unexplained by the current estimates of the signal and the corruption, and the clean diffusion prior, which constrains the reconstructed signal toward plausible clean signals and refines details in the estimated corruption. Iterating these updates allows information initially discarded by inpainting to be progressively recovered.
SORD terminates adaptively once the uncertainty estimate stops decreasing much. When this condition is satisfied, independent clean-signal hypotheses agree sufficiently within the corrupted support, and SORD returns their mean. SORD continues its alternating updates until either this condition is satisfied or it reaches a maximum of M iterations.
4 EXPERIMENTS
We evaluate SORD on localized structured corruption removal tasks in the image and audio domains. For images, we consider additive localized structured corruptions, visible-watermark removal, and shadow removal; for audio, we consider temporally localized additive interference removal. We report peak signal-to-noise ratio (PSNR) over the corrupted support for image experiments, since full-image metrics can be dominated by unchanged pixels outside the corrupted region, and scale-invariant signal-to-distortion ratio improvement (SI-SDRi) within the interference window for audio experiments. Representative results are shown in Figure 2.
4.1 ADDITIVE LOCALIZED STRUCTURED IMAGE CORRUPTIONS
We first consider additive localized corruptions on CelebA images (Liu et al., 2015), constructed by adding natural-image patches (van der Walt et al., 2014), MNIST digits (LeCun et al., 1998), and CIFAR-10 patches (Krizhevsky, 2009). These experiments test the target setting of this work: the corruption is additive, localized, and highly structured, while the clean diffusion prior is trained only on CelebA. Visual and quantitative results are reported in Figure 2 and Table 1, respectively.
We compare against several DPS (Chung et al., 2023) baselines using the same CelebA clean prior. DPS-Inpaint treats the corrupted support as missing and inpaints it by conditioning the sampling process on the observations outside . We additionally evaluate DPS under a Gaussian likelihood assumption within , either using the oracle corruption mean or fixing , since in practice the corruption mean is inaccessible. The limited performance of these variants suggests that the evaluated Gaussian likelihood approximations are inadequate to remove highly structured localized corruptions. We also compare against SGM (Stevens et al., 2025), which uses separate diffusion models for the CelebA image distribution and each corruption distribution, as well as a variant of SGM which we endow with additional knowledge of the corruption support . SORD outperforms both variants without requiring a learned corruption-specific prior. Further experimental details are provided in Section A.1.
4.2 ADDITIVE LOCALIZED AUDIO INTERFERENCE
To evaluate whether the same support-guided inference principle extends beyond images to localized audio interference, we use the Slakh2100 (Manilow et al., 2019) dataset of instrumental music to construct additive mixtures in which an interfering source is present only within a known temporal window . We compare SORD with Multi-Source Diffusion Models (MSDM) (Mariani et al., 2024). MSDM performs source separation using multiple source-specific diffusion priors, whereas SORD uses only a diffusion prior trained on the target source together with the temporal support of the interference. The audio mixture is constructed as
where x is the target source and s is the interfering source. We adjust g to control the interference-window Signal to Interference Ratio, SIR, levels between 0 and 5 dB, and consider the default Slakh mixing level g = 1 without SIR-based gain normalization.
We consider both in-vocabulary (IV) and out-of-vocabulary (OOV) interfering sources, relative to the MSDM baseline. For a given target source among the MSDM-modeled sources {piano, guitar, bass, drums}, the IV set consists of the other three MSDM-modeled sources, while the OOV set consists of the remaining eight Slakh instrument classes for which MSDM has no corresponding diffusion model. We additionally consider human speech interference both as an OOV source for the original MSDM model and as an IV source for an augmented version of MSDM endowed with a speech diffusion model. Quantitative results are presented in Table 1, with per-source results in Table 9 and representative spectrogram visualizations in Figure 3 in the appendix. We find that MSDM can outperform SORD for certain target instruments and when the interferer is a modeled source (IV), but that SORD is generally more robust to unexpected (OOV) interferer types as it does not rely on prior knowledge of the corruption class.
4.3 WATERMARK REMOVAL
We next consider visible watermarks, which provide a realistic localized structured corruption containing text or logos with varying color, shape, scale, and transparency. We use watermark examples from the Colored Large-scale Watermark Dataset (CLWD) (Liu et al., 2021).
A watermarked observation follows the alpha-compositing model
where x is the clean image, w is the watermark appearance, and is its opacity map, which may vary at the pixel level. We define the corruption support as all pixels with nonzero watermark opacity. SORD and DPS use only a diffusion prior for the clean image. In contrast, supervised watermark-removal baselines PatchWiper (Mo et al., 2025) and SLBR (Liang et al., 2021) are trained directly on paired watermarked and clean images.
input y
DPS-inpaint
DPS,
DPS,
baseline 1
baseline 2
SORD (ours)
ground truth

11.3 dB
20.1 dB
11.3 dB
10.6 dB
27.4 dB
27.0 dB
31.7 dB
10.1 dB
21.8 dB
10.1 dB
10.0 dB
26.9 dB
22.2 dB
28.5 dB
8.0 dB
17.3 dB
8.0 dB
12.0 dB
11.4 dB
21.1 dB
23.8 dB
9.0 dB
16.0 dB
9.0 dB
12.0 dB
11.8 dB
13.4 dB
21.8 dB
5.6 dB
16.0 dB
5.5 dB
11.2 dB
7.9 dB
7.8 dB
20.0 dB
7.9 dB
15.5 dB
8.0 dB
21.5 dB
9.7 dB
11.9 dB
22.8 dB
14.1 dB
15.1 dB
14.3 dB
14.3 dB
14.1 dB
18.4 dB
32.9 dB
14.1 dB
14.5 dB
14.2 dB
18.4 dB
25.9 dB
26.7 dB
30.6 dB
12.2 dB
31.7 dB
12.3 dB
30.1 dB
32.8 dB
35.8 dB
34.1 dB
11.5 dB
29.6 dB
11.5 dB
25.4 dB
34.1 dB
32.9 dB
33.0 dB
Figure 2: Visual results on localized image corruption removal. Each pair of rows corresponds to a different restoration setting: Rows 1–6 respectively show localized MNIST-digit, natural-image patch, and CIFAR-10 patch corruptions on CelebA faces. For those settings, Baseline 1 is Stevens et al. (2025), using separate CelebA and corruption-patch diffusion priors, while Baseline 2 is its mask-projected variant. Rows 7–8 show watermark removal on CLWD, with Patch-Wiper (Mo et al., 2025) as Baseline 1 and SLBR (Liang et al., 2021) as Baseline 2. Rows 9–10 show shadow removal on ISTD, with ShadowDiffusion (Guo et al., 2023b) as Baseline 1 and ShadowFormer (Guo et al., 2023a) as Baseline 2. Red contours or bounding boxes indicate the known corruption support . Numbers below the reconstructions denote PSNR computed only over .
Table 1: Localized structured corruption removal across image and audio domains. Image results report PSNR (dB) within on 100 CelebA images at resolution. Audio results report SI-SDRi improvement on , and the target is piano for all of the audio experiments. All values are mean standard deviation. IV and OOV denote in-vocabulary and out-of-vocabulary interferers for MSDM, respectively; for speech, IV uses MSDM augmented with a speech prior, while OOV uses the original four-source MSDM without a speech prior. The setting denotes the unnormalized mixture. SGM and MSDM use explicit contaminant/source priors, whereas SORD uses only the clean source prior and corruption support . DPS uses the oracle per-image mean of the true corruption on its support. The highest mean in each row is shown in bold. denotes the number of evaluated mixtures.
| Image Corruption | Input | DPS Inpaint | DPS | DPS | SGM 2 priors | SGM 2 priors + mask | SORD |
|---|---|---|---|---|---|---|---|
| MNIST | |||||||
| Natural patch | |||||||
| CIFAR-10 patch | |||||||
| Audio Interferer | Mix | DPS Inpaint | DPS | DPS | MSDM | SORD | |
| IV instrument | SIR 0 | 60 | |||||
| IV instrument | SIR 5 | 60 | |||||
| IV instrument | 60 | ||||||
| Speech (IV) | SIR 0 | 160 | |||||
| Speech (IV) | SIR 5 | 160 | |||||
| Speech (IV) | 160 | ||||||
| OOV instrument | SIR 0 | 160 | |||||
| OOV instrument | SIR 5 | 160 | |||||
| OOV instrument | 160 | ||||||
| Speech (OOV) | SIR 0 | 105 | |||||
| Speech (OOV) | SIR 5 | 105 | |||||
| Speech (OOV) | 160 |
Although we assume knowledge of the alpha-compositing form in Equation (8), we do not provide the true pixel-wise opacity map to SORD at inference time. This deliberately introduces model mismatch, since the true watermark opacity varies spatially across the logo.
We evaluate watermark removal both on the CLWD dataset and on synthetically watermarked images from FFHQ (Karras et al., 2019) and Imagenette, a ten-class subset of ImageNet (Deng et al., 2009). For each dataset, we use the PatchWiper model pretrained on the large-scale Pixabay Real-world Watermark Dataset (PRWD) (Mo et al., 2025). SLBR is trained on paired watermarked and clean images from each dataset, and SORD uses a diffusion model trained only on the clean image datasets without any prior knowledge of watermarks.
Quantitative results are reported in Table 2, with representative examples included in Figure 2. In this setting where the watermarking model (Equation (8)) deviates from the equal-weight additive corruption model assumed by SORD, SORD is competitive with, but does not always outperform, these domain-specific baselines trained on paired clean and corrupted data.
4.4 SHADOW REMOVAL
Shadows constitute a qualitatively different corruption from the additive perturbations considered above, and thus a further model-mismatch stress test of SORD. We model a shadowed image as a multiplicative corruption:
where is the clean image and is a spatially varying attenuation field with inside the shadow region and on . To apply its additive corruption-removal procedure, SORD applies its measurement-consistency updates in the log-intensity domain, , but still applies its pretrained clean-image diffusion model in the image domain (to estimates of and , not their pixel-wise logarithms).
We evaluate shadow removal on the Image Shadow Triplets Dataset (ISTD) (Wang et al., 2018), which provides shadowed images, corresponding shadow-free targets, and binary shadow masks. Since the shadow and shadow-free images are from separate physical camera captures, they exhibit
Table 2: Localized structured corruption removal on watermark and shadow benchmarks. Task-specific baselines use dedicated training data or corruption models, whereas SORD uses only the clean-image prior and the known corruption support. DPS uses the oracle per-image mean of the true corruption on the support. Highest mean in each row is shown in bold.
| Benchmark | Input | DPS Inpaint | DPS | DPS | SLBR | PatchWiper | SORD |
|---|---|---|---|---|---|---|---|
| FFHQ | |||||||
| CLWD | |||||||
| Imagenette | |||||||
| Benchmark | Input | DPS Inpaint | DPS | DPS | Shadow Diffusion | Shadow Former | SORD |
| ISTD | |||||||
| FFHQ | |||||||
| Imagenette |
exposure and illumination differences even outside the annotated shadow region. We further evaluate the same shadow-removal task on FFHQ and Imagenette by synthetically applying ISTD shadows to FFHQ and Imagenette images following Equation (9). Further details are provided in Section A.1.
We compare SORD against the same DPS-based restoration baselines and two task-specific supervised shadow-removal methods: ShadowDiffusion (Guo et al., 2023b), which incorporates an explicit conditional shadow degradation prior within a diffusion framework, and ShadowFormer (Guo et al., 2023a), a transformer-based method that uses global context between shadow and non-shadow regions for restoration. For each dataset, SORD uses only the corresponding clean-image prior and the shadow support, whereas ShadowDiffusion and ShadowFormer are trained with paired clean and shadowed examples from each dataset.
As shown in Table 2, the log-domain formulation performs comparably to the supervised ShadowDiffusion baseline within the shadow support, despite not using shadow-specific training data, while ShadowFormer has stronger performance.
4.5 ABLATION AND SENSITIVITY STUDIES
We study the sensitivity and robustness of SORD to its main hyperparameters and design choices, with full results in the appendix. Specifically, we examine the effect of the number of samples in Section A.2, the noise schedule in Table 7, the choice of for diffusion sampling and its computational cost in Section A.3, the relative value of statistical versus support-based corruption modeling in Table 8, and the robustness of SORD to imperfect corruption masks in Section A.4. Finally, because our method refines the estimated corruption by passing it through the clean-signal diffusion prior at a small noise level, Table 4 evaluates the effectiveness of this diffusion residual refinement and its effect on the final reconstruction quality.
5 DISCUSSION
We introduced SORD for removing localized structured corruptions using only a pretrained clean-signal diffusion prior and knowledge of the corruption support, without requiring paired clean and corrupted training data or a separately learned model of the corruption distribution. Across image and audio tasks, this support-guided strategy consistently improves over simply discarding the corrupted measurements, as is common in inpainting, and achieves competitive performance against several specialized methods that use corruption-specific training data or priors.
Our experiments also reveal limitations arising from the absence of a corruption-specific prior and the reliance on known corruption support. When the corruption class is known and well represented by training data, methods that explicitly model that class can retain an advantage; conversely, SORD is particularly useful when the corruption is unexpected or otherwise difficult to model. SORD also depends on a sufficiently accurate corruption support: overestimating the support tends to degrade performance gracefully, whereas leaving corrupted pixels outside the support can be substantially more harmful because those observations are treated as trustworthy. Future work may focus on jointly estimating the corruption support alongside corruption removal, developing more principled uncertainty-guided refinement and stopping criteria, and extending the framework to broader non-additive or partially specified corruption models.
6 AKNOWLEDGEMENT
This work was supported in part by the HIVES program at Georgia Tech Research Institute (GTRI).
REFERENCES
Hyungjin Chung, Jeongsol Kim, Michael T. McCann, Marc L. Klasky, and Jong Chul Ye. Diffusion posterior sampling for general noisy inverse problems. In International Conference on Learning Representations, 2023.
Xiaodong Cun and Chi-Man Pun. Split then refine: Stacked attention-guided resunets for blind single image visible watermark removal. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 1184–1192, 2021.
Thomas Defard, Aleksandr Setkov, Angelique Loesch, and Romaric Audigier. Padim: A patch distribution modeling framework for anomaly detection and localization. In International Conference on Pattern Recognition Workshops, 2021.
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 248–255, 2009.
Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. In Advances in Neural Information Processing Systems, volume 34, pp. 8780–8794, 2021.
Lanqing Guo, Siyu Huang, Ding Liu, Hao Cheng, and Bihan Wen. Shadowformer: Global context helps shadow removal. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pp. 710–718, 2023a. doi: 10.1609/aaai.v37i1.25148.
Lanqing Guo, Chong Wang, Wenhan Yang, Siyu Huang, Yufei Wang, Hanspeter Pfister, and Bihan Wen. Shadowdiffusion: When degradation prior meets diffusion model for shadow removal. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14049–14058, 2023b.
Haoyang He, Jiangning Zhang, Hongxu Chen, Xuhai Chen, Zhishan Li, Xu Chen, Yabiao Wang, Chengjie Wang, and Lei Xie. A diffusion-based framework for multi-class anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 8472–8480, 2024.
Tejas Jayashankar, Gary C. F. Lee, Alejandro Lancho, Amir Weiss, Yury Polyanskiy, and Gregory W. Wornell. Score-based source separation with applications to digital communication signals. In Advances in Neural Information Processing Systems, volume 36, pp. 5092–5125, 2023.
Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4401–4410, 2019.
Tero Karras, Miika Aittala, Jaakko Lehtinen, Janne Hellsten, Timo Aila, and Samuli Laine. Analyzing and improving the training dynamics of diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 24174–24184, 2024.
Bahjat Kawar, Michael Elad, Stefano Ermon, and Jiaming Song. Denoising diffusion restoration models. In Advances in Neural Information Processing Systems, 2022.
Alireza Kheirandish, Jihoon Hong, and Sara Fridovich-Keil. Klip: Localized distribution shift detection via kl-divergence with diffusion priors in inverse problems. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026.
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
Ronan Legin, Alexandre Adam, Yashar Hezaveh, and Laurence Perreault-Levasseur. Score-based likelihood characterization for inverse problems in the presence of non-gaussian noise. In NeurIPS 2023 Workshop on Deep Learning and Inverse Problems, 2023.
Jing Liang, Li Niu, Fengjun Guo, Teng Long, and Liqing Zhang. Visible watermark removal via self-calibrated localization and background refinement. In Proceedings of the 29th ACM International Conference on Multimedia, pp. 4426–4434, 2021.
Yang Liu, Zhen Zhu, and Xiang Bai. Wdnet: Watermark-decomposition network for visible watermark removal. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 3685–3693, 2021.
Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang. Simplenet: A simple network for image anomaly detection and localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 20402–20411, 2023.
Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pp. 3730–3738, 2015.
Andreas Lugmayr, Martin Danelljan, Andres Romero, Fisher Yu, Radu Timofte, and Luc Van Gool. RePaint: Inpainting using denoising diffusion probabilistic models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11461–11471, 2022.
Ethan Manilow, Gordon Wichern, Prem Seetharaman, and Jonathan Le Roux. Cutting music source separation some Slakh: A dataset to study the impact of training data quality and quantity. In Proceedings of the IEEE Workshop on Applications of Signal Processing to Audio and Acoustics (WASPAA), 2019.
Giorgio Mariani, Irene Tallini, Emilian Postolache, Michele Mancusi, Luca Cosmo, and Emanuele Rodolà. Multi-source diffusion models for simultaneous music generation and separation. In International Conference on Learning Representations, 2024.
Zihao Mo, Junye Chen, Chaowei Fang, and Guanbin Li. Patchwiper: Leveraging dynamic patch-wise parameters for real-world visible watermark removal. In Proceedings of the 33rd ACM International Conference on Multimedia, pp. 3537–3545. ACM, 2025. doi: 10.1145/3746027.3755107.
Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14318–14328, 2022.
Robin Scheibler, Youna Ji, Soo-Whan Chung, Jaeuk Byun, Soyeon Choe, and Min-Seok Choi. Diffusion-based generative speech source separation. In 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 1–5, 2023. doi: 10.1109/ICASSP49357.2023.10095310.
Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021.
Jiaming Song, Arash Vahdat, Morteza Mardani, and Jan Kautz. Pseudoinverse-guided diffusion models for inverse problems. In International Conference on Learning Representations, 2023.
Tristan S. W. Stevens, Hans van Gorp, Faik C. Meral, Junseob Shin, Jason Yu, Jean-Luc Robert, and Ruud J. G. van Sloun. Removing structured noise using diffusion models. Transactions on Machine Learning Research, 2025(3), 2025. ISSN 2835-8856. URL https://openreview.net/forum?id=BvKYsaOVEn.
Stéfan van der Walt, Johannes L. Schönberger, Juan Nunez-Iglesias, François Boulogne, Joshua D. Warner, Neil Yager, Emmanuelle Gouillart, Tony Yu, and the scikit-image contributors. scikit-image: Image processing in python. PeerJ, 2:e453, 2014. doi: 10.7717/peerj.453.
Jifeng Wang, Xiang Li, and Jian Yang. Stacked conditional generative adversarial networks for jointly learning shadow detection and shadow removal. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
Yinhuai Wang, Jiwen Yu, and Jian Zhang. Zero-shot image restoration using denoising diffusion null-space model. In International Conference on Learning Representations, 2023.
Julian Wyatt, Adam Leach, Sebastian M. Schmon, and Chris G. Willcocks. AnoDDPM: Anomaly detection with denoising diffusion probabilistic models using simplex noise. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 650–656, 2022.
Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draem: A discriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 8330–8339, 2021.
Bingliang Zhang, Wenda Chu, Julius Berner, Chenlin Meng, Anima Anandkumar, and Yang Song. Improving diffusion inverse problem solving with decoupled noise annealing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 20895–20905, June 2025.
Xinyi Zhang, Naiqi Li, Jiawei Li, Tao Dai, Yong Jiang, and Shu-Tao Xia. Unsupervised surface anomaly detection with diffusion probabilistic model. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 6782–6791, 2023.
Yuanzhi Zhu, Kai Zhang, Jingyun Liang, Jiezhang Cao, Bihan Wen, Radu Timofte, and Luc Van Gool. Denoising diffusion models for plug-and-play image restoration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 1219–1229, 2023.
A APPENDIX
A.1 EXPERIMENT DETAILS
Localized Structured Corruptions: All three benchmarks use the same 100 CelebA test images at resolution. The natural-image corruptions are pixel patches and CIFAR-10 corruptions are patches with randomly chosen heights and widths between 16 and 48 pixels.. The corruptions follow the additive model , where is the clean image and is the spatially localized corruption. For SORD, we use diffusion samples and a maximum of refinement iterations. We use a noise schedule that starts at 0.4 and linearly decreases to 0.1.
We compare against DPS (Chung et al., 2023) baselines using the same CelebA clean-image diffusion prior. DPS-Inpaint treats the corrupted support as missing and reconstructs it by conditioning on the observations outside . We additionally evaluate DPS under a Gaussian likelihood corruption model assumption within , either using the oracle corruption mean or fixing . These variants test whether an explicit Gaussian noise model is sufficient to remove localized structured corruptions (it usually is not sufficient). We also compare with the two-prior SGM of Stevens et al. (2025), which jointly estimates the clean image and corruption using separate diffusion models; CelebA images with MNIST corruption is a main structured-noise setting in that work. For natural image-patch corruptions, we trained the SGM corruption model using synthetic training examples generated by placing randomly selected image patches of size to on a black background, separately for each type of image patch corruption. For the masked SGM variant, we enforce the known support by projecting all clean-image estimates at intermediate timesteps to match on .
Localized Audio Interference: Each example is a 10 second clip sampled at 22.05 kHz, and contains a single target source (piano, in Table 1) together with one interfering source. The interferer is restricted to a single contiguous window covering half of the clip, and this window is provided to all methods. We also evaluate the same three DPS configurations used for localized image corruptions. DPS uses only the target-source prior and the exact temporal window, with 250 Karras–Euler reverse steps and initialization. DPS-Inpaint discards the measurements in the interference window, while the remaining variants use an in-window Gaussian noise assumption with either oracle or default . For SORD, we use the exact interference window and diffusion samples for the main experiments.
Watermark Removal: CLWD is a paired synthetic benchmark containing 60,000 training images generated from 160 colored watermark designs and 10,000 test images generated from 40 additional watermark designs. The dataset provides clean background images and their corresponding watermarked observations, allowing the watermark support to be determined directly.
We consider three watermark-removal benchmarks. For FFHQ, we composite a subset of 12 CLWD train-split logos onto 25 held-out FFHQ faces at resolution ; for Imagenette, we apply the same 12 logos to 25 Imagenette images at resolution . In both cases, the watermark support occupies approximately 3% of the image. For CLWD, we use its test split, containing 40 test-split logos and 99 test images at resolution , with an average corruption support of approximately 14% of the image. Composites use the per-pixel watermark opacity specified by the CLWD dataset.
The clean image priors are off-the-shelf ADM (Dhariwal & Nichol, 2021) checkpoints for FFHQ and ImageNet-256 (for Imagenette). For CLWD, we use an EDM2 (Karras et al., 2024) ImageNet-64 model fine-tuned only on the clean images from the CLWD training split. For SLBR, we train a domain-matched SLBR model from scratch on paired data from the corresponding training domain: paired FFHQ examples for FFHQ, and paired Imagenette examples for Imagenette. Training uses all of the CLWD train/test watermarks except for the 12 watermarks which we used for testing for FFHQ and Imagenette. We have followed the published training code for reproducing results. PatchWiper uses the published PRWD (Mo et al., 2025) checkpoint and predicts its own watermark support. All DPS variants use the same clean prior and exact corruption support as SORD. DPS-Inpaint discards the observations within , while the two likelihood-based variants use a per-image Gaussian noise assumption with mean set either to the oracle mean of the true corruption within , , or to zero as a standard default. We use 250 reverse sampling steps for resolution and 1000 steps for resolution .
Table 3: Ablation on the number of diffusion samples . Each entry reports corrupted-region PSNR (dB) of SORD as mean standard deviation over 25 images per benchmark. is not reported because is the spread across samples. Best mean in each column is shown in bold.
| K | Natural patch | MNIST digit | CIFAR-10 patch | CLWD watermark | ISTD shadow |
|---|---|---|---|---|---|
| 2 | 18.26 ± 2.37 | 24.30 ± 2.50 | 17.44 ± 2.64 | 23.39 ± 3.72 | 27.45 ± 6.99 |
| 4 | 20.42 ± 2.28 | 25.46 ± 2.03 | 20.07 ± 2.96 | 23.63 ± 3.93 | 28.77 ± 6.06 |
| 8 | 21.74 ± 2.18 | 26.54 ± 1.81 | 21.36 ± 3.20 | 24.41 ± 3.81 | 29.60 ± 6.19 |
| 16 | 22.22 ± 2.08 | 27.09 ± 1.48 | 21.91 ± 3.54 | 24.68 ± 3.87 | 30.08 ± 5.99 |
| 32 (default) | 22.52 ± 2.03 | 27.28 ± 1.43 | 22.23 ± 3.41 | 25.04 ± 3.97 | 30.13 ± 6.02 |
| 64 | 22.54 ± 1.84 | 27.40 ± 1.44 | 22.41 ± 3.43 | 25.06 ± 4.19 | 29.98 ± 6.20 |
Shadow Removal: For the ISTD benchmark, we use 100 real test shadows at resolution . To isolate restoration inside the declared shadow support, we recompose each example so that the corrupted input exactly matches the shadow-free target outside ; the shadow support occupies approximately 17% of the image on average. The clean prior is an EDM2 model fine-tuned only on shadow-free ISTD images. We additionally evaluate cross-domain transfer by applying 25 real ISTD shadow fields as multiplicative attenuation to held-out FFHQ and Imagenette images at resolution . These experiments use the corresponding off-the-shelf FFHQ and ImageNet-256 clean-image priors, respectively, with no shadow-specific training on either target domain.
A.2 EFFECT OF THE NUMBER OF SAMPLES
The number of parallel samples controls both the diversity of the initial inpainting hypotheses and the estimation of the ensemble spread used during refinement. We evaluate across the five image restoration settings in Table 3. Increasing generally improves the final reconstruction quality. Averaged over the five benchmarks, the corrupted-region PSNR of SORD increases from 21.37 dB at to 24.84 dB at . The improvement largely saturates beyond this point. We therefore use as the default throughout our experiments, providing a favorable trade-off between ensemble stability and computation.
A.3 SAMPLING COST
We next examine whether the diffusion denoiser in SORD, currently instantiated using DDIM (Song et al., 2021), can be replaced by a faster sampler. We replace only the -refinement step while keeping the inpainting initialization and -refinement fixed. As shown in Table 4, reducing the number of steps does not significantly affect the final results. Watermark removal experiments in which the ground-truth opacity map is used in the measurement model are labeled as “declared .”
A.4 ROBUSTNESS TO IMPERFECT CORRUPTION MASKS
Our formulation assumes access to the support of the localized corruption. In practice, however, this support may be obtained from an approximate segmentation and may not coincide exactly with the true corrupted region. We therefore evaluate the sensitivity of SORD to systematic mask errors by perturbing the ground-truth support through dilation, erosion, and spatial shifts.
We evaluate the final iterate with samples and report PSNR over the true corrupted region rather than over the perturbed mask. Table 5 reports mean standard deviation, with the intersection-over-union (IoU) between the supplied and true masks shown in parentheses.
Overestimating the support is comparatively benign. Mask dilation produces a gradual degradation rather than a failure of the refinement procedure. In this regime, the primary consideration is that additional clean pixels are incorrectly treated as unknown and must be reconstructed by the diffusion prior.
Table 4: Number of DDIM steps in the -refinement step. Our main results use the “shipped” SORD variant, which runs the -refinement step following DDIM over every ladder level at or below (13 levels at the largest noise level). We test computationally cheaper variants that cap the ladder at 8 or 4 DDIM levels, with everything else unchanged (-sample inpainting initialization). Image rows report corrupted-region PSNR (dB); audio rows report corruption-window SI-SDRi (dB), both as mean standard deviation. Brackets report the number of network evaluations per image spent in the alternating loop (-step and -step) excluding the initialization, which is identical across columns. The highest mean in each row is shown in bold.
| Bench | N | All levels (default) | 8 DDIM levels | 4 DDIM levels |
|---|---|---|---|---|
| Natural patch on CelebA | 100 | 21.96 ± 2.33 [1640] | 21.96 ± 2.33 [1352] | 21.96 ± 2.34 [840] |
| MNIST digit on CelebA | 100 | 27.16 ± 2.05 [1190] | 27.16 ± 2.05 [966] | 27.15 ± 2.04 [614] |
| CIFAR-10 patch on CelebA | 100 | 22.05 ± 3.45 [1640] | 22.05 ± 3.45 [1352] | 22.05 ± 3.45 [840] |
| CLWD + watermark (declared α) | 99 | 28.06 ± 6.48 [1184] | 28.06 ± 6.48 [960] | 28.07 ± 6.47 [608] |
| PRWD + watermark (declared α) | 100 | 30.75 ± 7.73 [1184] | 30.75 ± 7.73 [960] | 30.76 ± 7.72 [608] |
| FFHQ + watermark (declared α) | 25 | 30.05 ± 3.99 [416] | 30.05 ± 3.99 [336] | 30.03 ± 3.98 [208] |
| FFHQ + watermark, unseen logos | 25 | 26.76 ± 5.03 [416] | 26.75 ± 5.02 [336] | 26.74 ± 5.02 [208] |
| Imagenette + watermark (declared α) | 25 | 28.01 ± 7.15 [320] | 28.01 ± 7.15 [240] | 27.98 ± 7.15 [144] |
| ISTD shadow (mult., gated) | 100 | 29.10 ± 5.55 [417] | 29.07 ± 5.54 [257] | 29.00 ± 5.52 [129] |
| ISTD shadow + FFHQ (mult., gated) | 25 | 20.34 ± 4.19 [418] | 20.33 ± 4.19 [258] | 20.32 ± 4.19 [130] |
| ISTD shadow + Imagenette (mult., gated) | 25 | 19.05 ± 6.50 [645] | 19.05 ± 6.50 [485] | 18.48 ± 5.80 [212] |
| Slakh piano (SI-SDRi, K=4, M=4) | 100 | 3.31 ± 6.75 [416] | 3.22 ± 6.82 [288] | 3.08 ± 6.87 [224] |
| Slakh guitar (SI-SDRi, K=4, M=4) | 50 | 3.46 ± 5.14 [416] | 3.27 ± 5.31 [288] | 2.78 ± 5.93 [224] |
Table 5: Robustness to imperfect corruption masks. We perturb the true corruption support using dilation, erosion, and spatial shifts and evaluate PSNR (dB) over the true corrupted region. Values in parentheses report IoU between the perturbed and true masks. The highest mean in each row is shown in bold.
| Benchmark | Exact | Dilate 3 px | Dilate 5 px | Erode 1 px | Shift 2 px |
|---|---|---|---|---|---|
| Natural patch | 21.96 ± 2.33 | 19.94 ± 2.53 (0.73) | 18.85 ± 2.54 (0.62) | 13.84 ± 2.18 (0.88) | 14.38 ± 2.08 (0.78) |
| MNIST digit | 27.16 ± 2.05 | 24.40 ± 2.72 (0.59) | 23.32 ± 2.90 (0.47) | 17.83 ± 1.48 (0.76) | 15.20 ± 2.17 (0.60) |
| CLWD watermark | 25.09 ± 4.33 | 23.60 ± 3.96 (0.59) | 22.39 ± 3.72 (0.47) | 25.47 ± 4.91 (0.75) | 21.14 ± 4.26 (0.61) |
| CIFAR-10 patch | 22.05 ± 3.45 | 19.53 ± 3.44 (0.69) | 18.96 ± 3.47 (0.57) | 12.11 ± 2.62 (0.85) | 12.36 ± 2.70 (0.74) |
Missing corrupted pixels is substantially more harmful. In contrast, underestimating can leave corrupted measurements outside the supplied support. Since SORD assumes that is reliable and preserves those observations throughout refinement, such contamination is effectively locked into the reconstruction. Consequently, eroding the mask by only one pixel can cause a substantial decrease in mean PSNR.
These results indicate an asymmetric sensitivity to mask error: over-covering the suspected corruption is substantially safer than leaving corrupted pixels outside the mask.
An exception is watermark removal, as CLWD results are less sensitive to small mask erosions. Because of the way the masks were generated, watermark boundaries often contain pixels with small or near-zero opacity, so removing these boundary pixels from the support has little effect. Accordingly, the one-pixel eroded mask performs comparably to, and in this experiment slightly above, the exact mask.
Qualitative examples are shown in Figure 4, illustrating that dilation mainly causes unnecessary regeneration of nearby clean content, whereas erosion or misalignment leaves visible residual corruption outside the region that SORD is permitted to modify.
Table 6: Effect of removing the diffusion -step across benchmarks. The default method re-noises the estimated residual to noise level and denoises it with the clean-signal diffusion prior; “No DM -step” instead uses the clipped raw residual while keeping all other components unchanged. Image results report PSNR (dB) over the corrupted support, while audio results report in-window SI-SDR (dB), as mean standard deviation. Audio experiments use and for computational efficiency. The highest mean in each column is shown in bold.
| 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 |
Table 7: Effect of the re-noising schedule . We vary the re-noising schedule across refinement iterations while keeping all other components fixed. Results report PSNR (dB) over the corrupted support as mean standard deviation. Unless otherwise indicated, results are evaluated over 100 images. The highest mean in each column is shown in bold.
| schedule | Natural | MNIST | CIFAR-10 |
|---|---|---|---|
| Constant 0.8 | |||
Table 8: Effect of support information and contaminant modeling. We ablate the use of the exact corruption support and an additional contaminant diffusion model on the three localized CelebA benchmarks. Results report regional PSNR (dB) over as mean standard deviation over 100 images. “No mask” treats the full image as the possible corruption support, whereas “Exact” uses the ground-truth support. SGM uses the joint IIGDM sampler of Stevens et al. (2025). The best mean in each column is shown in bold.
| Method | MNIST No mask | MNIST Exact | Natural No mask | Natural Exact | CIFAR-10 No mask | CIFAR-10 Exact |
|---|---|---|---|---|---|---|
| Input | ||||||
| SORD | ||||||
| SORD + matched contaminant DM | ||||||
| SGM / PiGDM, one prior | ||||||
| SGM / PiGDM, two priors |

Figure 3: Visualization of localized audio interference removal. Each row shows a Slakh piano clip corrupted by a temporally localized interferer within the dashed interval. Columns show the mixture y, the ground-truth interferer, MSDM, SORD using only the clean-piano prior, and the clean target. Rows 1–5 use IV interferers (drums, guitar, bass, and speech), for which MSDM has corresponding source priors, while Rows 6–10 use OOV interferers (strings, organ, reed, brass, and synthesizer pad), for which no matched MSDM prior is available. Values report in-window SI-SDR and, in parentheses, improvement over the input mixture.

Figure 4: Qualitative effect of corruption-mask errors. We compare SORD using the exact corruption support or with dilated, eroded, or shifted masks. Overestimating the support causes the clean prior to regenerate some originally uncorrupted pixels, whereas underestimating the support leaves portions of the corruption outside , where they are treated as trusted observations and therefore are not corrected.
Table 9: Localized structured corruption removal across image and audio domains. Audio results report windowed SI-SDR improvement (SI-SDRi, dB) for piano, guitar, bass, and drums targets under localized instrumental and speech interference. All values are mean ± standard deviation. IV and OOV denote MSDM in-vocabulary and out-of-vocabulary interferers, respectively; for speech, IV uses MSDM augmented with a speech prior, while OOV uses the original four-source MSDM without a speech prior. The setting denotes the unnormalized mixture. SGM and MSDM use explicit contaminant/source priors, whereas SORD uses only the clean target prior. The highest mean in each row is shown in bold.
| Audio Interferer | Mix | DPS Inpaint | DPS | DPS | MSDM | SORD | |
|---|---|---|---|---|---|---|---|
| Piano target | |||||||
| IV instrument | SIR 0 | 60 | |||||
| IV instrument | SIR 5 | 60 | |||||
| IV instrument | 60 | ||||||
| Speech (IV) | SIR 0 | 160 | |||||
| Speech (IV) | SIR 5 | 160 | |||||
| OOV instrument | SIR 0 | 160 | |||||
| OOV instrument | SIR 5 | 160 | |||||
| OOV instrument | 160 | ||||||
| Speech (OOV) | SIR 0 | 160 | |||||
| Speech (OOV) | SIR 5 | 160 | |||||
| Guitar target | |||||||
| IV instrument | SIR 0 | 60 | |||||
| IV instrument | SIR 5 | 60 | |||||
| IV instrument | 60 | ||||||
| Speech (IV) | SIR 0 | 110 | |||||
| Speech (IV) | SIR 5 | 110 | |||||
| OOV instrument | SIR 0 | 160 | |||||
| OOV instrument | SIR 5 | 160 | |||||
| OOV instrument | 160 | ||||||
| Speech (OOV) | SIR 0 | 110 | |||||
| Speech (OOV) | SIR 5 | 110 | |||||
| Bass target | |||||||
| IV instrument | SIR 0 | 60 | |||||
| IV instrument | SIR 5 | 60 | |||||
| IV instrument | 60 | ||||||
| Speech (IV) | SIR 0 | 110 | |||||
| Speech (IV) | SIR 5 | 110 | |||||
| OOV instrument | SIR 0 | 160 | |||||
| OOV instrument | SIR 5 | 160 | |||||
| OOV instrument | 160 | ||||||
| Speech (OOV) | SIR 0 | 110 | |||||
| Speech (OOV) | SIR 5 | 110 | |||||
| Drums target | |||||||
| IV instrument | SIR 0 | 60 | |||||
| IV instrument | SIR 5 | 60 | |||||
| IV instrument | 60 | ||||||
| Speech (IV) | SIR 0 | 110 | |||||
| Speech (IV) | SIR 5 | 110 | |||||
| OOV instrument | SIR 0 | 160 | |||||
| OOV instrument | SIR 5 | 160 | |||||
| OOV instrument | 160 | ||||||
| Speech (OOV) | SIR 0 | 110 | |||||
| Speech (OOV) | SIR 5 | 110 | |||||