[Paper Review] A Recipe For Arbitrary Text Style Transfer with Large Language Models
This paper introduces augmented zero-shot learning, a prompting method that enables large language models to perform arbitrary text style transfer without fine-tuning or exemplars in the target style. By using a single, flexible prompt template with diverse rewriting demonstrations, the method achieves strong performance across standard and non-standard styles—such as making text more comic, melodramatic, or metaphorical—demonstrating high human-rated fluency and improved automatic metrics with candidate selection.
In this paper, we leverage large language models (LMs) to perform zero-shot text style transfer. We present a prompting method that we call augmented zero-shot learning, which frames style transfer as a sentence rewriting task and requires only a natural language instruction, without model fine-tuning or exemplars in the target style. Augmented zero-shot learning is simple and demonstrates promising results not just on standard style transfer tasks such as sentiment, but also on arbitrary transformations such as "make this melodramatic" or "insert a metaphor."
Motivation & Objective
- To address the limitations of existing style transfer methods that require labeled parallel data or style-specific exemplars.
- To reduce data and training requirements for style transfer by enabling zero-shot, label-free style transfer using only natural language instructions.
- To expand the scope of supported styles beyond standard categories like sentiment or formality to include creative transformations such as inserting metaphors or the word 'balloon'.
- To develop a simple, controllable, and general-purpose prompting framework that works out-of-the-box with large language models.
Proposed method
- The method uses a fixed prompt template that includes multiple sentence rewriting examples with diverse transformations, such as 'more descriptive' or 'include a metaphor'.
- The model is prompted with a natural language instruction specifying the desired style change, followed by the input sentence to be rewritten.
- The prompt structure ensures the model learns to generalize across unseen styles by learning from a broad set of exemplar transformations.
- The approach relies on the in-context learning capability of large language models, particularly GPT-3, to extrapolate to new style transfer tasks without fine-tuning.
- Model outputs are generated as 16 continuations, and candidate selection is applied to choose the output with the highest BLEU score to the original sentence for improved lexical similarity.
- The method is applied to both standard and non-standard style transfer tasks, including sentiment, formality, and creative transformations.
Experimental results
Research questions
- RQ1Can large language models perform zero-shot text style transfer to arbitrary styles without any fine-tuning or exemplars in the target style?
- RQ2How does augmented zero-shot learning compare to zero-shot and few-shot prompting in terms of fluency and style transfer quality?
- RQ3Can the method generalize to non-standard, creative style transformations such as inserting metaphors or the word 'balloon'?
- RQ4To what extent does candidate selection improve automatic evaluation metrics like BLEU without sacrificing fluency or semantic preservation?
- RQ5How does the method perform in real-world user-facing applications, such as AI-assisted text editing?
Key findings
- Human evaluation showed that augmented zero-shot learning achieved a mean fluency rating of 133 out of 150 across six non-standard styles, significantly outperforming zero-shot prompting (81) and few-shot (110) baselines.
- For sentiment transfer, the method achieved a 79.6% accuracy score with the LLM-128B model, outperforming zero-shot (69.7%) and five-shot (83.2%) baselines.
- With candidate selection, BLEU scores improved substantially: from 16.1 to 49.3 for augmented zero-shot, and from 10.4 to 40.6 for the LLM-128B-dialog variant.
- The method successfully generated high-quality outputs for creative transformations, such as 'more comic' (mean length 116 characters) and 'more melodramatic' (124 characters), with high human-rated fluency.
- User studies in a real AI editor UI showed strong engagement and perceived quality, with users successfully applying diverse style edits using natural language prompts.
- The approach demonstrated robustness across diverse styles, including those not typically covered by prior methods, such as inserting specific words or crafting metaphors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.