StylePTB: A Compositional Benchmark for Fine-grained Controllable Text Style Transfer

Yiwei Lyu, Paul Pu Liang, Hai Pham, Eduard Hovy, Barnabás Póczos +2 more
4/12/2021
49 citations
cs.CLcs.AIcs.LG
benchmark-dataset

Official code: lvyiwei1/StylePTB (63 stars, Python, last commit 2022-11-27).

Abstract

Text style transfer aims to controllably generate text with targeted stylistic changes while maintaining core meaning from the source sentence constant. Many of the existing style transfer benchmarks primarily focus on individual high-level semantic changes (e.g. positive to negative), which enable controllability at a high level but do not offer fine-grained control involving sentence structure, emphasis, and content of the sentence.

Show full abstract

In this paper, we introduce a large-scale benchmark, StylePTB, with (1) paired sentences undergoing 21 fine-grained stylistic changes spanning atomic lexical, syntactic, semantic, and thematic transfers of text, as well as (2) compositions of multiple transfers which allow modeling of fine-grained stylistic changes as building blocks for more complex, high-level transfers. By benchmarking existing methods on StylePTB, we find that they struggle to model fine-grained changes and have an even more difficult time composing multiple styles. As a result, StylePTB brings novel challenges that we hope will encourage future research in controllable text style transfer, compositional models, and learning disentangled representations. Solving these challenges would present important steps towards controllable text generation.

View on arXivView PDF

Code Implementations(1)

lvyiwei1/StylePTBOfficial100%
635Python, HTMLMar 30, 20214 years agoNOASSERTION

Similar Papers

Cite this paper

@article{lyu2021styleptb,
  title  = {StylePTB: A Compositional Benchmark for Fine-grained Controllable Text Style Transfer},
  author = {Yiwei Lyu and Paul Pu Liang and Hai Pham and Eduard Hovy and Barnabás Póczos and Ruslan Salakhutdinov and Louis-Philippe Morency},
  year   = {2021},
  eprint = {2104.05196},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.05196}
}

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

Discussion