条件状态验证:用于适配和监控安全分类器的正确性估计 Regime-Conditional Verification: Correctness Estimation for Adapting and Monitoring Safety Classifiers 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-14
👁️ 预览文献
💡 AI 中文简介
大型语言模型部署的安全分类器常因训练策略与部署者策略不一致、以及流量分布变化导致性能下降而失效。我们提出一种轻量级包装方法RCV,无需重新训练即可适配现成安全分类器。RCV从分类器内部表征估计每个预测与部署者策略不一致的概率,并选择性纠正可能错误的预测。这些正确性估计还提供无标签信号用于检测分布漂移,支持维护循环:更新估计层,仅在必要时微调分类器。在三个现成分类器和两个基准数据集上,RCV在所有组合中均提高了策略遵从度,捕获了高达0.81的先前漏检的不安全内容。在包含十个攻击活动的部署研究中,RCV在专用注入面板中检测到每个活动;在维护普查中,大多数漂移事件无需更新分类器即可修复,微调仅用于修复无法恢复的残余事件。
领域人工智能安全,大型语言模型安全
适合谁读需要一定专业背景
核心贡献提出RCV方法,无需重训练即可适配现成安全分类器,同时提供无标签漂移检测信号。
关键数据捕获高达0.81的先前漏检不安全内容;在十个攻击活动中全部检测到。
推荐理由如果你关心LLM安全分类器在实际部署中的失效问题,这篇论文提供了一个轻量级且有效的解决方案。
关键词["安全分类器", "策略适配", "正确性估计", "分布漂移", "大型语言模型安全", "模型维护"]

原文摘要

查看英文原文摘要

Safety classifiers deployed with large language models often fail for two reasons: their decisions reflect the policy learned during training rather than the deployer's desired policy, and their performance degrades as deployment traffic evolves. We present Regime-Conditional Verification (RCV), a lightweight wrapper that adapts an off-the-shelf safety classifier without retraining it. RCV estimates, from the classifier's internal representations, the probability that each prediction disagrees with the deployer's policy, and selectively corrects predictions likely to be wrong. The same correctness estimates also provide a label-free signal for detecting distribution shift, enabling a maintenance loop that updates the correctness estimation layer and resorts to classifier fine-tuning only when necessary. Across three off-the-shelf safety classifiers and two benchmark datasets, RCV improves adherence to the deployer's policy in every classifier-dataset combination, catching up to 0.81 of previously missed unsafe content without modifying the underlying classifier. In a deployment study with ten attack campaigns, each a harm category held out of RCV's training, RCV detects every campaign in a dedicated injection panel; in the maintenance census most drift episodes are repaired without updating the classifier, and the fine-tune is reserved for the residual episodes that repair does not restore.