<think> So let's replace this phrase with insult... </think> Lessons learned from generation of toxic texts with LLMs

Sergey Pletenev, Daniil Moskovskiy, Alexander PanchenkoarXiv 2025

TL;DR

While Large Language Models (LLMs) are widely celebrated for synthetic data generation, this paper reveals a major bottleneck in sensitive domains: text detoxification. Models trained on LLM-generated toxic data perform up to 30% worse than those trained on human data due to a severe "lexical diversity gap," where LLMs rely on a narrow, highly repetitive vocabulary of insults rather than the nuanced variety of human toxicity.

What Problem Does This Paper Address?

Text detoxification—the task of rewriting toxic text into a neutral form while preserving its original meaning—is crucial for content moderation and safe AI deployment. Training these systems requires parallel datasets containing pairs of toxic and neutral sentences.

While gathering neutral text is straightforward, collecting diverse, real-world toxic language from humans is challenging, costly, and ethically fraught. Using LLMs to synthetically generate the toxic halves of these pairs seems like an ideal solution. This paper investigates a fundamental question: Can current LLMs genuinely replace human annotators to create high-quality, diverse toxic text for training detoxification models?

Methods

The authors explore the inverse of standard detoxification: toxification. They take neutral sentences and use LLMs to generate their toxic counterparts.

To achieve this, they employ several key techniques:

  • Activation-Patched LLMs: Standard LLMs have safety guardrails that prevent them from generating harmful content. The authors use activation-patched versions of Llama 3 (8B, 72B), Qwen3 (8B, 32B), and Cogito v1 (8B) to bypass these refusals safely for research purposes.
  • Advanced Sampling: They use min_p = 0.1 sampling to encourage more creative and varied text generation.
  • Downstream Training: They fine-tune a standard bart-large model on the resulting synthetic datasets.
  • Evaluation: The downstream models are evaluated on a human-annotated test set using automated metrics—Style Transfer Accuracy (STA), Semantic Similarity (SIM), Fluency (FL), and a Joint metric (J)—alongside a side-by-side LLM-as-a-judge evaluation using GPT-4.

Datasets

The study utilizes two primary source datasets to generate synthetic toxic text:

  1. ParaDetox: The neutral portion of this dataset is used as a clean, non-toxic source.
  2. SST-2 (Stanford Sentiment Treebank): The authors extract negative reviews from this dataset to evaluate a more complex scenario—layering profanity and toxicity onto text that already expresses negative sentiment.

Key Insights and Ideas

  • The Lexical Diversity Gap: LLMs are surprisingly uncreative when it comes to swearing. While human-generated toxicity features a balanced distribution of various insults, LLMs suffer from a severe stylistic bottleneck, overusing a tiny handful of high-frequency slurs.
  • Highly Skewed Distributions: For example, Qwen3-32B used the term "f***ing" over 15,000 times in the generated data—more than double the frequency of the most common toxic term found in human datasets (see Table 3). This repetition causes downstream models to overfit to specific words rather than learning the broader concept of toxicity.
  • Sentiment Distorts Meaning: Attempting to inject toxicity into already-negative text (SST-2) caused a sharp drop-off in semantic similarity. LLMs frequently altered the core meaning of the sentence when trying to make a negative statement toxic.
Table 3

Key Results

  • The baseline model trained on human data achieved the highest overall Joint metric score of 0.481. All models trained on synthetic data underperformed this baseline.
  • The performance degradation was most severe for models trained on the SST-2 dataset, showing a drop in the Joint metric ($\Delta J$) of up to -0.159 (see Table 2).
  • Human data contained 390 unique insults, whereas synthetic datasets consistently led to higher "test failures" (insults left un-detoxified during evaluation) due to poor generalization (see Table 4).
  • In human-style side-by-side evaluations, the human-trained baseline model was consistently preferred over the synthetic alternatives, winning between 51% and 62% of the matchups (see Figure 1).
Table 2
Table 4
Figure 1: Side-by-side evaluation results.

Limitations and Future Work

The authors acknowledge that the activation-patching techniques required to bypass LLM safety filters present inherent dual-use risks, as they can be exploited to generate harmful content maliciously.

In terms of data synthesis, the clear limitation is the stylistic monotony of current LLMs. The authors conclude that fully synthetic data is not yet a viable replacement for human annotation in sensitive language tasks. They suggest that future research must focus on developing explicit methods to enhance the stylistic complexity and vocabulary diversity of LLM generations before they can be reliably used to train robust detoxification systems.

Summary updated

BibTeX
@misc{pletenev2025think,
  author = {Sergey Pletenev and Daniil Moskovskiy and Alexander Panchenko},
  title = {{<think> So let's replace this phrase with insult... </think> Lessons learned from generation of toxic texts with LLMs}},
  year = {2025},
  eprint = {2509.08358},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.08358},
}
Figure