CoChat

AugmenToxic: Leveraging Reinforcement Learning to Optimize LLM Instruction Fine-Tuning for Data Augmentation to Enhance Toxicity Detection

Bodaghi, Arezo, Fung, Benjamin C. M., A. Schmitt, Ketra · 2025 · ACM Transactions on the Web

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.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3700791

Cites

25 of 25 references verified0 citation errors · 0 not checkable

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.

A few free checks a day · papers already verified open instantly · results are public

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?

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

Show all 25 references

Research works printed but not linked: 140

  1. 10.1038/s41598-022-22523-3 · DOI
  2. 10.1109/TAI.2021.3114390 · DOI
  3. 10.1007/s13278-024-01198-w · DOI
  4. 10.1016/j.cma.2022.114570 · DOI · Paper page
  5. 10.1007/s00521-022-07854-6 · DOI · Paper page
  6. 10.1007/s41870-022-01096-4 · DOI
  7. 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
  8. 10.2478/ausi-2020-0012 · DOI
  9. 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
  10. 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
  11. 10.1016/j.procs.2019.09.167 · DOI
  12. 10.1016/j.knosys.2023.111081 · DOI · Paper page
  13. 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
  14. 10.1145/3544558 · DOI · Paper page
  15. 10.1016/j.osnem.2021.100153 · DOI
  16. 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
  17. 10.1162/tacl_a_00051 · DOI · Paper page
  18. 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
  19. 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
  20. 10.1613/jair.953 · DOI · Paper page
  21. 10.1145/1007730.1007733 · DOI · Paper page
  22. 10.1145/3448014 · DOI
  23. 10.3390/e23050566 · DOI
  24. 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
  25. 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].
  26. Claude Coulombe. 2018. Text Data Augmentation Made Simple By Leveraging NLP Cloud APIs. 10.48550/arXiv.1812.04718arXiv:1812.04718 [cs]. · DOI
  27. 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].
  28. 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
  29. 10.3390/electronics10070779 · DOI · Paper page
  30. 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
  31. 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
  32. 10.1007/978-3-030-83527-9_12 · DOI
  33. 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.
  34. 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.
  35. Jerzy Filar and Koos Vrieze. 2012. Competitive Markov Decision Processes. Springer Science & Business Media. Google-Books-ID: uXDjBwAAQBAJ.
  36. 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
  37. 10.1109/TSMCC.2011.2161285 · DOI · Paper page
  38. Vaishali Ganganwar. 2012. An overview of classification algorithms for imbalanced datasets. International Journal of Emerging Technology and Advanced Engineering 2 (Jan.2012), 42–47.
  39. 10.1007/s42235-023-00437-8 · DOI · Paper page
  40. 10.1134/S1995080223010134 · DOI
  41. 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
  42. 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
  43. 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].
  44. 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
  45. 10.1109/TKDE.2008.239 · DOI · Paper page
  46. 10.1016/j.eswa.2016.12.035 · DOI · Paper page
  47. 10.1109/TIT.1968.1054155 · DOI · Paper page
  48. 10.3844/jcssp.2020.1546.1557 · DOI · Paper page
  49. 10.1109/TKDE.2008.239 · DOI · Paper page
  50. 10.1002/sam.10061_eprint · doi:10.1002/sam.10061_eprint
  51. 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
  52. 10.1016/j.aei.2023.102210 · DOI · Paper page
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 10.7494/csci.2019.20.1.3023 · DOI
  59. 10.18653/v1/2020.findings-emnlp.269 · DOI
  60. 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
  61. 10.1016/j.eswa.2023.122778 · DOI · Paper page
  62. 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
  63. 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
  64. 10.18653/v1/2023.findings-emnlp.731 · DOI
  65. 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
  66. 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
  67. 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.
  68. Varun Kumar Ashutosh Choudhary and Eunah Cho. 2021. Data Augmentation using Pre-trained Transformer Models. 10.48550/arXiv.2003.02245arXiv:2003.02245 [cs]. · DOI
  69. 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
  70. 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].
  71. 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
  72. 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
  73. 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].
  74. 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
  75. 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/
  76. 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
  77. 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
  78. Rushi Longadge and Snehalata Dongre. 2013. Class Imbalance Problem in Data Mining Review. http://arxiv.org/abs/1305.1707arXiv:1305.1707 [cs].
  79. 10.1016/j.ins.2013.07.007 · DOI · Paper page
  80. 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
  81. 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
  82. 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
  83. 10.3390/app10238631 · DOI
  84. Deepshi Mediratta and Nikhil Oswal. 2019. Detect Toxic Content to Improve Online Conversations. http://arxiv.org/abs/1911.01217arXiv:1911.01217 [cs].
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 10.1016/j.neucom.2015.01.068 · DOI
  91. 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
  92. Tong Niu and Mohit Bansal. 2019. Automatically Learning Data Augmentation Policies for Dialogue Tasks. 10.48550/arXiv.1909.12868arXiv:1909.12868 [cs]. · DOI
  93. 10.1016/j.eswa.2023.120908 · DOI
  94. 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
  95. 10.1016/j.jjimei.2021.100025 · DOI
  96. 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
  97. 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
  98. 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].
  99. 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
  100. 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
  101. 10.1109/TIP.2018.2861573 · DOI · Paper page
  102. 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
  103. 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
  104. 10.1007/978-981-15-1216-2_4 · DOI
  105. 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
  106. 10.1145/3032963 · DOI
  107. 10.1109/ACCESS.2021.3083638 · DOI · Paper page
  108. 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
  109. 10.1063/1.5082126 · doi:10.1063/1.5082126
  110. 10.1109/TSMCA.2009.2029559 · DOI · Paper page
  111. 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
  112. 10.23883/IJRTER.2017.3168.0UWXM · DOI · Paper page
  113. 10.1186/s40537-021-00492-0 · DOI · Paper page
  114. 10.1111/coin.12555_eprint · doi:10.1111/coin.12555_eprint
  115. 10.1007/978-3-540-85836-2_27 · DOI · Paper page
  116. 10.1016/j.patcog.2007.04.009 · DOI · Paper page
  117. 10.1016/j.patcog.2014.11.014 · DOI · Paper page
  118. 10.1002/eng2.12298 · DOI
  119. 10.1016/j.patcog.2012.03.014 · DOI · Paper page
  120. 10.1016/j.mlwa.2022.100375 · DOI
  121. 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
  122. 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
  123. 10.1371/journal.pone.0243300 · DOI · Paper page
  124. 10.1109/TKDE.2009.187 · DOI · Paper page
  125. 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
  126. 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].
  127. 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
  128. 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
  129. 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].
  130. 10.18653/v1/2021.findings-emnlp.402 · DOI
  131. 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].
  132. 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].
  133. 10.1109/TNNLS.2018.2832648 · DOI · Paper page
  134. 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].
  135. 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
  136. 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
  137. 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
  138. 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].
  139. 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
  140. 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

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
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.