arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.16650cs.AIcs.CR
收藏

前缀探查:用于大型语言模型的轻量有害内容检测

Prefix Probing: Lightweight Harmful Content Detection for Large Language Models

Fudan University(复旦大学);Ant Group(蚂蚁集团);Pennsylvania State University(宾夕法尼亚州立大学)

Jirui Yang, Hengqi Guo, Zhihui Lu, Yi Zhao, Yuansen Zhang, Shijing Hu, Qiang Duan, Yinggui Wang, Tao Wei

AI总结:

Prefix Probing通过高效前缀探查实现轻量有害内容检测,在保持检测效果的同时大幅降低计算成本和部署需求。

摘要:

大型语言模型在用于现实中的安全敏感应用时,常常面临检测准确性、推理延迟和部署成本之间的三重权衡。本文介绍了Prefix Probing,一种黑盒有害内容检测方法,通过比较

英文摘要:

Large language models often face a three-way trade-off among detection accuracy, inference latency, and deployment cost when used in real-world safety-sensitive applications. This paper introduces Prefix Probing, a black-box harmful content detection method that compares the conditional log-probabilities of "agreement/execution" versus "refusal/safety" opening prefixes and leverages prefix caching to reduce detection overhead to near first-token latency. During inference, the method requires only a single log-probability computation over the probe prefixes to produce a harmfulness score and apply a threshold, without invoking any additional models or multi-stage inference. To further enhance the discriminative power of the prefixes, we design an efficient prefix construction algorithm that automatically discovers highly informative prefixes, substantially improving detection performance. Extensive experiments demonstrate that Prefix Probing achieves detection effectiveness comparable to mainstream external safety models while incurring only minimal computational cost and requiring no extra model deployment, highlighting its strong practicality and efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑