Paper
10 November 2022 Formality style transfer via masked SeqGAN
Caihong Wang, Shuxiang Gong, Sicong Zhao, Yang Cao, Naibing Lv, Jinghui Wu, Shuang Wu
Author Affiliations +
Proceedings Volume 12348, 2nd International Conference on Artificial Intelligence, Automation, and High-Performance Computing (AIAHPC 2022); 123483F (2022) https://doi.org/10.1117/12.2641352
Event: 2nd International Conference on Artificial Intelligence, Automation, and High-Performance Computing (AIAHPC 2022), 2022, Zhuhai, China
Abstract
Language styles, including word choice and syntactic structure, are all pivotal factors that affect the formality of the text. The formalization of text style is a sub-problem of text style transfer, which aims to transform daily expression into academic style. SeqGAN bypasses the indifferentiable problem in backpropagation caused by the discrete nature of the token, and pioneers the application of GAN for text generation. In the formalization of text style, GAN was not used for formality style transfer which is a task worth exploring. We apply the Monte Carlo idea in SeqGAN to the task of formalizing the text style, that is, we use the sampling method to obtain the state-action value. In academic writing, the choice of key words would affect the quality of the entire sentence. In this paper, we propose the Masked SeqGAN to cope with this problem. The architecture of our proposed model is similar to SeqGAN, but the difference is that after the complete sentence is generated, a <π‘šπ‘Žπ‘ π‘˜> tag is added to the current position and the discriminator scores the sentence marked with mask and the original sentence separately. The difference in score indicates the contribution of words to the entire sentence. Words with high contributions will be considered important words, and this contribution will be used to update the policy. Experiments show that Masked SeqGAN is better than previous GAN-based methods, both in terms of automatic scoring and manual scoring.
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Caihong Wang, Shuxiang Gong, Sicong Zhao, Yang Cao, Naibing Lv, Jinghui Wu, and Shuang Wu "Formality style transfer via masked SeqGAN", Proc. SPIE 12348, 2nd International Conference on Artificial Intelligence, Automation, and High-Performance Computing (AIAHPC 2022), 123483F (10 November 2022); https://doi.org/10.1117/12.2641352
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Monte Carlo methods

Data modeling

Image processing

Machine learning

Back to Top