AERIC:面向隐式有害对话的预期性隐藏状态监控
AERIC: Anticipatory Hidden-State Monitoring for Implicit Harmful Dialogue
AI总结:
提出AERIC方法,利用生成器的隐藏状态进行同路径监控,通过短期危害预测、支持敏感抑制和提示条件残差评分,在轻量级线性监控器(仅387个可训练参数)上实现对隐式有害对话的早期检测,显著提升AUROC并降低延迟。
摘要:
当前语言模型带来两个安全挑战:必须足够早地检测风险以避免暴露有害的延续,且危害本身可能是隐式的而非通过明显的有毒文本信号。现有的响应级防护在评判完整文本方面表现强劲,原生流式防护则更接近令牌时间,但两者都未解决轻量级监控器能否从生成器自身的内部轨迹预测隐式有害漂移的问题。我们研究预期性同路径监控,其中安全监控器可以读取正常解码过程中产生的隐藏状态,但不能调用通过基础模型的额外前向传播。我们引入AERIC,一种面向隐式有害对话的迁移导向隐藏状态方法,结合短期危害预测、支持敏感抑制和提示条件残差评分,并采用同路径指数移动平均决策规则。默认线性监控器仅包含387个可训练头部参数。在平衡基准测试中,与Qwen3GuardStream-4B相比,AERIC在DiaSafety上将AUROC从0.6830提升至0.7143,在Harmful Advice上从0.8219提升至0.8582。对于提示级触发基准测试,我们通过源端安全预算规则校准AERIC阈值,该规则在将安全触发率限制在最多10%的同时最大化触发覆盖率。在该规则下,对于Qwen和Gemma,trigger@64在HarmBench DirectRequest上分别达到0.6438和0.4656,在SocialHarmBench上分别达到0.6849和0.7363,平均保留23.53至41.86个回答令牌。同路径部署也很高效:在Qwen3-8B下,针对HarmBench DirectRequest和SocialHarmBench聚合的63个提示有害提示固定生成基准测试中,监控器仅使平均延迟增加2.34%,而Qwen3Guard-Stream-4B使其增加79.40%。
英文摘要:
Current language models create two safety challenges: risk must be detected early enough to avoid exposing harmful continuation, and the harmfulness itself may be implicit rather than signaled by overtly toxic text. Existing response-level guards are strong at judging completed text, and native streaming guards move closer to token time, but both settings leave open whether a lightweight monitor can anticipate implicit harmful drift from the generator's own internal trajectory. We study anticipatory same-pass monitoring, where a safety monitor may read hidden states produced during ordinary decoding but may not invoke an additional forward pass through the base model. We introduce AERIC, a transfer-oriented hidden-state approach for implicit harmful dialogue that combines short-horizon hazard forecasting, support-sensitive suppression, and prompt-conditioned residual scoring under a same-pass exponential moving average decision rule. The default linear monitor contains only 387 trainable head parameters. Against Qwen3GuardStream-4B on balanced benchmarks, AERIC improves AUROC from 0.6830 to 0.7143 on DiaSafety and from 0.8219 to 0.8582 on Harmful Advice. For promptlevel trigger benchmarks, we calibrate the AERIC threshold by a source-side safe-budget rule that maximizes trigger coverage while constraining the safe-trigger rate to at most 10%. Under that rule, trigger@64 reaches 0.6438 and 0.4656 on HarmBench DirectRequest and 0.6849 and 0.7363 on SocialHarmBench for Qwen and Gemma, respectively, withholding between 23.53 and 41.86 answer tokens on average. Same-pass deployment is also efficient: on a 63-prompt harmfulprompt fixed-generation benchmark aggregated over HarmBench DirectRequest and SocialHarmBench under Qwen3-8B, the monitor increases mean latency by only 2.34%, whereas Qwen3Guard-Stream-4B increases it by 79.40%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。