Style Neophile: Constantly Seeking Novel Styles for Domain Generalization

Juwon Kang, Sohyun Lee, Namyup Kim, Suha KwakCVPR 2022

Abstract

This paper studies domain generalization via domain-invariant representation learning. Existing methods in this direction suppose that a domain can be characterized by styles of its images, and train a network using style-augmented data so that the network is not biased to particular style distributions. However, these methods are restricted to a finite set of styles since they obtain styles for augmentation from a fixed set of external images or by interpolating those of training data. To address this limitation and maximize the benefit of style augmentation, we propose a new method that synthesizes novel styles constantly during training. Our method manages multiple queues to store styles that have been observed so far, and synthesizes novel styles whose distribution is distinct from the distribution of styles in the queues. The style synthesis process is formulated as a monotone submodular optimization, thus can be conducted efficiently by a greedy algorithm. Extensive experiments on four public benchmarks demonstrate that the proposed method is capable of achieving state-of-the-art domain generalization performance.

Introduction

Deep learning models frequently struggle with Domain Generalization (DG), where they must perform well on unseen "target" domains. A primary cause of this failure is overfitting to the specific "style" (textures, lighting, colors) of the training data rather than the underlying semantic content. While style augmentation is a common remedy, existing techniques are often limited to a fixed set of external images or simple interpolations of training styles.

"Style Neophile" addresses this by constantly seeking and synthesizing entirely new, diverse, and plausible image styles during training. By ensuring these synthetic styles are distinct from both the original training data and previously generated styles, the model is forced to learn truly style-invariant features.

Methodology

The Style Neophile framework represents image "style" using the channel-wise mean and standard deviation of feature maps. The core of the method is a dynamic synthesis and injection process.

Overview of the Style Neophile framework, illustrating the style space and the injection of novel styles into the network.

Novel Style Synthesis

The system maintains two memory banks: a Source Style Queue for training data styles and a Novel Style Queue for previously synthesized styles. The synthesis follows a five-step iterative process:

  1. En/Dequeue Source Style: Updating the source queue with styles from the current batch.
  2. Prototype Selection: A greedy algorithm selects "prototypes" that represent the current style distribution.
  3. Random Jittering: Controlled Gaussian noise is added to source styles to create candidate styles.
  4. Novel Style Selection: Using monotone submodular optimization, the system selects candidates most distinct from existing prototypes and previous novel styles.
  5. En/Dequeue Novel Style: The selected styles are stored and then injected into the model's intermediate layers.
The five-step iterative process for novel style synthesis, including prototype selection and submodular optimization.

Style Injection and Training

Synthetic styles are injected using a process similar to Adaptive Instance Normalization (AdaIN). To ensure style-invariance, the model is trained with a consistency loss (KL-divergence), forcing it to produce identical predictions for an image regardless of whether its original or a synthetic style is applied.

Experimental Results

The method was evaluated on major DG benchmarks including PACS, OfficeHome, DomainNet, and Person Re-ID datasets (Market1501, DukeMTMC-reID).

  • PACS: Achieved state-of-the-art average accuracy of 85.47% (ResNet18) and 89.11% (ResNet50).
  • DomainNet: Improved top-1 accuracy by 1.70%p over the baseline for ResNet18 on this large-scale dataset.
  • Person Re-ID: Demonstrated superior cross-domain generalization, proving effectiveness in retrieval tasks.

Ablation studies confirmed that both the novel style synthesis and the consistency loss are essential for these performance gains.

Conclusion

Style Neophile introduces a philosophy of active style exploration. By formulating style selection as a submodular optimization problem, it efficiently generates a diverse range of plausible styles that push models beyond their training boundaries. While performance gains are most significant in high-discrepancy domains like PACS, the method sets a new standard for robust domain generalization. Future work will focus on reducing stochastic variance and improving performance in low-discrepancy scenarios.

Summary updated

BibTeX
@inproceedings{kang2022style,
  author = {Juwon Kang and Sohyun Lee and Namyup Kim and Suha Kwak},
  title = {{Style Neophile: Constantly Seeking Novel Styles for Domain Generalization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=J8cwwuJzi5U},
}
Figure