Deep Learning with Inaccurate Training Data for Image Restoration

Bolin Liu, Xiao Shu, Xiaolin WuarXiv 2018 · OpenReview

Abstract

In many applications of deep learning, particularly those in image restoration, it is either very difficult, prohibitively expensive, or outright impossible to obtain paired training data precisely as in the real world. In such cases, one is forced to use synthesized paired data to train the deep convolutional neural network (DCNN). However, due to the unavoidable generalization error in statistical learning, the synthetically trained DCNN often performs poorly on real world data. To overcome this problem, we propose a new general training method that can compensate for, to a large extent, the generalization errors of synthetically trained DCNNs.

Introduction: The Generalization Gap in Image Restoration

Deep learning models for image restoration—such as super-resolution, denoising, and deblurring—frequently struggle when transitioned from laboratory settings to real-world applications. This "generalization gap" stems from the reliance on synthetic training data. Because capturing perfectly aligned high-quality and degraded image pairs in the real world is technically challenging due to environmental variables like camera shake and sensor noise, researchers typically use mathematical degradation models (e.g., bicubic downsampling).

However, real-world degradation is far more complex, involving lens distortion, sensor crosstalk, and various compression artifacts. Models trained exclusively on "clean" synthetic data often fail to recognize or correct these messy, real-world patterns, leading to suboptimal restoration results.

Methodology: A Two-Stage Training Framework

To bridge the gap between simulation and reality, this paper introduces a two-stage training strategy designed to refine models using real-world data, even in the absence of ground-truth labels.

Stage 1: Synthetic Pre-training

The process begins with training a standard restoration network ($G_0$) on synthetic pairs $(Y_s, X)$, where $Y_s$ represents a synthetically degraded version of a clean image $X$. This stage establishes a baseline capability for the restoration task.

Stage 2: Real-world Refinement and GAN Integration

The core innovation lies in the second stage. Real degraded images ($Y$)—for which no ground truth exists—are passed through the pre-trained model ($G_0$) to generate "surrogate" ground truth images ($X_s$).

Recognizing that these surrogate images may contain artifacts or imperfections, the framework incorporates a Generative Adversarial Network (GAN). A discriminator ($D$) is trained to distinguish between the model's output and a separate set of unpaired, high-quality real images. By combining structural guidance from surrogate labels with the perceptual realism enforced by the GAN, the model learns to adapt to real-world degradation statistics.

Experimental Setup and Datasets

The proposed method was evaluated on two distinct restoration challenges:

  • Face Super-Resolution: A custom dataset of 60,000 high-resolution Asian face images cropped from video clips. 40,000 images were used for training, with the remainder split between validation and testing.
  • Demoireing: This task involved removing screen patterns. The researchers used 60,000 synthetic patches generated via a complex simulator and 300 real-world images captured from various smartphone screens (iPhone 6, iPhone 8, Samsung Galaxy S8) at multiple distances and angles.

Key Results and Insights

The refinement process proved highly effective. While state-of-the-art models like EDSR performed well on synthetic data, they often produced blurry results on real low-resolution images. The refined version, EDSR+, demonstrated a marked ability to recover facial details and textures that the baseline model missed.

Comparison of super-resolution results: EDSR+ (bottom right) shows significant improvement in detail over standard EDSR on real-world data compared to the ground truth (top right).

Similarly, in demoireing, the refined DM-Net+ successfully removed rainbow-like moiré patterns from real smartphone photos, a task where the synthetically-trained baseline struggled despite high PSNR scores on simulated data.

Key Insights:

  • Surrogate Labels as Guidance: Despite flaws in the initial model's output on real data, these "surrogate" results are closer to the truth than the raw degraded input, providing a useful target for further learning.
  • Efficiency: The refinement stage is computationally efficient, requiring only about 10% of the iterations used in initial training due to effective weight initialization.
  • Architecture Agnostic: The strategy is a general training framework that can be applied to various architectures, including EDSR and SRResNet.

Conclusion and Future Work

While the two-stage method significantly improves real-world performance, it is not without limitations. Iterative application of the process (beyond two stages) can lead to "drift," where images become cleaner but lose original signal and become blurrier. The success of the refinement also remains dependent on the initial synthetic model being sufficiently accurate to provide useful surrogate labels. Future research will focus on optimizing the balance between fidelity to surrogate labels and adversarial realism across different restoration domains.

Summary updated

Abstract

In many applications of deep learning, particularly those in image restoration, it is either very difficult, prohibitively expensive, or outright impossible to obtain paired training data precisely as in the real world. In such cases, one is forced to use synthesized paired data to train the deep convolutional neural network (DCNN). However, due to the unavoidable generalization error in statistical learning, the synthetically trained DCNN often performs poorly on real world data. To overcome this problem, we propose a new general training method that can compensate for, to a large extent, the generalization errors of synthetically trained DCNNs.
BibTeX
@misc{liu2018deep,
  author = {Bolin Liu and Xiao Shu and Xiaolin Wu},
  title = {{Deep Learning with Inaccurate Training Data for Image Restoration}},
  year = {2018},
  eprint = {1811.07268},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.07268},
}
Figure