mlsanityData to 14 Oct 2026

JavelinGuard: Low-Cost Transformer Architectures for LLM Security

arXiv 2506.07330 ↗First posted 9 Jun 2025cs.LG cs.AI cs.CRcited by 4

Not on the map. Why?

Abstract (arXiv)

We present JavelinGuard, a suite of low-cost, high-performance model architectures designed for detecting malicious intent in Large Language Model (LLM) interactions, optimized specifically for production deployment. Recent advances in transformer architectures, including compact BERT(Devlin et al. 2019) variants (e.g., ModernBERT (Warner et al. 2024)), allow us to build highly accurate classifiers with as few as approximately 400M parameters that achieve rapid inference speeds even on standard CPU hardware. We systematically explore five progressively sophisticated transformer-based architectures: Sharanga (baseline transformer classifier), Mahendra (enhanced attention-weighted pooling with deeper heads), Vaishnava and Ashwina (hybrid neural ensemble architectures), and Raudra (an advanced multi-task framework with specialized loss functions). Our models are rigorously benchmarked across nine diverse adversarial datasets, including popular sets like the NotInject series, BIPIA, Garak, ImprovedLLM, ToxicChat, WildGuard, and our newly introduced JavelinBench, specifically crafted to test generalization on challenging borderline and hard-negative cases. Additionally, we compare our architectures against leading open-source guardrail models as well as large decoder-only LLMs such as gpt-4o, demonstrating superior cost-performance trade-offs in terms of accuracy, and latency. Our findings reveal that while Raudra's multi-task design offers the most robust performance overall, each architecture presents unique trade-offs in speed, interpretability, and resource requirements, guiding practitioners in selecting the optimal balance of complexity and efficiency for real-world LLM security applications.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 37 of its 50 references that are in the map. First posted on arXiv 9 Jun 2025.

Builds on

37 of 50 references.

References · 37

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2020Longformer: The Long-Document Transformercited by 3,413
  5. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  6. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  7. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
  8. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
  9. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  10. 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
  11. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agentscited by 538
  12. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 496
25 more
  1. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
  2. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
  3. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
  4. 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
  5. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
  6. 2024Improving Alignment and Robustness with Circuit Breakerscited by 322
  7. 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
  8. 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 243
  9. 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 231
  10. 2024SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language Modelscited by 228
  11. 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Promptscited by 205
  12. 2023Fundamental Limitations of Alignment in Large Language Modelscited by 155
  13. 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Gamecited by 145
  14. 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
  15. 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 136
  16. 2024Automatic and Universal Prompt Injection Attacks against Large Language Modelscited by 119
  17. 2024Defending LLMs against Jailbreaking Attacks via Backtranslationcited by 70
  18. 2024garak: A Framework for Security Probing Large Language Modelscited by 49
  19. 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Modelscited by 42
  20. 2024Defense Against Prompt Injection Attack by Leveraging Attack Techniquescited by 40
  21. 2024Defending Jailbreak Prompts via In-Context Adversarial Gamecited by 29
  22. 2023Robust Safety Classifier for Large Language Models: Adversarial Prompt Shieldcited by 25
  23. 2025Enhancing LLM Safety Through a Theoretical Minimax Game Lenscited by 19
  24. 2023Safeguarding Crowdsourcing Surveys from ChatGPT with Prompt Injectioncited by 11
  25. 2024Improved Large Language Model Jailbreak Detection via Pretrained Embeddingscited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Reflect-Guard: Enhancing LLM Safeguards against Adversarial Prompts via Logical Self-Reflection
  2. 2025Sentra-Guard: A Real-Time Multilingual Defense Against Adversarial LLM Prompts
  3. 2025Adversarial Suffix Filtering: a Defense Pipeline for LLMs
  4. 2025Fast Proxies for LLM Robustness Evaluation
  5. 2025PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks
  6. 2026TamperBench: Systematically Stress-Testing LLM Safety Under Fine-Tuning and Tampering
  7. 2026Prompt Attack Detection with LLM-as-a-Judge and Mixture-of-Models
  8. 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Research