paper-with-me

홈 › Papers

Efficient Toxic Content Detection by Bootstrapping and Distilling Large Language Models

2023-12-13 · Jiang Zhang, Qiong Wu, Yiming Xu, Cheng Cao, Zheng Du, Konstantinos Psounis

Toxic content detection is crucial for online services to remove inappropriate content that violates community standards. To automate the detection process, prior works have proposed varieties of machine learning (ML) approaches to train Language Models (LMs) for toxic content detection. However, both their accuracy and transferability across datasets are limited. Recently, Large Language Models (LLMs) have shown promise in toxic content detection due to their superior zero-shot and few-shot in-context learning ability as well as broad transferability on ML tasks. However, efficiently designing prompts for LLMs remains challenging. Moreover, the high run-time cost of LLMs may hinder their deployments in production. To address these challenges, in this work, we propose BD-LLM, a novel and efficient approach to Bootstrapping and Distilling LLMs for toxic content detection. Specifically, we design a novel prompting method named Decision-Tree-of-Thought (DToT) to bootstrap LLMs' detection performance and extract high-quality rationales. DToT can automatically select more fine-grained context to re-prompt LLMs when their responses lack confidence. Additionally, we use the rationales extracted via DToT to fine-tune student LMs. Our experimental results on various datasets demonstrate that DToT can improve the accuracy of LLMs by up to 4.6%. Furthermore, student LMs fine-tuned with rationales extracted via DToT outperform baselines on all datasets with up to 16.9\% accuracy improvement, while being more than 60x smaller than conventional LLMs. Finally, we observe that student LMs fine-tuned with rationales exhibit better cross-dataset transferability.

📄 PDF Abstract BibTeX arXiv:2312.08303

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context Learning

Similar Papers 제목 키워드 기반

Self and Cross-Model Distillation for LLMs: Effective Methods for Refusal Pattern Alignment

2024-06-17 · Jie Li, Yi Liu, Chongyang Liu, Xiaoning Ren 외

Large Language Models (LLMs) like OpenAI's GPT series, Anthropic's Claude, and Meta's LLaMa have shown remarkable capabilities in text generation. However, their susceptibility to toxic prompts presents significant secur…

Text Generation

MemeGuard: An LLM and VLM-based Framework for Advancing Content Moderation via Meme Intervention

2024-06-08 · Prince Jha, Raghav Jain, Konika Mandal, Aman Chadha 외

In the digital world, memes present a unique challenge for content moderation due to their potential to spread harmful content. Although detection methods have improved, proactive solutions such as intervention are still…

Watch Your Language: Investigating Content Moderation with Large Language Models

2023-09-25 · Deepak Kumar, Yousef AbuHashem, Zakir Durumeric

Large language models (LLMs) have exploded in popularity due to their ability to perform a wide array of natural language tasks. Text-based content moderation is one LLM use case that has received recent enthusiasm, howe…

Exploring Multimodal Challenges in Toxic Chinese Detection: Taxonomy, Benchmark, and Findings

2025-05-30 · Shujian Yang, Shiyao Cui, Chuanrui Hu, Haicheng Wang 외

Detecting toxic content using language models is important but challenging. While large language models (LLMs) have demonstrated strong performance in understanding Chinese, recent studies show that simple character subs…

In-Context Learning

ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversation

2023-10-26 · Zi Lin, Zihan Wang, Yongqi Tong, Yangkun Wang 외

Despite remarkable advances that large language models have achieved in chatbots, maintaining a non-toxic user-AI interactive environment has become increasingly critical nowadays. However, previous efforts in toxicity d…

Chatbot