2025-09-05 · 专家 · 机器学习 · 自然语言处理

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

本文揭示了基于探测的恶意输入检测方法在泛化能力上的不足,指出其依赖于表面模式而非语义有害性,导致对LLM安全性的误判。

更新于 2026-10-25。作者:Cheng Wang、Zeming Wei、Qin Liu、Muhao Chen。

中文摘要

大型语言模型(LLMs)能够遵守有害指令,尽管它们的能力令人印象深刻,但这也引发了严重的安全问题。最近的研究利用基于探测的方法来研究LLMs内部表示中恶意和良性输入的分离性,并且研究人员提出了使用这些探测方法进行安全检测。我们系统地重新审视了这一范式。受限于分布外性能不佳的启发,我们假设探测器学习的是表面模式而不是语义上的有害性。通过控制实验,我们证实了这一假设,并确定了所学习的具体模式:指令模式和触发词。我们的调查遵循了一种系统的方法,从证明简单n-gram方法的可比性能,到使用语义清洗数据集的控制实验,再到对模式依赖性的详细分析。这些结果揭示了当前基于探测的方法存在虚假的安全感,并强调了需要重新设计模型和评估协议,对此我们在进一步讨论中提出了建议,希望为这一方向的责任性进一步研究提供建议。我们已在https://github.com/WangCheng0116/Why-Probe-Fails上开源了该项目。

英文摘要

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.

解读

一句话总结

本文揭示了基于探测的恶意输入检测方法在泛化能力上的不足,指出其依赖于表面模式而非语义有害性,导致对LLM安全性的误判。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源