Skip to main content
QUICK REVIEW

[Paper Review] Generating Major Types of Chinese Classical Poetry in a Uniformed Framework

Jinyi Hu, Maosong Sun|arXiv (Cornell University)|Mar 13, 2020
Topic ModelingComputer Science13 references5 citations
TL;DR

This paper proposes a unified GPT-2-based framework for generating major types of Chinese classical poetry, including Shi (Jueju and Lvshi) and Ci (121 frequent Cipai). By integrating detailed form information into a standardized training format and applying a form-stressed weighting mechanism, the model significantly improves structural accuracy and coherence, achieving high-quality generation across diverse poetic forms, with validation in the Jiuge poetry generation system.

ABSTRACT

Poetry generation is an interesting research topic in the field of text generation. As one of the most valuable literary and cultural heritages of China, Chinese classical poetry is very familiar and loved by Chinese people from generation to generation. It has many particular characteristics in its language structure, ranging from form, sound to meaning, thus is regarded as an ideal testing task for text generation. In this paper, we propose a GPT-2 based uniformed framework for generating major types of Chinese classical poems. We define a unified format for formulating all types of training samples by integrating detailed form information, then present a simple form-stressed weighting method in GPT-2 to strengthen the control to the form of the generated poems, with special emphasis on those forms with longer body length. Preliminary experimental results show this enhanced model can generate Chinese classical poems of major types with high quality in both form and content, validating the effectiveness of the proposed strategy. The model has been incorporated into Jiuge, the most influential Chinese classical poetry generation system developed by Tsinghua University (Guo et al., 2019).

Motivation & Objective

  • To address the challenge of generating structurally accurate Chinese classical poetry across diverse forms, including Shi and Ci.
  • To unify the representation of training data across multiple poetic forms with distinct structural rules.
  • To enhance GPT-2’s control over form constraints, especially for longer and more complex forms like Lvshi and less frequent Ci Cipai.
  • To improve generation quality in both form and semantic coherence for major poetic types.

Proposed method

  • Define a unified data format that embeds detailed form information—such as line count, character count per line, tonal patterns, and Duizhang (parallelism) requirements—into each training sample.
  • Introduce a form-stressed weighting mechanism in GPT-2 that increases attention to form-related tokens during autoregressive generation.
  • Incorporate stanza separation markers into the input sequence to improve structural awareness and reduce form errors.
  • Fine-tune GPT-2 on a curated dataset of 834,902 poems from CCPC1.0, focusing on the top 121 Ci Cipai and major Shi types.
  • Use a single model to generate multiple poetic types, enabling zero-shot or few-shot adaptation to new forms.
  • Validate the framework in Jiogue, a leading Chinese classical poetry generation system at Tsinghua University.

Experimental results

Research questions

  • RQ1Can a single unified framework effectively generate multiple major types of Chinese classical poetry with high structural fidelity?
  • RQ2How does form-stressed weighting in GPT-2 improve control over complex poetic forms, especially those with longer length and strict tonal or parallelism rules?
  • RQ3To what extent does including stanza separation in the input format reduce structural errors in generated poems?
  • RQ4Can the model generalize to less frequent Ci Cipai forms despite limited training data?
  • RQ5How does the model perform in balancing form accuracy and semantic coherence across diverse poetic types?

Key findings

  • The enhanced model achieved a 55.0% correct rate in generating poems with the Cipai 'Qinyuanchun', up from 12.0% in the baseline, demonstrating significant improvement in form accuracy.
  • The inclusion of stanza separation in the training format reduced form-related errors in generated Ci poems by approximately 20%, with all generated poems under the enhanced model matching the expected form.
  • The model successfully generated high-quality, semantically coherent poems across all major types of Shi and Ci, including Qiyan Lvshi and Manjianghong, with proper use of Duizhang (parallelism) in Lvshi.
  • The model’s performance was validated through qualitative case studies, showing appropriate semantic structure, thematic coherence, and artistic expression in generated poems.
  • The framework was successfully integrated into Jiuge, the most influential Chinese classical poetry generation system at Tsinghua University, confirming its practical utility.
  • Despite improvements, form control remains challenging for longer forms and low-resource Cipai, indicating room for further refinement in structural modeling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.