1. Discovering the Style Information in Texts via A Reinforced Decision Process
- Author
-
Wanhui Qian, Songlin Hu, and Jinzhu Yang
- Subjects
business.industry ,Property (programming) ,Computer science ,media_common.quotation_subject ,Context (language use) ,computer.software_genre ,Style (sociolinguistics) ,Task analysis ,Reinforcement learning ,Artificial intelligence ,business ,Heuristics ,Function (engineering) ,computer ,Natural language processing ,Word (computer architecture) ,media_common - Abstract
This paper focuses on the word disentanglement-based approaches for text style transfer. The related systems first remove the style attribute words in the given texts and then generate the target sentences using the remained neutral templates. Previous work retrieves the style words using intuitive heuristics, which lacks in-depth analysis and can hardly provide a precise word detection. The resulting error will further affect the generation phase and leads to the failure of the style transformation. In this paper, we formalize the style detection task as a dynamic decision process; each word in the given text is classified as a style or neutral content sequentially leveraging the word property, the context, and the decision history. As no background labels indicating the attribute words, reinforcement learning is deployed in our model. An evaluation (reward) function is designed to quantify the style shift and content loss simultaneously, providing an accurate estimation for the decision process. The efficiency of the proposal is verified on two types of style transfer tasks, i.e., sentiment transfer and formality transfer. The experimental results demonstrate the model's competitive performance compared to the state-of-the-art baselines once equipped with an insertion-based generation approach.
- Published
- 2021