Introduction
As Large Language Models (LLMs) transition from research curiosities to global infrastructure, a critical question arises: are they equally safe for everyone? While significant strides have been made in aligning English-centric models to avoid toxic behavior, safety alignment for the rest of the world’s languages remains underdeveloped.
Presented at COLM 2024, "PolygloToxicityPrompts: Multilingual Evaluation of Neural Toxic Degeneration in Large Language Models" introduces a massive new benchmark to put global safety claims to the test. The authors introduce PolygloToxicityPrompts (PTP), the first large-scale benchmark for evaluating "neural toxic degeneration"—the tendency of a model to generate toxic text—across 17 languages.
Methodology and Dataset Construction
Most existing toxicity benchmarks are "English-first," often relying on translated prompts (like RealToxicityPrompts) to test other languages. The authors argue this approach is flawed because it misses cultural nuances and the specific ways toxicity manifests in different languages.
To build PTP, researchers scraped over 100 million documents from massive web-text corpora (mC4 and The Pile). They used the Perspective API to score documents across 17 languages and then split these documents to create "prompts" and "continuations."
The final benchmark features 425,000 naturally occurring prompts. To ensure robustness, the researchers used a stratified sampling approach, selecting 25,000 prompts per language across four toxicity levels. They then benchmarked 62 different LLMs, including base, instruction-tuned, and preference-aligned models.
Key Insights: The Multilingual Toxicity Gap
By testing a wide array of models, the researchers revealed several sobering realities about global AI safety:
- The Resource-Toxicity Inverse Law: There is a clear correlation between language resources and safety. Models are generally safest in high-resource languages (like English) and most toxic in lower-resource ones (like Hindi or Czech). This suggests that safety alignment does not "transfer" across languages as effectively as general knowledge.
- The Scaling Curse for Base Models: In base models trained on next-token prediction, toxicity actually increases with model size. Larger models are better at memorizing the "long tail" of toxic content found on the internet.
- Alignment Efficacy: Whether using PPO, DPO, or other preference-tuning methods, the act of alignment matters more than the specific algorithm. Alignment significantly dropped average toxicity scores from 0.281 in base models to roughly 0.19 in tuned models.
Experimental Results
A primary finding is that PTP is a significantly harder test than previous benchmarks. Because PTP uses naturally occurring multilingual text rather than translations, it elicits much higher levels of toxicity from even the most advanced models.
GPT-3.5-Turbo, for instance, showed significantly higher Average Toxicity (AT) on PTP compared to translated benchmarks like RTP-LX. While models like Llama-2-70b-chat and Qwen-7B-Chat were among the safest, smaller base models and those specialized for lower-resource categories (like OpenHathi for Hindi) struggled significantly.
Conclusion
The authors highlight several hurdles for future work, including the subjectivity of toxicity and the limitations of current detection tools like Perspective API. While 17 languages is a major step forward, thousands of low-resource languages still lack the infrastructure for toxicity detection. The researchers call for a shift toward multilingual-first safety alignment, ensuring that non-English safety is treated as a primary goal rather than a secondary translation task.
Summary updated