WISE: Whitebox Image Stylization by Example-Based Learning

Winfried Lötzsch, Max Reimann, Martin Büßemeyer, Amir Semmo, Jürgen Döllner, Matthias Trapp

Abstract

Image-based artistic rendering can synthesize a variety of expressive styles using algorithmic image filtering. In contrast to deep learning-based methods, these heuristics-based filtering techniques can operate on high-resolution images, are interpretable, and can be parameterized according to various design aspects. However, adapting or extending these techniques to produce new styles is often a tedious and error-prone task that requires expert knowledge. We propose a new paradigm to alleviate this problem: implementing algorithmic image filtering techniques as differentiable operations that can learn parametrizations aligned to certain reference styles. To this end, we present WISE, an example-based image-processing system that can handle a multitude of stylization techniques, such as watercolor, oil or cartoon stylization, within a common framework. By training parameter prediction networks for global and local filter parameterizations, we can simultaneously adapt effects to reference styles and image content, e.g., to enhance facial features. Our method can be optimized in a style-transfer framework or learned in a generative-adversarial setting for image-to-image translation. We demonstrate that jointly training an XDoG filter and a CNN for postprocessing can achieve comparable results to a state-of-the-art GAN-based method.

Introduction: The Whitebox vs. Blackbox Dilemma

In the field of Non-Photorealistic Rendering (NPR), researchers typically choose between two paradigms. Traditional heuristics-based filters (e.g., XDoG or watercolor simulations) are "whitebox" systems: they are fast, work at massive resolutions, and are fully interpretable. However, tuning their numerous parameters to match a specific artistic style is a tedious task requiring expert knowledge.

Conversely, deep learning methods like Neural Style Transfer and GANs are "blackbox" systems. While they can learn complex styles from data, they are computationally expensive, struggle with ultra-high resolutions, and offer little fine-grained control. WISE (Whitebox Image Stylization by Example-based Learning) bridges this gap by making traditional filters learnable, allowing data-driven optimization of interpretable algorithms.

Methodology: Differentiable Artistic Filters

The core innovation of WISE is the implementation of a library of differentiable image filters. By rewriting standard operations—such as bilateral filtering, color quantization, and the eXtended Difference-of-Gaussians (XDoG)—so that gradients can flow through them, the authors enable two primary workflows:

  1. Parametric Style Transfer: Optimizing "parameter masks" (local settings) to match a specific target style.
  2. Parameter Prediction Networks (PPNs): Training a CNN (like a U-Net) to automatically predict filter parameters based on input content.
WISE enables the system to learn and apply complex artistic styles to diverse content like portraits and landscapes by predicting filter parameters from reference examples.

Key Insights

Resolution Independence and Interpretability

Because PPNs predict low-frequency parameters rather than high-frequency pixels, the network can be trained on low-resolution images and applied to 4K or 8K images using the original algorithmic filters. Furthermore, unlike standard GANs, WISE is fully interpretable; a user can inspect the predicted parameter masks to understand exactly why an image looks a certain way and manually adjust settings for artistic refinement.

Content-Adaptive Local Control

By predicting local parameter masks rather than just global values, the system becomes content-adaptive. It can learn to prioritize specific features, such as applying stronger contours to eyes and lips while smoothing skin textures, mimicking the selective focus of human artists.

The use of local parameter prediction allows for nuanced stylization that adapts to the specific geometry and textures of the input scene.

Results and Performance

WISE demonstrates significant advantages in both quality and efficiency. On the APDrawing benchmark, a hybrid WISE model (XDoG + a lightweight CNN) achieved an FID score of 60.55, outperforming the original APDrawing GAN (62.14). Critically, the system can produce stylized results at 4096 x 4096 resolution, a task that often exceeds the memory constraints of standard GAN-based models.

Conclusion

By bringing the "whitebox" back to AI stylization, WISE offers a framework that combines the interpretability of traditional NPR with the learning power of deep neural networks. While limited by the capabilities of the underlying filter library, it provides a robust path forward for high-resolution, artistically controllable image synthesis.

Summary updated

BibTeX
@inproceedings{lotzsch2022wise,
  author = {Winfried Lötzsch and Max Reimann and Martin Büßemeyer and Amir Semmo and Jürgen Döllner and Matthias Trapp},
  title = {{WISE: Whitebox Image Stylization by Example-Based Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=j5cRKvz_4a6},
}
Figure