Large language models (LLMs) like ChatGPT and Gemini have significantly advanced natural language processing, enabling various applications such as chatbots and automated content generation. However, these models can be exploited by malicious individuals who craft toxic prompts to elicit harmful or unethical responses. These individuals often employ jailbreaking techniques to bypass safety mechanisms, highlighting the need for robust toxic prompt detection methods. Existing detection techniques, both blackbox and whitebox, face challenges related to the diversity of toxic prompts, scalability, and computational efficiency. In response, we propose ToxicDetector, a lightweight greybox method designed to efficiently detect toxic prompts in LLMs. ToxicDetector leverages LLMs to create toxic concept prompts, uses embedding vectors to form feature vectors, and employs a Multi-Layer Perceptron (MLP) classifier for prompt classification. Our evaluation on various versions of the LLama models, Gemma-2, and multiple datasets demonstrates that ToxicDetector achieves a high accuracy of 96.39\% and a low false positive rate of 2.00\%, outperforming state-of-the-art methods. Additionally, ToxicDetector's processing time of 0.0780 seconds per prompt makes it highly suitable for real-time applications. ToxicDetector achieves high accuracy, efficiency, and scalability, making it a practical method for toxic prompt detection in LLMs.
Do Prompts Guarantee Safety? Mitigating Toxicity from LLM Generations through Subspace Intervention
Department of Computer Science(计算机科学系);School of Computing, National University of Singapore(新加坡国立大学计算机学院);Department of Electronics and Communications Engineering(电子与通信工程系)
ContiGuard: A Framework for Continual Toxicity Detection Against Evolving Evasive Perturbations
School of Computer Science(计算机科学学院);Wuhan University(武汉大学);Zhongguancun Academy(中关村学院);Key Laboratory of Computing Power Network and Information Security, Ministry of Education, Shandong Computer Science Center (National Supercomputer Center in Jinan)(计算能力网络与信息安全重点实验室,教育部,山东计算机科学中心(济南国家超级计算机中心));Qilu University of Technology (Shandong Academy of Sciences)(齐鲁工业大学(山东科学院));Shandong Provincial Key Laboratory of Computing Power Internet and Service Computing(山东省计算能力互联网与服务计算重点实验室);Shandong Fundamental Research Center for Computer Science(山东省计算机科学基础研究中心)
Rethinking Toxicity Evaluation in Large Language Models: A Multi-Label Perspective
School of Computer Science and Engineering, Southeast University(东南大学计算机科学与工程学院);RIKEN Center for Advanced Intelligence Project (AIP)(RIKEN先进人工智能项目中心);School of Computer Science and Technology, Qilu University of Technology(齐鲁大学计算机科学与技术学院);The University of Tokyo(东京大学)
Plug and Play with Prompts: A Prompt Tuning Approach for Controlling Text Generation
University of Toronto(多伦多大学);Vector Institute for Artificial Intelligence(向量人工智能研究院);Stevens Institute of Technology(史蒂文斯理工学院);Dalhousie University(达尔豪斯大学)
Oraichain Labs(Oraichain实验室);VinAI Research(VinAI研究院);Florida International University(佛罗里达国际大学);Hanoi University of Science and Technology(河内科技大学);University of Oregon(俄勒冈大学)
Toxicity in Online Platforms and AI Systems: A Survey of Needs, Challenges, Mitigations, and Future Directions
organization= College of Engineering;Applied Science, University of Colorado Colorado Springs , postcode= 80918 , state= CO , country= USA;organization= Tarleton State University, A Member of The Texas A \& M University System , city= Stephenville , postcode= 76401 , state= TX , country= USA
本文综述在线平台与 AI 系统中的毒性问题,构建多维度毒性分类,梳理英语数据集及检测、缓解研究,并指出未来研究空白。
Beyond Content: A Comprehensive Speech Toxicity Dataset and Detection Framework Incorporating Paralinguistic Cues
The State Key Laboratory of Blockchain and Data Security(区块链与数据安全国家重点实验室);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新区(滨江)区块链与数据安全研究院);School of Cyber Science and Engineering(网络安全科学与工程学院)