Evaluation of Randomization through Style Transfer for Enhanced Domain Generalization

Dustin Eisenhardt, Timothy Schaumlöffel, Alperen Kantarci, Gemma RoigarXiv 2026

TL;DR

Style transfer is a powerful tool to bridge the Sim2Real gap, but how exactly should you configure it? This paper systematically evaluates conflicting design choices in the literature and introduces StyleMixDG, a lightweight, model-agnostic augmentation recipe that achieves state-of-the-art domain generalization simply by mixing original images with a massive, diverse pool of artistic styles.

What Problem Does This Paper Address?

Deep learning models excel when training and testing data come from the same distribution, but they struggle to generalize to new environments. This "Sim2Real" gap is a massive hurdle in autonomous driving, where models are often trained on cheap synthetic data (like video games) but deployed on real-world streets.

To prevent models from overfitting to synthetic textures, researchers use style transfer to randomize the appearance of training images, forcing the network to rely on robust geometric cues like shape and layout instead. However, the literature is full of contradictions on how to do this effectively:

  1. Pool Size: Should we use a few curated styles or a massive variety?
  2. Texture Complexity: Does the complexity of the style image matter?
  3. Style Source: Are real-world textures better than abstract artistic paintings?

This paper cuts through the noise with a systematic empirical study to resolve these inconsistencies.

Methods

The authors first isolate and test each design axis using Adaptive Instance Normalization (AdaIN) for offline style transfer. Guided by their findings, they propose StyleMixDG (Style-Mixing for Domain Generalization), a straightforward data augmentation recipe:

  • Massive Style Pool: It samples from 10,000 diverse artistic images.
  • Multi-Augmentation: Each source image is augmented multiple times with different styles.
  • Data Mixing: During training, images are sampled with an 80% probability from the augmented set and 20% from the original synthetic dataset.
  • Photometric Distortion: Standard online color jitter is applied on top of the stylized images.

Crucially, StyleMixDG is entirely model-agnostic. Unlike competing methods, it requires no architectural modifications, no extra alignment modules, and no complex consistency loss functions.

Fig. 1: Overview of StyleMixDG. Each source image is stylized offline using N randomly selected styles, yielding an N-times augmented dataset. During train- ing, images are sampled with 80% probability from the augmented set and 20% from the original, followed by photometric distortion.

Datasets

  • Source Domain (Training): GTAV, a synthetic dataset consisting of frames captured from the video game Grand Theft Auto V.
  • Target Domains (Evaluation): Three real-world driving datasets: Berkeley Deep Drive 100k (BDD100k), Cityscapes (CS), and Mapillary Vistas (MV).
  • Style Source: Painter by Numbers, a dataset containing over 100,000 paintings across various artistic styles and periods.

Key Insights and Ideas

  • Scale renders complexity filtering useless: Prior work argued that style images must be carefully filtered based on texture complexity to avoid artifacts. The authors show that when the style pool is expanded to 10,000 images, individual complexity effects average out. Filtering is a waste of computational effort.
  • Artistic styles beat domain alignment: Counterintuitively, using target-domain or source-domain images as style sources performs worse than using abstract art. Unrealistic artistic styles introduce maximal distributional variance, which is exactly what the network needs to break its texture bias.
  • Pool diversity trumps repetition: Generating multiple stylized versions of an image using a small pool of styles quickly leads to performance saturation. Expanding the absolute diversity of the style pool yields much larger generalization gains.

Key Results

The authors evaluated StyleMixDG on the standard GTAV $\rightarrow$ {BDD100k, Cityscapes, Mapillary Vistas} benchmark using mean Intersection-over-Union (mIoU):

  • ResNet-50: StyleMixDG achieved an average mIoU of 39.54, significantly outperforming GTR (35.16 mIoU), a comparable style-augmentation method that relies on complex consistency losses.
  • ResNet-101: It achieved 41.41 mIoU, remaining highly competitive with heavily engineered SOTA frameworks (like SAN-SAW and WildNet) despite its simplicity.
  • Vision Transformers: To prove its architectural flexibility, they tested it on a DeiT-S16 UperNet model, boosting its baseline performance from 35.14 to 40.00 mIoU.

Limitations and Future Work

While highly effective, StyleMixDG has a few notable limitations:

  • Loss of Texture Cues: Aggressive style randomization can degrade the recognition of small objects or classes that inherently rely on texture (for instance, performance on the train class slightly decreased).
  • Scope of Evaluation: The study was restricted to a single source domain (GTAV) and focused entirely on semantic segmentation.

The authors note that extending this approach to other synthetic sources, mixed synthetic-real training regimes, and other computer vision tasks like object detection are natural next steps for future research.

Summary updated

BibTeX
@misc{eisenhardt2026evaluation,
  author = {Dustin Eisenhardt and Timothy Schaumlöffel and Alperen Kantarci and Gemma Roig},
  title = {{Evaluation of Randomization through Style Transfer for Enhanced Domain Generalization}},
  year = {2026},
  eprint = {2604.05616},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.05616},
}
Figure