mlsanityData to 7 Oct 2026

Efficient Toxic Content Detection by Bootstrapping and Distilling Large Language Models

arXiv 2312.08303 ↗First posted 13 Dec 2023cs.CL cs.AIcited by 21

On the map: Synthetic data and self-improvement for LLMs → Safety of self-evolving systems

Abstract (arXiv)

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.

Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Placed in Safety of self-evolving systems, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 14 of its 26 references that are in the map. First posted on arXiv 13 Dec 2023.

Builds on

14 of 26 references.

References · 14

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  5. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  7. 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
  8. 2019Social Bias Frames: Reasoning about Social and Power Implications of Languagecited by 377
  9. 2022Teaching Small Language Models to Reasoncited by 279
  10. 2020Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detectioncited by 217
  11. 2020HateBERT: Retraining BERT for Abusive Language Detection in Englishcited by 206
  12. 2022PINTO: Faithful Language Reasoning Using Prompt-Generated Rationalescited by 56
2 more
  1. 2022Toxicity Detection with Generative Prompt-based Inferencecited by 35
  2. 2023ZARA: Improving Few-Shot Self-Rationalization for Small Language Modelscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 9; 2026: 5.

21 papers.

Sort:

By area:

  1. 2024Step-On-Feet Tuning: Scaling Self-Alignment of LLMs via Bootstrappingcited by 14
  2. 2024Efficient Detection of Toxic Prompts in Large Language Modelscited by 11
  3. 2024DeMod: A Holistic Tool with Explainable Detection and Personalized Modification for Toxicity Censorshipcited by 6
  4. 2024Towards Efficient and Explainable Hate Speech Detection via Model Distillationcited by 5
  5. 2025Precise Parameter Localization for Textual Generation in Diffusion Modelscited by 5
  6. 2025Unified Game Moderation: Soft-Prompting and LLM-Assisted Label Transfer for Resource-Efficient Toxicity Detectioncited by 5
  7. 2024TorchOpera: A Compound AI System for LLM Safetycited by 4
  8. 2024Leveraging Large Language Models and Topic Modeling for Toxicity Classificationcited by 2
  9. 2025CLT and Edgeworth Expansion for m-out-of-n Bootstrap Estimators of The Studentized Mediancited by 2
  10. 2025Boosting Large Language Models for Mental Manipulation Detection via Data Augmentation and Distillationcited by 2
  11. 2025Algorithmic Fairness in NLP: Persona-Infused LLMs for Human-Centric Hate Speech Detectioncited by 2
  12. 2024Towards Transparency: Exploring LLM Trainings Datasets through Visual Topic Modeling and Semantic Framecited by 1
9 more
  1. 2025A Multi-Task Benchmark for Abusive Language Detection in Low-Resource Settingscited by 1
  2. 2025A Data-Centric Approach for Safe and Secure Large Language Models against Threatening and Toxic Contentcited by 0
  3. 2025Defining, Understanding, and Detecting Online Toxicity: Challenges and Machine Learning Approachescited by 0
  4. 2025Beyond One-Size-Fits-All: Personalized Harmful Content Detection with In-Context Learningcited by 0
  5. 2026Improving Implicit Hate Speech Detection via a Community-Driven Multi-Agent Frameworkcited by 0
  6. 2026Efficient and Adaptable Detection of Malicious LLM Prompts via Bootstrap Aggregationcited by 0
  7. 2026ContiGuard: A Framework for Continual Toxicity Detection Against Evolving Evasive Perturbationscited by 0
  8. 2026Toxicity in Twitch Chats: An LLM-Based Analysis Across Gaming Communitiescited by 0
  9. 2026Though Language Models Err While They Strive: Conformal Prediction for Self-Correcting Scientific Generationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Rethinking Toxicity Evaluation in Large Language Models: A Multi-Label Perspective
  2. 2025SMARTER: A Data-efficient Framework to Improve Toxicity Detection with Explanation via Self-augmenting Large Language Models
  3. 2025ToxiFrench: Benchmarking and Enhancing Language Models via CoT Fine-Tuning for French Toxicity Detection
  4. 2025Something Just Like TRuST : Toxicity Recognition of Span and Target
  5. 2024Large Language Models can be Strong Self-Detoxifiers
  6. 2025Are LLMs Enough for Hyperpartisan, Fake, Polarized and Harmful Content Detection? Evaluating In-Context Learning vs. Fine-Tuning
  7. 2025<think> So let's replace this phrase with insult... </think> Lessons learned from generation of toxic texts with LLMs
  8. 2025Evaluating Large Language Models for Detecting Antisemitism