ML-Bench&Guard: Policy-Grounded Multilingual Safety Benchmark and Guardrail for Large Language Models

Yunhan Zhao, Zhaorun Chen, Xingjun Ma, Yu-Gang Jiang, Bo LiarXiv 2026

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.

Figure 1: Overview of the ML-GUARD. ML- GUARD is trained on ML-BENCH. ML-GUARD- 1.5B performs fast binary safety classification, while ML-GUARD-7B supports both safety assess- ment and policy-conditioned violation checking.

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:

Table 1: Binary safety classification results on ML-BENCH. The table reports F1 score, Recall, FPR, and attack-enhanced accuracy (Acc). ↑denotes higher values are better and ↓denotes lower values are better. Best scores are in bold and the second-best scores are underlined. For FPR, scores are highlighted only among models achieving recall ≥0.5 to ensure meaningful safety coverage.
  • 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

Abstract

As Large Language Models (LLMs) are increasingly deployed in cross-linguistic contexts, ensuring safety in diverse regulatory and cultural environments has become a critical challenge. However, existing multilingual benchmarks largely rely on general risk taxonomies and machine translation, which confines guardrail models to these predefined categories and hinders their ability to align with region-specific regulations and cultural nuances. To bridge these gaps, we introduce ML-Bench, a policy-grounded multilingual safety benchmark covering 14 languages. ML-Bench is constructed directly from regional regulations, where risk categories and fine-grained rules derived from jurisdiction-specific legal texts are directly used to guide the generation of multilingual safety data, enabling culturally and legally aligned evaluation across languages. Building on ML-Bench, we develop ML-Guard, a Diffusion Large Language Model (dLLM)-based guardrail model that supports multilingual safety judgment and policy-conditioned compliance assessment. ML-Guard has two variants, one 1.5B lightweight model for fast `safe/unsafe' checking and a more capable 7B model for customized compliance checking with detailed explanations. We conduct extensive experiments against 11 strong guardrail baselines across 6 existing multilingual safety benchmarks and our ML-Bench, and show that ML-Guard consistently outperforms prior methods. We hope that ML-Bench and ML-Guard can help advance the development of regulation-aware and culturally aligned multilingual guardrail systems.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ML-BenchML-Guard-1.5BF1 score0.24fine-tuned · params=1.5B · subset=response · model-size=1.5B · training-data=ML-Bench
Source quote
L428: ML-Guard-1.5B │ 0.95 │ 0.88 │ 0.24 │ 0.96 │ 0.89 │ 0.14 │ 0.11 │ 0.12 │ 0.01 │ 0.74
ML-BenchML-Guard-7BF1 score0.45fine-tuned · params=7B · subset=response · model-size=7B · training-data=ML-Bench
Source quote
L429: ML-Guard-7B │ 0.97 │ 0.87 │ 0.45 │ 0.98 │ 0.92 │ 0.29 │ 0.04 │ 0.18 │ 0.00 │ 0.82
ML-BenchML-Guard-1.5BAccuracy0.74fine-tuned · params=1.5B · subset=attack-enhanced query · model-size=1.5B · training-data=ML-Bench
Source quote
L428: ML-Guard-1.5B │ 0.95 │ 0.88 │ 0.24 │ 0.96 │ 0.89 │ 0.14 │ 0.11 │ 0.12 │ 0.01 │ 0.74
Six existing multilingual safety benchmarks (PGP, XSafety, RTP-LX, MultiJail, CSRT, Nemotron)ML-Guard-1.5BAverage F1 score0.74fine-tuned · params=1.5B · benchmarks=PGP, XSafety, RTP-LX, MultiJail, CSRT, Nemotron · model-size=1.5B · training-data=ML-Bench
Source quote
L442: ML-Guard-1.5B │ 0.90 │ 0.75 │ 0.46 │ 0.86 │ 0.77 │ 0.68 │ 0.79 │ 0.73 │ 0.74
Six existing multilingual safety benchmarks (PGP, XSafety, RTP-LX, MultiJail, CSRT, Nemotron)ML-Guard-7BAverage F1 score0.77fine-tuned · params=7B · benchmarks=PGP, XSafety, RTP-LX, MultiJail, CSRT, Nemotron · model-size=7B · training-data=ML-Bench
Source quote
L443: ML-Guard-7B │ 0.86 │ 0.66 │ 0.47 │ 0.97 │ 0.83 │ 0.79 │ 0.83 │ 0.73 │ 0.77
BibTeX
@misc{zhao2026ml,
  author = {Yunhan Zhao and Zhaorun Chen and Xingjun Ma and Yu-Gang Jiang and Bo Li},
  title = {{ML-Bench\&Guard: Policy-Grounded Multilingual Safety Benchmark and Guardrail for Large Language Models}},
  year = {2026},
  eprint = {2605.00689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.00689},
}
Figure