AdaCM: Adaptive ColorMLP for Real-Time Universal Photo-realistic Style Transfer

Tianwei Lin, Hong‐Lin Lin, Fu Li, Dongliang He, Wenhao Wu, Meiling Wang, Xin Li, Yong Liu · DOI

Abstract

Photo-realistic style transfer aims to migrate the artistic style of an exemplar image to a content image without introducing spatial distortions or unrealistic artifacts. While deep models have achieved impressive results, they are often too computationally expensive for real-time applications. Conversely, faster bilateral grid-based methods frequently suffer from overexposure and contrast loss. We introduce Adaptive ColorMLP (AdaCM), a framework that models complex non-linear color mappings using a compact multi-layer perceptron. By adaptively predicting ColorMLP parameters via a CNN encoder, AdaCM achieves high-quality, vivid stylization. Notably, AdaCM is ultrafast, processing 4K resolution images in just 6ms on a single V100 GPU.

Introduction

Style transfer is generally categorized into artistic and photo-realistic domains. While artistic transfer reimagines content as a painting, photo-realistic transfer seeks to swap the lighting or "vibe" of one photograph onto another while maintaining structural integrity. Existing deep learning approaches often struggle with this, either introducing warped textures by reconstructing images from scratch or failing to capture complex color shifts due to the limited expressiveness of simple affine transforms. AdaCM addresses these challenges by providing a universal, high-quality, and real-time solution for high-resolution imagery.

Methodology: The ColorMLP Framework

The core innovation of this work is the ColorMLP. The authors identified that a tiny Multi-Layer Perceptron (MLP) with only two hidden layers and 20 units can approximate complex color mappings—similar to those in professional 3D Look-Up Tables (3D-LUTs)—with 99.5% fewer parameters.

Overview of the AdaCM framework showing the Parameter Prediction and Color Manipulation modules.

The AdaCM framework operates through two primary components:

  1. Parameter Prediction Module (PPM): A CNN encoder analyzes low-resolution versions of the content and style images to predict the specific weights and biases for the ColorMLP.
  2. Color Manipulation Module: During inference, the ColorMLP generates a standard 3D-LUT. This LUT is then applied to the full-resolution image using optimized graphics operations, ensuring the process is resolution-independent and structurally non-distorting.

To prevent artifacts like banding in gradients, the system utilizes perceptual losses and total variation regularization on both the generated LUT and the final output.

Key Results and Performance

AdaCM demonstrates significant advantages in both speed and visual fidelity. In quantitative evaluations, it achieved the lowest Gram Loss among state-of-the-art methods, indicating superior capture of target style distributions.

Speed and Efficiency

AdaCM is categorized as "ultrafast," processing 12-megapixel (4K) images in approximately 6.14ms. This is orders of magnitude faster than traditional deep models like WCT², which can take several seconds for the same task. Because the neural computation is performed on low-resolution proxies, the heavy lifting does not scale linearly with the output resolution.

Qualitative Comparison

User studies and visual inspections show that AdaCM avoids the "hazy" appearance of reconstruction-based models and the overexposure common in bilateral grid methods. By predicting the parameters of a mapping function rather than the pixels themselves, the content remains 100% intact.

Qualitative comparison showing AdaCM producing cleaner, more vivid results compared to other SOTA methods.

Conclusion

AdaCM represents a major step forward in real-time image processing. By treating an MLP as a highly compressed, adaptive LUT, the framework achieves professional-grade photo-realistic style transfer at speeds suitable for 4K video applications. Future work will focus on introducing local spatial context to the global mapping and further optimizing the architecture for mobile deployment.

Summary updated

BibTeX
@inproceedings{lin2023adacm,
  author = {Tianwei Lin and Hong‐Lin Lin and Fu Li and Dongliang He and Wenhao Wu and Meiling Wang and Xin Li and Yong Liu},
  title = {{AdaCM: Adaptive ColorMLP for Real-Time Universal Photo-realistic Style Transfer}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i2.25248},
}
Figure