Large language models (LLMs) can be misused to reveal sensitive information, such as weapon-making instructions or writing malware. LLM providers rely on to detect and flag unsafe behavior during inference. An open security challenge is adversaries who craft attacks that simultaneously (i) evade detection while (ii) eliciting unsafe behavior. Adaptive attackers are a major concern as LLM providers cannot patch their security mechanisms, since they are unaware of how their models are being misused. We cast LLM monitoring as a security game, where adversaries who know about the monitor try to extract sensitive information, while a provider must accurately detect these adversarial queries at low false positive rates. Our work (i) shows that existing LLM monitors are vulnerable to adaptive attackers and (ii) designs improved defenses through by carefully introducing uncertainty for the attacker during inference. We find that outperforms guard baselines by up to under adaptive attackers who know the monitoring algorithm but not the secret key.

生成讲解博客的中文版本

生成AI智能校验的中文版本