Skip to main content
QUICK REVIEW

[Paper Review] DriftRec: Adapting diffusion models to blind JPEG restoration

Simon Welker, Henry N. Chapman|arXiv (Cornell University)|Nov 12, 2022
Advanced Neuroimaging Techniques and ApplicationsMedicine51 references5 citations
TL;DR

DriftRec proposes a novel adaptation of score-based diffusion models for blind JPEG image restoration by modifying the forward stochastic differential equation (SDE) to better align with the distribution of corrupted images. Unlike prior methods, it requires only paired clean-corrupted image data and works effectively even without knowledge of the JPEG quality factor or corruption process, achieving superior perceptual quality and faithful distribution modeling at low quality factors (QF ≤ 30).

ABSTRACT

In this work, we utilize the high-fidelity generation abilities of diffusion models to solve blind JPEG restoration at high compression levels. We propose an elegant modification of the forward stochastic differential equation of diffusion models to adapt them to this restoration task and name our method DriftRec. Comparing DriftRec against an $L_2$ regression baseline with the same network architecture and state-of-the-art techniques for JPEG restoration, we show that our approach can escape the tendency of other methods to generate blurry images, and recovers the distribution of clean images significantly more faithfully. For this, only a dataset of clean/corrupted image pairs and no knowledge about the corruption operation is required, enabling wider applicability to other restoration tasks. In contrast to other conditional and unconditional diffusion models, we utilize the idea that the distributions of clean and corrupted images are much closer to each other than each is to the usual Gaussian prior of the reverse process in diffusion models. Our approach therefore requires only low levels of added noise and needs comparatively few sampling steps even without further optimizations. We show that DriftRec naturally generalizes to realistic and difficult scenarios such as unaligned double JPEG compression and blind restoration of JPEGs found online, without having encountered such examples during training.

Motivation & Objective

  • To address the challenge of blind JPEG restoration at low quality factors (QF ≤ 30), where traditional methods often produce blurry outputs.
  • To develop a diffusion model that does not require prior knowledge of the JPEG corruption process, including quality factor or quantization matrices.
  • To enable generalization to complex, real-world scenarios such as unaligned double JPEG compression and online JPEGs with unknown processing history.
  • To improve perceptual image quality and distribution fidelity compared to existing diffusion-based and non-diffusion baselines.
  • To demonstrate that a modified SDE formalism can effectively model the non-Gaussian, nonlinear corruption of JPEG compression within a diffusion framework.

Proposed method

  • Adapts the forward SDE of diffusion models by modifying the drift term to reflect the distributional proximity between clean and JPEG-compressed images, rather than assuming a Gaussian prior.
  • Uses a paired dataset of (clean, JPEG-compressed) images for supervised training, without requiring knowledge of the JPEG encoding process during training or inference.
  • Employs a score-based generative model (SGM) with a denoising score matching (DSM) objective to learn the reverse process from compressed to clean images.
  • Applies the Euler-Maruyama sampler with 100 sampling steps to generate reconstructions, enabling iterative refinement of the image distribution.
  • Introduces a post-processing color correction step that aligns the mean of each RGB channel in the reconstructed image with that of the input JPEG to reduce color shifts.
  • Leverages the continuous SDE formalism to allow flexible sampling strategies and future integration with fast sampling techniques, despite non-standard SDE drift terms.

Experimental results

Research questions

  • RQ1Can a diffusion model be effectively adapted to blind JPEG restoration without requiring knowledge of the JPEG quality factor or quantization matrices?
  • RQ2How does the proposed SDE modification improve distribution modeling and perceptual quality compared to standard diffusion models and L2 regression baselines?
  • RQ3To what extent can DriftRec generalize to real-world, complex JPEG artifacts such as unaligned double compression or online images with unknown processing history?
  • RQ4What is the trade-off between perceptual quality and distortion when using multiple sampling runs or averaging in DriftRec?
  • RQ5How does the runtime efficiency of DriftRec compare to non-diffusion baselines, and can recent sampling speedups close the gap?

Key findings

  • DriftRec achieves significantly higher perceptual image quality than both the L2 regression baseline and state-of-the-art methods, avoiding the blurriness common in other approaches.
  • The method faithfully recovers the distribution of clean images, as evidenced by superior FID, KID, and LPIPS scores, even at low quality factors (QF ≤ 30).
  • DriftRec generalizes effectively to unaligned double JPEG compression and online JPEGs with unknown processing history, demonstrating robustness in real-world blind restoration scenarios.
  • Despite requiring 20–100 times more DNN evaluations than non-iterative methods (e.g., QGAC, FBCNN), DriftRec’s performance is competitive and expected to improve with future fast sampling techniques.
  • Averaging multiple samples from DriftRec enables a controllable trade-off between perceptual quality and distortion, offering flexibility in reconstruction goals.
  • The model has the lowest number of parameters among compared methods, with only minor architectural changes from the L2 regression baseline, indicating high efficiency in model design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.