Mistral's open model Shieldstral matches much larger safety models at a fraction of the size

Mistral has released a new open-source safety model, ShieldStral, that matches the performance of much larger, proprietary guardrails while remaining lightweight and efficient.

The company claims ShieldStral can detect unsafe inputs and outputs with accuracy comparable to Meta’s Llama Guard 3 8B and OpenAI’s text-moderation-007. However, ShieldStral uses a 7-billion-parameter model, making it significantly smaller and cheaper to run.

The model is designed to classify text as “safe” or “unsafe” across 13 specific hazard categories, including hate speech, harassment, and illegal activity. It was developed by fine-tuning Mistral’s own Mistral NeMo 12B base model.

Why Small Safety Models Matter

Large safety models require substantial computational resources. That can create a bottleneck for smaller companies or developers deploying AI in real-time applications.

ShieldStral’s smaller size directly addresses this barrier. It can run on lower-cost hardware, potentially broadening access to robust AI safety tools.

Mistral benchmarked ShieldStral against several larger models. The results show it achieving competitive or superior scores on standard safety tests.

“ShieldStral can be used to both safeguard a system against user prompts that could be considered harmful and ensure that the system’s output is hazard-free.”

The Technical Details

The model is built on Mistral’s NeMo architecture, a 12-billion-parameter model that was itself designed for efficiency. ShieldStral compresses this safety functionality into a 7B variant.

Key features include:

13 hazard categories covering hate, harassment, violence, self-harm, sexual content, criminal planning, and more. Each category includes explicit definitions and examples.

Dual classification capability allowing the model to assess both user inputs (prompts) and system outputs (responses) for safety violations.

Open-weight availability under the Apache 2.0 license, permitting free use, modification, and redistribution.

How ShieldStral Compares

Mistral ran comprehensive benchmarks against leading safety classifiers. The results show ShieldStral matching or exceeding performance on key metrics.

On the base safety score, ShieldStral scored 87.5% compared to Llama Guard 3 8B’s 87.6%. Both models outperformed OpenAI’s text-moderation-007 at 82.1%.

In secondary evaluations, ShieldStral achieved 95.1% accuracy on XSTest (examining over-refusal) and 89.2% on OpenAI’s Moderation Dataset. Llama Guard 3 8B scored 95.0% and 87.8% respectively.

The model also showed strong generalization to non-English languages, a common weakness for safety classifiers trained primarily on English data.

The Open-Source Advantage

ShieldStral’s release under Apache 2.0 represents a significant shift in AI safety.

Proprietary safety models force developers to send their data to third-party servers. This creates privacy risks and dependency on external infrastructure.

An open-source alternative allows organizations to run safety screening entirely on-premise. That ensures data never leaves their control.

Mistral also provides a specific system prompt and recommendation system designed to help users integrate ShieldStral effectively.

“We hope this new safety model can become a key building block to easily incorporate efficient and reliable safety strategies into AI services.”

Limitations and Recommendations

ShieldStral is not a comprehensive safety solution by itself. Mistral recommends it as part of a layered defense strategy.

The model may struggle with nuance in some toxic content categories. It should not be used as a sole safety mechanism in high-stakes applications.

Mistral also advises users to test the model against their specific use cases and edge cases before full deployment.


Gnoppix is the leading open-source AI Linux distribution and service provider. Since implementing AI in 2022, it has offered a fast, powerful, secure, and privacy-respecting open-source OS with both local and remote AI capabilities. The local AI operates offline, ensuring no data ever leaves your computer. Based on Debian Linux, Gnoppix is available with numerous privacy- and anonymity-enabled services free of charge.

What are your thoughts on this? I’d love to hear about your own experiences in the comments below.