False Sense of Security: Why Probing-based Malicious Input Detection Fails to Generalize

Cheng Wang, Zeming Wei, Qin Liu, Muhao Chen
9/4/2025
cs.CL

Official code: WangCheng0116/Why-Probe-Fails (6 stars, MIT, last commit 2025-09-05).

Abstract

Large Language Models (LLMs) can comply with harmful instructions, raising serious safety concerns despite their impressive capabilities. Recent work has leveraged probing-based approaches to study the separability of malicious and benign inputs in LLMs' internal representations, and researchers have proposed using such probing methods for safety detection. We systematically re-examine this paradigm. Motivated by poor out-of-distribution performance, we hypothesize that probes learn superficial patterns rather than semantic harmfulness. Through controlled experiments, we confirm this hypothesis and identify the specific patterns learned: instructional patterns and trigger words. Our investigation follows a systematic approach, progressing from demonstrating comparable performance of simple n-gram methods, to controlled experiments with semantically cleaned datasets, to detailed analysis of pattern dependencies. These results reveal a false sense of security around current probing-based approaches and highlight the need to redesign both models and evaluation protocols, for which we provide further discussions in the hope of suggesting responsible further research in this direction. We have open-sourced the project at https://github.com/WangCheng0116/Why-Probe-Fails.

View on arXivView PDF

Code Implementations(1)

MIT

The official code repository for the paper "False Sense of Security: Why Probing-based Malicious Input Detection Fails to Generalize".

62PythonSep 1, 20251 years agoMIT

Similar Papers

Cite this paper

@article{wang2025false,
  title  = {False Sense of Security: Why Probing-based Malicious Input Detection Fails to Generalize},
  author = {Cheng Wang and Zeming Wei and Qin Liu and Muhao Chen},
  year   = {2025},
  eprint = {2509.03888},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.03888v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.03888.svg)](https://codeofpaper.com/paper/2509.03888)

Discussion