How Toxic Can You Get? Search-based Toxicity Testing for Large Language Models

Read full text
Authors: Simone Corbo, Luca Bancale, Valeria De Gennaro, Livia Lestingi, Scotti, Vincenzo, Matteo Camilli
Cited by: 0

Abstract

This contribution is an extended abstract of the paper originally published in the IEEE Transactions on Software Engineering (TSE) [Co25]. The paper presents EvoTox, an automated black-box testing framework that uses evolutionary search to assess Large Language Models’ susceptibility to generating toxic content through natural, realistic prompts. Empirical evaluation on five state-of-the-art LLMs (7-671B parameters) shows that EvoTox significantly outperforms existing baseline methods in detecting toxicity with effect sizes up to 1.0, while maintaining limited cost overhead (22−35%) and generating human-like prompts validated by domain experts.

Fields of Study & Subjects

Adversarial Robustness in Machine Learning Software Testing and Debugging Techniques Hate Speech and Cyberbullying Detection

Publication details

Journal / source
Gesellschaft für Informatik (GI)
Publication date
1 January 2026
Language
EN