ALADIN: All Layer Adaptive Instance Normalization for Fine-grained Style Similarity

Dan Ruta, Saeid Motiian, Baldo Faieta, Zhe Lin, Hailin Jin, Alex Filipkowski, Andrew Gilbert, John P. CollomosseICCV 2021 · DOI

Abstract

ALADIN (All Layer AdaIN) is a novel deep-learning architecture designed for fine-grained artistic style search. By repurposing Adaptive Instance Normalization (AdaIN) statistics—traditionally used for style transfer—into a discriminative embedding and training with weakly supervised contrastive learning on large-scale artistic datasets, ALADIN achieves state-of-the-art performance in style-based visual search, significantly outperforming traditional discriminative models.

Introduction

While computer vision has become highly effective at identifying image content, identifying artistic style remains a significant challenge. Most existing systems only recognize "coarse-grained" styles, such as distinguishing a watercolor from a pencil sketch. However, they struggle with "fine-grained" similarity—for instance, distinguishing between the unique sketching techniques of two different artists.

Defining "style" is difficult and expert annotation is prohibitively expensive. ALADIN addresses this by learning a style representation sensitive to subtle variations without requiring explicit, expert-labeled style categories.

Fine-grained style groupings from the BAM-FG dataset demonstrate the subtle variations the model must capture.

Methods

The ALADIN architecture explicitly disentangles content from style using an encoder-decoder framework.

All-Layer AdaIN

Standard style transfer models use AdaIN to swap styles between images during generation. ALADIN instead extracts the mean and variance statistics from every layer of its style encoder. These statistics are concatenated to form a high-dimensional (896-D) "style embedding." This approach treats generative statistics as potent descriptors for search tasks.

The ALADIN architecture utilizes an encoder-decoder structure to disentangle style and content, using AdaIN statistics as a discriminative style embedding.

Weakly Supervised Contrastive Learning

To train the model without formal style taxonomies, the authors leverage "project groupings" from Behance.net. The assumption is that images uploaded by an artist to the same project likely share a similar style. A contrastive loss (similar to SimCLR) is used to pull images from the same project closer in the embedding space while pushing others apart. To handle large batch sizes (1024) on consumer-grade hardware, the authors developed a "logit accumulation" strategy to compute gradients efficiently.

Datasets

The paper introduces several key datasets:

  • BAM-FG (Behance Artistic Media Fine-Grained): A massive dataset of 2.62 million digital artworks across 310,000 fine-grained groupings.
  • BAM-FG-$C_N$: A cleaned subset of 1.62 million images organized into style-coherent subgroups via crowd-sourcing.
  • BAM & BAM-X: Existing datasets used for evaluating coarse-grained style classification.

Results and Discussion

ALADIN significantly outperforms baselines in fine-grained retrieval tasks. On the BAM-FG dataset, ALADIN-Contrastive achieved a 56.89% Top-1 accuracy, vastly outperforming standard discriminative models like ResNet50 (40.14%). Despite its focus on fine-grained tasks, ALADIN also set new records for coarse style classification on the BAM dataset with 99.48% accuracy.

Crowd-sourced user studies confirmed that ALADIN's search results are consistently rated as more stylistically coherent than previous state-of-the-art methods, demonstrating strong alignment with human perception.

Conclusion

ALADIN demonstrates that statistics used for image generation can be effectively repurposed for high-performance style search. By leveraging weak supervision from artist-curated projects, the model learns a robust, fine-grained style representation that generalizes across diverse artistic media. Future work may explore unifying style-based search and high-quality stylization within a single framework.

Summary updated

BibTeX
@inproceedings{ruta2021aladin,
  author = {Dan Ruta and Saeid Motiian and Baldo Faieta and Zhe Lin and Hailin Jin and Alex Filipkowski and Andrew Gilbert and John P. Collomosse},
  title = {{ALADIN: All Layer Adaptive Instance Normalization for Fine-grained Style Similarity}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01171},
}
Figure