Learning to Generate Poetic Chinese Landscape Painting with Calligraphy

Shaozu Yuan, Aijun Dai, Zhiling Yan, Ruixue Liu, Meng Chen, Baoyang Chen, Zhijie Qiu, Xiaodong He

TL;DR

Polaca is a first-of-its-kind generative system that creates complete Chinese landscape paintings—integrating both visual imagery and stylistic calligraphy—directly from classical poetry. By moving beyond simple image-to-image style transfer, the system uses a multi-module GAN architecture to interpret the semantic essence of a poem and compose a unified piece of traditional shan shui art.

What Problem Does This Paper Address?

Traditional Chinese landscape painting, or shan shui, is rarely just an image; it is a holistic art form where poetry, painting, and calligraphy complement one another. While deep learning has made strides in generating these elements individually, previous work has largely ignored their composition as a single artwork.

Furthermore, most existing "painting generation" models rely on image-to-image style transfer (e.g., turning a photo into a painting). This approach is limited by the availability of source photos and often lacks the creative "imagination" required to translate abstract poetic concepts into visual form. The authors tackle the challenge of text-to-landscape generation, requiring the model to understand ancient Chinese poetry and synthesize a coherent, aesthetically pleasing composition from scratch.

Methods

The Polaca system consists of three specialized modules, as illustrated in the system architecture:

The Polaca architecture: Landscape Generation, Calligraphy Generation, and Image Fusion.
  1. Landscape Painting Generation: A cross-modal Generative Adversarial Network (GAN). A Bi-LSTM text encoder processes the poem, which is then fused with a noise vector. The generator uses CLIN (Conditional Layer-Instance Normalization) blocks, which allow the model to selectively retain or modify content information based on the text input, ensuring the generated mountains and rivers reflect the poem's subjects.
  2. Calligraphy Generation: This module uses a style-transfer GAN to transform standard font characters into artistic calligraphy. It also includes a Recurrent Neural Network (RNN) to predict the sequential spatial arrangement (layout) of the characters.
  3. Image Fusion Module: To place the calligraphy naturally, the system uses a Faster R-CNN layout network to detect "empty" or appropriate areas within the generated landscape. It then performs pixel-level fusion to insert the calligraphy into the painting.

Datasets

Because no off-the-shelf "poetry-to-painting" dataset exists, the authors developed an automated construction pipeline:

  • Source Data: Thousands of landscape photographs and existing painting datasets.
  • The Pipeline: They used CycleGAN to convert real photos into the style of paintings. To pair these with poems, they used TextRank to extract keywords from classic poetry and object detection to identify elements in the images.
  • Semantic Matching: A synonym dictionary was created to bridge the gap between ancient Chinese poetic terms and modern object detection labels.
  • Result: A new dataset of over 5,000 text-image pairs. Additionally, 500 traditional paintings were manually annotated with calligraphy location data to train the fusion module.
The dataset construction pipeline matching poetry keywords to image objects.

Key Insights and Ideas

  • Holistic Composition: The core "aha moment" is that for traditional Chinese art, the layout is as important as the content. Using Faster R-CNN—typically a tool for finding objects—to find "negative space" for calligraphy is a clever inversion of standard computer vision tasks.
  • Beyond Literal Translation: The use of CLIN blocks suggests that successful text-to-art generation requires a balance between following the text prompt and maintaining the structural integrity of the artistic style.
  • Bridging the Linguistic Gap: The authors recognized that a simple keyword match wouldn't work for ancient Chinese; their synonym-based mapping was essential for creating a high-quality training set from disparate data sources.

Key Results

The researchers conducted a human evaluation involving 20 fine arts students, who scored paintings on a scale of 1 to 10.

Metric Generated Human
Landscape Quality 8.55 9.23
Calligraphy Quality 8.83 9.15
Coherence (Poetry-Image) 7.12 7.22
Aesthetics 8.08 9.12

The most significant result is the Coherence score. The generated paintings were nearly as successful as human-made ones at capturing the semantic relationship between the poem and the image, proving the effectiveness of their text-to-image approach.

Limitations and Future Work

While the system captures broad themes well, it occasionally suffers from "omission errors." For example, if a poem mentions a specific small object like a "zither" or a "moon," the model might fail to render it (as seen in Figure 4b). Additionally, some generated images have overly dark hues that can dampen the intended "artistic conception."

The authors plan to explore new objective functions to improve the semantic completeness of the generation, ensuring every nuance of the poetry finds its way onto the digital canvas. They have also launched a web-based demo to make this "journey of art creation" accessible to the public.

Examples of generated artwork showing the integration of landscape and calligraphy.

Summary updated

BibTeX
@inproceedings{yuan2022learning,
  author = {Shaozu Yuan and Aijun Dai and Zhiling Yan and Ruixue Liu and Meng Chen and Baoyang Chen and Zhijie Qiu and Xiaodong He},
  title = {{Learning to Generate Poetic Chinese Landscape Painting with Calligraphy}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/696},
}
Figure