ALADIN-NST: Self-supervised disentangled representation learning of artistic style through Neural Style Transfer

Dan Ruta, Gemma Canet Tarres, Alex Black, Andrew Gilbert, John P. CollomossearXiv 2023 · DOI

Abstract

Learning "pure" artistic style representations, independent of image content, remains a significant challenge in computer vision due to semantic bias in existing datasets. We present ALADIN-NST, a self-supervised framework that leverages Neural Style Transfer (NST) to decouple style from content. By training on a massive synthetic dataset where diverse content is stylized with random references, the model learns to identify stylistic signatures while ignoring semantic information. ALADIN-NST achieves state-of-the-art performance in style retrieval and automated tagging, demonstrating superior disentanglement compared to existing models.

Introduction

In computer vision, "style" refers to the visual texture, brushwork, and color palette of an image, while "content" refers to the objects or scenes depicted. A long-standing challenge is disentanglement: how to represent the "vibe" of a painting without accidentally including information about the "subject."

Existing datasets for style learning often suffer from semantic bias. For example, in the popular BAM-FG dataset, many images in the "weathered paper" style group are also "character designs." If a model is trained on this data, it might mistakenly learn that "weathered paper" implies "drawing of a person." This "content leakage" makes style embeddings less effective for tasks like style-conditioned generation or cross-modal search.

Figure 1: Examples of diverse artistic styles and contents used to train the ALADIN-NST framework, showcasing the variety of textures and subjects.

Methods

The authors propose ALADIN-NST, which leverages Neural Style Transfer as a data engine to break the correlation between style and content.

  1. Synthetic Data Generation: Instead of relying on manually labeled real-world groups, the authors use three different NST methods (NeAT, PAMA, and SANet) to dynamically stylize random content images with random style references during training. This creates a "limitless" combination of style and content.
  2. Contrastive Learning: The model uses a contrastive loss (specifically InfoNCE). In each batch, a "positive pair" consists of two different content images stylized with the same style. Since the content is different, the only shared information the model can use to minimize the loss is the style itself.
  3. Hybrid Architecture: The model extracts features from two branches: a VGG Branch capturing global statistics (mean, variance, skewness, and kurtosis) and a ViT Branch using a Vision Transformer to capture localized, patch-based stylistic features.
  4. Self-Supervision: The process requires no human-annotated labels for the stylized images, as the "ground truth" style is defined by the reference image used in the NST process.
Figure 4: Illustration of the disentanglement strategy: a single sketch-like style is applied to diverse subjects (dog, architecture, landscape, vehicle, bird) to force the model to ignore semantic content.

Key Results

  • Style Retrieval: On the BBST-4M test set, ALADIN-NST achieved a mean Average Precision (mAP) of 85.59, nearly doubling the performance of the previous ALADIN-ViT baseline (13.10).
  • Disentanglement: When tested on content retrieval (where a lower score indicates better disentanglement), ALADIN-NST scored significantly lower than baselines, proving it encodes far less semantic information.
  • Zero-Shot Tagging: When fused with CLIP, the model achieved a state-of-the-art WordNet score of 0.415 on the StyleBabel dataset, outperforming models that rely on entangled embeddings.

Conclusion and Future Work

ALADIN-NST demonstrates that synthetic data generated via NST can effectively train models to learn pure style representations. While the model's performance is currently bounded by the quality of the underlying NST algorithms, it represents a major step toward content-blind style embeddings. Future directions include exploring more advanced Vision Transformer architectures and scaling the model to even larger, more diverse sets of artistic styles for integration into generative pipelines like Diffusion models.

Summary updated

BibTeX
@misc{ruta2023aladin,
  author = {Dan Ruta and Gemma Canet Tarres and Alex Black and Andrew Gilbert and John P. Collomosse},
  title = {{ALADIN-NST: Self-supervised disentangled representation learning of artistic style through Neural Style Transfer}},
  year = {2023},
  eprint = {2304.05755},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.05755},
}
Figure