TinyStyler: Efficient Few-Shot Text Style Transfer with Authorship Embeddings

Zachary Horvitz, Ajay Patel, Kanishk Singh, Chris Callison-Burch, Kathleen McKeown +1 more
6/21/2024
cs.CL

No official code found. Best implementation: zacharyhorvitz/TinyStyler (33 stars, last commit 2024-11-18).

Abstract

The goal of text style transfer is to transform the style of texts while preserving their original meaning, often with only a few examples of the target style. Existing style transfer methods generally rely on the few-shot capabilities of large language models or on complex controllable text generation approaches that are inefficient and underperform on fluency metrics. We introduce TinyStyler, a lightweight but effective approach, which leverages a small language model (800M params) and pre-trained authorship embeddings to perform efficient, few-shot text style transfer. We evaluate on the challenging task of authorship style transfer and find TinyStyler outperforms strong approaches such as GPT-4. We also evaluate TinyStyler's ability to perform text attribute style transfer (formal $\leftrightarrow$ informal) with automatic and human evaluations and find that the approach outperforms recent controllable text generation methods. Our model has been made publicly available at https://huggingface.co/tinystyler/tinystyler .

View on arXivView PDF

Code Implementations(1)

Code for TinyStyler: Efficient Few-Shot Text Style Transfer with Authorship Embeddings, EMNLP 2024 Findings

332Shell, PythonOct 2, 20241 years ago

Similar Papers

Cite this paper

@article{horvitz2024tinystyler,
  title  = {TinyStyler: Efficient Few-Shot Text Style Transfer with Authorship Embeddings},
  author = {Zachary Horvitz and Ajay Patel and Kanishk Singh and Chris Callison-Burch and Kathleen McKeown and Zhou Yu},
  year   = {2024},
  eprint = {2406.15586},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.15586v2}
}

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

Discussion