AugmenToxic: Leveraging Reinforcement Learning to Optimize LLM Instruction Fine-Tuning for Data Augmentation to Enhance Toxicity Detection
The DOI matches its Crossref record; 25 of the 25 references it cites were found in a registry or an index.
Abstract
Addressing the challenge of toxic language in online discussions is crucial for the development of effective toxicity detection models. This pioneering work focuses on addressing imbalanced datasets in toxicity detection by introducing a novel approach to augment toxic language data. We create a balanced dataset by instructing fine-tuning of Large Language Models (LLMs) using Reinforcement Learning with Human Feedback (RLHF). Recognizing the challenges in collecting sufficient toxic samples from social media platforms for building a balanced dataset, our methodology involves sentence-level text data augmentation through paraphrasing existing samples using optimized generative LLMs. Leveraging generative LLM, we utilize the Proximal Policy Optimizer (PPO) as the RL algorithm to fine-tune the model further and align it with human feedback. In other words, we start by fine-tuning a LLM using an instruction dataset, specifically tailored for the task of paraphrasing while maintaining semantic consistency. Next, we apply PPO and a reward function, to further fine-tune (optimize) the instruction-tuned LLM. This RL process guides the model in generating toxic responses. We utilize the Google Perspective API as a toxicity evaluator to assess generated responses and assign rewards/penalties accordingly. This approach guides LLMs through PPO and the reward function, transforming minority class samples into augmented versions. The primary goal of our methodology is to create a balanced and diverse dataset to enhance the accuracy and performance of classifiers in identifying instances from the minority class. Utilizing two publicly available toxic datasets, we compared various techniques with our proposed method for generating toxic samples, demonstrating that our approach outperforms all others in producing a higher number of toxic samples. Starting with an initial 16,225 toxic prompts, our method successfully generated 122,951 toxic samples with a toxicity score exceeding 30%. Subsequently, we developed various classifiers using the generated balanced datasets and applied a cost-sensitive learning approach to the original imbalanced dataset. The findings highlight the superior performance of classifiers trained on data generated using our proposed method. These results highlight the importance of employing RL and a data-agnostic model as a reward mechanism for augmenting toxic data, thereby enhancing the robustness of toxicity detection models.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Studies revealed that optimized LLMs can generate synthetic datasets with high quality (Bodaghi et al. 2024).”
From Content moderation by LLM: from accuracy to legitimacy (2025) · cites this paper as Bodaghi et al. 2024
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173
Proximal Policy Optimization Algorithms
Schulman, J., Wolski, F., Dhariwal, P., Radford, A., & Klimov, O. (2017) · arXiv · doi:10.48550/arxiv.1707.06347 · Cited by 40,403
DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019) · arXiv · doi:10.48550/arxiv.1910.01108 · Cited by 13,823
LoRA: Low-Rank Adaptation of Large Language Models
Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., & Chen, W. (2021) · arXiv · doi:10.48550/arxiv.2106.09685 · Cited by 13,453
Huang, L., Yu, W., Ma, W., Zhong, W., Feng, Z., Wang, H., Chen, Q., Peng, W., Feng, X., Qin, B., et al. (2025) · ACM Transactions on Information Systems · doi:10.1145/3703155 · Cited by 4,688
Training language models to follow instructions with human feedback
Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C. L., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., et al. (2022) · arXiv · doi:10.48550/arxiv.2203.02155 · Cited by 4,208
Learning from Imbalanced Data Sets
Fernández, A., García, S., Galar, M., Prati, R. C., Krawczyk, B., & Herrera, F. (2018) · doi:10.1007/978-3-319-98074-4 · Cited by 1,349 · cited 1×
“This involves increasing instances of the underrepresented class through oversampling and reducing instances of the overrepresented class through undersampling, with the possibility of employing a combination of both techniques [20, 38, 75, 132].”
The Curious Case of Neural Text Degeneration
Holtzman, A., Buys, J., Du, L., Forbes, M., & Choi, Y. (2019) · arXiv · doi:10.48550/arxiv.1904.09751 · Cited by 1,304
Hierarchical Neural Story Generation
Fan, A., Lewis, M., & Dauphin, Y. (2018) · Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p18-1082 · Cited by 1,266 · cited 1×
“It is important to note that the Top-k sampler restricts sampling to the k most probable tokens, while the Top-p (nucleus) sampler constrains sampling to the smallest set of tokens [37, 56, 146].”
A Comprehensive Overview of Large Language Models
Naveed, H., Khan, A. U., Qiu, S., Saqib, M., Anwar, S., Usman, M., Akhtar, N., Barnes, N., & Mian, A. (2023) · arXiv · doi:10.48550/arxiv.2307.06435 · Cited by 1,259
A Comprehensive Overview of Large Language Models
Naveed, H., Khan, A. U., Qiu, S., Saqib, M., Anwar, S., Usman, M., Akhtar, N., Barnes, N., & Mian, A. (2025) · ACM Transactions on Intelligent Systems and Technology · doi:10.1145/3744746 · Cited by 1,257
Hierarchical Neural Story Generation
Fan, A., Lewis, M., & Dauphin, Y. (2018) · arXiv · doi:10.48550/arxiv.1805.04833 · Cited by 1,242
Understanding Data Augmentation for Classification: When to Warp?
Wong, S. C., Gatt, A., Stamatescu, V., & McDonnell, M. D. (2016) · 2016 International Conference on Digital Image Computing: Techniques and Applications (DICTA) · doi:10.1109/dicta.2016.7797091 · Cited by 1,007 · cited 1×
“38:7”
Clustering-based undersampling in class-imbalanced data
Lin, W.-C., Tsai, C.-F., Hu, Y.-H., & Jhang, J.-S. (2017) · Information Sciences · doi:10.1016/j.ins.2017.05.008 · Cited by 832 · cited 3×
“Yet, oversampling tends to expand the training set size by replicating patterns, leading to extended learning times and potential overfitting [21, 82, 132].”
A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunities
Song, Y., Wang, T., Cai, P., Mondal, S. K., & Sahoo, J. P. (2023) · ACM Computing Surveys · doi:10.1145/3582688 · Cited by 721
Avoiding Overfitting: A Survey on Regularization Methods for Convolutional Neural Networks
Santos, C. F. G. D., & Papa, J. P. (2022) · ACM Computing Surveys · doi:10.1145/3510413 · Cited by 557
Training deep neural networks on imbalanced data sets
Wang, S., Liu, W., Wu, J., Cao, L., Meng, Q., & Kennedy, P. J. (2016) · 2016 International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn.2016.7727770 · Cited by 491 · cited 1×
“Oversampling and undersampling can lead to overfitting and underfitting, respectively, and may not work well when the dataset is extremely imbalanced [49, 143].”
Fine-Tuning Language Models from Human Preferences
Ziegler, D. M., Stiennon, N., Wu, J., Brown, T. B., Radford, A., Amodei, D., Christiano, P., & Irving, G. (2019) · arXiv · doi:10.48550/arxiv.1909.08593 · Cited by 413
VL-ADAPTER: Parameter-Efficient Transfer Learning for Vision-and-Language Tasks
Sung, Y.-L., Cho, J., & Bansal, M. (2022) · 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52688.2022.00516 · Cited by 329 · cited 1×
“The model learns parameters ω in training by maximizing the likelihood of observed data.”
ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection
Hartvigsen, T., Gabriel, S., Palangi, H., Sap, M., Ray, D., & Kamar, E. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2022.acl-long.234 · Cited by 279
ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection
Hartvigsen, T., Gabriel, S., Palangi, H., Sap, M., Ray, D., & Kamar, E. (2022) · arXiv · doi:10.48550/arxiv.2203.09509 · Cited by 276
Neural Text Generation with Unlikelihood Training
Welleck, S., Kulikov, I., Roller, S., Dinan, E., Cho, K., & Weston, J. (2019) · arXiv · doi:10.48550/arxiv.1908.04319 · Cited by 254 · cited 1×
“Within the training set, a further subdivision was implemented for hyperparameter tuning, with “2,312” samples, constituting 10% of the training data, reserved for validation purposes.”
Instruction Tuning for Large Language Models: A Survey
Zhang, S., Dong, L., Li, X., Zhang, S., Sun, X., Wang, S., Li, J., Hu, R., Zhang, T., Wu, F., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.10792 · Cited by 241
Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Code
Liu, F., Liu, Y., Shi, L., Yang, Z., Zhang, L., Lian, X., Li, Z., & Ma, Y. (2024) · arXiv · doi:10.48550/arxiv.2404.00971 · Cited by 188 · cited 1×
“38:7”
Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detection
Vidgen, B., Thrush, T., Waseem, Z., & Kiela, D. (2021) · Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · doi:10.18653/v1/2021.acl-long.132 · Cited by 174 · cited 1×
“The facebook/roberta-hate-speech , 4 which we refer to as HateRoBERTa in this article, is a RoBERTa model fine-tuned on a hate/toxic speech dataset [141], available on Hugging Face, 5 specifically designed for detecting hate/toxic speech.”
Research works printed but not linked: 140
- 10.1038/s41598-022-22523-3 · DOI
- 10.1109/TAI.2021.3114390 · DOI
- 10.1007/s13278-024-01198-w · DOI
- 10.1016/j.cma.2022.114570 · DOI · Paper page
- 10.1007/s00521-022-07854-6 · DOI · Paper page
- 10.1007/s41870-022-01096-4 · DOI
- Haseeb Ali, M. N. Mohd Salleh, Rohmat Saedudin, Kashif Hussain, and Muhammad Faheem Mushtaq. 2019. Imbalance class problems in data mining: A review. Indonesian Journal of Electrical Engineering and Computer Science 14, 3 (2019), 1560–1571. https://www.academia.edu/download/99950055/12240.pdf
- 10.2478/ausi-2020-0012 · DOI
- Kaveri Anuranjana. 2023. DiscoFlan: Instruction fine-tuning and refined text generation for discourse relation label classification. In Proceedings of the 3rd Shared Task on Discourse Relation Parsing and Treebanking (DISRPT’23), Chloé Braud, Yang Janet Liu, Eleni Metheniti, Philippe Muller, Laura Rivière, Attapol Rutherford, and Amir Zeldes (Eds.). The Association for Computational Linguistics, Toronto, Canada, 22–28. 10.18653/v1/2023.disrpt-1.2 · DOI
- Małgorzata Bach and Aleksandra Werner. 2018. Cost-sensitive feature selection for class imbalance problem. In Information Systems Architecture and Technology: Proceedings of 38th International Conference on Information Systems Architecture and Technology – ISAT 2017 (Advances in Intelligent Systems and Computing), Leszek Borzemski, Jerzy Świątek, and Zofia Wilimowska (Eds.). Springer International Publishing, Cham, 182–194. 10.1007/978-3-319-67220-5_17 · doi:10.1007/978-3-319-67220-5_17
- 10.1016/j.procs.2019.09.167 · DOI
- 10.1016/j.knosys.2023.111081 · DOI · Paper page
- Satanjeev Banerjee and Alon Lavie. 2005. METEOR: An automatic metric for MT evaluation with improved correlation with human judgments. In Proceedings of the ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization, Jade Goldstein, Alon Lavie, Chin-Yew Lin, and Clare Voss (Eds.). Association for Computational Linguistics, Ann Arbor, Michigan, 65–72. https://aclanthology.org/W05-0909
- 10.1145/3544558 · DOI · Paper page
- 10.1016/j.osnem.2021.100153 · DOI
- Desirée Bill and Theodor Eriksson. 2023. Fine-tuning a LLM using Reinforcement Learning from Human Feedback for a Therapy Chatbot Application. Royal Institute of Technology. https://urn.kb.se/resolve?urn=urn:nbn:se:kth:diva-331920
- 10.1162/tacl_a_00051 · DOI · Paper page
- Rui Cao and Roy Ka-Wei Lee. 2020. HateGAN: Adversarial generative-based data augmentation for hate speech detection. In Proceedings of the 28th International Conference on Computational Linguistics, Donia Scott, Nuria Bel, and Chengqing Zong (Eds.). International Committee on Computational Linguistics, Barcelona, Spain (Online), 6327–6338. 10.18653/v1/2020.coling-main.557 · DOI
- Tommaso Caselli, Valerio Basile, Jelena Mitrović, and Michael Granitzer. 2021. HateBERT: Retraining BERT for abusive language detection in English. In Proceedings of the 5th Workshop on Online Abuse and Harms (WOAH’21), Aida Mostafazadeh Davani, Douwe Kiela, Mathias Lambert, Bertie Vidgen, Vinodkumar Prabhakaran, and Zeerak Waseem (Eds.). Association for Computational Linguistics, Online, 17–25. 10.18653/v1/2021.woah-1.3 · DOI · Paper page
- 10.1613/jair.953 · DOI · Paper page
- 10.1145/1007730.1007733 · DOI · Paper page
- 10.1145/3448014 · DOI
- 10.3390/e23050566 · DOI
- Shabrina Choirunnisa and Joko Lianto. 2018. Hybrid method of undersampling and oversampling for handling imbalanced data. In Proceedings of the 2018 International Seminar on Research of Information Technology and Intelligent Systems (ISRITI’18). IEEE, 276–280. 10.1109/ISRITI.2018.8864335 · DOI
- Hyung Won Chung Le Hou Shayne Longpre Barret Zoph Yi Tay William Fedus Yunxuan Li Xuezhi Wang Mostafa Dehghani Siddhartha Brahma Albert Webson Shixiang Shane Gu Zhuyun Dai Mirac Suzgun Xinyun Chen Aakanksha Chowdhery Alex Castro-Ros Marie Pellat Kevin Robinson Dasha Valter Sharan Narang Gaurav Mishra Adams Yu Vincent Zhao Yanping Huang Andrew Dai Hongkun Yu Slav Petrov Ed H. Chi Jeff Dean Jacob Devlin Adam Roberts Denny Zhou Quoc V. Le and Jason Wei. 2022. Scaling Instruction-Finetuned Language Models. http://arxiv.org/abs/2210.11416arXiv:2210.11416 [cs].
- Claude Coulombe. 2018. Text Data Augmentation Made Simple By Leveraging NLP Cloud APIs. 10.48550/arXiv.1812.04718arXiv:1812.04718 [cs]. · DOI
- Mithun Das Somnath Banerjee and Punyajoy Saha. 2021. Abusive and Threatening Language Detection in Urdu using Boosting based and BERT based models: A Comparative Approach. http://arxiv.org/abs/2111.14830arXiv:2111.14830 [cs].
- Michael Denkowski and Alon Lavie. 2014. Meteor universal: Language specific translation evaluation for any target language. In Proceedings of the 9th Workshop on Statistical Machine Translation, Ondřej Bojar, Christian Buck, Christian Federmann, Barry Haddow, Philipp Koehn, Christof Monz, Matt Post, and Lucia Specia (Eds.). Association for Computational Linguistics, Baltimore, Md., 376–380. 10.3115/v1/W14-3348 · DOI · Paper page
- 10.3390/electronics10070779 · DOI · Paper page
- Debashree Devi, Saroj K. Biswas, and Biswajit Purkayastha. 2020. A review on solution to class imbalance problem: Undersampling approaches. In Proceedings of the 2020 International Conference on Computational Performance Evaluation (ComPE’20). IEEE, Shillong, India, 626–631. 10.1109/ComPE49325.2020.9200087 · DOI
- Ashwin Geet D’Sa, Irina Illina, and Dominique Fohr. 2020. BERT and fastText embeddings for automatic detection of toxic speech. In Proceedings of the 2020 International Multi-Conference on: “Organization of Knowledge and Advanced Technologies” (OCTA’20). IEEE, 1–5. 10.1109/OCTA49274.2020.9151853 · DOI · Paper page
- 10.1007/978-3-030-83527-9_12 · DOI
- Hussein El Saadi, Ahmed Farouk Al-Sadek, and Mohamed Waleed Fakhr. 2012. Informed under-sampling for enhancing patient specific epileptic seizure detection. International Journal of Computer Applications 57, 16 (2012), 41–46. https://www.academia.edu/download/66547918/pxc3883733.pdfPublisher: Foundation of Computer Science.
- Charles Elkan. 2001. The foundations of cost-sensitive learning. In International Joint Conference on Artificial Intelligence, Vol. 17. Lawrence Erlbaum Associates Ltd, 973–978. http://cseweb.ucsd.edu/elkan/rescale.pdfIssue: 1.
- Jerzy Filar and Koos Vrieze. 2012. Competitive Markov Decision Processes. Springer Science & Business Media. Google-Books-ID: uXDjBwAAQBAJ.
- Yoav Freund and Robert E. Schapire. 1997. A decision-theoretic generalization of on-line learning and an application to boosting. Journal of Computer and System Sciences 55, 1 (1997), 119–139. https://www.sciencedirect.com/science/article/pii/S002200009791504XPublisher: Elsevier. · DOI · Paper page
- 10.1109/TSMCC.2011.2161285 · DOI · Paper page
- Vaishali Ganganwar. 2012. An overview of classification algorithms for imbalanced datasets. International Journal of Emerging Technology and Advanced Engineering 2 (Jan.2012), 42–47.
- 10.1007/s42235-023-00437-8 · DOI · Paper page
- 10.1134/S1995080223010134 · DOI
- Anjana Gosain and Saanchi Sardana. 2017. Handling class imbalance problem using oversampling techniques: A review. In 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI’17). IEEE, 79–85. 10.1109/ICACCI.2017.8125820 · DOI · Paper page
- Edouard Grave Piotr Bojanowski Prakhar Gupta Armand Joulin and Tomas Mikolov. 2018. Learning Word Vectors for 157 Languages. 10.48550/arXiv.1802.06893arXiv:1802.06893 [cs]. · DOI
- Prakhar Gupta Cathy Jiao Yi-Ting Yeh Shikib Mehri Maxine Eskenazi and Jeffrey P. Bigham. 2022. InstructDial: Improving Zero and Few-shot Generalization in Dialogue through Instruction Tuning. http://arxiv.org/abs/2205.12673arXiv:2205.12673 [cs].
- Rahul Gupta. 2019. Data Augmentation for Low Resource Sentiment Analysis using Generative Adversarial Networks. 10.48550/arXiv.1902.06818arXiv:1902.06818 [cs stat]. · arXiv · doi:10.48550/arxiv.1902.06818
- 10.1109/TKDE.2008.239 · DOI · Paper page
- 10.1016/j.eswa.2016.12.035 · DOI · Paper page
- 10.1109/TIT.1968.1054155 · DOI · Paper page
- 10.3844/jcssp.2020.1546.1557 · DOI · Paper page
- 10.1109/TKDE.2008.239 · DOI · Paper page
- 10.1002/sam.10061_eprint · doi:10.1002/sam.10061_eprint
- Neil Houlsby Andrei Giurgiu Stanislaw Jastrzebski Bruna Morrone Quentin de Laroussilhe Andrea Gesmundo Mona Attariyan and Sylvain Gelly. 2019. Parameter-Efficient Transfer Learning for NLP. 10.48550/arXiv.1902.00751arXiv:1902.00751 [cs stat]. · DOI · Paper page
- 10.1016/j.aei.2023.102210 · DOI · Paper page
- Shengguo Hu, Yanfeng Liang, Lintao Ma, and Ying He. 2009. MSMOTE: Improving classification performance when training data is imbalanced. In Proceedings of the 2009 Second International Workshop on Computer Science and Engineering, Vol. 2. IEEE, 13–17. 10.1109/WCSE.2009.756 · DOI · Paper page
- Mai Ibrahim, Marwan Torki, and Nagwa El-Makky. 2018. Imbalanced toxic comments classification using data augmentation and deep learning. In Proceedings of the 2018 17th IEEE International Conference on Machine Learning and Applications (ICMLA’18). 875–878. 10.1109/ICMLA.2018.00141 · DOI
- Md Saroar Jahan and Mourad Oussalah. 2021. A systematic review of Hate Speech automatic detection using Natural Language Processing. arXiv:2106.00742 [cs] (May2021). http://arxiv.org/abs/2106.00742arXiv: 2106.00742. · arXiv
- M. V. Joshi, V. Kumar, and R. C. Agarwal. 2001. Evaluating boosting algorithms to classify rare classes: Comparison and improvements. In Proceedings of the 2001 IEEE International Conference on Data Mining. 257–264. 10.1109/ICDM.2001.989527 · DOI · Paper page
- Armand Joulin Edouard Grave Piotr Bojanowski and Tomas Mikolov. 2016. Bag of Tricks for Efficient Text Classification. 10.48550/arXiv.1607.01759arXiv:1607.01759 [cs]. · DOI · Paper page
- 10.7494/csci.2019.20.1.3023 · DOI
- 10.18653/v1/2020.findings-emnlp.269 · DOI
- Mihir Kale and Abhinav Rastogi. 2020. Text-to-text pre-training for data-to-text tasks. In Proceedings of the 13th International Conference on Natural Language Generation, Brian Davis, Yvette Graham, John Kelleher, and Yaji Sripada (Eds.). Association for Computational Linguistics, Dublin, Ireland, 97–102. https://aclanthology.org/2020.inlg-1.14 · DOI · Paper page
- 10.1016/j.eswa.2023.122778 · DOI · Paper page
- Hazel Kim Daecheol Woo Seong Joon Oh Jeong-Won Cha and Yo-Sub Han. 2021. ALP: Data Augmentation using Lexicalized PCFGs for Few-Shot Text Classification. 10.48550/arXiv.2112.11916arXiv:2112.11916 [cs]. · arXiv · doi:10.48550/arxiv.2112.11916
- Jeonghoon Kim Jung Hyun Lee Sungdong Kim Joonsuk Park Kang Min Yoo Se Jung Kwon and Dongsoo Lee. 2023. Memory-Efficient Fine-Tuning of Compressed Large Language Models via sub-4-bit Integer Quantization. 10.48550/arXiv.2305.14152arXiv:2305.14152 [cs]. · DOI
- 10.18653/v1/2023.findings-emnlp.731 · DOI
- Ian D. Kivlichan Zi Lin Jeremiah Liu and Lucy Vasserman. 2021. Measuring and Improving Model-Moderator Collaboration using Uncertainty Estimation. 10.48550/arXiv.2107.04212arXiv:2107.04212 [cs]. · arXiv · doi:10.48550/arxiv.2107.04212
- Michał Koziarski. 2021. CSMOUTE: Combined synthetic oversampling and undersampling technique for imbalanced data classification. In Proceedings of the 2021 International Joint Conference on Neural Networks (IJCNN’21). 1–8. 10.1109/IJCNN52387.2021.9533415ISSN: 2161-4407. · doi:10.1109/ijcnn52387.2021.9533415issn
- Miroslav Kubat and Stan Matwin. 1997. Addressing the curse of imbalanced training sets: One-sided selection. In ICML, Vol. 97. Citeseer, 179. https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=ebc3914181d76c817f0e35f788b7c4c0f80abb07Issue: 1.
- Varun Kumar Ashutosh Choudhary and Eunah Cho. 2021. Data Augmentation using Pre-trained Transformer Models. 10.48550/arXiv.2003.02245arXiv:2003.02245 [cs]. · DOI
- Zhenzhong Lan Mingda Chen Sebastian Goodman Kevin Gimpel Piyush Sharma and Radu Soricut. 2020. ALBERT: A Lite BERT for Self-supervised Learning of Language Representations. 10.48550/arXiv.1909.11942arXiv:1909.11942 [cs]. · DOI · Paper page
- Andrew Lee Xiaoyan Bai Itamar Pres Martin Wattenberg Jonathan K. Kummerfeld and Rada Mihalcea. 2024. A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicity. http://arxiv.org/abs/2401.01967arXiv:2401.01967 [cs].
- Guillaume Lemaître, Fernando Nogueira, and Christos K. Aridas. 2017. Imbalanced-learn: A Python toolbox to tackle the curse of imbalanced datasets in machine learning. Journal of Machine Learning Research 18, 17 (2017), 1–5. http://jmlr.org/papers/v18/16-365.html
- Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out. Association for Computational Linguistics, Barcelona, Spain, 74–81. https://aclanthology.org/W04-1013
- Fang Liu Yang Liu Lin Shi Houkun Huang Ruifeng Wang Zhen Yang and Li Zhang. 2024. Exploring and Evaluating Hallucinations in LLM-Powered Code Generation. http://arxiv.org/abs/2404.00971arXiv:2404.00971 [cs].
- Jiacheng Liu Andrew Cohen Ramakanth Pasunuru Yejin Choi Hannaneh Hajishirzi and Asli Celikyilmaz. 2023. Don’t Throw Away Your Value Model! Making PPO Even Better via Value-Guided Monte-Carlo Tree Search Decoding. 10.48550/arXiv.2309.15028arXiv:2309.15028 [cs]. · DOI
- Pei Liu, Xuemin Wang, Chao Xiang, and Weiye Meng. 2020. A survey of text data augmentation. In Proceedings of the 2020 International Conference on Computer Communication and Network Security (CCNS’20). IEEE, 191–195. https://ieeexplore.ieee.org/abstract/document/9240734/
- Ruibo Liu, Guangxuan Xu, Chenyan Jia, Weicheng Ma, Lili Wang, and Soroush Vosoughi. 2020. Data boost: Text data augmentation through reinforcement learning guided conditional generation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP’20). 9031–9041. 10.18653/v1/2020.emnlp-main.726arXiv:2012.02952 [cs]. · doi:10.18653/v1/2020.emnlp-main.726arxiv:2012.02952
- Yinhan Liu Myle Ott Naman Goyal Jingfei Du Mandar Joshi Danqi Chen Omer Levy Mike Lewis Luke Zettlemoyer and Veselin Stoyanov. 2019. RoBERTa: A Robustly Optimized BERT Pretraining Approach. 10.48550/arXiv.1907.11692arXiv:1907.11692 [cs]. · DOI · Paper page
- Rushi Longadge and Snehalata Dongre. 2013. Class Imbalance Problem in Data Mining Review. http://arxiv.org/abs/1305.1707arXiv:1305.1707 [cs].
- 10.1016/j.ins.2013.07.007 · DOI · Paper page
- Kosisochukwu Madukwe, Xiaoying Gao, and Bing Xue. 2020. In data we trust: A critical analysis of hate speech detection datasets. In Proceedings of the Fourth Workshop on Online Abuse and Harms. Association for Computational Linguistics, Online, 150–161. 10.18653/v1/2020.alw-1.18 · DOI
- Rabeeh Karimi Mahabadi James Henderson and Sebastian Ruder. 2021. Compacter: Efficient Low-Rank Hypercomplex Adapter Layers. 10.48550/arXiv.2106.04647arXiv:2106.04647 [cs]. · arXiv · doi:10.48550/arxiv.2106.04647 · Paper page
- Raghvendra Mall, Mridul Nagpal, Joni Salminen, Hind Almerekhi, Soon-Gyo Jung, and Bernard J. Jansen. 2020. Four types of toxic people: Characterizing online users’ toxicity over time. In Proceedings of the 11th Nordic Conference on Human-Computer Interaction: Shaping Experiences, Shaping Society. ACM, Tallinn Estonia, 1–11. 10.1145/3419249.3420142 · DOI
- 10.3390/app10238631 · DOI
- Deepshi Mediratta and Nikhil Oswal. 2019. Detect Toxic Content to Improve Online Conversations. http://arxiv.org/abs/1911.01217arXiv:1911.01217 [cs].
- Yu Meng Jiaxin Huang Yu Zhang and Jiawei Han. 2022. Generating Training Data with Language Models: Towards Zero-Shot Language Understanding. 10.48550/arXiv.2202.04538arXiv:2202.04538 [cs]. · arXiv · doi:10.48550/arxiv.2202.04538 · Paper page
- Ibomoiye Domor Mienye and Yanxia Sun. 2022. A survey of ensemble learning: Concepts, algorithms, applications, and prospects. IEEE Access 10 (2022), 99129–99149. https://ieeexplore.ieee.org/abstract/document/9893798/Publisher: IEEE. · DOI · Paper page
- Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S. Corrado, and Jeff Dean. 2013. Distributed representations of words and phrases and their compositionality. In Advances in Neural Information Processing Systems, Vol. 26. Curran Associates, Inc.https://proceedings.neurips.cc/paper_files/paper/2013/hash/9aa42b31882ec039965f3c4923ce901b-Abstract.html
- Hamza Haruna Mohammed, Erdogan Dogdu, Abdül Kadir Görür, and Roya Choupani. 2020. Multi-label classification of text documents using deep learning. In Proceedings of the 2020 IEEE International Conference on Big Data (Big Data’20). IEEE, 4681–4689. 10.1109/BigData50022.2020.9378266 · DOI
- M. Molinara, M. T. Ricamato, and F. Tortorella. 2007. Facing imbalanced classes through aggregation of classifiers. In Proceedings of the 14th International Conference on Image Analysis and Processing (ICIAP’07). 43–48. 10.1109/ICIAP.2007.4362755 · DOI
- 10.1016/j.neucom.2015.01.068 · DOI
- Dat Quoc Nguyen Thanh Vu and Anh Tuan Nguyen. 2020. BERTweet: A Pre-trained Language Model for English Tweets. 10.48550/arXiv.2005.10200arXiv:2005.10200 [cs]. · DOI
- Tong Niu and Mohit Bansal. 2019. Automatically Learning Data Augmentation Policies for Dialogue Tasks. 10.48550/arXiv.1909.12868arXiv:1909.12868 [cs]. · DOI
- 10.1016/j.eswa.2023.120908 · DOI
- Keiron O’Shea and Ryan Nash. 2015. An Introduction to Convolutional Neural Networks. 10.48550/arXiv.1511.08458arXiv:1511.08458 [cs]. · arXiv · doi:10.48550/arxiv.1511.08458 · Paper page
- 10.1016/j.jjimei.2021.100025 · DOI
- Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP’14), Alessandro Moschitti, Bo Pang, and Walter Daelemans (Eds.). Association for Computational Linguistics, Doha, Qatar, 1532–1543. 10.3115/v1/D14-1162 · DOI · Paper page
- Joseph Prusa, Taghi M. Khoshgoftaar, David J. Dittman, and Amri Napolitano. 2015. Using random undersampling to alleviate class imbalance on tweet sentiment data. In Proceedings of the 2015 IEEE International Conference on Information Reuse and Integration. 197–202. 10.1109/IRI.2015.39 · DOI
- Xiangyu Qi Yi Zeng Tinghao Xie Pin-Yu Chen Ruoxi Jia Prateek Mittal and Peter Henderson. 2023. Fine-tuning Aligned Language Models Compromises Safety Even When Users Do Not Intend To!http://arxiv.org/abs/2310.03693arXiv:2310.03693 [cs].
- J. Quijas. 2017. Analysing the effects of data augmentation and free parameters for text classification with recurrent convolutional neural networks. https://www.semanticscholar.org/paper/Analysing-the-effects-of-data-augmentation-and-free-Quijas/7dd727962dfe8a303a191aed177a3d6c89b6ab5b
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI Blog 1, 8 (2019), 9. https://insightcivic.s3.us-east-1.amazonaws.com/language-models.pdf
- 10.1109/TIP.2018.2861573 · DOI · Paper page
- Rahul, Harsh Kajla, Jatin Hooda, and Gajanand Saini. 2020. Classification of online toxic comments using machine learning algorithms. In Proceedings of the 2020 4th International Conference on Intelligent Computing and Control Systems (ICICCS’20). IEEE, 1119–1123. 10.1109/ICICCS48265.2020.9120939 · DOI
- Satyendra Singh Rawat and Amit Kumar Mishra. 2022. Review of Methods for Handling Class-Imbalanced in Classification Problems. 10.48550/arXiv.2211.05456arXiv:2211.05456 [cs]. · arXiv · doi:10.48550/arxiv.2211.05456
- 10.1007/978-981-15-1216-2_4 · DOI
- Georgios Rizos, Konstantin Hemker, and Björn Schuller. 2019. Augment to prevent: Short-text data augmentation in deep learning for hate-speech classification. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management (CIKM’19). ACM, New York, 991–1000. 10.1145/3357384.3358040 · DOI
- 10.1145/3032963 · DOI
- 10.1109/ACCESS.2021.3083638 · DOI · Paper page
- Hadeel Saadany and Constantin Orasan. 2021. BLEU METEOR BERTScore: Evaluation of Metrics Performance in Assessing Critical Translation Errors in Sentiment-oriented Text. 10.26615/978-954-452-071-7_006 · DOI
- 10.1063/1.5082126 · doi:10.1063/1.5082126
- 10.1109/TSMCA.2009.2029559 · DOI · Paper page
- Sima Sharifirad, Borna Jafarpour, and Stan Matwin. 2018. Boosting text classification performance on sexist tweets by text augmentation and text generation using a combination of knowledge graphs. In Proceedings of the 2nd Workshop on Abusive Language Online (ALW2), Darja Fišer, Ruihong Huang, Vinodkumar Prabhakaran, Rob Voigt, Zeerak Waseem, and Jacqueline Wernimont (Eds.). Association for Computational Linguistics, Brussels, Belgium, 107–114. 10.18653/v1/W18-5114 · DOI
- 10.23883/IJRTER.2017.3168.0UWXM · DOI · Paper page
- 10.1186/s40537-021-00492-0 · DOI · Paper page
- 10.1111/coin.12555_eprint · doi:10.1111/coin.12555_eprint
- 10.1007/978-3-540-85836-2_27 · DOI · Paper page
- 10.1016/j.patcog.2007.04.009 · DOI · Paper page
- 10.1016/j.patcog.2014.11.014 · DOI · Paper page
- 10.1002/eng2.12298 · DOI
- 10.1016/j.patcog.2012.03.014 · DOI · Paper page
- 10.1016/j.mlwa.2022.100375 · DOI
- I. Tomek. 1976. Two modifications of CNN. In IEEE Transactions on Systems Man and Cybernetics SMC-6 11 (1976) 769–772. 10.1109/TSMC.1976.4309452 · DOI · Paper page
- Jason Van Hulse, Taghi M. Khoshgoftaar, and Amri Napolitano. 2009. An empirical comparison of repetitive undersampling techniques. In Proceedings of the 2009 IEEE International Conference on Information Reuse & Integration. 29–34. 10.1109/IRI.2009.5211614 · DOI
- 10.1371/journal.pone.0243300 · DOI · Paper page
- 10.1109/TKDE.2009.187 · DOI · Paper page
- Jason Wei Maarten Bosma Vincent Y. Zhao Kelvin Guu Adams Wei Yu Brian Lester Nan Du Andrew M. Dai and Quoc V. Le. 2022. Finetuned language models are zero-shot learners. (2022). https://arxiv.org/abs/2109.01652 · arXiv
- Martin Weyssow Xin Zhou Kisub Kim David Lo and Houari Sahraoui. 2023. Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models. http://arxiv.org/abs/2308.10462arXiv:2308.10462 [cs].
- Dennis L. Wilson. 1972. Asymptotic properties of nearest neighbor rules using edited data. IEEE Transactions on Systems, Man, and Cybernetics SMC-2, 3 (July1972), 408–421. . · DOI · Paper page
- Sam Witteveen and Martin Andrews. 2019. Paraphrasing with large language models. In Proceedings of the 3rd Workshop on Neural Generation and Translation. 215–220. 10.18653/v1/D19-5623arXiv:1911.09661 [cs]. · DOI
- Tomer Wullach Amir Adler and Einat Minkov. 2020. Towards Hate Speech Detection at Large via Deep Generative Modeling. http://arxiv.org/abs/2005.06370arXiv:2005.06370 [cs].
- 10.18653/v1/2021.findings-emnlp.402 · DOI
- Hanzi Xu Muhao Chen Lifu Huang Slobodan Vucetic and Wenpeng Yin. 2024. X-Shot: A Unified System to Handle Frequent Few-shot and Zero-shot Learning Simultaneously in Classification. http://arxiv.org/abs/2403.03863arXiv:2403.03863 [cs].
- Da Yu Saurabh Naik Arturs Backurs Sivakanth Gopi Huseyin A. Inan Gautam Kamath Janardhan Kulkarni Yin Tat Lee Andre Manoel Lukas Wutschitz Sergey Yekhanin and Huishuai Zhang. 2022. Differentially Private Fine-tuning of Language Models. http://arxiv.org/abs/2110.06500arXiv:2110.06500 [cs stat].
- 10.1109/TNNLS.2018.2832648 · DOI · Paper page
- Renrui Zhang Jiaming Han Chris Liu Peng Gao Aojun Zhou Xiangfei Hu Shilin Yan Pan Lu Hongsheng Li and Yu Qiao. 2023. LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attention. http://arxiv.org/abs/2303.16199arXiv:2303.16199 [cs].
- Tianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger, and Yoav Artzi. 2019. BERTscore: Evaluating text generation with BERTt. arXiv preprint arXiv:1904.09675 (2019). https://arxiv.org/abs/1904.09675 · arXiv
- Yaqi Zhang, Viktor Hangya, and Alexander Fraser. 2024. A study of the class imbalance problem in abusive language detection. In Proceedings of the 8th Workshop on Online Abuse and Harms (WOAH’24), Yi-Ling Chung, Zeerak Talat, Debora Nozza, Flor Miriam Plaza-del Arco, Paul Röttger, Aida Mostafazadeh Davani, and Agostina Calabrese (Eds.). Association for Computational Linguistics, Mexico City, Mexico, 38–51. 10.18653/v1/2024.woah-1.4 · doi:10.18653/v1/2024.woah-1.4
- Zhixue Zhao, Ziqi Zhang, and Frank Hopfgartner. 2021. A comparative study of using pre-trained language models for toxic comment classification. In Companion Proceedings of the Web Conference 2021 (WWW’21). Association for Computing Machinery, New York, NY, USA, 500–507. 10.1145/3442442.3452313 · DOI
- Jinhua Zhu Fei Gao Lijun Wu Yingce Xia Tao Qin Wengang Zhou Xueqi Cheng and Tie-Yan Liu. 2019. Soft Contextual Data Augmentation for Neural Machine Translation. http://arxiv.org/abs/1905.10523arXiv:1905.10523 [cs].
- Gözde Gül Şahin and Mark Steedman. 2018. Data augmentation via dependency tree morphing for low-resource languages. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Ellen Riloff, David Chiang, Julia Hockenmaier, and Jun’ichi Tsujii (Eds.). Association for Computational Linguistics, Brussels, Belgium, 5004–5009. 10.18653/v1/D18-1545 · DOI
- Gözde Gül Şahin and Mark Steedman. 2019. Data Augmentation via Dependency Tree Morphing for Low-Resource Languages. 10.48550/arXiv.1903.09460arXiv:1903.09460 [cs]. · DOI
Cited by
Content moderation by LLM: from accuracy to legitimacy
Huang, T. (2025) · Artificial Intelligence Review · doi:10.1007/s10462-025-11328-1 · Cited by 24
“Studies revealed that optimized LLMs can generate synthetic datasets with high quality ([ nr_Bodaghietal2024 ]).”
Metadata
- Authors
- Bodaghi, A., Fung, B. C. M., & A. Schmitt, K.
- Affiliations
- Concordia University (US)
- McGill University (CA)
- Venue
- ACM Transactions on the Web
- Published
- 2025-10-16
- Volume
- 19
- Issue
- 4
- Pages
- 1-41
- ISSN
- 1559-1131 (ISSN-L)
- 1559-114X
- OpenAlex
- W4403850457
- Semantic Scholar
- b662c5f269ab64f164efcd6a4f6f9aae693f16ff
- Cited by
- 5
- References
- 25
- Citations by year
- 2026: 2 · 2025: 3
- FWCI
- 0.74
- Type
- journal article
- Language
- en
- Open access
- closed
- Locations
- ACM Transactions on the Web (publishedVersion)
- Funders
- NSERC Discovery (RGPIN-2024-04087)
- Canada Research Chairs Program (CRC-2019-00041)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Hate Speech and Cyberbullying Detection
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Sentiment Analysis and Opinion Mining
- Keywords
- toxicity detection, toxic language, data augmentation, class imbalance, reinforcement learning from human feedback, proximal policy optimization, paraphrase, instruction-tuned large language models, cost-sensitive learning, online discourse
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.