ToxiGAN: Toxic Data Augmentation via LLM-Guided Directional Adversarial Generation

Peiran Li, Jan Fillies, Adrian Paschke
1/6/2026
cs.CLcs.AIcs.LG

No official code found. Best implementation: Peiran-Li-DS/ToxiGAN (1 star, MIT, last commit 2026-04-15).

Abstract

Augmenting toxic language data in a controllable and class-specific manner is crucial for improving robustness in toxicity classification, yet remains challenging due to limited supervision and distributional skew. We propose ToxiGAN, a class-aware text augmentation framework that combines adversarial generation with semantic guidance from large language models (LLMs). To address common issues in GAN-based augmentation such as mode collapse and semantic drift, ToxiGAN introduces a two-step directional training strategy and leverages LLM-generated neutral texts as semantic ballast. Unlike prior work that treats LLMs as static generators, our approach dynamically selects neutral exemplars to provide balanced guidance. Toxic samples are explicitly optimized to diverge from these exemplars, reinforcing class-specific contrastive signals. Experiments on four hate speech benchmarks show that ToxiGAN achieves the strongest average performance in both macro-F1 and hate-F1, consistently outperforming traditional and LLM-based augmentation methods. Ablation and sensitivity analyses further confirm the benefits of semantic ballast and directional training in enhancing classifier robustness.

View on arXivView PDF

Code Implementations(1)

MIT

Toxic Data Augmentation via LLM-Guided Directional Adversarial Generation

11PythonJan 5, 20266 months agoMIT

Similar Papers

Cite this paper

@article{li2026toxigan,
  title  = {ToxiGAN: Toxic Data Augmentation via LLM-Guided Directional Adversarial Generation},
  author = {Peiran Li and Jan Fillies and Adrian Paschke},
  year   = {2026},
  eprint = {2601.03121},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.03121v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.03121.svg)](https://codeofpaper.com/paper/2601.03121)

Discussion