GPT-DETOX: An In-Context Learning-Based Paraphraser for Text Detoxification
Not on the map. Why?
Abstract (arXiv)
Harmful and offensive communication or content is detrimental to social bonding and the mental state of users on social media platforms. Text detoxification is a crucial task in natural language processing (NLP), where the goal is removing profanity and toxicity from text while preserving its content. Supervised and unsupervised learning are common approaches for designing text detoxification solutions. However, these methods necessitate fine-tuning, leading to computational overhead. In this paper, we propose GPT-DETOX as a framework for prompt-based in-context learning for text detoxification using GPT-3.5 Turbo. We utilize zero-shot and few-shot prompting techniques for detoxifying input sentences. To generate few-shot prompts, we propose two methods: word-matching example selection (WMES) and context-matching example selection (CMES). We additionally take into account ensemble in-context learning (EICL) where the ensemble is shaped by base prompts from zero-shot and all few-shot settings. We use ParaDetox and APPDIA as benchmark detoxification datasets. Our experimental results show that the zero-shot solution achieves promising performance, while our best few-shot setting outperforms the state-of-the-art models on ParaDetox and shows comparable results on APPDIA. Our EICL solutions obtain the greatest performance, adding at least 10% improvement, against both datasets.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 24 of its 36 references that are in the map. First posted on arXiv 3 Apr 2024.
Builds on
24 of 36 references.
References · 24
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2023A Survey of Large Language Modelscited by 2,537
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Ethical and social risks of harm from Language Modelscited by 957
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 550
- 2016How NOT To Evaluate Your Dialogue System: An Empirical Study of Unsupervised Evaluation Metrics for Dialogue Response Generationcited by 356
- 2022Generating Training Data with Language Models: Towards Zero-Shot Language Understandingcited by 199
12 more
- 2018Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfercited by 191
- 2021GPT3Mix: Leveraging Large-scale Language Models for Text Augmentationcited by 185
- 2019Beyond BLEU: Training Neural Machine Translation with Semantic Similaritycited by 84
- 2020A Probabilistic Formulation of Unsupervised Text Style Transfercited by 70
- 2021Few-Shot Bot: Prompt-Based Learning for Dialogue Systemscited by 64
- 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
- 2019"Mask and Infill" : Applying Masked Language Model to Sentiment Transfercited by 48
- 2022APPDIA: A Discourse-aware Transformer-based Style Transfer Model for Offensive Social Media Conversationscited by 23
- 2020Stable Style Transformer: Delete and Generate Approach with Encoder-Decoder for Text Style Transfercited by 22
- 2021Exploring Prompt-based Few-shot Learning for Grounded Dialog Generationcited by 20
- 2022Non-Parallel Text Style Transfer with Self-Parallel Supervisioncited by 11
- 2023DiffuDetox: A Mixed Diffusion Model for Text Detoxificationcited by 6
Built on by
Citing papers per year: 2025: 2.
2 papers.