PoetryDiffusion: Towards Joint Semantic and Metrical Manipulation in Poetry Generation


  • Zhiyuan Hu National University of Singapore
  • Chumin Liu Nanyang Technological University
  • Yue Feng University College London
  • Anh Tuan Luu Nanyang Technological University
  • Bryan Hooi National University of Singapore




NLP: Generation, NLP: Applications


Controllable text generation is a challenging and meaningful field in natural language generation (NLG). Especially, poetry generation is a typical one with well-defined and strict conditions for text generation which is an ideal playground for the assessment of current methodologies. While prior works succeeded in controlling either semantic or metrical aspects of poetry generation, simultaneously addressing both remains a challenge. In this paper, we pioneer the use of the Diffusion model for generating sonnets and Chinese SongCi poetry to tackle such challenges. In terms of semantics, our PoetryDiffusion model, built upon the Diffusion model, generates entire sentences or poetry by comprehensively considering the entirety of sentence information. This approach enhances semantic expression, distinguishing it from autoregressive and large language models (LLMs). For metrical control, its constraint control module which can be trained individually enables us to flexibly incorporate a novel metrical controller to manipulate and evaluate metrics (format and rhythm). The denoising process in PoetryDiffusion allows for the gradual enhancement of semantics and flexible integration of the metrical controller which can calculate and impose penalties on states that stray significantly from the target control distribution. Experimental results on two datasets demonstrate that our model outperforms existing models in terms of automatic evaluation of semantic, metrical, and overall performance as well as human evaluation. Codes are released to https://github.com/ChorlingLau/PoetryDiffusion.



How to Cite

Hu, Z., Liu, C., Feng, Y., Luu, A. T., & Hooi, B. (2024). PoetryDiffusion: Towards Joint Semantic and Metrical Manipulation in Poetry Generation. Proceedings of the AAAI Conference on Artificial Intelligence, 38(16), 18279-18288. https://doi.org/10.1609/aaai.v38i16.29787



AAAI Technical Track on Natural Language Processing I