ParaGuide: Guided Diffusion Paraphrasers for Plug-and-Play Textual Style Transfer

Zachary Horvitz, Ajay Patel, Chris Callison-Burch, Zhou Yu, Kathleen McKeown
8/29/2023
cs.CLcs.AI

No official code found. Best implementation: zacharyhorvitz/ParaGuide (16 stars, last commit 2024-07-17).

Abstract

Textual style transfer is the task of transforming stylistic properties of text while preserving meaning. Target "styles" can be defined in numerous ways, ranging from single attributes (e.g, formality) to authorship (e.g, Shakespeare). Previous unsupervised style-transfer approaches generally rely on significant amounts of labeled data for only a fixed set of styles or require large language models. In contrast, we introduce a novel diffusion-based framework for general-purpose style transfer that can be flexibly adapted to arbitrary target styles at inference time. Our parameter-efficient approach, ParaGuide, leverages paraphrase-conditioned diffusion models alongside gradient-based guidance from both off-the-shelf classifiers and strong existing style embedders to transform the style of text while preserving semantic information. We validate the method on the Enron Email Corpus, with both human and automatic evaluations, and find that it outperforms strong baselines on formality, sentiment, and even authorship style transfer.

View on arXivView PDF

Code Implementations(1)

Code for "ParaGuide: Guided Diffusion Paraphrasers for Plug-and-Play Textual Style Transfer"

161TeX, ShellAug 29, 20232 years ago

Similar Papers

Cite this paper

@article{horvitz2023paraguide,
  title  = {ParaGuide: Guided Diffusion Paraphrasers for Plug-and-Play Textual Style Transfer},
  author = {Zachary Horvitz and Ajay Patel and Chris Callison-Burch and Zhou Yu and Kathleen McKeown},
  year   = {2023},
  eprint = {2308.15459},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.15459v3}
}

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

Discussion