Learning Adaptive Parameter Tuning for Image Processing

Jingming Dong, Iuri Frosio, Jan Kautz

TL;DR

This paper introduces a general framework for automatically learning how to "tune" image processing algorithms locally. By mapping simple image features to optimal filter parameters using a learned logistic model, the authors demonstrate significant quality improvements across three classic tasks: denoising, demosaicing, and deblurring.

What Problem Does This Paper Address?

Most image processing algorithms—like those that remove noise or sharpen edges—rely on global parameters (e.g., "denoising strength"). However, images are non-stationary; a setting that works perfectly for a smooth blue sky might blur out the fine textures of a brick wall.

While "adaptive" algorithms exist, they are usually designed using hand-crafted heuristics or complex statistical models specific to one task. The authors identify a gap: the lack of a simple, general-purpose learning framework that can take any existing algorithm and teach it to adjust its parameters pixel-by-pixel based on local image content.

Methods

The authors propose a three-step pipeline:

  1. Feature Extraction: For every pixel, they extract a vector of simple local features, such as variance, entropy, and gradient entropy at different scales.
  2. Parametric Mapping: They use a logistic function to map these features to the algorithm's parameters. The logistic function ensures parameters stay within a "safe," user-defined range. The internal "score" of the logistic function is a quadratic combination of the features, allowing the model to capture complex interactions between them.
  3. Derivative-Free Optimization: To train the model, they use the Nelder-Mead simplex method. This is a "black-box" optimizer, which is crucial because many image quality metrics (like MS-SSIM) or iterative algorithms (like Total Variation deblurring) are not easily differentiable.

The framework was tested on three applications:

  • Approximate Non-Local Means (ANLM) Denoising: Learning local patch sizes and filtering strengths.
  • Demosaicing: Learning how to adaptively blend the outputs of three different state-of-the-art demosaicing algorithms (ARI, ECC, and CS).
  • TV Deblurring: Learning the local regularization hyper-parameter for images corrupted by Poisson noise.

Datasets

The study utilized standard benchmarks in the field:

  • Kodak Dataset: 24 high-resolution images used for the denoising and deblurring experiments.
  • McMaster Dataset: Used specifically for the demosaicing experiments, split into training and testing sets to evaluate how well the blending strategy generalizes.

Key Insights and Ideas

  • Metric-Driven Strategies: The "optimal" parameter behavior changes depending on what you are optimizing for. For example, when optimizing for PSNR, the model learns to use larger patches in smooth areas. When optimizing for MS-SSIM (which better reflects human perception), the model prioritizes high contrast and edge preservation, even if it leaves a bit more residual noise.
  • Validation of Theory: In the denoising task, the learned model automatically "discovered" strategies that match complex mathematical proofs in image science—specifically, that patch sizes should decrease near edges to avoid blurring bias.
  • Algorithm Blending: The demosaicing results show that "adaptive blending" is often superior to any single algorithm. The model learned to favor certain algorithms for edges and others for dark/bright regions, effectively creating a "super-algorithm" from existing parts.

Key Results

  • Denoising: The adaptive ANLM (aANLM) achieved an additional 0.5 dB gain in PSNR over the best global parameter settings and significantly improved visual contrast in fine details like eyelashes.
  • Demosaicing: The learned adaptive mixture (aMix) outperformed the best standalone method (ECC) by 0.96 dB on average. Visually, this resulted in a roughly 1 dB improvement in residual error reduction.
  • Deblurring: While the numerical gains in PSNR were modest (~0.04 dB), the qualitative results showed much sharper reconstruction of small text and roof textures compared to standard global Total Variation (TV) methods.

Limitations and Future Work

  • Computational Overhead: While the inference (applying the learned parameters) is relatively fast, extracting features like local entropy and variance for every pixel adds a computational cost that might be prohibitive for real-time mobile applications without hardware acceleration.
  • Feature Engineering: The method still relies on a predefined set of "simple" features. The authors suggest that future work could involve using more complex features or even deep learning to extract features automatically.
  • Optimization Scaling: The Nelder-Mead optimizer works well for a small number of parameters but may struggle to converge if the mapping function becomes significantly more complex (i.e., having hundreds of weights instead of dozens).

Summary updated

Abstract

The non-stationary nature of image characteristics calls for adaptive processing, based on the local image content. We propose a simple and flexible method to learn local tuning of parameters in adaptive image processing: we extract simple local features from an image and learn the relation between these features and the optimal filtering parameters. Learning is performed by optimizing a user defined cost function (any image quality metric) on a training set. We apply our method to three classical problems (denoising, demosaicing and deblurring) and we show the effectiveness of the learned parameter modulation strategies. We also show that these strategies are consistent with theoretical results from the literature.
BibTeX
@inproceedings{dong2018learning,
  author = {Jingming Dong and Iuri Frosio and Jan Kautz},
  title = {{Learning Adaptive Parameter Tuning for Image Processing}},
  booktitle = {Image Processing: Algorithms and Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=mzlpgCuzNey},
}

Loading related content...

Figure