COGNIT-Guard: Calibrated Standalone Direct-Decision Guardrails with Heterogeneous CPU-NPU Confidence Cascading under Explicit Latency and False-Positive Constraints
Abstract
When must a foundation-model safety gateway generate tokens, and when should it directly output a calibrated decision? We study calibrated standalone direct-decision foundation models for real-time pre-ingestion safety guardrails, jointly addressing probability calibration, dual-use false-positive control, and heterogeneous CPU-NPU routing under explicit latency SLOs. Pre-ingestion guardrails must screen prompts prior to target-LLM prefill with low false alarms on benign compliance inquiries; however, shallow classifiers are brittle to phrasing shifts, hidden-state probes require coupling to a target LLM, and generative guards incur high decoding latency and dual-use false positives. We present COGNIT-Guard, coupling a validation-calibrated CPU fast gatekeeper with confidence-gated escalation to an NPU-resident 322M bidirectional direct-decision model (Laya-322M) under an asymmetric false-positive penalty. On the clean unseen DUCS-Bench test split (), COGNIT-Guard achieves 98.85% accuracy (McNemar vs. ML), reduces benign FPR to 0.42% (; Fisher's exact vs. ML), and attains 1.12% ECE and 0.0104 Brier score. On Huawei Ascend 910C NPUs, pure NPU inference runs in 21.77 ms mean latency (45.90 QPS), while the live serial CPU-NPU cascade () achieves 41.63 ms mean latency (P50: 39.47 ms, 99.23% accuracy, 0.00% FPR). Evaluation on SafetyBench-ZH () and comparison against a bi-encoder direct-decision baseline (CLM-8B) disentangle in-domain gains, OOD alignment tax (60.33% 56.81% on Laya; 55.10% on domain CLM-8B), and experience replay recovery, restoring OOD accuracy to 64.10%-65.05% and reaching 99.67%-99.84% in-domain accuracy with 0.00%-0.42% FPR.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG
- Comments
- v2: Corrected Ascend 910C software stack version metadata (CANN 9.1.0, torch_npu 2.10) to match the open-source reproducibility environment. 7 pages, 2 figures, 5 tables, 1 algorithm, IEEE double-column format
Related papers
Evaluating System One Models for Agent Security Decisions: Reliability, Calibration, and Selective Automation
Shared title terminologycs.CRYixuan Liu
JevAdvBench: A Benchmark and Black-Box Attacks for Reinforcement Learning for Calibrated Decisions Models
Shared title terminologycs.CRJianyi Hu, Hangtao Zhang, Yi Liu et al.
Calibrated Decision Models for Autonomous Penetration-Testing Harnesses: JEV and Laya as System One Decision Layers for LLM-Driven Pentest Agents
Shared title terminologycs.CRJoas Antonio dos Santos Barbosa
Entropy Bounded Secret Key Generation in a Live 5G NR Stack Guard-Band Extraction and an Emulated Channel Operating Envelope
Shared title terminologycs.CRSachinkumar B. Mallikarjun, Hans D. Schotten
No Decision Without a Record: Fail-Closed Evidence Completeness and Its Cost in an Agent Policy Decision Point
Shared title terminologycs.CRAnimesh Shaw
Sparse Evidence, Decoupled Decisions: Task-Completion Attacks and Decision-Aligned Defenses for Video LLMs
Shared title terminologycs.CRChao Pan, Hongrui Wang, Jiaqi Zhu et al.