Content moderation has long been a game of rigid boundaries and constant retraining. For years, developers have relied on safety classifiers that operate like a checklist: a model is trained to recognize a fixed set of categories, such as hate speech or violence, and flags anything that fits those predefined buckets. But the real world is more nuanced. A cybersecurity research tool needs a permissive boundary to allow discussions of exploits, while a mental health platform requires an incredibly strict filter for self-harm. Until now, switching between these two environments meant deploying two different models or enduring a costly retraining cycle every time a policy changed. This friction has left many teams choosing between a model that is too blunt for their needs or too expensive to maintain.

The Architecture of a 3B Multimodal Guardrail

Mistral has introduced Shieldstral to break this cycle, delivering a 3B parameter multimodal safety classifier designed to run on a single 16GB NVIDIA GPU. Released under the Apache 2.0 license, Shieldstral is an open-weights model that processes both text and images through a unified pipeline. Unlike traditional guardrail models that have safety categories baked into their weights, Shieldstral employs a policy-adaptive approach, meaning it accepts natural language policies as part of its input during the inference phase.

The model operates through a specific three-field input interface. The first field, `<Instruct>`, provides the evaluation context, the desired level of strictness, and the precise definition of what constitutes unsafe content. The second field, `<Query>`, poses a binary yes-or-no question, such as "Does this content promote physical violence?" The final field, `<Document>`, contains the actual material being judged, which can be a prompt, a model response, or a combination of text and images.

To determine the safety of a document, Shieldstral treats the task as a Binary QA problem. During inference, the model reads the logits for the tokens corresponding to Yes and No. These values are then processed via softmax normalization to produce a continuous safety score. This streamlined architecture allows a single checkpoint to handle multiple critical tasks simultaneously, including prompt classification, response moderation, refusal detection, and toxicity screening.

From Static Categories to Policy Reasoning

The fundamental shift in Shieldstral is the move from memorization to reasoning. Most safety models are trained to recognize patterns of toxicity. Mistral instead trained Shieldstral to understand the boundaries of a given policy. To achieve this, the team constructed sets of highly similar policies that are easy to confuse. They then used LLMs to generate contrastive pairs—data points that violate one specific policy but adhere to a nearly identical alternative. This forces the model to develop a precision-based discernment capability, allowing it to adapt to user-defined policies it has never encountered during training.

The training pipeline involved a sophisticated data integration process. Mistral used a custom pre-processor to convert various public safety datasets, each with different labeling schemes, into the standardized `<Instruct>`, `<Query>`, and `<Document>` format. The team applied a strict boundary for adversarial jailbreak data while using a more relaxed threshold for response quality data to calibrate the decision boundary. For multimodal safety, general-purpose image datasets were used as high-quality negative samples, while a Vision-Language Reranker was employed to filter out hallucinations and mislabeled data.

The final model is the result of a SLERP (Spherical Linear Interpolation) merge of three distinct checkpoints. These include a checkpoint calibrated on public data, one optimized for policy discernment via synthetic data, and a base instruct model fine-tuned using LoRA (Low-Rank Adaptation). This merging process, conducted on Mistral's Forge platform, ensures the model maintains strong instruction-following capabilities while remaining highly adaptive to safety policies. The results are significant: Shieldstral matches or outperforms open guard models up to seven times its size across text safety, refusal detection, and multimodal benchmarks, achieving state-of-the-art performance in multimodal moderation.

This capability transforms the operational overhead of AI safety. In a traditional setup, changing a safety rule required a new dataset and a new training run. With Shieldstral, the policy exists within the prompt. A developer can deploy the same model across an entire organization, simply modifying the `<Query>` and `<Instruct>` fields to shift the model from a permissive state for researchers to a restrictive state for end-users. By utilizing the continuous safety score rather than a binary label, operators can tune specific thresholds for different domains, focusing their efforts on refining the natural language of the policy rather than the weights of the model.

Shieldstral shifts the burden of safety from the training pipeline to the prompt engineering layer, turning content moderation into a configurable software setting.