← Lab /AI/ML

Reflex-Guard filters harmful prompts with 95.9% recall in 37.6 ms

Reflex-Guard achieves 95.9% recall on harmful prompts with 37.6 ms end-to-end latency

AI/ML arXiv 18 Aug 2026 Defense Prototype evidence

Published as “Reflex-Guard: A Low-Latency Guardrail for LLM Prompt Safety Using Dense Semantic Embeddings”

Why it matters

Enables real-time, privacy-preserving LLM deployment in latency-sensitive domains such as healthcare and finance.

Summary

Reflex-Guard detects 95.9% of harmful prompts with 37.6 ms end-to-end latency, beating Llama Guard 2 (255 ms) and SafeDecoding (723 ms), but its default threshold misses all DrAttack structured prompts, requiring a lower 0.03 threshold for full detection.

What they found 3

  1. High recall and low latency overall

    “Reflex-Guard achieves 95.9% recall on harmful prompts at 37.6 ms end-to-end latency.”

  2. Perfect detection of certain encoded attacks

    “It can detect 100% of GCG suffix attacks and Base64encoded prompts using the default threshold.”

  3. DrAttack prompts need a lower threshold

    “DrAttack structured prompts required lowering the threshold to 0.03 for optimal detection, as they produced a distinct probability distribution.”

Caveats 3

  • At the default threshold τ = 0.25, Reflex-Guard fails to detect DrAttack prompts (0% recall) despite the overall 95.9% recall claim.
  • The evaluation uses a balanced dataset of 30,568 prompts from five sources, which provides useful evidence but may not fully represent large-scale production traffic.
  • The study mainly evaluates English prompts, with Bengali prompts used only as preliminary multilingual evidence.

What’s new here 4

  • Uses dense sentence-transformer embeddings for local, sub-100 ms safety filtering
  • Introduces the Reflex Efficiency Score (RES) to jointly evaluate recall and latency
  • Implements jailbreak-aware preprocessing that decodes Base64 and identifies GCG and DrAttack patterns
  • Proposes adaptive, attack-specific decision thresholds