Safety Beyond the Interface: Detecting Harm via Latent States in Large Language Models
Abstract
Autonomous systems increasingly rely on Large Language Models (LLMs) yet the safety infrastructure surrounding these models introduces latency and compute overhead. This limits utility in resource-constrained, time-critical deployments. Existing external guardrail models remain blind to the model's internal workings, creating a fundamental assurance gap. We ask: does the model already know when the content is harmful? We extract activations from LLaMA-3.1-8B and train lightweight MLP classifier probes (12.6M parameters) to detect harmful prompts. Evaluated on WildJailbreak, Beavertails, and AEGIS 2.0, our probes achieve F1 scores of 99%, 83%, and 84%, respectively competitive with 1000x larger guard models while cutting latency and compute costs.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.CR, cs.LG
- Journal
- IEEE DSN-W 2026, pp. 48-52
Related papers
Beyond Routine Compliance: Cunning Data Cultivates Safety Vigilance in Large Language Models
Shared title terminologycs.AIYoujia Wang, Lin Xu, Yang Sun et al.
LimoBench: How Street Smart Are Large Language Models?
Shared title terminologycs.AIGautam Choudhary, Jack Peng, Udesh Kumarasinghe et al.
Agent Recovery Gone Wrong: Measuring Harm Beyond Duplicate Calls
Shared title terminologycs.AIArtem Trofimov, Boris Novikov
Learning Heterogeneous Reasoning in Large Language Models: From Mode Compatibility to Local Bottlenecks
Shared title terminologycs.AISunbowen Li, Dandan Song, Shengkun Ma et al.
Beyond Accuracy: Centroid-Guided Contrastive Loss for Structured Fraudulent Job Posting Detection
Shared title terminologycs.AISyed Ali Ahmed, Malaika Raza, Muhammad Shoaib Siddiqui et al.
LogicTrack: Auditing Reasoning Trajectories of Large Language Models with Formal Logic Solvers
Shared title terminologycs.AIJingyu Hu, Shu Yang, Weiru Liu et al.