CatVRNN: Generating category texts via multi-task learning

作者:

Highlights:

摘要

Controlling the model to generate texts of different categories is a challenging task that is receiving increasing attention. Recently, generative adversarial networks (GANs) have shown promising results for category text generation. However, the texts generated by GANs usually suffer from problems of mode collapse and training instability. To avoid the above problems, in this study, inspired by multi-task learning, a novel model called category-aware variational recurrent neural network (CatVRNN) is proposed. In this model, generation and classification tasks are trained simultaneously to generate texts of different categories. The use of multi-task learning can improve the quality of the generated texts, when the classification task is appropriate. In addition, a function is proposed to initialize the hidden state of the CatVRNN to force the model to generate texts of a specific category. Experimental results on three datasets demonstrate that the model can outperform state-of-the-art text generation methods based on GAN in terms of diversity of generated texts.

论文关键词:Category text generation,Multi-task learning,Variational recurrent neural network,State initialization

论文评审过程:Received 6 August 2021, Revised 17 January 2022, Accepted 21 February 2022, Available online 25 February 2022, Version of Record 20 March 2022.

论文官网地址:https://doi.org/10.1016/j.knosys.2022.108491