TL;DR
Existing multilingual LLM safety guardrails rely heavily on English-centric risk taxonomies and machine translation, failing to capture local legal and cultural nuances. To fix this, the authors introduce ML-BENCH, a safety benchmark built directly from native-language AI regulations across 14 languages, and ML-GUARD, a highly efficient Diffusion LLM-based guardrail model that delivers policy-conditioned compliance checks and detailed rationales.
What Problem Does This Paper Address?
As Large Language Models (LLMs) scale globally, they must comply with a patchwork of regional AI regulations, such as the EU AI Act or the US NIST Risk Management Framework. However, most current multilingual safety guardrails are fundamentally flawed: they take general, English-centric hazard categories and machine-translate them into other languages.
This translation-heavy approach completely misses jurisdiction-specific legal prose, bureaucratic phrasing, and cultural sensitivities. Furthermore, standard guardrails are static; they cannot evaluate text against a dynamically provided set of rules. This paper bridges the gap by grounding multilingual safety evaluation directly in regional legal texts without relying on machine translation.
Methods
The authors developed a two-part solution: a data generation pipeline (ML-BENCH) and a novel guardrail architecture (ML-GUARD).
1. ML-BENCH Pipeline
Instead of translating English datasets, the authors used an LLM to extract article-level safety rules directly from 17 regional regulatory documents in their native languages. These rules were structured into a two-layer hierarchy (Risk Category $\rightarrow$ Fine-grained rules). From there, they generated paired safe and unsafe queries across three difficulty tiers:
- Seed Queries: Direct violations vs. minimal compliant modifications.
- Refined Queries: Unsafe intent masked inside realistic, professional, or bureaucratic scenarios.
- Attack-Enhanced Queries: Queries optimized with adversarial suffixes (via PAIR and AutoDAN) to bypass guardrails.
2. ML-GUARD Architecture
ML-GUARD breaks away from traditional autoregressive models by adopting a Diffusion Large Language Model (dLLM) framework (Fast_dLLM_v2). Because diffusion models generate tokens in parallel rather than sequentially, they are exceptionally fast at producing structured, moderately long outputs.
The authors released two variants of ML-GUARD:
- ML-GUARD-1.5B: A lightweight model optimized for rapid, binary "safe/unsafe" classification.
- ML-GUARD-7B: A advanced model that accepts dynamic policy rules as inputs and outputs a structured four-line response: a global safety judgment, a violation flag, the specific rules violated, and a natural-language rationale explaining its decision.
To prevent the model from forgetting old rules when new regulations are introduced, the authors utilized a staged training strategy that blends new policies with a small fraction of previously learned data.
Datasets
- ML-BENCH (New): Features 56K multilingual safety instances (34K training, 22K evaluation) covering 14 languages (including Arabic, Chinese, Dutch, English, French, German, Hindi, Italian, Japanese, Korean, Portuguese, Spanish, and Turkish).
- Auxiliary Datasets: 25K-sample subsets from PolyGuardMix and Nemotron-Safety-Guard-Dataset-v3 were mixed into training to ensure broad coverage of general hazards.
- Evaluation Benchmarks: Beyond ML-BENCH, models were cross-evaluated on six existing benchmarks: PolyGuardPrompts (PGP), XSafety, RTP-LX, MultiJail, CSRT, and Nemotron.
Key Insights and Ideas
- The Diffusion Advantage for Guardrails: Guardrails that provide explanations usually suffer from high latency because autoregressive models generate text token-by-token. By utilizing a dLLM, ML-GUARD achieves parallel generation, making detailed rationales computationally practical for production.
- Contextual Hiding is Highly Effective: The drop in baseline performance on "Refined Queries" proves that malicious intent hidden within professional or administrative jargon easily tricks standard safety filters. Grounding the model in explicit policy text is crucial to uncovering these hidden violations.
- Generalization via Policy Grounding: Training a model to align inputs with explicit rules actually improves its performance on general, unseen safety hazards, acting as a robust framework for zero-shot safety enforcement.
Key Results
ML-GUARD was tested against 11 strong guardrail baselines (including Llama-Guard and Qwen3Guard) and demonstrated state-of-the-art performance:
- Superior Accuracy: On ML-BENCH, ML-GUARD-7B achieved an F1 score of 0.97 on Seed Queries and 0.90 on Refined Queries, significantly outperforming larger models like the 20B parameter
gpt-oss-safeguard. - Jailbreak Resistance: In the attack-enhanced setting, ML-GUARD-7B maintained a robust 0.92 accuracy, while most baselines plummeted below 0.20.
- Inference Efficiency: ML-GUARD-7B achieved a 1.5× lower per-token latency and 1.5× higher throughput compared to an autoregressive Qwen2.5-7B baseline. It also ran 9× faster than
gpt-oss-safeguard-20B, making it highly viable for real-time deployment.
Limitations and Future Work
- Proxy Regulations: For countries without fully enacted, AI-specific laws at the time of the study (e.g., India), the authors had to use the EU AI Act as a reference framework.
- English Rationales: While the model processes multilingual inputs and rules, the generated rationales are strictly in English to simplify evaluation. Future iterations could explore generating explanations in the user's native language.
Summary updated