Revealing the ghost in the Transformer: Hidden-state forensics-based anomaly detection for large language modelsExposing the Ghost in the Transformer: Abnormal Detection for Large Language Models via Hidden State Forensics
AI summary
The researchers propose a large language model anomaly detection framework based on hidden-state forensics, which identifies threats such as hallucinations, jailbreak attacks, and backdoor exploitation in real time by examining activation patterns at each layer. Experiments show detection accuracy exceeding 95%, robust performance across multiple models in most scenarios, and the ability to detect novel attacks. The detector's inference takes less than one second, with minimal computational overhead.