$D^2$-Monitor: 通过犹豫感知路由实现扩散LLM的动态安全监控
$D^2$-Monitor: Dynamic Safety Monitoring for Diffusion LLMs via Hesitation Signals
AI总结:
针对扩散大语言模型的安全监控问题,提出基于犹豫感知路由的双层动态监控框架$D^2$-Monitor,通过轻量级探针实时估计犹豫度并触发高容量探针,在3个数据集上以0.85M参数达到最优性能与效率平衡。
摘要:
尽管扩散大语言模型(D-LLMs)作为自回归大语言模型(AR-LLMs)的替代方案已经出现,但D-LLMs的安全监控在很大程度上仍未得到探索。与AR-LLMs不同,D-LLMs通过多步去噪过程生成文本,暴露了中间隐藏表示,这些表示可能包含标准单步监控设置中无法获得的安全相关信息。受轻量级探针适用于始终在线监控的启发,我们分析了哪些轨迹级信号最能指示此类探针可能遇到困难。我们发现,信息量最大的信号是安全犹豫度:中间隐藏状态反复落在探针决策边界的小范围内。D-LLM轨迹中此类犹豫步的数量能有效预测探针失败,提供了样本难度的代理指标。基于此分析,我们提出了$D^2$-Monitor,一种针对D-LLMs的双层安全监控器。$D^2$-Monitor采用轻量级探针作为始终在线监控器,以联合估计犹豫度并执行基础分类。当犹豫度超过阈值时,激活更具表现力但计算量更大的探针。这种动态路由机制在测试时高效分配监控资源。在4个D-LLM上的3个数据集(WildguardMix、ToxicChat、OpenAI-Moderation)上评估,$D^2$-Monitor以紧凑的参数规模(≤0.85M参数)实现了最先进的性能,并且相对于8个基线方法,在有效性和效率之间取得了最佳权衡。
英文摘要:
Despite the emergence of diffusion large language models (D-LLMs) as an alternative to autoregressive large language models (AR-LLMs), safety monitoring for D-LLMs remains largely unexplored. Unlike AR-LLMs, D-LLMs generate text through a multi-step denoising process, exposing intermediate hidden representations that may contain safety-relevant information unavailable in standard single-step monitoring setups. Motivated by the suitability of lightweight probes for always-on monitoring, we analyze which trajectory-level signals best indicate when such probes are likely to struggle. We find that the most informative signal is safety hesitation: intermediate hidden states repeatedly falling within a small margin of the probe's decision boundary. The number of such hesitation steps in D-LLM's trajectory predicts probe failure effectively, providing a proxy for sample difficulty. Building on this analysis, we propose $D^2$-Monitor, in which a lightweight probe runs on every sample, producing a base prediction and a hesitation estimate that decides whether to escalate the sample to a more expressive probe. That probe is trained on trajectories with at least one hesitation step, and reads only the minimal span of those steps. Evaluated on 3 datasets (WildGuardMix, ToxicChat, OpenAI-Moderation) across 4 D-LLMs, $D^2$-Monitor achieves state-of-the-art performance with a compact parameter footprint ($\leq$ 0.93M parameters), and exhibits the best trade-off between effectiveness and efficiency relative to 8 baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。