Generative Sentiment Transfer via Adaptive Masking

Yingze Xie, Jie Xu, LiQiang Qiao, Yun Liu, Feiren Huang +1 more
2/23/2023
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Sentiment transfer aims at revising the input text to satisfy a given sentiment polarity while retaining the original semantic content. The nucleus of sentiment transfer lies in precisely separating the sentiment information from the content information. Existing explicit approaches generally identify and mask sentiment tokens simply based on prior linguistic knowledge and manually-defined rules, leading to low generality and undesirable transfer performance. In this paper, we view the positions to be masked as the learnable parameters, and further propose a novel AM-ST model to learn adaptive task-relevant masks based on the attention mechanism. Moreover, a sentiment-aware masked language model is further proposed to fill in the blanks in the masked positions by incorporating both context and sentiment polarity to capture the multi-grained semantics comprehensively. AM-ST is thoroughly evaluated on two popular datasets, and the experimental results demonstrate the superiority of our proposal.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xie2023generative,
  title  = {Generative Sentiment Transfer via Adaptive Masking},
  author = {Yingze Xie and Jie Xu and LiQiang Qiao and Yun Liu and Feiren Huang and Chaozhuo Li},
  year   = {2023},
  eprint = {2302.12045},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.12045v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.12045.svg)](https://codeofpaper.com/paper/2302.12045)

Discussion