提出新基准MOOD,发现大模型安全监控在异常情况常失效,改进后召回率提升6%。
Benchmarking and Improving Monitors for Out-Of-Distribution Alignment Failure in LLMs

- 构建MOOD基准,用受限训练集训练监控器并测试七类分布外对齐失败
- 现有安全分类器在分布外场景召回率仅39%,组合检测方法提升至45%
- 证明引入分布外检测比扩大模型规模20倍更有效,适合安全研究者
大型语言模型(LLMs)的安全与对齐失败常源于分布外(OOD)情境:即模型开发者未预见的提示或响应模式。本文系统评估了现有监控管道是否能检测此类失败,提出了名为Misalignment Out Of Distribution(MOOD)的新基准。由于难以获取针对现成模型的真正分布外失败样本,我们通过在MOOD中使用受限训练集来训练自己的监控器,并在七个涵盖多样对齐失败且超出训练分布的测试集上进行评估。实验表明,现有安全分类器(guard models)在分布外场景下泛化能力差,召回率仅为39%。为此,我们提出将安全分类器与分布外检测器结合的方法。测试了四种分布外检测器,发现结合马氏距离与困惑度检测的方案可使召回率从39%提升至45%。此外,我们观察到监控器性能随模型规模增长呈正向趋势;将分布外检测纳入监控体系带来的召回提升,优于使用参数量增加20倍的安全分类器。结果表明,分布外检测应成为大模型监控的核心组件。代码与数据已公开:https://github.com/Dylan102938/mood-bench。
原文摘要 · Abstract (English)
Many safety and alignment failures of large language models (LLMs) occur due to out-of-distribution (OOD) situations: unusual prompt or response patterns that are unforeseen by model developers. We systematically study whether LLM monitoring pipelines can detect these OOD alignment failures by introducing a benchmark called Misalignment Out Of Distribution (MOOD). It is difficult to find failures that are truly OOD for off-the-shelf models trained on vast safety datasets. We sidestep this by including a restricted training set in MOOD that we use to train our own monitors, as well as seven test sets with diverse alignment failures that are outside the training distribution. Using MOOD, we find that guard models (safety classifiers) often fail to generalize OOD. To fix this, we propose combining guard models with OOD detectors. We test four types of OOD detectors and find that a combination of a guard model with Mahalanobis distance and perplexity-based OOD detectors can improve recall from 39% to 45%. We also establish positive scaling trends across model scales for monitors that combine a guard model and OOD detector; we find that incorporating OOD detection into monitoring achieves a higher recall gain than using a guard model with 20 times more parameters. Our work suggests that OOD detection should be a crucial component of LLM monitoring and provides a foundation for further work on this important problem. We release the code and data for our experiments publicly, and you can find the relevant links here: https://github.com/Dylan102938/mood-bench.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。