DyArtbank: Diverse Artistic Style Transfer via Pre-trained Stable Diffusion and Dynamic Style Prompt Artbank

Zhanjie Zhang, Quanwei Zhang, Guangyuan Li, Junsheng Luan, Mengyuan Yang, Yun Wang, Lei Zhao · DOI

Introduction

Artistic Style Transfer (AST) aims to synthesize images that preserve the semantic structure of a content photo while adopting the aesthetic characteristics of a style image. Traditionally, AST methods are categorized into Consistent Artistic Style Transfer (CAST) and Diverse Artistic Style Transfer (DAST). While CAST methods are deterministic and produce a single output for any given pair, DAST methods attempt to offer variety. However, existing DAST approaches often struggle with visual quality, frequently introducing disharmonious patterns or artifacts.

Furthermore, while large-scale diffusion models like Stable Diffusion have revolutionized image generation, applying them to AST often results in "hallucinations" where the fine-grained structural details of the original content are lost. DyArtbank addresses these challenges by treating style as a learnable distribution and introducing a structural anchor to maintain content integrity.

Methodology

DyArtbank introduces a novel framework integrated into the Stable Diffusion pipeline, characterized by three primary innovations:

1. Dynamic Style Prompt Artbank (DSPA)

Rather than learning a static embedding for a specific style, the DSPA learns parameters representing a distribution of visual attributes, such as brush strokes and textures. During inference, the model employs the reparameterization trick—a technique common in Variational Autoencoders (VAEs)—to sample a new parameter from this distribution. This allows the model to generate diverse, stylistically consistent variations of the same artwork across different runs.

2. Key Content Feature Prompt (KCFP)

To mitigate the risk of structural loss during the diffusion process, the authors developed the KCFP module. This module, inspired by ControlNet architectures, utilizes a VAE encoder to extract "key features" from the content image. These features are then injected into the diffusion process as additional conditioning, acting as a structural anchor that ensures the layout and fine details of the source image remain intact.

3. Orthogonal Loss

To prevent the 32 learnable parameters within the "Artbank" from converging toward a single visual representation, an orthogonal loss function is applied during training. This forces the learned style vectors to remain distinct from one another, thereby maximizing the diversity of the generated outputs.

Experimental Setup

The model was trained and evaluated using the following datasets:

  • Style Images: Nine artist collections from WikiArt (including Van Gogh, Monet, Cezanne, Ukiyoe, and Kandinsky), with datasets ranging from 100 to 1,400 images per artist.
  • Content Images: The COCO dataset was utilized for training the KCFP module, while DIV2K served as the benchmark for testing and evaluation.

Key Insights

  • Style as a Distribution: DyArtbank shifts the paradigm from "Style = Image" to "Style = A Distribution of Features." This approach mimics the human artistic process, where an artist might interpret the same scene differently across multiple sittings.
  • Explicit Feature Guidance: The authors demonstrate that explicit feature guidance (KCFP) is superior to stochastic inversion for preserving complex structures like architecture or human faces in diffusion-based AST.
  • Generative Data Augmentation: DSPA can generate synthetic training data by sampling styles without content images. The authors found that training a standard CycleGAN on DyArtbank-generated images significantly improved the GAN's performance, showcasing the framework's utility in data augmentation.

Results and Evaluation

DyArtbank was compared against state-of-the-art models, including InST, ArtBank, and LSAST, using both quantitative metrics and human perception studies:

  • Statistical Fidelity: DyArtbank achieved the lowest Fréchet Inception Distance (FID) scores across all tested artists. For example, it recorded an FID of 105.36 for Van Gogh, compared to 121.62 for the baseline ArtBank, indicating higher statistical similarity to real artwork.
  • Human Preference: In A/B testing, participants preferred DyArtbank’s results 67% of the time over competing methods.
  • Deception Score: This metric measures how often AI-generated art is mistaken for human-made art. DyArtbank achieved a score of 0.763, significantly outperforming the baseline ArtBank (0.614) and approaching the ground truth of real WikiArt (0.863).
  • Diversity: Qualitative analysis confirms that while content structure remains fixed, the model successfully varies color palettes and brushwork across different samples.

Limitations and Future Work

Despite its performance, DyArtbank faces certain challenges:

  • Computational Speed: As a diffusion-based model, it requires approximately 4.2 seconds per image, which is significantly slower than GAN-based methods (e.g., CycleGAN at 0.03 seconds).
  • Out-of-Distribution Objects: The model occasionally struggles with modern objects (e.g., skyscrapers or buses) that were not present in the historical artists' training data, leading to inconsistent stylization for those specific elements.
  • Scale Sensitivity: While the "diversity scale" allows for user control, settings above 5.0 can degrade stylistic cohesion.

Future research will focus on improving the model's ability to handle modern subjects and optimizing the inference speed for real-time applications.

Summary updated

BibTeX
@article{zhang2025dyartbank,
  author = {Zhanjie Zhang and Quanwei Zhang and Guangyuan Li and Junsheng Luan and Mengyuan Yang and Yun Wang and Lei Zhao},
  title = {{DyArtbank: Diverse Artistic Style Transfer via Pre-trained Stable Diffusion and Dynamic Style Prompt Artbank}},
  journal = {Knowledge-Based Systems},
  year = {2025},
  doi = {10.1016/j.knosys.2025.112959},
}
Figure