Introduction
Neural Style Transfer (NST) has revolutionized digital art by allowing the semantic content of one image to be rendered in the artistic style of another. Since the seminal work of Gatys et al., this process has been framed as a distribution matching problem within the feature space of deep convolutional neural networks (CNNs). However, most contemporary methods, such as AdaIN and WCT, simplify this problem by matching only the first and second moments—the mean and the covariance. This paper argues that such low-order statistics are insufficient to capture the full complexity of artistic styles, leading to artifacts like "color leaking" and loss of fine-grained texture.
The Central Moment Discrepancy (CMD) Framework
To address these limitations, the authors introduce Central Moment Discrepancy (CMD) to the NST pipeline. CMD is a probability distance measure that matches a sequence of higher-order centralized moments. Unlike standard Gram matrices or Optimal Transport approximations, CMD provides a more rigorous metric for distribution identity as the number of moments ($K$) increases.
The proposed method involves three key steps:
- Sigmoid Mapping: CNN feature outputs are wrapped in a sigmoid function to ensure the distribution has compact support $[0, 1]$, satisfying the theoretical requirements of CMD.
- Higher-Order Matching: The optimization objective minimizes the difference between the target style and the generated image across moments up to order $K=5$.
- Marginal Efficiency: To maintain computational feasibility, the authors focus on marginal moments (channel-wise statistics). This approach captures significantly more information than mean and variance alone while avoiding the overhead of full joint distribution matching.
Visual Significance of Moments
A core insight of the research is that different statistical moments correspond to specific visual attributes. The authors' ablation studies reveal that:
- Odd Moments (3rd, 5th): Primarily influence the global brightness and contrast of the stylized output.
- Even Moments (2nd, 4th): Are responsible for capturing the color palette and high-frequency textures, such as canvas grain or specific brush stroke patterns.
By matching up to the 5th moment, the CMD method achieves a superior disentanglement of style and content. This prevents the "bleeding" of original content colors into the final render, a common failure mode in methods that rely solely on mean and variance.
Results and Evaluation
The efficacy of the CMD approach was validated through a large-scale user study involving 56 participants and over 2,700 votes. The results showed that CMD-stylized images were preferred 21.7% of the time, outperforming the original Gatys method (19.7%) and significantly surpassing popular one-shot methods like AdaIN (5.7%) and WCT (17.1%).
Qualitatively, the method excels at preserving the integrity of the style's color palette. For instance, in content images with vibrant colors, CMD successfully replaces these with the style's palette without the original colors persisting as artifacts.
Conclusion and Future Work
While the CMD method provides superior visual quality, it remains an iterative optimization process, taking approximately 33 seconds per image. This makes it slower than feed-forward "one-shot" networks. However, the authors suggest that the CMD loss function could be used to train feed-forward generators, potentially combining the speed of modern real-time methods with the high-fidelity results of higher-order moment matching. By moving beyond simple mean and variance, this work sets a new standard for faithfulness in neural artistic rendering.
Summary updated