mlsanityData to 7 Oct 2026

Do You Really Need a GPU to Guard Your LLM? CPU-Class Classifiers and Multi-Stage Pipelines for Safety Enforcement at Scale

arXiv 2512.19011 ↗First posted 22 Dec 2025cs.CR cs.AI cs.CLcited by 2

On the map: LLM safety and security → Safety alignment, refusal and guardrails

Abstract (arXiv)

Safety classifiers that screen LLM inputs for jailbreak attempts have become standard deployment components, yet almost all production systems rely on GPU-based models: fine-tuned transformers and LLM-as-a-judge pipelines. These approaches impose significant per-query latency and infrastructure cost. Very little research has asked whether CPU-based classifiers, such as support vector machines and gradient-boosted trees trained on TF-IDF features, can match their accuracy across the conditions that production deployments encounter. We evaluate five CPU classifier families, Mamba-130M as an SSM-based GPU classifier, and transformer-based GPU models (DeBERTa-v3 and Gemma-2B with LoRA) across nine jailbreak sources and three regimes: in-distribution (D1), out-of-distribution (D2), and adversarially obfuscated (D3). On D1, the best CPU classifier matches the best transformer GPU model at roughly one-fifth the deployment cost. On D2, CPU classifiers fail via confident miscalibration, producing high-confidence false negatives that bypass escalation entirely. On D3, CPU classifiers outperform transformer GPU models by more than 26 percentage points in F1. Based on these complementary failure modes, we design GuardChain, a three-stage safety pipeline (Regex -> CPU -> GPU) that routes each prompt to the cheapest stage capable of a confident decision. The CPU stage alone resolves 80% of in-distribution prompts at near-peak accuracy, and the GPU stage recovers the out-of-distribution failures. For practitioners deploying LLM safety at scale, this work provides evidence that GPU-class infrastructure is unnecessary for the majority of traffic.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 30 of its 59 references that are in the map. First posted on arXiv 22 Dec 2025.

Builds on

30 of 59 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025No Free Lunch with Guardrails1 Apr
  2. 2024On Calibration of LLM-based Guard Models for Reliable Content Moderation14 Oct
  3. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs26 Jun

Other references · 27

  1. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  2. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  3. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  4. 2020Shortcut Learning in Deep Neural Networkscited by 1,928
  5. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  6. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
  7. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
  8. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
  9. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
  10. 2022Red Teaming Language Models with Language Modelscited by 983
  11. 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
  12. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
15 more
  1. 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 633
  2. 2019Green AIcited by 620
  3. 2023Detecting Language Model Attacks with Perplexitycited by 411
  4. 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 364
  5. 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 354
  6. 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 347
  7. 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 224
  8. 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 126
  9. 2025LlamaFirewall: An open source guardrail system for building secure AI agentscited by 114
  10. 2021A systematic review of Hate Speech automatic detection using Natural Language Processingcited by 26
  11. 2025LLM Jailbreak Detection for (Almost) Free!cited by 13
  12. 2024Improved Large Language Model Jailbreak Detection via Pretrained Embeddingscited by 10
  13. 2024State Space Models are Strong Text Rerankerscited by 10
  14. 2023Linear Classifier: An Often-Forgotten Baseline for Text Classificationcited by 7
  15. 2025JavelinGuard: Low-Cost Transformer Architectures for LLM Securitycited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Can Large Language Models Predict Parallel Code Performance?
  2. 2026D2K-Bench: Can LLM Agents Turn Expert Designs into Efficient GPU Kernels?
  3. 2026Characterizing CPU-Induced Slowdowns in Multi-GPU LLM Inference
  4. 2026RouteScan: A Non-Intrusive Approach to Auditing MoE LLMs Safety via Expert Routing Telemetry
  5. 2025RAPID-LLM: Resilience-Aware Performance analysis of Infrastructure for Distributed LLM Training and Inference ↗
  6. 2026HarmChip: Evaluating Hardware Security Centric LLM Safety via Jailbreak Benchmarking
  7. 2026Prompt Attack Detection with LLM-as-a-Judge and Mixture-of-Models
  8. 2026When Benchmarks Lie: Evaluating Malicious Prompt Classifiers Under True Distribution Shift