Fine-Tuning Llama 2 Large Language Models for Detecting Online Sexual Predatory Chats and Abusive Texts
Not on the map. Why?
Abstract (arXiv)
Detecting online sexual predatory behaviours and abusive language on social media platforms has become a critical area of research due to the growing concerns about online safety, especially for vulnerable populations such as children and adolescents. Researchers have been exploring various techniques and approaches to develop effective detection systems that can identify and mitigate these risks. Recent development of large language models (LLMs) has opened a new opportunity to address this problem more effectively. This paper proposes an approach to detection of online sexual predatory chats and abusive language using the open-source pretrained Llama 2 7B-parameter model, recently released by Meta GenAI. We fine-tune the LLM using datasets with different sizes, imbalance degrees, and languages (i.e., English, Roman Urdu and Urdu). Based on the power of LLMs, our approach is generic and automated without a manual search for a synergy between feature extraction and classifier design steps like conventional methods in this domain. Experimental results show a strong performance of the proposed approach, which performs proficiently and consistently across three distinct datasets with five sets of experiments. This study's outcomes indicate that the proposed method can be implemented in real-world applications (even with non-English languages) for flagging sexual predators, offensive or toxic content, hate speech, and discriminatory language in online discussions and comments to maintain respectful internet or digital communities. Furthermore, it can be employed for solving text classification problems with other potential applications such as sentiment analysis, spam and phishing detection, sorting legal documents, fake news detection, language identification, user intent recognition, text-based product categorization, medical record analysis, and resume screening.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 24 of its 48 references that are in the map. First posted on arXiv 28 Aug 2023.
Builds on
24 of 48 references.
References · 24
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
12 more
- 2020GLU Variants Improve Transformercited by 1,804
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,245
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2023LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attentioncited by 781
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 763
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 671
- 2021Compacter: Efficient Low-Rank Hypercomplex Adapter Layerscited by 460
- 2023Scaling Down to Scale Up: A Guide to Parameter-Efficient Fine-Tuningcited by 173
- 2022SparseAdapter: An Easy Approach for Improving the Parameter-Efficiency of Adapterscited by 83
- 2020Large-scale analysis of grooming in modern social networkscited by 2
Built on by
Citing papers per year: 2023: 2; 2024: 5; 2025: 3; 2026: 3.
13 papers.
Sort:
By area:
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directionscited by 28
- 2023From Google Gemini to OpenAI Q* (Q-Star): A Survey of Reshaping the Generative Artificial Intelligence (AI) Research Landscapecited by 18
- 2023User Modeling in the Era of Large Language Models: Current Research and Future Directionscited by 18
- 2024Advancing Content Moderation: Evaluating Large Language Models for Detecting Sensitive Content Across Text, Images, and Videoscited by 10
- 2024DeMod: A Holistic Tool with Explainable Detection and Personalized Modification for Toxicity Censorshipcited by 7
- 2025Web-Browsing LLMs Can Access Social Media Profiles and Infer User Demographicscited by 3
- 2024Gen-AI for User Safety: A Surveycited by 2
- 2025Culture Matters in Toxic Language Detection in Persiancited by 2
- 2026ToxiTwitch: Toward Emote-Aware Hybrid Moderation for Live Streaming Platformscited by 1
- 2024Considerations Influencing Offense-Defense Dynamics From Artificial Intelligencecited by 0
- 2025Remembering Unequally: Global and Disciplinary Bias in LLM Reconstruction of Scholarly Coauthor Listscited by 0
- 2026Hate Speech Detection using Large Language Models with Data Augmentation and Feature Enhancementcited by 0
1 more
- 2026Detection of Illicit Content on Online Marketplaces using Large Language Models5 Mar 2026
- 2026Hate Speech Detection using Large Language Models with Data Augmentation and Feature Enhancement5 Mar 2026
- 2026ToxiTwitch: Toward Emote-Aware Hybrid Moderation for Live Streaming Platforms22 Jan 2026
- 2025Remembering Unequally: Global and Disciplinary Bias in LLM Reconstruction of Scholarly Coauthor Lists1 Nov 2025
- 2025Web-Browsing LLMs Can Access Social Media Profiles and Infer User Demographics16 Jul 2025
- 2025Culture Matters in Toxic Language Detection in Persian3 Jun 2025
- 2024Considerations Influencing Offense-Defense Dynamics From Artificial Intelligence5 Dec 2024
- 2024Advancing Content Moderation: Evaluating Large Language Models for Detecting Sensitive Content Across Text, Images, and Videos26 Nov 2024
- 2024Gen-AI for User Safety: A Survey10 Nov 2024
- 2024DeMod: A Holistic Tool with Explainable Detection and Personalized Modification for Toxicity Censorship4 Nov 2024
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directions14 May 2024
- 2023From Google Gemini to OpenAI Q* (Q-Star): A Survey of Reshaping the Generative Artificial Intelligence (AI) Research Landscape18 Dec 2023
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directionscited by 28
- 2023User Modeling in the Era of Large Language Models: Current Research and Future Directionscited by 18
- 2024Advancing Content Moderation: Evaluating Large Language Models for Detecting Sensitive Content Across Text, Images, and Videoscited by 10
- 2024DeMod: A Holistic Tool with Explainable Detection and Personalized Modification for Toxicity Censorshipcited by 7
- 2025Web-Browsing LLMs Can Access Social Media Profiles and Infer User Demographicscited by 3
- 2024Gen-AI for User Safety: A Surveycited by 2
- 2025Culture Matters in Toxic Language Detection in Persiancited by 2
- 2026ToxiTwitch: Toward Emote-Aware Hybrid Moderation for Live Streaming Platformscited by 1
- 2024Considerations Influencing Offense-Defense Dynamics From Artificial Intelligencecited by 0
- 2025Remembering Unequally: Global and Disciplinary Bias in LLM Reconstruction of Scholarly Coauthor Listscited by 0
- 2026Hate Speech Detection using Large Language Models with Data Augmentation and Feature Enhancementcited by 0
- 2026Detection of Illicit Content on Online Marketplaces using Large Language Modelscited by 0
- 2026Detection of Illicit Content on Online Marketplaces using Large Language Models5 Mar 2026
- 2026Hate Speech Detection using Large Language Models with Data Augmentation and Feature Enhancement5 Mar 2026
- 2026ToxiTwitch: Toward Emote-Aware Hybrid Moderation for Live Streaming Platforms22 Jan 2026
- 2025Remembering Unequally: Global and Disciplinary Bias in LLM Reconstruction of Scholarly Coauthor Lists1 Nov 2025
- 2025Web-Browsing LLMs Can Access Social Media Profiles and Infer User Demographics16 Jul 2025
- 2025Culture Matters in Toxic Language Detection in Persian3 Jun 2025
- 2024Considerations Influencing Offense-Defense Dynamics From Artificial Intelligence5 Dec 2024
- 2024Advancing Content Moderation: Evaluating Large Language Models for Detecting Sensitive Content Across Text, Images, and Videos26 Nov 2024
- 2024Gen-AI for User Safety: A Survey10 Nov 2024
- 2024DeMod: A Holistic Tool with Explainable Detection and Personalized Modification for Toxicity Censorship4 Nov 2024
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directions14 May 2024
- 2023User Modeling in the Era of Large Language Models: Current Research and Future Directions11 Dec 2023