Skip to main content

Advertisement

Log in

Composing Like an Ancient Chinese Poet: Learn to Generate Rhythmic Chinese Poetry

  • Regular Paper
  • Published:
Journal of Computer Science and Technology Aims and scope Submit manuscript

Abstract

Automatic generation of Chinese classical poetry is still a challenging problem in artificial intelligence. Recently, Encoder-Decoder models have provided a few viable methods for poetry generation. However, by reviewing the prior methods, two major issues still need to be settled: 1) most of them are one-stage generation methods without further polishing; 2) they rarely take into consideration the restrictions of poetry, such as tone and rhyme. Intuitively, some ancient Chinese poets tended first to write a coarse poem underlying aesthetics and then deliberated its semantics; while others first create a semantic poem and then refine its aesthetics. On this basis, in order to better imitate the human creation procedure of poems, we propose a two-stage method (i.e., restricted polishing generation method) of which each stage focuses on the different aspects of poems (i.e., semantics and aesthetics), which can produce a higher quality of generated poems. In this way, the two-stage method develops into two symmetrical generation methods, the aesthetics-to-semantics method and the semantics-to-aesthetics method. In particular, we design a sampling method and a gate to formulate the tone and rhyme restrictions, which can further improve the rhythm of the generated poems. Experimental results demonstrate the superiority of our proposed two-stage method in both automatic evaluation metrics and human evaluation metrics compared with baselines, especially in yielding consistent improvements in tone and rhyme.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

References

  1. Hopkins J, Kiela D. Automatically generating rhythmic verse with neural networks. In Proc. the 55th Annual Meeting of the Association for Computational Linguistics, July 2017, pp.168–178. https://doi.org/10.18653/v1/P17-1016.

  2. He J, Zhou M, Jiang L. Generating Chinese classical poems with statistical machine translation models. In Proc. the 26th AAAI Conference on Artificial Intelligence, July 2012, pp.1650–1656. https://doi.org/10.1609/aaai.v26i1.8344.

  3. Wang Z, He W, Wu H, Wu H Y, Li W, Wang H F, Chen E H. Chinese poetry generation with planning based neural network. arXiv: 1610.09889, 2016. https://arxiv.org/abs/1610.09889, Sept. 2023.

  4. Oliveira H G, Cardoso A. Poetry generation with PoeTryMe. In Computational Creativity Research: Towards Creative Machines, Besold T R, Schorlemmer M, Smaill A (eds.), Atlantis Press, 2015, pp.243–266. https://doi.org/10.2991/978-94-6239-085-0_12.

  5. Tosa N, Obara H, Minoh M. Hitch Haiku: An interactive supporting system for composing haiku poem. In Proc. the 7th International Conference on Entertainment Computing, Sept. 2008, pp.209–216. https://doi.org/10.1007/978-3-540-89222-9_26.

  6. Manurung H. An evolutionary algorithm approach to poetry generation [Ph.D. Thesis]. School of Informatics, The University of Edinburgh, Edinburgh, 2004.

  7. Manurung R, Ritchie G, Thompson H. Using genetic algorithms to create meaningful poetic text. Journal of Experimental and Theoretical Artificial Intelligence, 2012, 24(1): 43–64. https://doi.org/10.1080/0952813X.2010.539029.

    Article  Google Scholar 

  8. Jiang L, Zhou M. Generating Chinese couplets using a statistical MT approach. In Proc. the 22nd International Conference on Computational Linguistics, Aug. 2008, pp.377–384. https://doi.org/10.3115/1599081.1599129.

  9. Bahdanau D, Cho K, Bengio Y. Neural machine translation by jointly learning to align and translate. arXiv: 1409.0473, 2016. https://arxiv.org/abs/1409.0473, Sept. 2023.

  10. Yi X Y, Li R Y, Sun M S. Generating Chinese classical poems with RNN encoder-decoder. In Proc. the 2017 Conference on Chinese Computational Linguistics and Natural Language Processing Based on Naturally Annotated Big Data, Oct. 2017, pp.211–223. https://doi.org/10.1007/978-3-319-69005-6_18.

  11. Zhang X X, Lapata M. Chinese poetry generation with recurrent neural networks. In Proc. the 2014 Conference on Empirical Methods in Natural Language Processing, Oct. 2014, pp.670–680. https://doi.org/10.3115/v1/D14-1074.

  12. Gervás P. An expert system for the composition of formal Spanish poetry. Knowledge-Based Systems, 2001, 14(3/4): 181–188. https://doi.org/10.1016/S0950-7051(01)00095-8.

    Article  Google Scholar 

  13. Wu X F, Tosa N, Nakatsu R. New hitch haiku: An interactive Renku poem composition supporting tool applied for sightseeing navigation system. In Proc. the 8th International Conference on Entertainment Computing, Sept. 2009, pp.191–196. https://doi.org/10.1007/978-3-642-04052-8_19.

  14. Yan R, Jiang H, Lapata M, Lin S D, Lv X Q, Li X M. i, Poet: Automatic Chinese poetry composition through a generative summarization framework under constrained optimization. In Proc. the 23rd International Joint Conference on Artificial Intelligence, Aug. 2013, pp.2197–2203. https://doi.org/10.5555/2540128.2540444.

  15. Jiang N, Chen J, Zhou R G, Wu C X, Chen H L, Zheng J Q, Wan T. PAN: Pipeline assisted neural networks model for data-to-text generation in social Internet of Things. Information Sciences, 2020, 530: 167–179. https://doi.org/10.1016/j.ins.2020.03.080.

    Article  Google Scholar 

  16. Ameur H, Jamoussi S, Hamadou A B. A new method for sentiment analysis using contextual auto-encoders. Journal of Computer Science and Technology, 2018, 33(6): 1307–1319. https://doi.org/10.1007/s11390-018-1889-1.

    Article  Google Scholar 

  17. Bengio Y, Ducharme R, Vincent P, Janvin C. A neural probabilistic language model. The Journal of Machine Learning Research, 2003, 3: 1137–1155. https://doi.org/10.1162/153244303322533223.

    Article  Google Scholar 

  18. Goldberg Y. Neural Network Methods for Natural Language Processing. Morgan and Claypool Publishers, 2017.

    Book  Google Scholar 

  19. Lai Y N, Zhang L F, Han D H, Zhou R, Wang G R. Finegrained emotion classification of Chinese microblogs based on graph convolution networks. World Wide Web, 2020, 23(5): 2771–2787. https://doi.org/10.1007/s11280-020-00803-0.

    Article  Google Scholar 

  20. Li Y, Pan Q, Wang S H, Yang T, Cambria E. A generative model for category text generation. Information Sciences, 2018, 450: 301–315. https://doi.org/10.1016/j.ins.2018.03.050.

    Article  MathSciNet  Google Scholar 

  21. Tao H Q, Tong S W, Zhao H K, Xu T, Jin B B, Liu Q. A radical-aware attention-based model for Chinese text classification. In Proc. the 33rd AAAI Conference on Artificial Intelligence, Jan. 2019, pp.5125–5132. https://doi.org/10.1609/aaai.v33i01.33015125.

  22. Yuan C Z, Bao Z F, Sanderson M, Tang Y. Incorporating word attention with convolutional neural networks for abstractive summarization. World Wide Web, 2020, 23(1): 267–287. https://doi.org/10.1007/s11280-019-00709-6.

    Article  Google Scholar 

  23. Zhu H Y, Liu Q, Yuan N J, Zhang K, Chen E H. Pop music generation: From melody to multi-style arrangement. ACM Trans. Knowledge Discovery from Data, 2020, 14(5): Article No. 54. https://doi.org/10.1145/3374915.

  24. Wu J J, Yang W, Li L D, Dong W S, Shi G M, Lin W S. Blind image quality prediction with hierarchical feature aggregation. Information Sciences, 2021, 552: 167–182. https://doi.org/10.1016/j.ins.2020.12.018.

    Article  MathSciNet  Google Scholar 

  25. Jiang T B, Xia G S, Lu Q K, Shen W M. Retrieving aerial scene images with learned deep image-sketch features. Journal of Computer Science and Technology, 2017, 32(4): 726–737. https://doi.org/10.1007/s11390-017-1754-7.

    Article  Google Scholar 

  26. Liu H, Fu Z L, Han J G, Shao L, Hou S D, Chu Y Z. Single image super-resolution using multi-scale deep encoderdecoder with phase congruency edge map guidance. Information Sciences, 2019, 473: 44–58. https://doi.org/10.1016/j.ins.2018.09.018.

    Article  MathSciNet  Google Scholar 

  27. Pawar K, Attar V. Deep learning approaches for videobased anomalous activity detection. World Wide Web, 2019, 22(2): 571–601. https://doi.org/10.1007/s11280-018-0582-1.

    Article  Google Scholar 

  28. Wu Y, Ma Y J, Liu J, Du J, Xing L. Self-attention convolutional neural network for improved MR image reconstruction. Information Sciences, 2019, 490: 317–328. https://doi.org/10.1016/j.ins.2019.03.080.

    Article  MathSciNet  Google Scholar 

  29. Ghazvininejad M, Shi X, Priyadarshi J, Knight K. Hafez: An interactive poetry generation system. In Proc. the ACL 2017, System Demonstrations, July 2017, pp.43–48. https://doi.org/10.18653/v1/P17-4008.

  30. Wang Q X, Luo T Y, Wang D, Xing C. Chinese song iambics generation with neural attention-based model. In Proc. the 25th International Joint Conference on Artificial Intelligence, July 2016, pp.2943–2949. https://doi.org/10.5555/3060832.3061033.

  31. Mikolov T, Karafiát M, Burget L, Černocký J, Khudanpur S. Recurrent neural network based language model. In Proc. the 11th Annual Conference of the International Speech Communication Association, Sept. 2010, pp.1045–1048. https://doi.org/10.21437/Interspeech.2010-343.

  32. Wang Q X, Luo T Y, Wang D. Can machine generate traditional Chinese poetry? A feigenbaum test. In Proc. the 8th International Conference on Brain Inspired Cognitive Systems, Nov. 2016, pp.34–46. https://doi.org/10.1007/978-3-319-49685-6_4.

  33. Li J T, Song Y, Zhang H S, Chen D M, Shi S M, Zhao D Y, Yan R. Generating classical Chinese poems via conditional variational autoencoder and adversarial training. In Proc. the 2018 Conference on Empirical Methods in Natural Language Processing, Oct. 31–Nov. 4, 2018, pp.3890–3900. https://doi.org/10.18653/v1/D18-1423.

  34. Yi X Y, Li R Y, Sun M S. Chinese poetry generation with a salient-clue mechanism. In Proc. the 22nd Conference on Computational Natural Language Learning, Oct. 2018, pp.241–250. https://doi.org/10.18653/v1/K18-1024.

  35. Zhang J Y, Feng Y, Wang D, Wang Y, Abel A, Zhang S Y, Zhang A D. Flexible and creative Chinese poetry generation using neural memory. In Proc. the 55th Annual Meeting of the Association for Computational Linguistics, July 2017, pp.1364 1373. https://doi.org/10.18653/v1/P17-1125.

  36. Yang X P, Lin X W, Suo S D, Li M. Generating thematic Chinese poetry using conditional variational autoencoders with hybrid decoders. In Proc. the 27th International Joint Conference on Artificial Intelligence, July 2018, pp.4539–4545. https://doi.org/10.24963/ijcai.2018/631.

  37. Xu L L, Jiang L, Qin C, Wang Z, Du D F. How images inspire poems: Generating classical Chinese poetry from images with memory networks. In Proc. the 32nd AAAI Conference on Artificial Intelligence, Feb. 2018, pp.5618–5625. https://doi.org/10.1609/aaai.v32i1.12001.

  38. Liu D, Guo Q, Li W B, Lv J C. A multi-modal Chinese poetry generation model. In Proc. the 2018 International Joint Conference on Neural Networks, July 2018. https://doi.org/10.1109/IJCNN.2018.8489579.

  39. Liu Y S, Liu D, Lv J C. Deep poetry: A Chinese classical poetry generation system. In Proc. the 34th AAAI Conference on Artificial Intelligence, Feb. 2020, pp.13626–13627. https://doi.org/10.1609/aaai.v34i09.7100.

  40. Ghazvininejad M, Shi X, Choi Y J, Knight K. Generating topical poetry. In Proc. the 2016 Conference on Empirical Methods in Natural Language Processing, Nov. 2016, pp.1183–1191. https://doi.org/10.18653/v1/D16-1126.

  41. Greene E, Bodrumlu T, Knight K. Automatic analysis of rhythmic poetry with applications to generation and translation. In Proc. the 2010 Conference on Empirical Methods in Natural Language Processing, Oct. 2010, pp.524–533. https://doi.org/10.5555/1870658.1870709.

  42. Kolesnikov A, Lampert C H. PixelCNN models with auxiliary variables for natural image modeling. arXiv: 1612.08185, 2016. https://arxiv.org/abs/1612.08185, Sept. 2023.

  43. Gu J X, Cai J F, Wang G, Chen T. Stack-captioning: Coarse-to-fine learning for image captioning. In Proc. the 32nd AAAI Conference on Artificial Intelligence, Feb. 2018, pp.6837–6844. https://doi.org/10.1609/aaai.v32i1.12266.

  44. Guu K, Hashimoto T B, Oren Y, Liang P. Generating sentences by editing prototypes. Trans. Association for Computational Linguistics, 2018, 6: 437–450. https://doi.org/10.1162/tacl_a_00030.

    Article  Google Scholar 

  45. Pandey G, Contractor D, Kumar V, Joshi S. Exemplar encoder-decoder for neural conversation generation. In Proc. the 56th Annual Meeting of the Association for Computational Linguistics, July 2018, pp.1329–1338. https://doi.org/10.18653/v1/P18-1123.

  46. Wang Q Y, Zhou Z H, Huang L F, Whitehead S, Zhang B L, Ji H, Knight K. Paper abstract writing through editing mechanism. In Proc. the 56th Annual Meeting of the Association for Computational Linguistics, July 2018, pp.260–265. https://doi.org/10.18653/v1/P18-2042.

  47. Xia Y C, Tian F, Wu L J, Lin J X, Qin T, Yu N H, Liu T Y. Deliberation networks: Sequence generation beyond one-pass decoding. In Proc. the 31st International Conference on Neural Information Processing Systems, Dec. 2017, pp.1782–1792. https://doi.org/10.5555/3294771.3294941.

  48. Zhang H Y, Cai J J, Xu J J, Wang J. Pretraining-based natural language generation for text summarization. In Proc. the 23rd Conference on Computational Natural Language Learning, Nov. 2019, pp.789–797. https://doi.org/10.18653/v1/K19-1074.

  49. Yan R. i, Poet: Automatic poetry composition through recurrent neural networks with iterative polishing schema. In Proc. the 25th International Joint Conference on Artificial Intelligence, July 2016, pp.2238–2244. https://doi.org/10.5555/3060832.3060934.

  50. Shen L, Guo X Y, Chen M. Compose like humans: Jointly improving the coherence and novelty for modern Chinese poetry generation. In Proc. the 2020 International Joint Conference on Neural Networks, July 2020. https://doi.org/10.1109/IJCNN48605.2020.9206888.

  51. Deng L M, Wang J, Liang H M, Chen H, Xie Z Q, Zhuang B J, Wang S J, Xiao J. An iterative polishing framework based on quality aware masked language model for Chinese poetry generation. In Proc. the 34th AAAI Conference on Artificial Intelligence, Feb. 2020, pp.7643–7650. https://doi.org/10.1609/aaai.v34i05.6265.

  52. Shao Y Z, Shao T, Wang M H, Wang P, Gao J. A sentiment and style controllable approach for Chinese poetry generation. In Proc. the 30th ACM International Conference on Information & Knowledge Management, Oct. 2021, pp.4784–4788. https://doi.org/10.1145/3459637.3481964.

  53. Ormazabal A, Artetxe M, Agirrezabal M, Soroa A, Agirre E. PoeLM: A meter- and rhyme-controllable language model for unsupervised poetry generation. In Proc. the Findings of the Association for Computational Linguistics, Dec. 2022, pp.3655–3670. https://doi.org/10.18653/v1/2022.findingsemnlp.268.

  54. Cho K, van Merriënboer B, Gulcehre C, Bahdanau D, Bougares F, Schwenk H, Bengio Y. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Proc. the 2014 Conference on Empirical Methods in Natural Language Processing, Oct. 2014, pp.1724–1734. https://doi.org/10.3115/v1/D14-1179.

  55. Mikolov T, Chen K, Corrado G, Dean J. Efficient estimation of word representations in vector space. arXiv: 1301.3781, 2013. https://arxiv.org/abs/1301.3781, Sept. 2023.

  56. Zhao H K, Cheng Y H, Zhang X, Zhu H S, Liu Q, Xiong H, Zhang W. What is market talking about? Market-oriented prospect analysis for entrepreneur fundraising. IEEE Trans. Knowledge and Data Engineering, 2023, 35(6): 6489–6503. https://doi.org/10.1109/TKDE.2022.3174336.

    Article  Google Scholar 

  57. Papineni K, Roukos S, Ward T, Zhu W J. BLEU: A method for automatic evaluation of machine translation. In Proc. the 40th Annual Meeting on Association for Computational Linguistics, July 2002, pp.311–318. https://doi.org/10.3115/1073083.1073135.

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gui-Hua Zeng.

Supplementary Information

ESM 1

(PDF 375 kb)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

He, M., Chen, Y., Zhao, HK. et al. Composing Like an Ancient Chinese Poet: Learn to Generate Rhythmic Chinese Poetry. J. Comput. Sci. Technol. 38, 1272–1287 (2023). https://doi.org/10.1007/s11390-023-1295-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11390-023-1295-1

Keywords

Navigation