Benchmarking and Improving Monitors for Out-Of-Distribution Alignment Failure in LLMs

Dylan Feng, Pragya Srivastava, Anca Dragan, Cassidy Laidlaw
5/20/2026
4 citations
cs.AIcs.SE
benchmark-dataset

Official code: Dylan102938/mood-bench (0 stars, Python, last commit 2026-07-23).

Abstract

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).

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

00Python, JinjaApr 11, 20264 months ago

Similar Papers

Cite this paper

@article{feng2026benchmarking,
  title  = {Benchmarking and Improving Monitors for Out-Of-Distribution Alignment Failure in LLMs},
  author = {Dylan Feng and Pragya Srivastava and Anca Dragan and Cassidy Laidlaw},
  year   = {2026},
  eprint = {2605.21602},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.21602v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.21602.svg)](https://codeofpaper.com/paper/2605.21602)

Discussion