Skip to main content
QUICK REVIEW

[Paper Review] Characterizing and Improving Stability in Neural Style Transfer

Agrim Gupta, Justin Johnson|arXiv (Cornell University)|May 5, 2017
Generative Adversarial Networks and Image SynthesisComputer Science31 references18 citations
TL;DR

This paper identifies the root cause of instability in neural style transfer—specifically, the inverse relationship between the trace of the style image's Gram matrix and solution set stability—and proposes a recurrent convolutional network with a temporal consistency loss to achieve real-time, flicker-free stylized video. The method achieves near-optimization quality with 1000× speedup over prior optimization-based approaches.

ABSTRACT

Recent progress in style transfer on images has focused on improving the quality of stylized images and speed of methods. However, real-time methods are highly unstable resulting in visible flickering when applied to videos. In this work we characterize the instability of these methods by examining the solution set of the style transfer objective. We show that the trace of the Gram matrix representing style is inversely related to the stability of the method. Then, we present a recurrent convolutional network for real-time video style transfer which incorporates a temporal consistency loss and overcomes the instability of prior methods. Our networks can be applied at any resolution, do not re- quire optical flow at test time, and produce high quality, temporally consistent stylized videos in real-time.

Motivation & Objective

  • To investigate and characterize the source of flickering instability in real-time neural style transfer methods when applied to video.
  • To identify the trace of the Gram matrix of the style image as a key factor influencing solution set stability in style transfer.
  • To develop a real-time video style transfer method that maintains high visual quality while ensuring temporal consistency.
  • To overcome the limitations of feedforward methods (flickering) and optimization-based methods (slow speed) by combining their strengths.

Proposed method

  • The authors analyze the solution set of the Gram matrix matching objective in style transfer, showing it forms a sphere whose radius depends on the trace of the style image's Gram matrix.
  • They propose a recurrent convolutional neural network (R-CNN) that processes video frames sequentially, maintaining temporal coherence across frames.
  • A temporal consistency loss is introduced to encourage similar solutions to the Gram matrix matching objective at consecutive time steps.
  • The method does not require optical flow at inference time, avoiding errors from flow estimation.
  • The network is trained end-to-end with a combination of content loss, style loss, and temporal consistency loss.
  • The approach generalizes across resolutions and supports arbitrary style transfer without retraining.

Experimental results

Research questions

  • RQ1What causes the instability and flickering observed in real-time neural style transfer when applied to video?
  • RQ2How does the trace of the Gram matrix of the style image relate to the stability of the style transfer solution set?
  • RQ3Can a recurrent architecture with a temporal consistency loss achieve high-quality, real-time video style transfer with reduced flickering?
  • RQ4How does the proposed method compare in performance and stability to both feedforward and optimization-based style transfer baselines?

Key findings

  • The trace of the style image's Gram matrix is inversely related to solution set stability: higher trace leads to greater instability and flickering.
  • The proposed recurrent network achieves PSNR/SSIM of 27.76/0.9194 on the Rain Princess style, significantly outperforming the real-time baseline (26.00/0.7432) in temporal consistency.
  • User studies show that 133 out of 213 workers preferred the proposed method over the real-time baseline, with significantly less perceived flickering.
  • The method reduces flickering to near-optimization baseline levels (e.g., 23.44/0.9240 PSNR/SSIM vs. 23.68/0.9136 for Optim baseline) while being 1000× faster.
  • The method is robust to input distortions, maintaining image similarity comparable to natural image pairs, unlike the real-time baseline whose similarity decays sharply.
  • The approach avoids dependency on optical flow at test time, eliminating failure modes due to flow estimation errors, as demonstrated on the Sintel dataset.

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.