How Toxic Can You Get? Search-based Toxicity Testing for Large Language Models
Simone Corbo, Luca Bancale, Valeria De Gennaro, Livia Lestingi, Vincenzo Scotti, Matteo Camilli

TL;DR
EvoTox is an automated, iterative testing framework that effectively measures the residual toxicity of large language models, revealing their vulnerabilities to generating harmful responses despite alignment efforts.
Contribution
The paper introduces EvoTox, a novel evolution-based testing method that quantitatively and qualitatively evaluates LLMs' toxicity levels beyond existing baseline approaches.
Findings
EvoTox outperforms baseline methods in detecting toxicity levels.
The framework maintains low cost overhead (22-35%).
Human evaluators confirm the relevance and fluency of generated prompts.
Abstract
Language is a deep-rooted means of perpetration of stereotypes and discrimination. Large Language Models (LLMs), now a pervasive technology in our everyday lives, can cause extensive harm when prone to generating toxic responses. The standard way to address this issue is to align the LLM , which, however, dampens the issue without constituting a definitive solution. Therefore, testing LLM even after alignment efforts remains crucial for detecting any residual deviations with respect to ethical standards. We present EvoTox, an automated testing framework for LLMs' inclination to toxicity, providing a way to quantitatively assess how much LLMs can be pushed towards toxic responses even in the presence of alignment. The framework adopts an iterative evolution strategy that exploits the interplay between two LLMs, the System Under Test (SUT) and the Prompt Generator steering SUT responses…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsALIGN · Random Search
