Papers
Topics
Authors
Recent
Search
2000 character limit reached

Patch-Wise Blurring Diffusion

Updated 20 March 2026
  • Patch-wise blurring diffusion is a framework that restores images by applying independent diffusion processes to overlapping patches, addressing localized noise and artifacts.
  • It employs a denoising diffusion probabilistic model with a guided reverse diffusion step that integrates measurement conditioning for unified tasks including denoising, deblurring, and super-resolution.
  • The method is particularly effective in thermal imaging, managing challenges like resolution loss and fixed pattern noise while utilizing limited and non-diverse training data.

Patch-wise blurring diffusion is a framework for image restoration that applies diffusion processes independently to spatially overlapping patches of an image, enabling localized modeling of noise and degradation artifacts. The approach was formalized for thermal imaging applications in the TDiff method, which addresses resolution loss, fixed pattern noise, and localized artifacts commonly found in thermal images from low-cost cameras. By modeling the diffusion prior at the patch level and integrating mechanisms for inverse problem guidance, patch-wise blurring diffusion achieves unified restoration across denoising, deblurring, and super-resolution tasks while managing limited and non-diverse training data (Dashpute et al., 7 Oct 2025).

1. Patch-based Diffusion Process

Patch-wise blurring diffusion decomposes a high-resolution image x0RH×Wx_0 \in \mathbb{R}^{H \times W} into a set of overlapping patches using an extraction operator PkP_k. Each patch is of size ps×psps \times ps and is processed independently through a denoising diffusion probabilistic model (DDPM) framework. For each patch kk, the forward diffusion process is defined as a Markov chain: q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right) where the schedule {βt}\{\beta_t\} defines the noise variance and αt=1βt\alpha_t = 1 - \beta_t, αˉt=i=1tαi\bar{\alpha}_t = \prod_{i=1}^t \alpha_i. The process runs from t=1t = 1 to TT, and the perturbed patch at time PkP_k0 can be sampled directly from PkP_k1: PkP_k2 The diffusion process is applied to each patch independently, leveraging the localized nature of distortions commonly observed in thermal imaging (Dashpute et al., 7 Oct 2025).

2. Reverse Diffusion and Denoising

The reverse diffusion process, or denoising step, aims to recover clean patches from noisy observations by modeling: PkP_k3 where the mean PkP_k4 depends on a learned noise predictor PkP_k5 realized by a time-conditional U-Net: PkP_k6 The objective for training PkP_k7 on each patch is: PkP_k8 This approach enables learning a prior over small localized regions, allowing effective denoising and restoration of localized degradations (Dashpute et al., 7 Oct 2025).

3. Patch Extraction, Tiling, and Reconstruction

The image is partitioned into a tiled grid of overlapping patches:

  • For an image of width PkP_k9 and height ps×psps \times ps0, with patch size ps×psps \times ps1 and stride ps×psps \times ps2, the number of patches horizontally is ps×psps \times ps3, vertically ps×psps \times ps4, and total patches ps×psps \times ps5.
  • Each patch ps×psps \times ps6 is indexed by starting coordinates ps×psps \times ps7, determined by:

ps×psps \times ps8

  • Patches are extracted such that ps×psps \times ps9, for kk0.

Overlapping denoised patches are reassembled into a full-resolution image via smooth windowing and normalization to avoid seams. The window function is the 2D raised-cosine (Hann) window: kk1 Reconstruction is performed by weighted averaging: kk2

kk3

(Dashpute et al., 7 Oct 2025)

4. Inverse Problem Guidance and Measurement Conditioning

For applications such as deblurring or general inverse imaging, patch-wise blurring diffusion integrates explicit measurement guidance during reverse diffusion. Given degradation kk4 (with kk5 representing a linear degradation, e.g., blur or downsampling), at each time kk6 an estimated clean patch is computed: kk7 Measurement-consistent updates are enforced per patch via:

  • Back-projection: kk8
  • Least squares correction: kk9

The guided reverse step updates each q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)0 by incorporating a weighted combination of q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)1 and q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)2, controlled by a time-dependent parameter q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)3: q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)4 This mechanism allows the framework to act as a plug-and-play prior for inverse problems within the diffusion process (Dashpute et al., 7 Oct 2025).

5. Architectural and Training Details

The core denoiser network q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)5 is a grayscale, time-conditional U-Net, parameterized as follows:

  • Base channel count: q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)6 for q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)7, q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)8 for q(Pk(xt)Pk(xt1))=N(Pk(xt);αtPk(xt1),βtIps2)q(P_k(x_t) \mid P_k(x_{t-1})) = \mathcal{N}\left(P_k(x_t); \sqrt{\alpha_t} P_k(x_{t-1}), \beta_t I_{ps^2}\right)9
  • Channel multipliers: {βt}\{\beta_t\}0
  • Sinusoidal timestep embeddings are added at every resolution

For deblurring, the blur kernel or its frequency response is included as a second input channel, or provided via cross-attention at the bottleneck. The forward and reverse diffusion employ a schedule {βt}\{\beta_t\}1, {βt}\{\beta_t\}2, {βt}\{\beta_t\}3 steps. Training uses the Adam optimizer with learning rate {βt}\{\beta_t\}4 and batch size approximately {βt}\{\beta_t\}5 patches (Dashpute et al., 7 Oct 2025).

6. Inference Pipeline

At inference, the full restoration process proceeds as:

  1. Initialize {βt}\{\beta_t\}6 as independent Gaussian noise.
  2. For {βt}\{\beta_t\}7:
    • Extract patches {βt}\{\beta_t\}8 for all {βt}\{\beta_t\}9.
    • For each αt=1βt\alpha_t = 1 - \beta_t0, compute αt=1βt\alpha_t = 1 - \beta_t1 and αt=1βt\alpha_t = 1 - \beta_t2.
    • Compute αt=1βt\alpha_t = 1 - \beta_t3, αt=1βt\alpha_t = 1 - \beta_t4 for each patch using local measurements.
    • Update αt=1βt\alpha_t = 1 - \beta_t5 via the guided reverse step.
    • Merge patches by windowed average to obtain αt=1βt\alpha_t = 1 - \beta_t6.
  3. After αt=1βt\alpha_t = 1 - \beta_t7, the restored image αt=1βt\alpha_t = 1 - \beta_t8 is obtained.

This patch-based diffusion with smooth blending is directly implementable in PyTorch or TensorFlow and realizes the TDiff restoration pipeline (Dashpute et al., 7 Oct 2025).

7. Significance and Applications

Patch-wise blurring diffusion, as instantiated in TDiff, is the first framework to apply a learned diffusion prior at the patch level for thermal image restoration across multiple tasks and measurement settings. The approach leverages local structure for robust restoration on limited training data, provides a unified pipeline for denoising, deblurring, and super-resolution, and enables consistent restoration even under real measurement conditions. Its generality suggests applicability beyond thermal to other imaging modalities exhibiting local, patch-dependent degradation (Dashpute et al., 7 Oct 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Patch-Wise Blurring Diffusion.