arXiv:2510.14276cs.CL2025-10被引 124

Qwen3Guard实现多语言实时安全检测,支持细粒度判断与流式处理。

Qwen3Guard Technical Report

  • 将安全判断转为指令跟随任务,实现安全/争议/不安全三类细粒度分类。
  • 支持0.6B/4B/8B三种规模,覆盖119种语言,在多语种评测中表现领先。
  • 可实时监控生成过程,适合需要低延迟安全干预的应用场景。

随着大语言模型能力增强与广泛应用,保障输出安全性日益重要。现有护栏模型在实际应用中面临两大挑战:(1) 仅输出二值标签‘安全/不安全’,难以适应不同领域的安全策略差异;(2) 必须等待完整输出后才进行检查,无法支持流式推理,导致有害中间输出暴露风险。为此,我们提出Qwen3Guard系列多语言安全护栏模型,包含两类变体:生成型Qwen3Guard将安全分类转为指令跟随任务,实现安全、争议、不安全三类细粒度判断;流式Qwen3Guard引入词元级分类头,支持生成过程中的实时监测。两种变体均提供0.6B、4B、8B三种参数规模,支持最多119种语言和方言,具备全面性、可扩展性与低延迟特性。在英文、中文及多语言基准上评估,Qwen3Guard在提示词与回复安全分类任务中均达到当前最优性能。所有模型均以Apache 2.0许可证开源。

原文摘要 · Abstract (English)

As large language models (LLMs) become more capable and widely used, ensuring the safety of their outputs is increasingly critical. Existing guardrail models, though useful in static evaluation settings, face two major limitations in real-world applications: (1) they typically output only binary "safe/unsafe" labels, which can be interpreted inconsistently across diverse safety policies, rendering them incapable of accommodating varying safety tolerances across domains; and (2) they require complete model outputs before performing safety checks, making them fundamentally incompatible with streaming LLM inference, thereby preventing timely intervention during generation and increasing exposure to harmful partial outputs. To address these challenges, we present Qwen3Guard, a series of multilingual safety guardrail models with two specialized variants: Generative Qwen3Guard, which casts safety classification as an instruction-following task to enable fine-grained tri-class judgments (safe, controversial, unsafe); and Stream Qwen3Guard, which introduces a token-level classification head for real-time safety monitoring during incremental text generation. Both variants are available in three sizes (0.6B, 4B, and 8B parameters) and support up to 119 languages and dialects, providing comprehensive, scalable, and low-latency safety moderation for global LLM deployments. Evaluated across English, Chinese, and multilingual benchmarks, Qwen3Guard achieves state-of-the-art performance in both prompt and response safety classification. All models are released under the Apache 2.0 license for public use.

安全防护多语言流式检测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。