cd /news/large-language-models/feedback-wanted-low-latency-llm-guar… · home topics large-language-models article
[ARTICLE · art-57103] src=discuss.huggingface.co ↗ pub= topic=large-language-models verified=true sentiment=· neutral

[Feedback Wanted] Low-Latency LLM Guardrails Using a 14M Parameter Discriminator

DeshwalX released electra-small-prompt-injection-v1, a 14M-parameter multi-label classifier based on google/electra-small-discriminator, achieving 90% Micro F1 and 89% Macro F1 on the WildGuard test benchmark for low-latency LLM guardrails. The model detects four safety vectors in a single forward pass, with prompt adversarial (jailbreak) detection at 1.00 F1, response refusal at 0.86 F1, prompt harmful at 0.88 F1, and response harmful at 0.81 F1. The developer is seeking community feedback to improve Version 1.

read1 min views54 publishedJul 13, 2026

Hi everyone,

I have released ** DeshwalX/electra-small-prompt-injection-v1**, a multi-label classifier for low-latency LLM guardrails.

Many prompt injection detectors rely on large autoregressive models that introduce processing latency. This project tests the baseline efficiency of a compact encoder backbone by fine-tuning ** google/electra-small-discriminator** (~14M parameters) to detect four independent safety vectors in a single forward pass.

WildGuard Test Benchmark Evaluation:

Micro F1: 90.00% | Macro F1: 89.00%

Prompt Adversarial (Jailbreaks): 1.00 F1 Response Refusal: 0.86 F1

Prompt Harmful: 0.88 F1

Response Harmful: 0.81 F1

Model Repository: DeshwalX/electra-small-prompt-injection-v1 · Hugging Face I am looking for community feedback to improve Version 1. Please test the model on your own data and share:

Edge cases where the model fails or misses an injection.

Examples of false positives on benign inputs.

Suggestions for architecture configurations or loss weight balancing for the next iteration.

── more in #large-language-models 4 stories · sorted by recency
── more on @deshwalx 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/feedback-wanted-low-…] indexed:0 read:1min 2026-07-13 ·