跳到主内容
@wquguru
精选80MarkTechPost(RSS)模型发布/更新

Mistral 发布开源多模态安全分类器 Shieldstral 1.0 3B

Mistral AI Releases Shieldstral 1.0 3B: An Open-Weights Policy-Adaptive Multimodal Safety Classifier Matching Models 7× Its Size

原文
发到 X

Mistral AI has released Shieldstral 1.0 3B, an open-weights, policy-adaptive multimodal safety classifier that treats content moderation as a single yes/no question rather than a fixed taxonomy of harm categories. Most guardrail models bake their category list into the weights, so re-targeting one to a new deployment context means retraining — and the same content can be acceptable on a cybersecurity research tool while being harmful on a mental-health platform. Shieldstral inverts that: operators write the policy as a plain-language question at inference time, and the model returns a calibrated safety score from a single forward pass. Built on Ministral-3-3B-Base-2512 with a native Pixtral vision encoder and released under Apache 2.0, it reports 84.9% average F1 on text safety — matching GPT-OSS-Safeguard-20B — and 83.8% on multimodal safety, ahead of every baseline Mistral evaluated.

Mistral AI 发布了 Shieldstral 1.0 3B,这是一个开放权重、策略自适应的多模态安全分类器,它将内容审核视为一个简单的是/否问题,而不是固定的危害类别分类法。大多数护栏模型将类别列表嵌入权重中,因此将模型重新定向到新的部署环境意味着需要重新训练——同样的内容在网络安全研究工具中可能是可接受的,而在心理健康平台上则可能是有害的。Shieldstral 颠覆了这一点:操作员在推理时以自然语言问题形式编写策略,模型通过一次前向传播返回校准的安全分数。它基于 Ministral-3-3B-Base-2512 构建,带有原生 Pixtral 视觉编码器,并以 Apache 2.0 许可证发布,在文本安全方面报告平均 F1 分数为 84.9%——与 GPT-OSS-Safeguard-20B 相当——在多模态安全方面为 83.8%,超过了 Mistral 评估的所有基线。

Is it deployable?

它可以部署吗?

Yes, and locally. Shieldstral-1.0-3B fits in 16GB of VRAM in BF16, runs on a single GPU, and is licensed Apache 2.0 for commercial and non-commercial use. Serving paths are already in place: vLLM (≥0.26.0, recommended), llama.cpp via GGUF conversion with Q8_0/Q5_K_M/Q4_K_M quantization, SGLang, and Transformers — with fine-tuning supported through Axolotl. The classifier emits one token, so latency and cost sit far below reasoning-based guards like GPT-OSS-Safeguard-20B.

可以,而且可以本地部署。Shieldstral-1.0-3B 在 BF16 下仅占用 16GB 显存,可在单个 GPU 上运行,并采用 Apache 2.0 许可证,允许商业和非商业使用。服务路径已经就绪:vLLM(≥0.26.0,推荐)、通过 GGUF 转换并使用 Q8_0/Q5_K_M/Q4_K_M 量化的 llama.cpp、SGLang 和 Transformers——并通过 Axolotl 支持微调。该分类器只生成一个 token,因此延迟和成本远低于基于推理的护栏模型(如 GPT-OSS-Safeguard-20B)。

  • Which level of company: the 16GB footprint puts it within reach of seed-stage AI product teams that cannot justify a moderation vendor contract, while the open license and self-hosting story suit mid-market and enterprise teams that need guardrails inside a VPC or on-prem for data-residency and audit reasons. Multi-tenant SaaS vendors get a specific win — one checkpoint can enforce a different policy per customer.
  • Industries: consumer social and UGC platforms, ed-tech and child-safety surfaces, healthcare and mental-health apps, fintech and insurance support automation, gaming and voice chat, marketplaces and ad/creative review, and public sector deployments with sovereignty requirements.
  • Applications: user-prompt moderation, model-response moderation, refusal classification, image-plus-caption review for ads and memes, training-data and RAG-corpus curation, output gating in agentic pipelines, and per-tenant policy enforcement. Because the output is a continuous score rather than a label, teams can tune the threshold per surface or route borderline scores to human review instead of hard-blocking.
  • 适用于哪个级别的公司:16GB 的占用空间使其对于无法承担审核供应商合同的种子期 AI 产品团队来说触手可及,而开放许可证和自托管方案则适合需要在 VPC 内或本地部署护栏以满足数据驻留和审计要求的中端市场和企业团队。多租户 SaaS 供应商获得了一个特定优势——一个检查点可以为每个客户执行不同的策略。
  • 行业:消费者社交和 UGC 平台、教育科技和儿童安全界面、医疗保健和心理健康应用、金融科技和保险支持自动化、游戏和语音聊天、市场平台和广告/创意审核,以及具有主权要求的公共部门部署。
  • 应用场景:用户提示词审核、模型回复审核、拒答分类、广告和表情包的图文审核、训练数据和RAG语料库整理、代理流程中的输出门控,以及按租户执行策略。由于输出是连续分数而非标签,团队可以针对每个界面调整阈值,或将边缘分数转给人工审核,而不是直接硬性阻止。

Moderation as a binary question

将审核视为二元问题

Shieldstral reduces moderation to one yes/no question. A fixed system message establishes the task; the user message carries three fields: <Instruct> (evaluation context and strictness), <Query> (the policy, phrased as a single yes/no question), and <Document> (a prompt, a response, a prompt–response pair, or an image with optional text).

Shieldstral将审核简化为一个是/否问题。固定的系统消息设定任务;用户消息包含三个字段:<Instruct>(评估上下文和严格程度)、<Query>(策略,以单个是/否问题形式表述)和<Document>(提示词、回复、提示词-回复对,或带可选文本的图像)。

At inference the model unembeds only toward the yes and no token IDs and softmax-normalizes them into a continuous score, thresholded at τ=0.5. That collapses prompt classification, response moderation, refusal detection, and toxicity detection into one problem — and it means the policy lives entirely in the prompt. Mistral’s guidance is one policy per call; for a broad safe/unsafe verdict, list the categories in <Instruct> and ask a single wide <Query>.

在推理时,模型仅对“是”和“否”的token ID进行解嵌入,并通过softmax归一化为连续分数,以τ=0.5为阈值。这将提示词分类、回复审核、拒答检测和毒性检测归结为一个问题——这意味着策略完全存在于提示词中。Mistral的指导是每次调用一个策略;对于广泛的“安全/不安全”判定,在<Instruct>中列出类别,并询问一个单一的宽泛<Query>。

The data recipe

数据配方

The claimed advantage comes from data, not scale: roughly 54.1M samples — 45.2M open-source text, 4.4M synthetic contrastive text, 4.5M multimodal. A template-based unification layer converts every dataset into the same instruction–query–document format via per-dataset processors, with randomized phrasings and calibrated strictness (strict for adversarial jailbreaks, lenient for response-quality data).

声称的优势来自数据而非规模:约5410万个样本——4520万开源文本、440万合成对比文本、450万多模态。一个基于模板的统一层通过每个数据集的处理器将所有数据集转换为相同的指令-查询-文档格式,并采用随机措辞和校准的严格程度(对对抗性越狱严格,对回复质量数据宽松)。

The more interesting piece is contrastive generation. An LLM rewrites safe text into an unsafe variant that violates a target category but deliberately not its sibling, producing a positive and a hard negative over identical content in one call. That teaches the model which policy is violated rather than a coarse safe/unsafe split. Image data — which cannot be synthesized the way text can — is supplemented with general-purpose image datasets as negatives, query mutation across a 14-subcategory visual taxonomy, and vision–language reranker filtering.

更有趣的部分是对比生成。一个LLM将安全文本改写为违反目标类别但故意不违反其兄弟类别的不安全变体,在一次调用中产生基于相同内容的正样本和难负样本。这教会模型哪个策略被违反,而不是粗略的安全/不安全划分。图像数据——无法像文本那样合成——通过通用图像数据集作为负样本、跨14个子类别的视觉分类法的查询变异,以及视觉-语言重排序器过滤来补充。

Training is LoRA fine-tuning followed by a three-way SLERP merge: 0.6 public+generated, 0.3 public-only, 0.1 Ministral-3B-Instruct.

训练采用LoRA微调,随后进行三路SLERP合并:0.6公开+生成数据,0.3仅公开数据,0.1 Ministral-3B-Instruct。

Results

结果

On text safety, Shieldstral reports 84.9% average F1, tying GPT-OSS-Safeguard-20B (84.9%) as the smallest model in the comparison, with wins on ToxicChat (84.1), HarmBench (99.4), and Aegis v2 response (87.2). On multimodal safety it reports 83.8% overall versus 77.6% for OmniGuard-7B, leading VLGuard (97.7) and UnsafeBench (81.8); LlavaGuard-7B still leads its namesake benchmark at 81.4.

在文本安全方面,Shieldstral 报告平均 F1 为 84.9%,与 GPT-OSS-Safeguard-20B(84.9%)持平,是参与比较的模型中规模最小的,在 ToxicChat(84.1)、HarmBench(99.4)和 Aegis v2 响应(87.2)上均获胜。在多模态安全方面,它报告总体为 83.8%,而 OmniGuard-7B 为 77.6%,在 VLGuard(97.7)和 UnsafeBench(81.8)上领先;LlavaGuard-7B 仍在其同名基准上以 81.4 领先。

On the adaptability benchmark — built on a deliberately divergent taxonomy of 12 super classes, 26 subcategories, and 52 leaf categories with 90 fixed queries, where no leaf maps one-to-one to training — Shieldstral scores 91.3% F1, behind GPT-OSS-Safeguard-20B (94.1%) and Nemotron-3.5-Safety-4B (91.8%), but without generating a reasoning trace. Refusal detection lands at 91.5% overall against 93.7% for GPT-OSS-Safeguard-20B.

在适应性基准上——该基准基于一个刻意不同的分类体系,包含 12 个超类、26 个子类别和 52 个叶类别,共 90 个固定查询,其中没有叶类别与训练一一对应——Shieldstral 的 F1 得分为 91.3%,落后于 GPT-OSS-Safeguard-20B(94.1%)和 Nemotron-3.5-Safety-4B(91.8%),但不会生成推理轨迹。拒绝检测总体达到 91.5%,而 GPT-OSS-Safeguard-20B 为 93.7%。

Where it is weaker: multilingual prompt classification lags on Arabic and Indonesian and on RTP-LX prompts (70.3 vs 86.1 for Nemotron-3.5-Safety-4B). Mistral also flags reduced reliability on adversarial or obfuscated inputs and very long documents. Trained context is 32k tokens across 12 languages.

其较弱之处:多语言提示分类在阿拉伯语和印尼语以及 RTP-LX 提示上表现滞后(70.3,而 Nemotron-3.5-Safety-4B 为 86.1)。Mistral 还指出在对抗性或混淆输入以及超长文档上的可靠性降低。训练上下文为 32k 个 token,涵盖 12 种语言。

Key Takeaways

关键要点

  • 3B Apache 2.0 multimodal guardrail; policy is a plain-language question at inference time, no retraining.
  • 84.9% text F1 ties a 20B model; 83.8% multimodal F1 is best-in-class among evaluated baselines.
  • 54.1M samples with sibling-contrastive rewrites is the actual mechanism behind policy generalization.
  • Single forward pass, single token out, continuous score at τ=0.5 — cheap enough for real-time gating.
  • Weak spots: low-resource languages, obfuscated inputs, long documents.
  • 3B Apache 2.0 多模态护栏;推理时策略为自然语言问题,无需重新训练。
  • 文本 F1 为 84.9%,与 20B 模型持平;多模态 F1 为 83.8%,在评估的基线中表现最佳。
  • 使用兄弟对比重写的 5410 万个样本是策略泛化背后的实际机制。
  • 单次前向传播,单 token 输出,在 τ=0.5 时连续评分——足够便宜,可用于实时门控。
  • 弱点:低资源语言、混淆输入、长文档。

Check out the Paper, Model on Hugging Face, and Technical Details. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

查看论文、Hugging Face 上的模型和技术细节。此外,欢迎在 Twitter 上关注我们,别忘了加入我们的 150k+ ML SubReddit 并订阅我们的新闻通讯。等等!你在 Telegram 上吗?现在你也可以加入我们的 Telegram。

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us

需要与我们合作推广你的 GitHub 仓库、Hugging Face 页面、产品发布或网络研讨会等?请联系我们。

The post Mistral AI Releases Shieldstral 1.0 3B: An Open-Weights Policy-Adaptive Multimodal Safety Classifier Matching Models 7× Its Size appeared first on MarkTechPost.

文章《Mistral AI 发布 Shieldstral 1.0 3B:一种开放权重、策略自适应的多模态安全分类器,性能媲美其 7 倍大小的模型》首次出现在 MarkTechPost 上。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近