Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Models
Abstract
We propose a method for arbitrary textual style transfer (TST)—the task of transforming a text into any given style—utilizing general-purpose pre-trained language models. Our method, Prompt-and-Rerank, is based on a mathematical formulation of the TST task, decomposing it into three constituent components: textual similarity, target style strength, and fluency. Our method uses zero-shot or few-shot prompting to obtain a set of candidate generations in the target style, and then re-ranks them according to the three components. Our method enables small pre-trained language models to perform on par with state-of-the-art large-scale models while using two orders of magnitude less compute and memory. We also investigate the effect of model size and prompt design (e.g., prompt paraphrasing and delimiter-pair choice) on style transfer quality across seven diverse textual style transfer datasets, finding, among other things, that delimiter-pair choice has a large impact on performance, and that models have biases on the direction of style transfer.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Evaluating the Evaluation Metrics for Style Transfer: A Case Study in Multilingual Formality Transfer cites Reformulating Unsupervised Style Transfer as Paraphrase Generation
- Evaluating the Evaluation Metrics for Style Transfer: A Case Study in Multilingual Formality Transfer cites BERTScore: Evaluating Text Generation with BERT
- Adaptive Prompt Routing for Arbitrary Text Style Transfer with Pre-trained Language Models cites Reformulating Unsupervised Style Transfer as Paraphrase Generation
- Adaptive Prompt Routing for Arbitrary Text Style Transfer with Pre-trained Language Models cites BERTScore: Evaluating Text Generation with BERT
- Adaptive Prompt Routing for Arbitrary Text Style Transfer with Pre-trained Language Models cites Making Pre-trained Language Models Better Few-shot Learners
- Tree-Planner: Efficient Close-loop Task Planning with Large Language Models cites Language Models are Few-Shot Learners
- Making Pre-trained Language Models Better Few-shot Learners cites Language Models are Few-Shot Learners
Cited by top-tier papers12
- Tree-Planner: Efficient Close-loop Task Planning with Large Language ModelsMengkang Hu, Yao Mu, Xinmiao Yu, Mingyu Ding et al.ICLR 2024 · 57 citations
- Navigating the Grey Area: How Expressions of Uncertainty and Overconfidence Affect Language ModelsKaitlyn Zhou, Dan Jurafsky, Tatsunori HashimotoEMNLP 2023 · 29 citations
- Adaptive Prompt Routing for Arbitrary Text Style Transfer with Pre-trained Language ModelsQingyi Liu, Jinghui Qin, Wenxuan Ye, Hao Mou et al.AAAI 2024 · 9 citations
- Comparing Biases and the Impact of Multilingual Training across Multiple LanguagesSharon Levy, Neha Anna John, Ling Liu, Yogarshi Vyas et al.EMNLP 2023 · 9 citations
- Precise Information Control in Long-Form Text GenerationJacqueline He, Howard Yen, Margaret Li, Shuyue Stella Li et al.NeurIPS 2025 · 8 citations
Builds on5
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger et al.ICLR 2020 · 8,443 citations
- Evaluating the Evaluation Metrics for Style Transfer: A Case Study in Multilingual Formality TransferEleftheria Briakou, Sweta Agrawal, Joel R. Tetreault, Marine CarpuatEMNLP 2021 · 23 citations
- Reformulating Unsupervised Style Transfer as Paraphrase GenerationKalpesh Krishna, John Wieting, Mohit IyyerEMNLP 2020 · 9 citations
- Making Pre-trained Language Models Better Few-shot LearnersTianyu Gao, Adam Fisch, Danqi ChenACL 2021
Related papers
- TinyStyler: Efficient Few-Shot Text Style Transfer with Authorship EmbeddingsZachary Horvitz, Ajay Patel, Kanishk Singh, Chris Callison-Burch et al.EMNLP Findings 2024 · 6 citations
- Prefix-Tuning Based Unsupervised Text Style TransferHuiyu Mai, Wenhao Jiang, Zhi-Hong DengEMNLP Findings 2023 · 4 citations
- Prompt-Based Editing for Text Style TransferGuoqing Luo, Yutong Han, Lili Mou, Mauajama FirdausEMNLP Findings 2023 · 16 citations
- RLPrompt: Optimizing Discrete Text Prompts with Reinforcement LearningMingkai Deng, Jianyu Wang, Cheng-Ping Hsieh, Yihan Wang et al.EMNLP 2022 · 141 citations
- Rethinking Style Transformer with Energy-based Interpretation: Adversarial Unsupervised Style Transfer using a Pretrained ModelHojun Cho, Dohee Kim, Seungwoo Ryu, ChaeHun Park et al.EMNLP 2022
