Abstract
Photo-realistic style transfer (PRST) requires migrating the aesthetic qualities of a style image to a content image while strictly preserving structural integrity. Current methods often struggle with a trade-off between processing speed, memory consumption, and visual quality. We present AdaCM (Adaptive ColorMLP), a novel framework that achieves high-quality 4K resolution stylization in just 6ms. By utilizing a compact, two-layer MLP with dynamically predicted parameters, AdaCM captures complex non-linear color mappings without the spatial distortions or overexposure artifacts typical of existing approaches.
Introduction
The goal of PRST is to transfer color and lighting from a style reference to a target content image without introducing painterly artifacts or warping edges. Existing solutions generally fall into three categories, each with significant drawbacks: optimization-based methods are too slow for real-time applications; deep feed-forward models suffer from high GPU memory usage at high resolutions; and bilateral grid or affine methods often fail to capture complex color relationships, resulting in flat or overexposed images. AdaCM addresses this "trilemma" by introducing a lightweight, non-linear mapping approach.
Methodology
The core of the AdaCM framework is the ColorMLP, a tiny Multi-Layer Perceptron that replaces traditional 3D Look-Up Tables (3D-LUTs) or simple affine transforms.
ColorMLP and Parameter Prediction
A 2-layer MLP with 20 hidden units is sufficient to approximate complex 3D-LUTs using only 0.5% of the parameters. To make this mapping adaptive, a Parameter Prediction Module (PPM)—a CNN encoder using VGG-19 features—analyzes low-resolution versions of the content and style images to predict the weights and biases ($\Theta$) for the ColorMLP.
Efficient Inference Pipeline
To maintain real-time performance at 4K resolution, the model does not apply the MLP to every pixel directly. Instead, the predicted ColorMLP transforms a small identity 3D-LUT. This customized LUT is then applied to the full-resolution image via hardware-accelerated trilinear interpolation.
Regularization
To ensure smooth color transitions and prevent banding, the authors employ two total variation losses: $R_{lut}$ on the generated 3D-LUT and $R_{img}$ on the final output image.
Results and Discussion
AdaCM was evaluated using the Landscape and MS-COCO datasets, with testing performed on high-quality images from Pexels.
Performance and Speed
AdaCM sets a new benchmark for speed, processing 12-megapixel (4K) images in approximately 6.14ms on an Nvidia V100 GPU. This performance is competitive with the fastest existing methods while providing superior quality.
Qualitative and Quantitative Superiority
In quantitative evaluations, AdaCM achieved the lowest Gram Loss (3.1613), indicating highly accurate style matching. User studies further confirmed these results, with AdaCM receiving the highest scores for both photorealism (3.82) and overall quality (3.60). Visually, the model avoids the "hazy" artifacts of WCT² and the overexposure common in bilateral grid methods.
Conclusion
AdaCM demonstrates that a sophisticated, global non-linear mapping can outperform local linear models in photo-realistic style transfer. By decoupling resolution from transformation complexity through the use of an adaptive ColorMLP and 3D-LUTs, the framework enables high-fidelity, real-time stylization. Future work will focus on stabilizing the training of the hyper-parameter network and optimizing the architecture for mobile deployment.
Summary updated