YuFeng - XGuard: A Reasoning-Centric, Interpretable, and Flexible Guardrail Model for Large Language Models
Alibaba-AAIG · 2026
Read YuFeng - XGuard: A Reasoning-Centric, Interpretable, and Flexible Guardrail Model for Large Language Models by Alibaba-AAIG (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-15588.txt.
Introduction
A team signing as Alibaba-AAIG presents a safety guardrail model in a 2026 arXiv paper. The model is called YuFeng-XGuard. As language models spread into real products, guardrails must do more than coarse filtering. They need to judge risk in fine detail. They also need to explain their calls and adapt to new policies. Existing tools often fall short on one of these counts.
Many current guards classify fast but stay opaque. Others rely on fixed rules added after the fact. Inference cost can also block deployment at scale. XGuard is described as reasoning-centric, interpretable, and flexible. It reasons about risk rather than just matching patterns. For builders, a guard that shows its reasoning is easier to audit. That matters when a wrong block or a missed risk carries real cost.
Catalog record
| CREATOR | Alibaba-AAIG |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 72 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2601-15588
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
YuFeng - XGuard: A Reasoning-Centric, Interpretable, and Flexible Guardrail Model for Large Language Models Alibaba-AAIG Abstract As large language models (LLMs) are increasingly deployed in real-world applications, safety guardrails are required to go beyond coarse-grained filtering and support fine-grained, interpretable, and adaptable risk assessment. However, existing solutions often rely on rapid classification schemes or post-hoc rules, resulting in limited transparency, inflexible policies, or prohibitive inference costs. To this end, we present YuFeng - XGuard, a reasoning-centric guardrail model family designed to perform multi-dimensional risk perception for LLM interactions. Instead of producing opaque binary judgments, YuFeng - XGuard generates structured risk predictions, including explicit risk categories and configurable confidence scores, accompanied by natural language explanations that expose the underlying reasoning process. This formulation enables safety decisions that are both actionable and interpretable. To balance decision latency and explanatory depth, we adopt a tiered inference paradigm that performs an initial risk decision based on the first decoded token, while preserving on-demand explanatory reasoning when required. In addition, we introduce a dynamic policy mechanism that decouples risk perception from policy enforcement, allowing safety policies to be adjusted without model retraining. Extensive experiments on a diverse set of public safety benchmarks demonstrate that YuFeng - XGuard achieves state-of-the-art performance while maintaining strong efficiency-efficacy trade-offs. We release YuFeng - XGuard as an open model family, including both a full-capacity variant and a lightweight version, to support a wide range of deployment scenarios. Figure 1: Top average F1 scores across classification benchmarks Figure 2: Overall win rate of across all benchmarks. 1 Introduction Large language models (LLMs) have demonstrated remarkable generative and reasoning capabilities, yet their open-ended nature poses persistent challenges for content safety. Addressing these challenges requires guardrail models that can recognize a wide spectrum of risks while providing meaningful signals for downstream decision-making. Consequently, the formulation of safety guardrails has emerged as an important modeling problem rather than a simple auxiliary classification task. Most existing guardrail models formulate safety as a classification problem over a predefined set of risk categories. Under this paradigm, risk definitions and their associated control semantics are implicitly encoded in the training data and absorbed into model parameters. While this approach enables efficient prediction, it fundamentally limits the generalization and broad practical utility of the model: the risk space is fixed, and safety judgments are tightly bound to the categories observed during training. Obviously, such models struggle to generalize to nuanced or compositional risk scenarios that deviate from predefined taxonomies. Another limitation of classification-based guardrails lies in their lack of interpretability. By design, these models produce discrete labels or scalar scores without explicitly modeling the reasoning process behind their predictions. This obscurity makes it difficult to analyze failure cases, understand model behavior, or assess whether a prediction reflects genuine risk recognition or spurious correlations learned from data. These limitations motivate a shift from purely classification-driven guardrails toward models that explicitly reason about risk. Rather than treating safety as a closed-set decision problem, a reasoning-centric formulation aims to model risk perception as a structured inference process, in which multiple risk dimensions, their relative severity, and the underlying rationale are jointly considered within a single model. In this work, we present YuFeng - XGuard, a reasoning-centric guardrail model family designed for multi-dimensional risk recognition in interactions with LLMs. YuFeng - XGuard generates structured risk predictions that include explicit risk categories, calibrated confidence estimates, and natural language explanations that expose the model’s internal reasoning. This design enables safety judgments that are not only accurate but also interpretable and analyzable, supporting deeper understanding of model behavior. A key aspect of YuFeng - XGuard is its tiered inference formulation, which separates coarse-grained risk decision signals from detailed explanatory reasoning within a unified generative framework. This allows the model to produce an initial risk decision based on minimal decoding, while retaining the ability to elaborate its reasoning when required. Empirically, YuFeng - XGuard demonstrates impressive performance across a diverse set of public safety benchmarks. As shown in Figure 1 , it achieves a leading average F1 score compared to a broad range of contemporary guardrail models. Beyond quantitative metrics, YuFeng - XGuard also performs strongly in head-to-head qualitative evaluations. Concretely, both the full-capacity 8B model and the lightweight 0.6B variant achieve high win rates (Figure 2 ), indicating consistent trends in direct comparison. Notably, despite being the smallest model in our suite, the 0.6B variant exhibits a clear cross-scale advantage, remaining competitive against substantially larger counterparts. We release YuFeng - XGuard as an open model family to facilitate future research on reasoning-based safety modeling and to support real-world deployments in different scenarios. Compared to prior work, we make the following contributions: • Reasoning-centric, structured risk perception for actionable and interpretable guardrails. We reformulate guardrails from opaque binary prediction into structured risk perception: YuFeng - XGuard outputs an explicit risk category together with a configurable confidence score, and can optionally generate a natural-language explanation that exposes the underlying rationale. This design makes safety decisions more debuggable and audit-friendly, and provides downstream systems with fine-grained signals for thresholding and policy orchestration. • Tiered inference for low-latency decisions with on-demand explanations. We introduce a unified generative framework that supports a two-stage usage pattern: an instant risk decision from the first decoded token (plus its probability as confidence), and an optional continuation for detailed attribution when deeper analysis is needed (e.g., moderation review and auditing). This tiered mechanism resolves the practical tension between real-time latency and interpretability without requiring separate models. • Dynamic Policy (DP): decoupling risk perception from policy enforcement at runtime. We propose a dynamic policy mechanism that allows operators to add new categories or adjust the scope/criteria of existing ones via inference-time instructions, while reusing a robust built-in taxonomy as the default policy. By separating “what the text implies” (risk perception) from “what the product wants to block” (policy), DP enables agile policy iteration without model retraining and improves long-term maintainability for evolving safety requirements. • Strong empirical results across diverse benchmarks with multi-scale open models. YuFeng - XGuard achieves state-of-the-art performance on a broad suite of public benchmarks covering generic safety classification, multilingual robustness, jailbreak/attack scenarios, and safe-completion evaluation. We release an open model family including a full-capacity 8B variant and a highly efficient 0.6B distilled variant, enabling deployment under different latency/compute constraints while maintaining strong accuracy-efficiency trade-offs. Table 1: Safety Taxonomy of YuFeng - XGuard Risk Dimension Risk Category Description Crimes and Illegal Activities Pornographic Contraband Content involving the dissemination of obscene materials, child pornography, and other illegal sexual information. Drug Crimes Discussion related to the manufacturing, trafficking, or abuse of illegal drugs or controlled substances. Dangerous Weapons Information or instructions regarding the creation, acquisition, or use of illegal weapons such as firearms and explosives. Property Infringement Content that encourages or provides methods for theft, fraud, embezzlement, or damage to public or private property. Economic Crimes Topics related to financial fraud, money laundering, illegal fundraising, and other activities that disrupt economic order. Hate Speech Abusive Curses Use of profane, vulgar, or insulting language to attack or degrade individuals or groups. Defamation Spreading false information intended to harm the reputation of a person, group, or organization. Threats and Intimidation Content that explicitly or implicitly threatens violence,