Yuvion LLM: an adversarial-aware large language model for content and AI safetyYuvion LLM: An Adversarially-Aware Large Language Model for Content And AI Safety
Alibaba Security AGI Lab proposes Yuvion LLM for content safety; the authors state that Yuvion-32B achieves an average Macro F1 of 78.2% on 8 public content safety benchmarks, higher than GPT-5.4's 72.2%.
- The authors argue that content safety is inherently an adversarial problem: violating intents can be hidden through euphemisms, symbol substitution, cross-language mixing, and other means; general models and existing guard models are fragile under adversarial inputs and lack tool-calling and multi-step execution capabilities; and benchmark scores overestimate real-world deployment robustness.
- Proposes Yuvion LLM: knowledge-enhanced continued pretraining on Qwen3 instruct models, risk-aware SFT with adversarial augmentation plus GRPO policy optimization, and agent RL enhanced with tool use and search; with a supporting four-level evaluation framework YLRE of 93 benchmarks.
- The authors report: Yuvion-32B's average Macro F1 on 8 public content-safety benchmarks is 78.2% (GPT-5.4 is 72.2%), its combined score on the dynamic adversarial benchmark is the lowest (20.6%), its internal business benchmark total score is 86.34, and its average accuracy on general capability is 0.7988, close to Qwen3-32B's 0.8099 at the same scale.
- The authors note that novel evasion patterns outside the training distribution may still pose challenges; evaluation mainly covers Chinese and English scenarios, and multilingual generalization has not been systematically evaluated; there remains a gap relative to the base model on some general benchmarks. The dynamic adversarial benchmark is evaluated only on a subset of baseline models.
- Evaluated models
- Yuvion-32BYuvion-8BYuvion-32B (Agent)Yuvion-Guard-8B
- Benchmarks
- Yuvion LLM RiskEval (YLRE)MMLU 等 33 个公开通用基准API-BankBFCLSeal-0ChineseHarmCOLDModerationHateXplainToxiGenJigsawCivilCommentsSafetyBenchSEvalAEGIS自建静态/动态对抗鲁棒性基准内部能力与业务基准
- Metrics
- AccuracyMacro F1-ScoreFPRCombined Score(bypass success rate × semantic fidelity,越低越好)pairwise win rate
The authors propose Yuvion LLM, an adversarially robust large language model for content and AI safety, which performs robustly under adversarial conditions. Its pipeline combines adversarial-aware data construction, knowledge-enhanced continued pretraining, and multi-task safety post-training; the accompanying YLRE contains 93 benchmarks and covers four categories of evaluation. Yuvion-8B surpasses most SOTA baselines, including GPT-5.4 and Qwen3-MAX, on several safety tasks.
Paper analysis
What problem does this paper attempt to solve?
The authors argue that content safety is inherently an adversarial problem, and that existing general models and guard models are fragile under adversarial evasion and lack agent capabilities.
Core problem: how to make content-safety models robust under real adversarial evasion (euphemism, symbol substitution, cross-language mixing, etc.) and give them agent capabilities for tool calling, retrieval, and multi-step reasoning.
- Problem setting: the authors argue that safety failures arise not only from natural inputs but more from strategic evasion behavior; Figure 2 gives an example: the same harmful intent, after euphemization or pinyin mixing, goes from being blocked to being allowed by a general model (the authors say the "General" model Missed it).
- Shortcomings of existing methods: the authors say existing general models' training and evaluation mostly do not account for strategic human behavior, so measured safety performance systematically overestimates real deployment robustness; existing guard models (such as Llama Guard, Qwen3Guard) are limited to single-turn safety judgments and do not support tool use, policy retrieval, or multi-step execution.
- Core hypothesis: the authors argue that adversarial robustness and agentic safety capability must be built in as first-class objectives in model development and evaluation, not patched on afterward.
- What the paper proposes: Yuvion LLM (a three-stage progressive safety training paradigm: knowledge-enhanced continued pretraining, policy-grounded multi-task safety post-training, and safety-aware agent RL) and Yuvion LLM RiskEval (YLRE, a four-level evaluation framework covering 93 benchmarks).
- This is not an attack or defense paper, but a training method plus evaluation framework for a safety-specialized model; the paper does not formalize a threat model from an attacker's perspective, and the "adversary" it focuses on is the violative-content producer in production environments who continually changes evasion tactics (Section 6).
What related research exists?
The paper positions itself along five lines: LLM training, LLM safety, adversarial robustness, safety evaluation, and agents, and claims its difference lies in an end-to-end design for adversarial content safety.
LLM training paradigms
- Brown et al. (2020), Touvron et al. (2023), Qwen Team (2025), etc.—the two-stage paradigm of large-scale pretraining plus SFT/RLHF post-training.
- Gururangan et al. (2020), etc.—domain continued pretraining to adapt professional knowledge; Shao et al. (2024)—domain-targeted RL to strengthen task reasoning. The paper says Yuvion follows this staged design but optimizes around adversarial content safety, and adds an agent RL stage that is largely missing from prior domain-adaptation pipelines.
LLM safety and guard models
- Ouyang et al. (2022), Bai et al. (2022), Ganguli et al. (2022)—alignment training, refusal shaping, Constitutional AI.
- Llama Guard (Inan et al., 2023), Llama Guard 4 (Meta, 2025)—dedicated guard models. The paper notes that these methods are mostly optimized for clean, explicit inputs rather than robustness under adaptive human attacks.
Adversarial robustness and safety evaluation
- Perez & Ribeiro (2022), Wei et al. (2023), Zou et al. (2023), Mazeika et al. (2024)—attacks such as jailbreaks, prompt injection, suffix attacks, and multi-turn manipulation; the paper cites their conclusion that benchmark performance may overestimate deployment robustness.
- RealToxicityPrompts (Gehman et al., 2020), HarmBench (Mazeika et al., 2024)—safety evaluation benchmarks, which the paper says have advanced the standardization of safety measurement.
Agentic LLMs
- Toolformer (Schick et al., 2023), ReAct (Yao et al., 2023), AgentTuning (Zeng et al., 2023)—tool use and multi-step interaction; ToolRL (Qian et al., 2025)—Yuvion's tool RL reward design follows its decomposed rewards.
Baselines and benchmarks: experimental baselines include the Qwen3/Qwen3.5 series, DeepSeek-R1/V3.2, Kimi-K2.5, MiniMax-M2.5, GLM-5, GPT-5.4, Qwen3-Max, etc., as well as the guard models Qwen3Guard-8B and Llama-Guard4-12B; the guard evaluation protocol follows YuFeng-XGuard (Lin et al., 2026). The authors position the paper as treating safety as a dedicated foundation-model domain with its own training paradigm, evaluation methods, and deployment constraints.
How does the paper address this problem?
Three-stage progressive training: knowledge-enhanced continued pretraining → risk-aware SFT plus GRPO policy optimization → agent RL for tools and search, with a supporting five-category data system.
The overall approach is to shape a general instruct model (with Qwen3-8B/32B as the base, as can be seen from the corresponding relationships in Table 5) into a deployable safety model in stages through a progressive safety training paradigm, with the entire process unified as autoregressive conditional generation z ∼ pθ(z ∣ c), where each stage differs only in the instantiation of context c and output z.
Data system (Section 2)
- Five categories of functional data (Table 1): general data maintains language capability; safety domain data builds risk understanding and policy judgment; adversarial data covers evasive expressions such as lexical variation, homophone substitution, and semantic disguise; agent data provides tool-call trajectories and multi-step decomposition; synthetic and expert-constructed data cover long-tail scenarios.
Stage 1: Knowledge-enhanced continued pretraining
- Method: Convert large-scale domain knowledge bases into multi-granularity training samples (structured triples, sentence-level descriptions, etc.), mix them with safety corpora and a small amount of general data for standard next-token prediction, producing Yuvion-CP.
- Purpose: The authors state this lets the model internalize moderation policies, risk taxonomies, violation patterns, and long-tail adversarial expressions at the distribution level, providing initialization for post-training.
Stage 2: Policy-grounded multi-task safety post-training
- Risk-aware SFT: Heterogeneous safety tasks are unified into an instruction-following interface (input + instruction → label/category/attribution); the training set mixes naturally distributed samples with adversarially constructed samples (obfuscation, rewriting, semantic disguise but retaining harmful intent), and introduces structured response formats, producing Yuvion-SFT.
- GRPO policy optimization: Sample a group of candidate outputs for each safety context and update the policy using intra-group relative advantages; rewards cover final judgment correctness, consistency with policy grounds, attribution/reasoning quality, and reliability under adversarial inputs.
Stage 3: Safety-aware agent RL
- Tool-integrated reasoning: Follows GRPO, with rewards following ToolRL's decomposed design: format reward Rformat ∈ {0,1} checks structural fields, correctness reward Rcorrect ∈ [−3,3] scores matches on tool name, parameter name, and parameter value, Rfinal = Rformat + Rcorrect ∈ [−3, 4].
- Search-enhanced reasoning: The model iteratively decides to issue a query, visit a page, or give a final answer; the reward is Rsearch = Rresult + β·Rexec, where Rexec evaluates whether each tool call executes successfully, and Rresult uses an LLM-as-judge to evaluate factual correctness and completeness against reference answers (the paper does not specify the judge model).
Closed-loop iteration (Section 6)
- Four mechanisms: knowledge injection (incremental continued pretraining), adversarial game (red-team self-play, automated adversarial search, adversarial patterns extracted from business traffic, with successfully evasive samples entering GRPO training), agent capability strengthening, and deployment feedback (human corrections, QA flags, and drift signals routed to upstream mechanisms).
Evaluation framework YLRE (Section 4)
- Four-level structure: L1 public general benchmarks (30+ sets, Accuracy); L2 public content safety benchmarks (8 sets, Macro F1) and guard benchmarks (20+ sets, including FPR); L3 self-built static/dynamic adversarial benchmarks (5 risk categories; the dynamic set uses combined score = bypass success rate × semantic fidelity, lower is better); L4 internal capability and business benchmarks (15+ sets).
- Dynamic set construction: Real business samples are pre-screened with LLM assistance to extract adversarial transformation patterns, and an automated red-team pipeline generates variants; 5 professional moderation experts perform double annotation plus third-party arbitration (Appendix D.1).
What experiments did the paper conduct?
Comparing more than 20 baselines on the four-level YLRE benchmarks: Yuvion-32B's content-safety average F1 of 78.2% and dynamic adversarial combined score of 20.6% are both the best.
Experimental Setup
- Models evaluated: Yuvion-8B, Yuvion-32B, Yuvion-32B (Agent) (additionally trained with agent RL); baselines include the Qwen3/Qwen3.5 series, DeepSeek-R1/V3.2, Kimi-K2.5, MiniMax-M2.5, GLM-5, GPT-5.4, Qwen3-Max/3.5-Plus/3.6-Plus, and the guard models Qwen3Guard-8B and Llama-Guard4-12B.
- Benchmarks: 93 benchmarks across four YLRE levels; 8 public content-safety sets (ChineseHarm, COLD, Moderation, HateXplain, ToxiGen, Jigsaw, CivilComments, SafetyBench); 28 guard sub-datasets (SEval, AEGIS, etc., following the YuFeng-XGuard protocol); self-built static/dynamic sets covering 5 risk categories.
- Metrics: Accuracy for general and agent benchmarks; Macro F1 for content-safety classification; combined score for dynamic adversarial (bypass success rate × semantic fidelity, lower is better); guard evaluation additionally reports FPR (over-refusal measured on Alpaca and Belle).
- Evaluation method: all baselines use the same prompt format and decoding configuration; adversarial rewrites in the dynamic set are generated by an automated red-team pipeline, and semantic fidelity is scored by an independent LLM evaluator (the specific model is not stated in the paper); rewrites obfuscated beyond readability are scored 0.
- Sample sizes and number of repetitions: the paper does not report sample sizes or repetition counts for each benchmark; dynamic adversarial evaluation was run only on some baselines due to cost.
Main Results
Average Macro F1 on public content-safety benchmarks (%, per Table 4) and Overall combined score on dynamic adversarial (%, lower is better, per Table 7):
Model Content-safety avg. F1↑ Dynamic adversarial Overall↓ Yuvion-32B 78.2 20.6 Yuvion-8B 73.3 28.1 GPT-5.4 72.2 22.3 Qwen3-Max 73.9 24.4 Qwen3.5-27B 73.7 not reported Qwen3-32B 69.1 27.7 Qwen3-8B 69.9 34.4 DeepSeek-R1 59.0 not reported - The authors state that Yuvion-32B is best on 5 of the 8 content-safety benchmarks (ChineseHarm 97.9%, ToxiGen 86.0%, etc.), and is 9.1 percentage points higher than Qwen3-32B at the same scale.
- On the dynamic adversarial set, Yuvion-32B is best in 3 of the 5 risk categories (advertising solicitation 6.7%, pornography 16.8%, gambling fraud 33.7%); GPT-5.4 is best on insult (10.7%); gambling fraud is the hardest for all models.
- Exceptions: on COLD, GPT-5.4 (74.8%) is higher than Yuvion-32B (72.6%); on Moderation, Qwen3-8B (79.3%) is higher than Yuvion-32B (76.6%); on SafetyBench, GPT-5.4 (89.3%) is highest.
Guard Capability Evaluation
- Compared with base models (Table 5): Yuvion-8B's average F1 rises from 17.6% for Qwen3-8B to 75.1% (+57.5 percentage points), and FPR falls from 0.35% to 0.29%; Yuvion-32B rises from 70.6% for Qwen3-32B to 78.9%, and FPR falls from 2.91% to 0.18%.
- Compared with dedicated guard models (Figure 5, pairwise win rate over 51 evaluation instances): Yuvion-Guard-8B has the highest win rate at 85.6%; Yuvion-32B is 71.7%, lower than Yuvion-Guard-8B and higher than Qwen3Guard-8B-S (71.6%); Yuvion-8B is 54.1%, lower than Qwen3Guard-8B (58.2%) and GPT-OSS-Guard-20B (64.0%). The authors say this is because Yuvion's training budget is spread across multiple objectives, and because Yuvion-Guard-8B's weights have been released.
Internal Capability and Business Benchmarks
- Capability benchmark (Table 8): Yuvion-32B scores 85.78 overall, higher than Qwen3.6-Plus (81.83), Qwen3-Max (81.41), and GPT-5.4 (80.73); Yuvion-8B scores 82.38, exceeding all listed baselines; Yuvion-32B (Agent) scores 86.10.
- Business benchmark (Table 9): Yuvion-32B scores 86.34 overall (UGC Moderation 97.21, Data Security NER 91.04); Yuvion-32B (Agent) scores 87.34; the strongest baseline, Qwen3-Max, scores 83.00.
- Guard model performance: Qwen3Guard-8B and Llama-Guard4-12B score close to 0 on the internal benchmarks (Tables 8, 9), which the authors say reflects guard models' lack of domain knowledge and structured-output capability.
General and Agent Capabilities
- General benchmarks (Table 2, average Accuracy over 33 sets): Yuvion-32B is 0.7988, lower than Qwen3-32B's 0.8099 and the 0.8370–0.8629 of larger models; the authors say general capability is largely maintained at the same scale, and that it exceeds Qwen3-32B on individual items such as TAL-SCQ5K-CN, TheoremQA, and DROP.
- Agent benchmarks (Table 3): Yuvion-32B scores 90.45% on API-Bank, the highest in the table, with an average of 65.72%, lower than Qwen3.6-Plus (70.64%) and Qwen3.5-Plus (68.47%).
Other Ablations and Analyses
- Domain-knowledge data ablation (Table 10, intermediate checkpoint): adding knowledge data raises the domain total score by +3.96 (79.68→83.64), with Insult +24.20 and Meaningless +11.44; Politics Entity, UCMF EN, and Biz Porn regress slightly, which the authors attribute to distribution shift introduced by the knowledge corpus.
- Agent RL stage ablation (Table 11): with SFT only, API-Bank/BFCL/Seal-0 are 83.75/45.07/19.82; adding tool RL raises them to 88.78/54.64/31.53; adding search RL raises them to 90.45/66.16/40.54; the authors say SFT alone degrades agent capability relative to the Qwen3-32B base.
- Case study (Figure 6 and Section 5.4.2): the authors give qualitative cases of drug trading and gambling equipment with 3 levels of evasion variants each, saying general models let through variants using digit+emoji substitution and neutralized narratives while Yuvion blocks them; after agent RL, the model shifts from refusing or bypassing tools to actively decomposing queries and calling tools according to rules.
What are some points that can be further explored?
The authors acknowledge three limitations—new evasion patterns outside the training distribution, multilingual generalization, and gaps in general capability—and give three directions for future work.
Limitations and future directions noted by the authors
- Evasion patterns outside the training distribution (Section 10): Adversarial training improves robustness against known evasion strategies, but the arms race between moderation systems and producers of violating content persists, and novel evasion patterns outside the training data distribution may still pose challenges.
- Language coverage (Section 10): Current evaluation is mainly conducted in Chinese and English safety scenarios; generalization to broader multilingual and cross-cultural moderation scenarios has not been systematically evaluated.
- General capability gap (Section 10): There remains a small gap relative to the base model on some general benchmarks, and there is room for improvement in balancing domain specialization with preservation of general capabilities.
- Future directions (Section 10): (1) build a continuous red-teaming and closed-loop data refresh pipeline; (2) extend training and evaluation to multilingual safety scenarios; (3) strengthen agent capabilities to support more complex multi-step safety governance workflows (policy retrieval, evidence attribution, cross-system tool calling).
Scope of experiments
- Models tested are Yuvion-8B/32B/32B (Agent) plus 20+ baselines; the dynamic adversarial benchmark is evaluated only on 6 models (Qwen3-8B/32B, Qwen3-Max, GPT-5.4, Yuvion-8B/32B) (Table 7).
- The self-built adversarial benchmark covers 5 risk categories (advertising solicitation, gambling fraud, abuse, pornography, spamming); seeds come from e-commerce, social, and local-life platforms, with 5 experts performing double annotation plus arbitration (Appendix D.1).
- The paper does not report sample sizes for each benchmark, the number of evaluation repetitions, or statistical significance tests.
- The semantic fidelity of the dynamic set is scored by an independent LLM evaluator; the paper does not state which model this evaluator is, nor does it report its agreement with human judgments.
- Training details (data scale, number of iterations, β value, GRPO sampling group size, and other hyperparameters) are not reported in the paper.
Summarize the main content of the paper
Yuvion LLM is a specialized model for adversarial content safety; the authors say it outperforms larger models on safety benchmarks while largely maintaining general capability.
Alibaba Security AGI Lab proposes Yuvion LLM, a specialized large model for adversarial content safety and broader AI safety, with a supporting four-level evaluation framework YLRE (93 benchmarks).
- Problem: the authors argue that safety is inherently an adversarial problem, with violative intent hidden through euphemism, homophones, cross-language mixing, and the like; general models are fragile under adversarial inputs, and guard models only make single-turn judgments and lack tool use and multi-step execution capability.
- Method: three-stage progressive training—knowledge-enhanced continued pretraining to inject safety domain knowledge; risk-aware SFT (including adversarially augmented samples) plus GRPO policy optimization to form a policy-consistent decision boundary; agent RL (tool calling with ToolRL-style decomposed rewards, search with execution+result dual rewards) to extend to trajectory-level reasoning. The data system is divided into five categories: general, safety, adversarial, agent, and synthetic/expert.
- Main results (as reported by the authors): Yuvion-32B averages 78.2% Macro F1 on 8 public content-safety benchmarks, higher than GPT-5.4 (72.2%) and Qwen3-Max (73.9%) (Table 4); its combined score of 20.6% on the dynamic adversarial benchmark is the lowest among the 6 tested models (Table 7); guard evaluation averages 78.9% F1 and 0.18% FPR, better than the Qwen3-32B base (Table 5); internal business benchmark total score is 86.34, and the Agent version 87.34 (Table 9); average over 33 general benchmarks is 0.7988, slightly below Qwen3-32B's 0.8099 (Table 2).
- The authors' conclusion: targeted adversarial and agentic safety training can matter more than model scale—Yuvion-8B outperforms larger models such as GPT-5.4 and Qwen3-Max on multiple safety tasks; guard models score close to 0 on internal benchmarks, and the authors argue that general guard capability is insufficient to support real moderation workflows.
- Limitations acknowledged by the authors: new out-of-distribution evasion patterns, unverified multilingual generalization, and remaining gaps on some general benchmarks; code and models are planned for partial open-sourcing, and Yuvion-Guard-8B weights have been released.