SC2: Towards Enhancing Content Preservation and Style Consistency in Long Text Style Transfer

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhao, Jie, Guan, Ziyu, Xu, Cai, Zhao, Wei, Jiang, Yue
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910476348162048
author Zhao, Jie
Guan, Ziyu
Xu, Cai
Zhao, Wei
Jiang, Yue
author_facet Zhao, Jie
Guan, Ziyu
Xu, Cai
Zhao, Wei
Jiang, Yue
contents Text style transfer (TST) aims to vary the style polarity of text while preserving the semantic content. Although recent advancements have demonstrated remarkable progress in short TST, it remains a relatively straightforward task with limited practical applications. The more comprehensive long TST task presents two challenges: (1) existing methods encounter difficulties in accurately evaluating content attributes in multiple words, leading to content degradation; (2) the conventional vanilla style classifier loss encounters obstacles in maintaining consistent style across multiple generated sentences. In this paper, we propose a novel method SC2, where a multilayer Joint Style-Content Weighed (JSCW) module and a Style Consistency loss are designed to address the two issues. The JSCW simultaneously assesses the amounts of style and content attributes within a token, aiming to acquire a lossless content representation and thereby enhancing content preservation. The multiple JSCW layers further progressively refine content representations. We design a style consistency loss to ensure the generated multiple sentences consistently reflect the target style polarity. Moreover, we incorporate a denoising non-autoregressive decoder to accelerate the training. We conduct plentiful experiments and the results show significant improvements of SC2 over competitive baselines. Our code: https://github.com/jiezhao6/SC2.
format Preprint
id arxiv_https___arxiv_org_abs_2406_04578
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SC2: Towards Enhancing Content Preservation and Style Consistency in Long Text Style Transfer
Zhao, Jie
Guan, Ziyu
Xu, Cai
Zhao, Wei
Jiang, Yue
Computation and Language
Text style transfer (TST) aims to vary the style polarity of text while preserving the semantic content. Although recent advancements have demonstrated remarkable progress in short TST, it remains a relatively straightforward task with limited practical applications. The more comprehensive long TST task presents two challenges: (1) existing methods encounter difficulties in accurately evaluating content attributes in multiple words, leading to content degradation; (2) the conventional vanilla style classifier loss encounters obstacles in maintaining consistent style across multiple generated sentences. In this paper, we propose a novel method SC2, where a multilayer Joint Style-Content Weighed (JSCW) module and a Style Consistency loss are designed to address the two issues. The JSCW simultaneously assesses the amounts of style and content attributes within a token, aiming to acquire a lossless content representation and thereby enhancing content preservation. The multiple JSCW layers further progressively refine content representations. We design a style consistency loss to ensure the generated multiple sentences consistently reflect the target style polarity. Moreover, we incorporate a denoising non-autoregressive decoder to accelerate the training. We conduct plentiful experiments and the results show significant improvements of SC2 over competitive baselines. Our code: https://github.com/jiezhao6/SC2.
title SC2: Towards Enhancing Content Preservation and Style Consistency in Long Text Style Transfer
topic Computation and Language
url https://arxiv.org/abs/2406.04578