Demonstrations Are All You Need: Advancing Offensive Content Paraphrasing using In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Paraphrasing of offensive content is a better alternative to content removal and helps improve civility in a communication environment. Supervised paraphrasers; however, rely heavily on large quantities of labelled data to help preserve meaning and intent. They also often retain a large portion of the offensiveness of the original content, which raises questions on their overall usability. In this paper we aim to assist practitioners in developing usable paraphrasers by exploring In-Context Learning (ICL) with large language models (LLMs), i.e., using a limited number of input-label demonstration pairs to guide the model in generating desired outputs for specific queries. Our study focuses on key factors such as - number and order of demonstrations, exclusion of prompt instruction, and reduction in measured toxicity. We perform principled evaluation on three datasets, including our proposed Context-Aware Polite Paraphrase (CAPP) dataset, comprising of dialogue-style rude utterances, polite paraphrases, and additional dialogue context. We evaluate our approach using four closed source and one open source LLM. Our results reveal that ICL is comparable to supervised methods in generation quality, while being qualitatively better by 25% on human evaluation and attaining lower toxicity by 76%. Also, ICL-based paraphrasers only show a slight reduction in performance even with just 10% training data.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 30 of its 53 references that are in the map. First posted on arXiv 16 Oct 2023.
Builds on
30 of 53 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2014CIDEr: Consensus-based Image Description Evaluationcited by 2,027
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
18 more
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2023Larger language models do in-context learning differentlycited by 386
- 2022Can language models learn from explanations in context?cited by 248
- 2022Active Example Selection for In-Context Learningcited by 195
- 2021Reframing Instructional Prompts to GPTk's Languagecited by 176
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2021Meta-learning via Language Model In-context Tuningcited by 163
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
- 2013A Computational Approach to Politeness with Application to Social Factorscited by 104
- 2022Complementary Explanations for Effective In-Context Learningcited by 71
- 2018A Unified Deep Learning Architecture for Abuse Detectioncited by 37
- 2022APPDIA: A Discourse-aware Transformer-based Style Transfer Model for Offensive Social Media Conversationscited by 23
- 2023Mixture of Soft Prompts for Controllable Data Generationcited by 23
- 2023Multilingual Content Moderation: A Case Study on Redditcited by 8
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 2; 2026: 1.
5 papers.
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
- 2024Can large language models explore in-context?cited by 75
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 8
- 2025What's Taboo for You? - An Empirical Evaluation of LLMs Behavior Toward Sensitive Contentcited by 0
- 2026A Survey of Toxicity Detection and Mitigation Strategies for Multilingual Language Modelscited by 0
- 2026A Survey of Toxicity Detection and Mitigation Strategies for Multilingual Language Models24 Jun 2026
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM7 Aug 2025
- 2025What's Taboo for You? - An Empirical Evaluation of LLMs Behavior Toward Sensitive Content31 Jul 2025
- 2024Can large language models explore in-context?22 Mar 2024
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering11 Nov 2023