Abstract
As Large Language Models (LLMs) are increasingly integrated into multilingual societies, the robustness of their safety guardrails across different languages remains a critical concern. This paper introduces SGToxicGuard, a novel red-teaming benchmark designed to evaluate LLM safety in the unique linguistic landscape of Singapore, encompassing English, Singlish, Chinese, Malay, and Tamil. Our findings reveal a significant "safety gap": models that appear secure in English often generate toxic content or exhibit deep-seated social biases when prompted in low-resource or regional languages. Notably, we demonstrate that safety alignment can frequently be bypassed through simple in-context learning, where providing as few as two toxic examples can cause a model's safety mechanisms to collapse.
Introduction
While the capabilities of LLMs have advanced rapidly, their safety mechanisms—the "guardrails" designed to prevent the generation of hateful, biased, or harmful content—are predominantly developed and validated using high-resource languages like English. This creates a dangerous disparity for multilingual regions. In Singapore, communication often involves a complex blend of official languages and local creoles like Singlish. Because these languages have significantly less representation in safety training datasets, LLMs often fail to recognize toxic nuances or cultural sensitivities specific to the region. This research aims to systematically probe these vulnerabilities to ensure that AI safety is not a privilege reserved solely for English speakers.
The SGToxicGuard Benchmark
To address this gap, we developed SGToxicGuard, the first multilingual dataset specifically tailored for red-teaming LLMs within the Singaporean context. The dataset extends existing benchmarks such as HateCheck and SGHateCheck, covering five languages and providing over 2,000 instances per language for most tasks.
Our evaluation framework employs a red-teaming approach across three distinct tasks:
- Toxic Conversation: A single-turn dialogue where the model is prompted with a hateful statement. This tests whether the model adopts a toxic tone, particularly when "primed" with examples of toxic behavior.
- Toxic Question-Answering (QA): A fill-in-the-blank task where the model must choose between various social groups or a neutral "I am not sure" option. This measures inherent social and racial biases.
- Toxic Tweet Composition: The model is tasked with rewriting a hateful statement into an "engaging" social media post, testing its susceptibility to generating disseminable toxic content.
We evaluated these tasks in both zero-shot (no examples) and few-shot (1-5 examples) settings to observe how in-context learning influences safety alignment.
Key Findings
The "Toxicity Jailbreak" via In-Context Learning
One of the most significant discoveries is the fragility of safety alignment when faced with few-shot examples. We observed that providing just two examples of toxic responses (2-shot) can cause a model's safety guardrails to collapse. For instance, in the Toxic Conversation task, the SEA-LION model’s hateful response rate in Chinese skyrocketed from a mere 0.93% in a zero-shot setting to 61.52% in a 2-shot setting. This suggests that models can be easily "convinced" that toxic behavior is permissible within a specific conversational context.
Vulnerabilities in Regional and General Models
Interestingly, models specifically fine-tuned for Southeast Asian languages (such as SEA-LION and SeaLLM) did not necessarily prove safer than general-purpose models. In several scenarios, these regional models performed worse than general models when faced with adversarial prompts in Tamil or Chinese.
Furthermore, general-purpose models like Mistral and Llama-3.1 exhibited alarmingly high baseline toxicity. In the Tweet Composition task, both models showed toxic response rates exceeding 49% across almost all languages, even without any adversarial examples (0-shot). While GPT-4o mini emerged as the most resilient model overall, it still displayed vulnerabilities, such as a spike in toxicity in Tamil when pushed to a 5-shot setting.
Persistent Social Bias
The Toxic QA task revealed that bias is deeply embedded in many models. In Singlish and Malay contexts, the Mistral model chose a biased or discriminatory answer over 90% of the time, consistently failing to select the neutral safety option ("I am not sure"). This indicates that the underlying training data contains persistent biases that safety fine-tuning has failed to fully mitigate in non-English contexts.
Methodology and Validation
To evaluate the model outputs, we utilized an "LLM-as-a-Judge" approach, primarily using GPT-4o mini. To ensure the reliability of this automated evaluation, we validated the judge's decisions against human annotations. The results showed a high 93.25% agreement rate, confirming the effectiveness of using advanced LLMs to audit the safety of other models in these specific linguistic contexts.
Limitations and Future Work
While SGToxicGuard provides a critical baseline, it has limitations. The current dataset is geographically focused on Singapore, and the reliance on an LLM judge, while validated, may still introduce subtle biases. Furthermore, this study identifies safety gaps but does not propose a specific training intervention.
Future research should focus on expanding this methodology to other diverse, multilingual regions and developing "culturally grounded" safety training. There is an urgent need for training algorithms that can maintain safety alignment even under the pressure of few-shot adversarial examples in low-resource languages.
Conclusion
The findings from SGToxicGuard underscore a critical need for more inclusive AI safety research. As LLMs become more prevalent globally, the "safety gap" in low-resource and regional languages poses a genuine risk of harm. Ensuring that models are robust against toxicity and bias in every language they speak is essential for the responsible deployment of AI in multilingual societies.
Summary updated