Low-Level Linguistic Controls for Style Transfer and Content Preservation

Katy Gero, Chris Kedzie, Jonathan Reeve, Lydia Chilton
11/8/2019
cs.CL

Official code: kedz/styleeq (2 stars, Python, last commit 2024-07-25).

Abstract

Despite the success of style transfer in image processing, it has seen limited progress in natural language generation. Part of the problem is that content is not as easily decoupled from style in the text domain.

Show full abstract

Curiously, in the field of stylometry, content does not figure prominently in practical methods of discriminating stylistic elements, such as authorship and genre. Rather, syntax and function words are the most salient features. Drawing on this work, we model style as a suite of low-level linguistic controls, such as frequency of pronouns, prepositions, and subordinate clause constructions. We train a neural encoder-decoder model to reconstruct reference sentences given only content words and the setting of the controls. We perform style transfer by keeping the content words fixed while adjusting the controls to be indicative of another style. In experiments, we show that the model reliably responds to the linguistic controls and perform both automatic and manual evaluations on style transfer. We find we can fool a style classifier 84% of the time, and that our model produces highly diverse and stylistically distinctive outputs. This work introduces a formal, extendable model of style that can add control to any neural text generation system.

View on arXivView PDF

Code Implementations(1)

kedz/styleeqOfficial100%

Code for Low-Level Linguistic Controls for Style Transfer and Content Preservation

21Python, JsonnetSep 20, 20192 years ago

Similar Papers

Cite this paper

@article{gero2019lowlevel,
  title  = {Low-Level Linguistic Controls for Style Transfer and Content Preservation},
  author = {Katy Gero and Chris Kedzie and Jonathan Reeve and Lydia Chilton},
  year   = {2019},
  eprint = {1911.03385},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.03385}
}

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

Discussion