Skip to main content
QUICK REVIEW

[Paper Review] Chinese Poetry Generation with a Working Memory Model

Xiaoyuan Yi, Maosong Sun|arXiv (Cornell University)|Sep 12, 2018
Topic ModelingComputer Science7 citations
TL;DR

This paper proposes a Working Memory model for Chinese poetry generation that explicitly maintains topics and salient historical content in a dynamic memory to improve coherence. By selectively reading from and writing to memory slots during generation, the model achieves state-of-the-art performance across quatrains, iambic, and chinoiserie lyric genres, outperforming prior methods in both automatic and human evaluations.

ABSTRACT

As an exquisite and concise literary form, poetry is a gem of human culture. Automatic poetry generation is an essential step towards computer creativity. In recent years, several neural models have been designed for this task. However, among lines of a whole poem, the coherence in meaning and topics still remains a big challenge. In this paper, inspired by the theoretical concept in cognitive psychology, we propose a novel Working Memory model for poetry generation. Different from previous methods, our model explicitly maintains topics and informative limited history in a neural memory. During the generation process, our model reads the most relevant parts from memory slots to generate the current line. After each line is generated, it writes the most salient parts of the previous line into memory slots. By dynamic manipulation of the memory, our model keeps a coherent information flow and learns to express each topic flexibly and naturally. We experiment on three different genres of Chinese poetry: quatrain, iambic and chinoiserie lyric. Both automatic and human evaluation results show that our model outperforms current state-of-the-art methods.

Motivation & Objective

  • To address the persistent challenge of coherence in neural poetry generation, particularly in topic consistency and thematic flow across lines.
  • To model human-like writing processes by emulating cognitive working memory, which holds limited, relevant information for reasoning and generation.
  • To improve topic expression and transition by maintaining topics and salient history in separate, dynamic memory slots rather than compressing them into a single hidden vector.
  • To enable flexible generation across diverse poetic genres using a genre-conditional embedding that controls tone, line length, and rhyme.

Proposed method

  • The model employs a memory mechanism with multiple limited slots to store and retrieve salient topics and recent line content during generation.
  • Topics are maintained independently in memory and read selectively based on relevance to the current generation step, enabling focused and coherent line generation.
  • After each line is generated, the model extracts and writes the most informative parts into memory slots, preserving only the most relevant historical context.
  • A genre embedding is introduced to control structural and phonological constraints (e.g., tone, line length, rhyme), enabling the same model to generate multiple poetic forms.
  • The model uses an attention mechanism to compute memory reading probabilities, allowing dynamic focus on relevant memory content during autoregressive decoding.
  • A Topic Trace mechanism explicitly tracks which topics have already been used, reducing repetition and improving topic coverage.

Experimental results

Research questions

  • RQ1Can a dynamically managed memory mechanism improve coherence in neural poetry generation by maintaining relevant topics and partial history?
  • RQ2How does explicit memory management of topics and salient content compare to compressing history into a single hidden vector in terms of topic expression and fluency?
  • RQ3To what extent can a single model architecture generate diverse poetic genres using a shared memory mechanism and genre embeddings?
  • RQ4How does the number of memory slots affect generation quality, and what is the optimal configuration for different poetic forms?
  • RQ5Can the model achieve human-level coherence in topic expression and thematic flow, particularly in complex genres like iambic?

Key findings

  • On quatrains, the Working Memory (WM) model achieves human-level performance in coherence and relevance, with scores close to human-annotated poems.
  • On iambic poetry, WM outperforms all baselines in BLEU, perplexity, and human evaluation, though a gap remains compared to human poets due to the genre's complexity.
  • On chinoiserie lyrics, WM achieves the highest fluency score among all models, benefiting from the genre embedding’s control over structure and phonology.
  • The model with 6 memory slots achieves optimal performance on iambic and lyric generation, with performance degrading when too many or too few slots are used.
  • Ablation studies show that removing the Topic Trace mechanism reduces topic coverage and relevance, confirming its role in explicit topic tracking.
  • Case studies demonstrate that the model dynamically attends to relevant memory content—e.g., focusing on 'missing you' when generating 'letter'—showing contextually appropriate, semantically grounded generation.

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.