Mistral launches Shieldstral, a 3B open-weights policy-adaptive safety classifier

Mistral AI released Shieldstral on Monday, a 3-billion-parameter open-weights safety classifier that matches or outperforms guard models up to seven times its size. The model is available under Apache 2.0 and runs on a single 16 GB GPU. What sets Shieldstral apart from typical guardrail models is its approach to content moderation. Rather than baking a fixed taxonomy of harm categories into the model weights — which forces developers to retrain whenever their safety requirements change — Shield

2 min
Mistral launches Shieldstral, a 3B open-weights policy-adaptive safety classifier

Mistral AI released Shieldstral on Monday, a 3-billion-parameter open-weights safety classifier that matches or outperforms guard models up to seven times its size. The model is available under Apache 2.0 and runs on a single 16 GB GPU.

What sets Shieldstral apart from typical guardrail models is its approach to content moderation. Rather than baking a fixed taxonomy of harm categories into the model weights — which forces developers to retrain whenever their safety requirements change — Shieldstral accepts a plain-language policy at inference time and returns a calibrated safety score from a single token.

Each request uses three inputs: an instruction defining the evaluation context and strictness, a yes-or-no query such as "Does this content promote physical violence," and the document to judge, which can be a text prompt, a model response, a prompt-response pair, or an image with optional text.

The model reads only the "yes" and "no" logits and softmax-normalizes them into a continuous score, so developers can threshold or rank by confidence rather than relying on a binary label. A single interface covers text, image, and text-plus-image inputs across prompts, responses, and prompt-response pairs.

Shieldstral policy-adaptive safety classification pipeline
Shieldstral policy-adaptive safety classification pipeline

How it was built

Mistral trained Shieldstral by unifying heterogeneous safety datasets into a common instruction-query-document format, varying the phrasing to prevent overfitting. To teach discrimination rather than memorization, the team built contrastive training pairs: sets of similar but distinct policies where an LLM rewrites safe text into examples that violate one policy but not another.

The model was fine-tuned with LoRA, and complementary checkpoints were merged via SLERP to combine public-data calibration, policy discrimination, and instruction-following. Mistral built it end-to-end on Forge, its custom model training platform, and is releasing it as an inaugural member of the Open Secure AI Alliance alongside NVIDIA.

Benchmarks

On benchmarks, Shieldstral matches or beats models up to 7x its size across text safety, refusal detection, policy adaptability, and multimodal safety evaluations. All evaluation samples were held out from training.

The model is available on Hugging Face as Shieldstral-1.0-3B, with a technical report hosted on arXiv.

Written by

More to read

  • Grammar-Constrained Decoding in Production: Comparing Outlines, llguidance, XGrammar, and LM-Format-Enforcer Architecture, Token Masking Overhead, and JSON Schema Enforcement

    Grammar-Constrained Decoding in Production: Comparing Outlines, llguidance, XGrammar, and LM-Format-Enforcer Architecture, Token Masking Overhead, and JSON Schema Enforcement Deploying Large Language Models into production software workflows requires deterministic adherence to structural formats such as JSON schemas, Pydantic data models, SQL queries, and tool-call signatures. Unconstrained autoregressive generation relies entirely on prompt instructions and few-shot examples, frequently result

    1 min
  • Rotary Position Embeddings: Mathematical Foundations, Complex Rotations, and Long-Context Scaling

    Standard transformer architectures lack an intrinsic mechanism to model sequence order. Because the self-attention operation is permutation-equivariant, shuffling the input token sequence produces an identical permutation in the output representations unless positional signals are explicitly injected. Early architectures addressed this constraint through additive position embeddings, either via fixed sinusoidal functions or learnable absolute position vectors. However, additive absolute encodin

    1 min
  • AI Cloud Provider Lambda in Talks to Raise B at 2B Valuation Ahead of IPO

    AI cloud infrastructure provider Lambda Inc. is in negotiations to raise up to $3 billion in a pre-IPO funding round that could value the company at $12 billion or higher, according to people familiar with the discussions reported by Bloomberg. The round represents an eightfold valuation step-up from February 2024, when Lambda secured $320 million in Series C funding at a $1.5 billion valuation. The company's annualized revenue is projected to exceed $1.5 billion in 2026, driven by continuous e

    1 min