Detoxify: A framework for abusive text transformation using LLMs
Not on the map. Why?
Abstract (arXiv)
Although Large Language Models (LLMs) have demonstrated significant advancements in natural language processing tasks, their effectiveness in the classification and transformation of abusive text into non-abusive versions remains an area for exploration. In this study, we present Detoxify: a framework that employs LLMs to transform abusive text (tweets and reviews) containing hate speech and profanity into non-abusive text while retaining the original intent. We evaluate the performance of four state-of-the-art LLMs, such as Gemini, GPT-4o, DeekSeek and Groq, on their ability to identify abusive text. We aim to transform and obtain a text that is clean of abusive and inappropriate content, but maintains a similar level of sentiment and semantics, i.e. the transformed text needs to maintain its message. Afterwards, we evaluate the raw and transformed datasets with sentiment analysis and semantic analysis. Our results show Groq provides vastly different results when compared with other LLMs. We have identified similarities between GPT-4o and DeepSeek. Groq stood out as the most distinct, as it often restructured sentences with excessive positive phrasing, with the original context lost or altered.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 31 of its 79 references that are in the map. First posted on arXiv 14 Jul 2025.
Builds on
31 of 79 references.
References · 31
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2015An Introduction to Convolutional Neural Networkscited by 514
- 2020Med-BERT: pre-trained contextualized embeddings on large-scale structured electronic health records for disease predictioncited by 373
- 2018Large Scale Crowdsourcing and Characterization of Twitter Abusive Behaviorcited by 270
- 2023Multimodal Deep Learningcited by 258
19 more
- 2020Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detectioncited by 221
- 2020HateBERT: Retraining BERT for Abusive Language Detection in Englishcited by 207
- 2020SemEval-2020 Task 12: Multilingual Offensive Language Identification in Social Media (OffensEval 2020)cited by 138
- 2023ChatGPT is not all you need. A State of the Art Review of large Generative AI modelscited by 86
- 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
- 2022Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Expertscited by 36
- 2019Tackling Online Abuse: A Survey of Automated Abuse Detection Methodscited by 33
- 2023Robust Hate Speech Detection in Social Media: A Cross-Dataset Empirical Evaluationcited by 28
- 2021A systematic review of Hate Speech automatic detection using Natural Language Processingcited by 27
- 2021Detection of Hate Speech using BERT and Hate Speech Word Embedding with Deep Modelcited by 26
- 2021COVID-19 sentiment analysis via deep learning during the rise of novel casescited by 18
- 2019Re-balancing Variational Autoencoder Loss for Molecule Sequence Generationcited by 12
- 2022Semantic and sentiment analysis of selected Bhagavad Gita translations using BERT-based language frameworkcited by 12
- 2024DetoxLLM: A Framework for Detoxification with Explanationscited by 10
- 2023Don't Take This Out of Context! On the Need for Contextual Models and Evaluations for Stylistic Rewritingcited by 6
- 2022Estimating Social Influence from Observational Datacited by 5
- 2024Detecting LLM-assisted writing in scientific communication: Are we there yet?cited by 4
- 2025An evaluation of LLMs and Google Translate for translation of selected Indian languages via sentiment and semantic analysescited by 2
- 2025Chinese Toxic Language Mitigation via Sentiment Polarity Consistent Rewritescited by 2
Built on by
Not cited yet.