Non-Parallel Text Style Transfer with Self-Parallel Supervision

Ruibo Liu, Chongyang Gao, Chenyan Jia, Guangxuan Xu, Soroush Vosoughi
4/18/2022
cs.CLcs.AIcs.LG

Official code: agi-templar/LaMer (8 stars, Python, last commit 2026-04-05).

Abstract

The performance of existing text style transfer models is severely limited by the non-parallel datasets on which the models are trained. In non-parallel datasets, no direct mapping exists between sentences of the source and target style; the style transfer models thus only receive weak supervision of the target sentences during training, which often leads the model to discard too much style-independent information, or utterly fail to transfer the style.

Show full abstract

In this work, we propose LaMer, a novel text style transfer framework based on large-scale language models. LaMer first mines the roughly parallel expressions in the non-parallel datasets with scene graphs, and then employs MLE training, followed by imitation learning refinement, to leverage the intrinsic parallelism within the data. On two benchmark tasks (sentiment & formality transfer) and a newly proposed challenging task (political stance transfer), our model achieves qualitative advances in transfer accuracy, content preservation, and fluency. Further empirical and human evaluations demonstrate that our model not only makes training more efficient, but also generates more readable and diverse expressions than previous models.

View on arXivView PDF

Code Implementations(1)

agi-templar/LaMerOfficial100%

Implementation of "Non-Parallel Text Style Transfer with Self-Parallel Supervision" (ICLR 2022) — mines roughly parallel sentences from non-parallel data via scene graphs, trains BART with MLE, and refines with contrastive imitation learning.

81Python, MakefileFeb 14, 20228 months ago
natural-language-generationself-supervised-learningtext-style-transfer

Similar Papers

Cite this paper

@article{liu2022nonparallel,
  title  = {Non-Parallel Text Style Transfer with Self-Parallel Supervision},
  author = {Ruibo Liu and Chongyang Gao and Chenyan Jia and Guangxuan Xu and Soroush Vosoughi},
  year   = {2022},
  eprint = {2204.08123},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.08123}
}

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/2204.08123.svg)](https://codeofpaper.com/paper/2204.08123)

Discussion