Skip to main content
QUICK REVIEW

[Paper Review] Neural Neighbor Style Transfer

Nicholas Kolkin, Michal Kučera|arXiv (Cornell University)|Mar 24, 2022
Generative Adversarial Networks and Image SynthesisComputer Science12 citations
TL;DR

Neural Neighbor Style Transfer (NNST) improves artistic style transfer by replacing content features with nearest-neighbor style features using cosine distance and feature vector matching, achieving state-of-the-art visual quality. It offers two variants: NNST-D (fast feed-forward) and NNST-Opt (optimization-based), both outperforming prior methods in fidelity, diversity, and generalization without requiring guidance or aligned exemplars.

ABSTRACT

We propose Neural Neighbor Style Transfer (NNST), a pipeline that offers state-of-the-art quality, generalization, and competitive efficiency for artistic style transfer. Our approach is based on explicitly replacing neural features extracted from the content input (to be stylized) with those from a style exemplar, then synthesizing the final output based on these rearranged features. While the spirit of our approach is similar to prior work, we show that our design decisions dramatically improve the final visual quality.

Motivation & Objective

  • Address the visual quality gap between neural and patch-based style transfer methods by improving feature-based stylization.
  • Eliminate the need for manual or automatic guidance in style transfer while preserving fine-grained style details such as brushstrokes.
  • Achieve high-quality stylization that generalizes across diverse content and style images without requiring domain-specific alignment.
  • Balance content preservation, stylistic fidelity, and visual diversity through novel feature matching and preprocessing techniques.

Proposed method

  • Replace neural features from the content image with the nearest-neighbor features from a style exemplar using cosine distance in feature space.
  • Apply zero-centering to both content and style features to improve matching stability and quality.
  • Perform iterative feature matching with per-vector matching (not patch-level) to enhance local detail preservation.
  • Use multi-scale processing with repeated refinement at the finest scale to improve feature consistency.
  • Synthesize the final image either via end-to-end learned decoder (NNST-D) or optimization-based pixel refinement (NNST-Opt).
  • Extend the method with optional guidance (e.g., segmentation masks) by adding a weighted similarity term to the objective function.

Experimental results

Research questions

  • RQ1Can a neural style transfer method achieve patch-based quality without requiring manual or automatic guidance?
  • RQ2How does matching individual feature vectors instead of patches affect stylization quality and detail preservation?
  • RQ3To what extent can zero-centering and cosine distance improve feature matching and visual output quality?
  • RQ4Can a hybrid approach combining non-parametric feature rearrangement with parametric synthesis achieve both high quality and efficiency?
  • RQ5How does the method generalize across diverse content and style images without requiring alignment or domain-specific tuning?

Key findings

  • NNST-D achieves visual quality comparable or superior to slower optimization-based methods while running in a few seconds for 512×512 inputs.
  • NNST-Opt produces higher-quality results than prior state-of-the-art, taking over 30 seconds for 512×512 inputs, and is confirmed superior in a user study with 400 participants.
  • The method significantly improves texture and brushstroke fidelity at high resolution, outperforming prior neural methods in qualitative comparisons.
  • Feature vector matching with cosine distance and zero-centering leads to measurable improvements in visual diversity and stylistic accuracy.
  • With guidance (e.g., segmentation masks), NNST enables semantically meaningful style transfer, outperforming other neural methods in preserving style details.
  • Combining NNST-Opt with patch-based synthesis (e.g., Fišer et al.) enables 4K output while preserving high-frequency details, with NNST excelling at mid-scale structure transfer.

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.