SamplingAug: On the Importance of Patch Sampling Augmentation for Single Image Super-Resolution

Shizun Wang, Ming Lu, Kaixin Chen, Jiaming Liu, Xiaoqi Li, Chuang Zhang, Ming Wu

Introduction

Single Image Super-Resolution (SISR) aims to reconstruct high-resolution (HR) images from low-resolution (LR) counterparts. Modern approaches rely heavily on Deep Neural Networks (DNNs) trained on small image patches. Traditionally, these patches are sampled uniformly across a dataset. However, images are inherently non-uniform; regions like clear skies are "easy" to upscale using simple linear methods, while complex textures like foliage or architectural details are "hard." SamplingAug addresses this inefficiency by introducing a heuristic to identify and prioritize informative patches, significantly accelerating training and improving final image quality.

The SamplingAug Framework

The core philosophy of SamplingAug is that DNNs, as high-capacity non-linear functions, should focus their learning on data where linear functions fail.

The Informative Metric

To quantify the "difficulty" of a patch, the authors compare a ground-truth HR patch to a version of the LR patch upscaled via bilinear interpolation. They calculate the Peak Signal-to-Noise Ratio (PSNR) between these two versions. A high PSNR indicates that the patch is "easy"—linear upscaling is sufficient. Conversely, a low PSNR identifies an "informative" or "hard" patch where a DNN's non-linear modeling is required.

Comparison of PSNR values for 'easy' sky patches (high PSNR) versus 'hard' textured tree patches (low PSNR).

Acceleration via Integral Images

Calculating this metric for every possible patch in high-resolution images (e.g., 2K) is computationally prohibitive. To maintain training efficiency, SamplingAug utilizes integral images (summed-area tables). This technique allows the sum of pixel differences over any rectangular area to be calculated in constant time. This optimization reduced the metric calculation time from ~10 seconds to just 0.1 seconds per image, making the overhead negligible.

Sampling Strategies

Once an "importance map" is generated for an image, the model must decide which patches to select for training. The authors explored three strategies:

  1. Greedy Sampling (GS): Selecting the top $p\%$ most informative patches, regardless of overlap.
  2. Non-Maximum Suppression (NMSS): Selecting high-priority patches while enforcing a distance constraint to minimize overlap.
  3. Throwing-Dart Sampling (TDS): A stochastic approach to ensure diverse, non-overlapping coverage.

Surprisingly, Greedy Sampling—the simplest approach—yielded the best performance. This suggests that redundant exposure to difficult textures helps the model generalize better for complex cases.

An importance map visualization where darker red regions indicate lower PSNR (higher difficulty) and thus higher sampling priority.

Experimental Results

SamplingAug was evaluated across five architectures (SRCNN, ESPCN, EDSR, RCAN, and RDN) using standard benchmarks like Set5 and Urban100.

Performance Gains

The method showed massive improvements for lightweight models. On the Set5 dataset ($\times2$ scale), SRCNN achieved a PSNR boost of 1.40 dB, while ESPCN saw an increase of 2.26 dB. Interestingly, for smaller networks, training on a tiny fraction of highly informative data actually yielded better results than using the entire dataset, suggesting that redundant "easy" samples can hinder the learning process of low-capacity models.

Training Efficiency

Beyond final accuracy, SamplingAug significantly improved convergence speed. Models equipped with this sampling strategy reached the performance levels of a 300-epoch baseline in only 150 epochs, effectively halving the required training time. Unlike other methods like CutBlur, SamplingAug does not require pre-training to be effective.

Conclusion

SamplingAug demonstrates that how we sample data is just as important as the data itself. By focusing computational resources on informative, non-linear regions and utilizing integral images for efficiency, SamplingAug provides a significant performance boost for SISR models with almost zero computational cost. Future work may extend this heuristic-based sampling to other low-level vision tasks such as denoising or demosaicing.

Summary updated

BibTeX
@inproceedings{wang2021samplingaug,
  author = {Shizun Wang and Ming Lu and Kaixin Chen and Jiaming Liu and Xiaoqi Li and Chuang Zhang and Ming Wu},
  title = {{SamplingAug: On the Importance of Patch Sampling Augmentation for Single Image Super-Resolution}},
  booktitle = {BMVC},
  year = {2021},
  url = {https://openreview.net/forum?id=zO5wjHIaOvL},
}
Figure