Creative Painting with Latent Diffusion Models

Xianchao Wu

TL;DR

This paper enhances the creative painting capabilities of Latent Diffusion Models (LDMs) by extending textual prompts with richer context and retraining models on the vast WikiArt dataset. This allows LDMs to generate images in the styles of famous artists, leading to more artistic and creative outputs.

What Problem Does This Paper Address?

While Latent Diffusion Models (LDMs) have achieved impressive results in image generation, their "creative painting" abilities, particularly for high-level or abstract concepts, can be limited. The challenge lies in translating vague textual prompts into rich, evocative imagery that captures artistic nuance and emotional depth. Current models might struggle to interpret prompts like "urbanization of China" beyond literal interpretations, lacking the ability to imbue the image with a narrative or specific artistic style. This paper aims to bridge this gap by making LDMs more adept at generating artistic and creative paintings that go beyond simple object generation.

Methods

The authors propose two main strategies to enhance the creative painting abilities of LDMs:

  • Textual Condition Extension: This involves enriching user-provided text prompts. They leverage Wikipedia to find relevant information and use large-scale pretrained language models (T5 and DialoGPT) to expand the initial prompt. This process involves matching prompts with Wikipedia titles, generating continuations or responses from language models, and then selecting and ranking these extended prompts based on their relevance and importance using TF-IDF and cosine similarity with T5 embeddings. They also incorporate named entity recognition to include spatial and temporal information.
  • Model Retraining with WikiArt Dataset: The authors retrain existing LDM checkpoints using the WikiArt dataset, which comprises over 80,000 artworks from more than 1,000 artists spanning 400 years. This retraining involves two stages: first, retraining the CLIP text encoder to map Wikiart captions to the LDM's latent space, and then fine-tuning both the text encoder and the LDM jointly. This allows the model to learn the styles, techniques, and genres of various artists, enabling it to generate images in the style of specific historical artists.

Datasets

  • WikiArt Dataset: This dataset, containing 81,444 fine-art paintings from 1,119 artists across various styles and genres, was used for retraining the diffusion models.
  • LAION-5B: Used for training a TF-IDF model to score prompts.
  • Wikipedia: Used as a knowledge base for textual condition extension.

Key Insights and Ideas

  • Artistic Style is More Than Just Objects: The paper demonstrates that simply including objects mentioned in a prompt isn't enough for artistic creation. The style, mood, and narrative conveyed by an artist's technique are crucial. Retraining on art datasets allows LDMs to capture these nuances.
  • Context is King for Abstract Concepts: Vague prompts like "urbanization of China" require significant contextual expansion to become visually interesting. The proposed textual extension method effectively injects richer narratives and details, leading to more compelling imagery.
  • Artist Styles are Learnable: By retraining on a diverse art dataset like WikiArt, LDMs can learn to mimic the distinct styles of individual artists, opening up possibilities for personalized artistic generation.
  • Bridging the Gap Between Text and Art: The work highlights the potential of combining advanced language understanding with powerful image generation models to create truly novel and artistic outputs.

Key Results

The paper presents qualitative results showing that the proposed methods significantly enhance the creativity and artistry of generated images.

  • Direct Comparison: When compared to the original LDMs, the retrained models produced images that were more creative and included richer environments and humane information, especially for prompts involving artistic styles. For instance, prompts like "chair that looks like an octopus" resulted in outputs closer to hand-drawn paints rather than photorealistic interpretations.
  • Textual Condition Extension: The extended prompts led to more expressive images that better reflected the styles of the chosen artists. For example, when generating "urbanization of China," the model incorporated elements like star skies (Van Gogh) or water and boats (Monet) as expected.
  • Diversity and Styles: The paper showcases how the model can generate images in various artistic styles, even when the core prompt remains the same, demonstrating a good understanding of stylistic diversity.

Limitations and Future Work

  • Subjectivity of Creativity: The authors acknowledge that creativity is subjective and influenced by culture and region, making it challenging to precisely define and measure.
  • Balancing Artist Style and New Content: It can be difficult to balance retaining the typical style of an artist with incorporating new themes or styles.
  • Future Work: The authors believe their work has industrial design applications and suggests that further exploration of learning creativity and fertility from artists' eyes is a promising direction. The paper also implies that further refinement of prompt extension and artist style transfer could lead to even more sophisticated creative outputs.

Summary updated

BibTeX
@inproceedings{wu2022creative,
  author = {Xianchao Wu},
  title = {{Creative Painting with Latent Diffusion Models}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
}
Figure