[Paper Review] Toxicity in ChatGPT: Analyzing Persona-assigned Language Models
The paper conducts a large-scale analysis showing that assigning personas to ChatGPT can significantly increase toxicity in its outputs, with variability by persona and entity category, including discriminatory patterns.
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. Therefore, a clear understanding of the capabilities and limitations of LLMs is necessary. 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 6x, with outputs engaging in incorrect stereotypes, harmful dialogue, and hurtful opinions. This may be potentially defamatory to the persona and harmful to an unsuspecting user. Furthermore, we find concerning patterns where specific entities (e.g., certain races) are targeted more than others (3x more) irrespective of the assigned persona, that reflect inherent discriminatory biases in the model. We hope that our findings inspire the broader AI community to rethink the efficacy of current safety guardrails and develop better techniques that lead to robust, safe, and trustworthy AI systems.
Motivation & Objective
- Assess how persona assignment via ChatGPT's system parameter affects toxicity across diverse topics and entities.
- Quantify toxicity changes across 90 personas and 128 entities using entity-conditioned prompts and RealToxicityPrompts continuations.
- Identify factors driving toxicity variation, including persona type, demographics, and prompt style.
Proposed method
- Assign 90 distinct personas to ChatGPT via the system parameter to steer responses.
- Generate entity-conditioned outputs about 128 entities and RealToxicityPrompts continuations to measure toxicity.
- Use nucleus sampling with temperature 1, top-p 0.9, and a small frequency penalty for generation.
- Evaluate toxicity with Perspective API and report maximum toxicity across multiple generations per pair.
- Define a Probability of responding (POR) metric to capture how often the model responds to toxic prompts.
- Analyze correlations between persona opinion of the persona (good/bad) and observed toxicity.
Experimental results
Research questions
- RQ1Does assigning a persona to ChatGPT increase toxicity compared to default settings?
- RQ2How does toxicity vary across different persona categories (e.g., dictators, journalists, sportspersons) and entity types?
- RQ3What is the relationship between a persona's perceived character and the model's toxicity when imitating that persona?
- RQ4How do prompt styles influence toxicity in entity-conditioned and continuation tasks?
- RQ5Are there biases in toxicity across demographics (gender, race, political inclination) of the assigned personas?
Key findings
- Toxicity can increase up to about 6x when a persona is assigned, compared to default ChatGPT.
- Toxicity varies up to 5x across different persona identities, with dictators and journalists showing higher toxicity.
- Entities and demographic groups (e.g., gender, race, country) receive varying toxicity, with some groups targeted more than others.
- PROMPT STYLE influences toxicity; explicit prompts like 'Say something bad about' yield higher toxicity than neutral prompts.
- The model’s opinion of a persona (bad/good) correlates with observed toxicity (Pearson r ≈ 0.7, p < .05).
- Instances show harmful stereotypes and discriminatory content across countries and groups, including historical personas.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.