Skip to main content
QUICK REVIEW

[Paper Review] An Iterative Polishing Framework based on Quality Aware Masked Language Model for Chinese Poetry Generation

Liming Deng, Jie Wang|arXiv (Cornell University)|Nov 29, 2019
Natural Language Processing TechniquesComputer Science32 references4 citations
TL;DR

This paper proposes an iterative polishing framework for Chinese poetry generation using a Quality-Aware Masked Language Model (QA-MLM) that improves poem quality through multi-task learning. The framework generates a draft via an encoder-decoder model, then iteratively refines it by detecting and replacing low-quality characters using contextualized predictions, automatically terminating when the poem meets quality criteria—significantly enhancing fluency, coherence, and poetic quality in human evaluations.

ABSTRACT

Owing to its unique literal and aesthetical characteristics, automatic generation of Chinese poetry is still challenging in Artificial Intelligence, which can hardly be straightforwardly realized by end-to-end methods. In this paper, we propose a novel iterative polishing framework for highly qualified Chinese poetry generation. In the first stage, an encoder-decoder structure is utilized to generate a poem draft. Afterwards, our proposed Quality-Aware Masked Language Model (QAMLM) is employed to polish the draft towards higher quality in terms of linguistics and literalness. Based on a multi-task learning scheme, QA-MLM is able to determine whether polishing is needed based on the poem draft. Furthermore, QAMLM is able to localize improper characters of the poem draft and substitute with newly predicted ones accordingly. Benefited from the masked language model structure, QAMLM incorporates global context information into the polishing process, which can obtain more appropriate polishing results than the unidirectional sequential decoding. Moreover, the iterative polishing process will be terminated automatically when QA-MLM regards the processed poem as a qualified one. Both human and automatic evaluation have been conducted, and the results demonstrate that our approach is effective to improve the performance of encoder-decoder structure.

Motivation & Objective

  • To address the challenge of generating coherent, meaningful, and aesthetically high-quality Chinese poetry using neural generation models.
  • To imitate the human poetic writing process by enabling iterative refinement of poem drafts.
  • To develop a system that autonomously determines when polishing is needed, which tokens to modify, and how to replace them with higher-quality alternatives.
  • To overcome the limitations of unidirectional decoding in sequence-to-sequence models by leveraging bidirectional context for better token prediction.
  • To achieve automatic termination of the polishing process when the generated poem reaches a qualified standard.

Proposed method

  • An encoder-decoder model, combining pre-trained BERT and a transformer decoder, generates an initial poem draft.
  • A Quality-Aware Masked Language Model (QA-MLM) is trained with a multi-task learning scheme to predict both token quality and masked tokens.
  • QA-MLM identifies low-quality characters in the draft and replaces them with contextually appropriate alternatives using full left and right context.
  • The polishing process is iterative and terminates automatically when QA-MLM classifies the poem as qualified.
  • The model leverages the bidirectional attention mechanism of BERT to capture global context, improving semantic and syntactic coherence beyond unidirectional decoding.
  • The framework is applied post-generation to refine outputs from various encoder-decoder baselines, enhancing their quality without altering the original generation process.

Experimental results

Research questions

  • RQ1Can a multi-task masked language model effectively assess the quality of a generated Chinese poem draft?
  • RQ2Can the model accurately localize and replace low-quality characters in a poem draft using global context?
  • RQ3Does iterative polishing with automatic termination improve semantic coherence and poetic quality compared to end-to-end generation?
  • RQ4To what extent does the QA-MLM framework enhance fluency, meaningfulness, and poeticness beyond baseline models?
  • RQ5How does the integration of bidirectional context in refinement outperform unidirectional decoding in poetry generation?

Key findings

  • Human evaluations show that the QA-MLM polishing framework significantly improves poem quality across fluency, coherence, meaningfulness, and poeticness compared to baseline models.
  • Automatic evaluation metrics such as similarity, tone level, and rhythm accuracy improved after polishing, especially for models like AS2S and CVAE-D, though B&T showed slight degradation in tone and rhythm due to trade-offs for semantic quality.
  • The BLEU score improvements were modest, indicating that automatic metrics are insufficient for high-quality poetry evaluation, as they average changes across all tokens.
  • The QA-MLM model successfully identified and replaced low-quality characters with contextually appropriate ones, leading to noticeable qualitative improvements even with minimal edits.
  • The iterative polishing process automatically terminated when the poem met quality criteria, demonstrating the feasibility of self-evaluation in text refinement.
  • The framework outperformed all baseline encoder-decoder models in human evaluation, confirming that QA-MLM effectively enhances semantic and literary quality through context-aware refinement.

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.