Skip to main content
QUICK REVIEW

[Paper Review] Meta Networks for Neural Style Transfer

Falong Shen, Shuicheng Yan|arXiv (Cornell University)|Sep 13, 2017
Generative Adversarial Networks and Image SynthesisComputer Science23 references20 citations
TL;DR

This paper proposes a meta network that generates a style-specific image transformation network in a single forward pass, enabling real-time neural style transfer for any new style in just 19ms on a GPU. The method replaces iterative optimization with direct parameter generation, producing a compact 449KB model suitable for mobile deployment while maintaining high-quality results and enabling style interpolation and generation via the learned network manifold.

ABSTRACT

In this paper we propose a new method to get the specified network parameters through one time feed-forward propagation of the meta networks and explore the application to neural style transfer. Recent works on style transfer typically need to train image transformation networks for every new style, and the style is encoded in the network parameters by enormous iterations of stochastic gradient descent. To tackle these issues, we build a meta network which takes in the style image and produces a corresponding image transformations network directly. Compared with optimization-based methods for every style, our meta networks can handle an arbitrary new style within $19ms$ seconds on one modern GPU card. The fast image transformation network generated by our meta network is only 449KB, which is capable of real-time executing on a mobile device. We also investigate the manifold of the style transfer networks by operating the hidden features from meta networks. Experiments have well validated the effectiveness of our method. Code and trained models has been released https://github.com/FalongShen/styletransfer.

Motivation & Objective

  • To eliminate the need for iterative optimization per style in neural style transfer.
  • To enable real-time style transfer for arbitrary new styles without retraining.
  • To provide an explicit, differentiable representation of image transformation networks for controllable style manipulation.
  • To explore the geometric structure of the network manifold through hidden state interpolation.

Proposed method

  • A meta network is trained to map a style image to the parameters of an image transformation network via a frozen VGG-16 backbone and a series of fully connected layers.
  • The meta network's bottleneck layer encodes the style as a latent vector, which directly generates the convolutional filter weights of the image transformation network.
  • The image transformation network is composed of residual blocks with instance normalization and ReLU activations, with only the filters in the pink region generated by the meta network at inference.
  • The model is trained via empirical risk minimization over both content and style images, enabling end-to-end optimization of the meta network.
  • Linear interpolation in the meta network's hidden space enables smooth style transitions between two styles.
  • Random sampling from the hidden space enables novel style generation, demonstrating the diversity and continuity of the learned manifold.

Experimental results

Research questions

  • RQ1Can a meta network generate a high-quality, style-specific image transformation network in a single forward pass, bypassing iterative optimization?
  • RQ2How does the performance of the meta network-generated network compare to SGD-based methods in terms of speed and visual quality?
  • RQ3Can the hidden representation of the meta network support meaningful style interpolation and generation?
  • RQ4What is the structural and geometric nature of the network manifold induced by the meta network?
  • RQ5Can the generated image transformation network be efficiently deployed on mobile devices?

Key findings

  • The meta network generates a style-specific image transformation network in 19ms on a single GPU, achieving real-time inference.
  • The resulting image transformation network is only 449KB in size, enabling real-time execution on mobile devices.
  • The method achieves visual quality comparable to SGD-based optimization, which typically requires 4 hours of training per style.
  • Linear interpolation in the meta network's hidden space produces plausible intermediate styles, demonstrating continuity in the network manifold.
  • Random sampling from the hidden space generates diverse, realistic, and stylistically coherent textures, indicating effective style disentanglement.
  • The identity transformation network can be obtained by feeding the content image into the meta network, enabling controllable style strength via interpolation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.