Skip to main content
QUICK REVIEW

[Paper Review] Collaborative Distillation for Ultra-Resolution Universal Style Transfer

Huan Wang, Yijun Li|arXiv (Cornell University)|Mar 18, 2020
Generative Adversarial Networks and Image SynthesisComputer Science63 references7 citations
TL;DR

This paper proposes Collaborative Distillation, a novel knowledge distillation method that compresses VGG-19 encoders in universal style transfer by leveraging the exclusive collaborative relationship between encoder-decoder pairs. By training a student encoder to learn a linear embedding of the teacher’s features, the method enables ultra-resolution style transfer (up to 40+ megapixels) on a 12GB GPU, achieving state-of-the-art results with 15.5× parameter reduction while preserving visual quality across multiple stylization frameworks.

ABSTRACT

Universal style transfer methods typically leverage rich representations from deep Convolutional Neural Network (CNN) models (e.g., VGG-19) pre-trained on large collections of images. Despite the effectiveness, its application is heavily constrained by the large model size to handle ultra-resolution images given limited memory. In this work, we present a new knowledge distillation method (named Collaborative Distillation) for encoder-decoder based neural style transfer to reduce the convolutional filters. The main idea is underpinned by a finding that the encoder-decoder pairs construct an exclusive collaborative relationship, which is regarded as a new kind of knowledge for style transfer models. Moreover, to overcome the feature size mismatch when applying collaborative distillation, a linear embedding loss is introduced to drive the student network to learn a linear embedding of the teacher's features. Extensive experiments show the effectiveness of our method when applied to different universal style transfer approaches (WCT and AdaIN), even if the model size is reduced by 15.5 times. Especially, on WCT with the compressed models, we achieve ultra-resolution (over 40 megapixels) universal style transfer on a 12GB GPU for the first time. Further experiments on optimization-based stylization scheme show the generality of our algorithm on different stylization paradigms. Our code and trained models are available at https://github.com/mingsun-tse/collaborative-distillation.

Motivation & Objective

  • Address the limitation of ultra-resolution neural style transfer due to large VGG-19 model size and high memory consumption.
  • Overcome the challenge of feature dimension mismatch when compressing encoder-decoder style transfer models.
  • Identify and exploit the exclusive collaborative relationship between encoder and decoder as a new form of knowledge for distillation.
  • Enable efficient, high-resolution style transfer on consumer-grade hardware (e.g., 12GB GPU) without sacrificing visual quality.
  • Demonstrate generalization of the method across different stylization paradigms, including feedforward and optimization-based approaches.

Proposed method

  • Propose a two-stage compression scheme: first train a collaborator (decoder) for the large encoder, then replace the large encoder with a smaller one while keeping the collaborator fixed.
  • Introduce a linear embedding loss to align the low-dimensional output of the student encoder with the high-dimensional output of the teacher encoder, resolving feature size mismatch.
  • Treat the exclusive collaborative relationship between encoder and decoder as a new form of knowledge, distinct from label-based or activation-based distillation.
  • Apply the method to two state-of-the-art universal style transfer frameworks: WCT (image reconstruction-based) and AdaIN (style transfer-based).
  • Use a combination of perceptual loss, content loss, and collaborative distillation loss during training to preserve stylization quality.
  • Apply the compressed encoder to optimization-based style transfer (Gatys et al.) to validate generalization across different stylization paradigms.

Experimental results

Research questions

  • RQ1Can the exclusive collaborative relationship between encoder and decoder in neural style transfer be leveraged as a new form of knowledge for model distillation?
  • RQ2How can feature dimension mismatch be effectively resolved when compressing the encoder while preserving compatibility with a pre-trained decoder?
  • RQ3To what extent can model compression via collaborative distillation maintain visual quality in ultra-high-resolution style transfer (e.g., 40+ megapixels)?
  • RQ4Does the proposed method generalize across different stylization frameworks, including feedforward and optimization-based approaches?
  • RQ5Can the compressed model outperform existing compression methods (e.g., filter pruning) in both visual quality and resolution scalability?

Key findings

  • The proposed Collaborative Distillation method enables ultra-resolution neural style transfer (up to 10240×4096 pixels) on a single 12GB GPU for the first time, achieving stylization in ~31 seconds.
  • With a 15.5× reduction in model size, the compressed model achieves visually comparable results to the original VGG-19 across multiple datasets and style transfer methods.
  • User studies show that the compressed model is preferred over filter-pruning-based models (e.g., FP) and receives similar preference scores to the original model.
  • The method generalizes effectively to optimization-based style transfer (Gatys et al.), where the compressed encoder produces results nearly indistinguishable from the original.
  • Applying distillation to the decoder degrades visual quality, indicating that the decoder should be kept intact due to its strong supervision from pixel and perceptual losses.
  • Experiments show that standard knowledge distillation methods (e.g., soft label distillation) are ineffective for style transfer, as small gains in classification accuracy do not translate to perceptual improvements.

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.