Red Hat AI Safety Benchmark Highlights Small Classifiers Over 35B LLM Judges

A central polished metallic gem radiating pale teal light against a dark backdrop, positioned in front of a larger soft amber glass sphere.

Red Hat's AI Safety team published benchmark results evaluating task-specific classifiers, zero-shot decision models, and large language models acting as judges for AI guardrails. Testing nine configurations with NVIDIA's open-source NeMo Guardrails toolkit, the team assessed trade-offs between accuracy, model size, policy flexibility, and inference latency across prompt injection and content safety benchmarks.

Prompt Injection Performance and Latency Differences

On prompt injection detection, a 200-million-parameter DeBERTa classifier achieved 89.01% accuracy, nearly matching the top score of 89.31% set by Qwen3.6-35B, a 35-billion-parameter mixture-of-experts model acting as an LLM judge. TypeSafe's Jev decision model reached 86.35% accuracy on the same test.

Latency figures showed a much wider gap. DeBERTa recorded a median latency of 54.1 milliseconds running on a MacBook Pro M1 CPU, whereas Qwen registered 312.5 milliseconds and Jev logged 348.1 milliseconds. Red Hat noted that cloud-hosted models absorbed an estimated 56-millisecond transatlantic network latency penalty during testing from the UK, but DeBERTa retained a significant speed advantage even after subtracting network overhead.

Content Safety and Policy Sensitivity

The content safety benchmark reversed top positions. Jev led with 86.20% accuracy, followed closely by open-source alternatives DiffusionGemma at 85.53% and Qwen at 85.47%. Red Hat's 125-million-parameter Granite Guardian classifier finished sixth at 80.27%, though it remained the fastest overall option with a 33.2-millisecond median response time.

The benchmark highlighted how strongly prompt framing affects decision models. When risk definitions were tailored for the open-source Laya decision model, its content safety accuracy jumped from 57.87% to 75.20%. However, that same adjusted policy reduced Jev's content safety score from 86.20% to 82.53%, showing that prompt engineering accounts for a significant portion of decision model accuracy variations.

Deployment Considerations for Developers

Red Hat plans to include both the DeBERTa and Granite Guardian classifiers as default guardrail configurations in OpenShift AI 3.6. Red Hat's evaluation indicates that small, task-specific classifiers offer the best overall trade-off for well-defined security risks with ample labeled data, while decision models and LLM judges justify their higher compute overhead primarily when enforcing broader, ill-defined safety policies. Benchmark testing was restricted to English-language datasets.

AI-generated editorial illustration; not a documentary photograph.

Source: The AI safety check that runs on a laptop and nearly matched a 35B model

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *