Abstract
Large language models (LLMs) have shown incredible capabilities and transcended the natural language processing (NLP) community, with adoption throughout many services like healthcare, therapy, education, and customer service. Since users include people with critical information needs like students or patients engaging with chatbots, the safety of these systems is of prime importance. Legislation has recognized its significance and recently drafted a "Blueprint For An AI Bill Of Rights" which calls for domain experts to identify risks and potential impact of AI systems. To this end, we systematically evaluate toxicity in over half a million generations of ChatGPT, a popular dialogue-based LLM. We find that setting the system parameter of ChatGPT by assigning it a persona, say that of the boxer Muhammad Ali, significantly increases the toxicity of generations. Depending on the persona assigned to ChatGPT, its toxicity can increase up to $6\times$, with outputs engaging in incorrect stereotypes, harmful dialogue, and hurtful opinions. Furthermore, we find concerning patterns where specific entities (e.g., certain races) are targeted more than others ($3\times$ more) irrespective of the assigned persona, reflecting discriminatory biases in the model. Our findings show that multiple provisions in the legislative blueprint are being violated, and we hope that the broader AI community rethinks the efficacy of current safety guardrails and develops better techniques that lead to robust, safe, and trustworthy AI.
Introduction
While large language models like ChatGPT are typically fine-tuned using Reinforcement Learning from Human Feedback (RLHF) to be helpful and harmless, recent research identifies a critical vulnerability in their safety guardrails. Modern APIs provide a system parameter designed to set the behavior and tone of the assistant. This study investigates whether persona-setting via this parameter acts as a "back door" for generating toxic content. Even when models are trained to refuse harmful requests, their propensity for toxicity may change significantly when instructed to "role-play" specific historical or abstract figures.
Methodology
The researchers conducted a large-scale evaluation involving over 500,000 generations from ChatGPT (gpt-3.5-turbo). The study employed the system role to instruct the model to adopt specific personas, such as "Speak exactly like [Persona]." Toxicity was quantified using the Perspective API, which scores text on a scale from 0 to 1.
To measure the effectiveness of safety filters, the authors introduced the Probability of Responding (POR) metric. A high POR indicates that the model engaged with a potentially toxic prompt rather than issuing a standard AI refusal. The dataset included 90 diverse personas (historical figures, common names, and baseline personas like "a nasty person") and 123 target entities across nine demographic categories (e.g., race, religion, profession).
Key Results and Insights
Massive Toxicity Spikes
Assigning a persona can increase the toxicity of model outputs by up to 600% compared to default settings. Dictator personas were found to be the most toxic, with an average score of 0.40 and a high POR of 0.86, meaning the model refused to answer only 14% of the time. In contrast, setting the persona to "a bad person" resulted in a toxicity score of 0.62 and a POR of 0.97.
The Influence of Model "Opinions"
The study found a strong correlation (0.7) between the model’s internal representation of a persona and the toxicity it produces. Essentially, the model's own encoded biases about historical figures drive its behavior; if the model "perceives" a figure as negative, it generates more toxic content while in that role.
Inverted Bias and Discriminatory Targeting
A surprising "inverted bias" phenomenon was observed: groups typically receiving less hate online (e.g., "Northern Europeans") sometimes received higher toxicity scores. This likely results from RLHF training that heavily protects marginalized groups, leaving non-protected groups as the primary targets for persona-driven vitriol. Despite this, discriminatory targeting remains a core issue; regardless of the persona, certain races and religions were consistently targeted more than others, reflecting deep-seated biases from the pre-training data.
Conclusion
The system parameter is a powerful steering tool that can inadvertently override safety training. These findings suggest that current safety guardrails are insufficient against persona-based prompting. The authors call for the AI community to develop more robust toxicity stress tests and suggest that LLM providers release safety "specification sheets" detailing a model's limits across various personas before public deployment.
Summary updated