Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LLMScan: Causal Scan for LLM Misbehavior Detection

About

Despite the success of Large Language Models (LLMs) across various fields, their potential to generate untruthful, biased and harmful responses poses significant risks, particularly in critical applications. This highlights the urgent need for systematic methods to detect and prevent such misbehavior. While existing approaches target specific issues such as harmful responses, this work introduces LLMScan, an innovative LLM monitoring technique based on causality analysis, offering a comprehensive solution. LLMScan systematically monitors the inner workings of an LLM through the lens of causal inference, operating on the premise that the LLM's `brain' behaves differently when misbehaving. By analyzing the causal contributions of the LLM's input tokens and transformer layers, LLMScan effectively detects misbehavior. Extensive experiments across various tasks and models reveal clear distinctions in the causal distributions between normal behavior and misbehavior, enabling the development of accurate, lightweight detectors for a variety of misbehavior detection tasks.

Mengdi Zhang, Kai Kiat Goh, Peixin Zhang, Jun Sun, Rose Lin Xin, Hongyu Zhang• 2024

Related benchmarks

TaskDatasetResultRank
Jailbreak DetectionJailbreak data (70/30 stratified)
AUC100
32
Backdoor DetectionSafetyLLM
F1 Score0.8083
3
Backdoor DetectionAlpacaLlama
F1 Score0.5293
3
Backdoor DetectionPII-Masker
F10.8926
3
Backdoor DetectionChatDoctor
F1-score0.0058
3
Showing 5 of 5 rows

Other info

Follow for update