Metraipolis › archive › dc_6a7688e8af13
Reflex-Guard: A Low-Latency Guardrail for LLM Prompt Safety Using Dense Semantic Embeddings — arXiv:2608.17556
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.17556
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-18T14:49:04.927Z
- SHA-256 of the archived text
3793c366dc6b950b83de59b85321c2bc982f05dc09df28f8318d777ddfaf696a- Stable URL of this page
https://metraipolis.com/documento/dc_6a7688e8af13
How to cite
Reflex-Guard: A Low-Latency Guardrail for LLM Prompt Safety Using Dense Semantic Embeddings — arXiv:2608.17556 — arXiv (en), https://arxiv.org/abs/2608.17556 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_6a7688e8af13 (Metraipolis archive dc_6a7688e8af13, sha256 3793c366dc6b950b83de59b85321c2bc982f05dc09df28f8318d777ddfaf696a)
BibTeX
@misc{dc6a7688e8af13,
title = {Reflex-Guard: A Low-Latency Guardrail for LLM Prompt Safety Using Dense Semantic Embeddings — arXiv:2608.17556},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.17556},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_6a7688e8af13; sha256 3793c366dc6b950b83de59b85321c2bc982f05dc09df28f8318d777ddfaf696a},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.17556. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large Language Models (LLMs) in real-world applications often face the risks of specially crafted prompts designed to bypass the safety controls. Existing guardrail methods, such as LLM-as-a-judge and cloud-based safety APIs are able to detect unsafe content. However, they often add a delay of about 250-900 ms to each request. This delay is too high for real-time applications, when the system usually needs to respond in less than 100 ms. Furthermore, routing user prompts through external moderation endpoints raises significant data privacy concerns. This paper introduces Reflex-Guard, a lightweight guardrail that runs locally. It uses jailbreak-aware preprocessing, compact sentence-transformer embeddings, and seven fast binary classifiers. Together, these components enable high-accuracy prompt safety filtering with much lower latency than existing solutions. Through systematic evaluation on a strategically balanced dataset of 30,568 samples drawn from five complementary sources, we demonstrate that Reflex-Guard achieves 95.9% recall on harmful prompts at 37.6 ms end-to-end latency. It is faster than existing baselines, including Llama Guard 2 at 255 ms and SafeDecoding at 723 ms. It can detect 100% of GCG suffix attacks and Base64-encoded prompts using the default threshold. However, DrAttack structured prompts required lowering the threshold to 0.03 for optimal detection, as they produced a distinct probability distribution. Reflex-Guard achieves Reflex Efficiency Score (RES) scores up to 16.79, significantly outperforming Llama Guard 2 (11.90) and SafeDecoding (9.80). This analysis offers practical deployment advice and shows that different attack types occupy distinct regions in the embedding probability space. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-19 in cs.LG). Categorie arXiv: Cryptography and Security (cs.CR) ; Computation and Language (cs.CL); Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2608.17556 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-18T14:47:59.463Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-08-19?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).