Benchmarking and improving monitors for LLM out-of-distribution alignment failuresBenchmarking and Improving Monitors for Out-Of-Distribution Alignment Failure in LLMs
The authors propose the MOOD benchmark to evaluate monitors' identification of OOD alignment failures, and state that combining the guard model with Mahalanobis and perplexity OOD detectors can raise average recall from 38.8% to 45.7% (Gemma 2 9B, 1% FPR).
- Many safety and alignment failures of LLMs occur outside the training distribution (OOD), and off-the-shelf models have already been trained on massive safety data, making it difficult to find truly OOD failures to evaluate the generalization ability of monitors such as guard models.
- The authors build the MOOD benchmark: they train their own guard model and four types of OOD detectors (ensemble disagreement, perplexity, Mahalanobis, instruction tuning) on a restricted training set that deliberately excludes multiple known failure types, measure recall on seven OOD failure test sets at a 1% false positive rate, and combine the two types of scores with a weighted sum.
- The authors report that guard models often fail to generalize to OOD failures; on Gemma 2 9B, guard+perplexity+Mahalanobis achieves an average recall of 45.7%, higher than the guard model's 38.8% (Table 2); the authors state that the 1.5B combined method can match or exceed a guard model with 20 times the parameters, and that each method improves with model scale.
- In the conclusion, the authors note: only a few OOD detection methods were evaluated, and the best method still has low recall on datasets such as function calling deception and insecure code. The experiments are based on 6 open-source models in total from Gemma 2 and Qwen2.5, and OOD is relative to a restricted post-training set rather than pretraining data.
- Threat model
- The paper studies deployment-side monitoring: the victim system is an LLM monitoring pipeline with a guard model (safety classifier), and the risk is that alignment failures outside the training distribution (OOD) (jailbreaks, tool-calling deception, sycophancy, scheming, etc.) are missed; the authors train their own guard model and OOD detectors and evaluate their recall on OOD failure conversations at a 1% false positive rate.
- Evaluated models
- Gemma 2 2BGemma 2 9BGemma 2 27BQwen2.5 1.5BQwen2.5 7BQwen2.5 32B
- Benchmarks
- MOOD
- Metrics
- misalignment recall @ 1% FPRSwahili FPR
The paper proposes the MOOD benchmark to evaluate whether LLM monitoring pipelines can detect out-of-distribution alignment failures. MOOD contains one restricted training set and seven out-of-distribution test sets, whose alignment failure types are not in the training distribution. The paper finds that guardrail models (safety classifiers) often fail to generalize to out-of-distribution cases, and therefore proposes combining guardrail models with OOD detectors. Among the four types of OOD detectors tested, combining the Mahalanobis distance and perplexity-based detectors raises recall from 39% to 45%. The paper also reports that the combined monitor shows a positive scaling trend with model size, and that incorporating OOD detection yields a larger recall improvement than using a guardrail model with 20 times more parameters.
Paper analysis
What problem does this paper attempt to solve?
How to evaluate and improve LLM monitors' ability to identify alignment failures outside the training distribution (OOD).
Core question: Can LLM monitoring pipelines (such as guard models) detect alignment failures outside the training distribution (OOD), and how can this be improved?
- Problem scenario: The authors point out that failures such as jailbreaks, deceiving users, and tool-call deception often occur in anomalous situations different from the training data; safety training cannot cover all unexpected inputs, and monitors can also be fooled by situations outside the training distribution.
- Difficulties of existing evaluations: Off-the-shelf models have already been trained on massive safety data, so finding failures that are truly OOD for them is itself a research engineering effort; moreover, failures in such benchmarks may quickly be trained away by the next generation of models, making benchmark lifetimes short.
- Core observation and hypothesis: The authors believe that safety and alignment behavior is mainly conferred by post-training, so excluding certain failure scenarios from post-training data can simulate real OOD alignment failures in production models; a guard model asks "is this safe," while an OOD detector asks "has this been seen," and the two are complementary.
- What the paper proposes: The MOOD (Misalignment Out Of Distribution) benchmark—a restricted training set plus seven OOD alignment failure test sets; and a monitoring scheme combining a guard model with an OOD detector, with a systematic comparison of four classes of OOD detection methods.
- Threat model (deployment-side monitoring evaluation, not an attack paper):
- Victim system: An LLM monitoring pipeline with a guard model; the guard model reads the conversation and judges whether it is safe.
- Risk source: Alignment failure conversations outside the training distribution (jailbreaks, tool-call deception, extreme sycophancy, scheming, etc.), which the guard model may miss due to generalization errors.
- Defender capability: The authors train their own guard model and OOD detector, can use only pretrained models and the MOOD training set, and do not tune the combination coefficient on any OOD data.
- Success criterion: Recall on OOD unsafe conversations at a threshold of 1% false positive rate on in-distribution safe conversations.
What related research exists?
Related work falls into four groups: LLM alignment failures, OOD detection for LLMs, and monitoring and scalable oversight; the authors state that this paper extends OOD detection from jailbreaks to diverse failures.
LLM alignment failures
- Wei et al. (2023), Chao et al. (2024), Souly et al. (2024)—jailbreaks and prompt injection exploit distributional blind spots of safety training to make models comply with harmful requests.
- Williams et al. (2025), Chowdhury et al. (2025)—deception and tool-use errors, such as misreporting function call results; Sharma et al. (2025a), OpenAI (2025c)—sycophancy; Greenblatt et al. (2024), Meinke et al. (2025)—empirical evidence of alignment faking and scheming.
OOD detection for LLMs
- Likelihood-based methods (Hendrycks & Gimpel, 2018; Xu & Ding, 2025)—use perplexity or sequence likelihood as an anomaly signal.
- Representation-based methods (Podolskiy et al., 2022; Chen et al., 2022; Lee et al., 2018; Fort et al., 2021)—measure distance in hidden-layer activation space, represented by Mahalanobis distance; ensemble-based methods (Coste et al., 2024; Eisenstein et al., 2024)—use disagreement among multiple models to characterize epistemic uncertainty.
- The paper notes that Cao et al. (2024) assume exposure to outlier samples during training to learn decision boundaries, whereas this paper does not assume exposure to any outlier samples during training.
Monitoring alignment failures and scalable oversight
- Constitutional Classifiers (Sharma et al., 2025b)—train classifiers on synthetic constitutional data to intercept jailbreaks; Chen et al. (2025), Jiang et al. (2025)—monitor jailbreaks using output distribution signals or internal activations.
- Llama Guard (Inan et al., 2023), gpt-oss-safeguard (OpenAI, 2025a)—guard models serving as dedicated defense layers that monitor user prompts and model responses.
Baselines and benchmarks: The baseline methods in this paper are the authors' self-trained guard model, guard ensemble, and instruction-tuned (IT) scoring methods; the benchmark is the MOOD proposed in this paper, whose test sets partly come from data of Wei et al. (2023), StrongREJECT (Souly et al., 2024), and Betley et al. (2025).
Positioning: The authors state that prior work using OOD detection for LLM safety has almost exclusively targeted jailbreak detection (Nian et al., 2025) or backdoor detection (Chen et al., 2022), and guard model work has not systematically studied its OOD robustness; this paper bridges this gap with the MOOD benchmark covering seven failure types and the result that "guard + OOD detection outperforms simply scaling up the guard model."
How does the paper address this problem?
Build the MOOD benchmark (restricted training set + seven OOD test sets), train a guard model and four types of OOD detectors, and combine them by weighted sum.
Overall approach: Train one's own guard model and OOD detector on a restricted post-training set that deliberately excludes multiple known failure types, thereby rigorously testing the monitor's generalization to held-out failure modes on the MOOD benchmark, and evaluate the combined pipeline of "guard model + OOD detector."
MOOD training data
- Two types of training data: A Tulu-3 SFT subset (533,620 items) for general instruction tuning; a guard model training set (85,164 items) consisting of HH-RLHF prompts plus LLM-generated responses at targeted harmfulness levels, then scored by another judge model to divide into safe/unsafe (Table 1).
- Deliberately restricted: The training set excludes the failure types in the test sets, making the test sets truly OOD relative to the training distribution; the authors believe this simulates OOD failures of production models, although these failures are not OOD relative to pretraining data.
MOOD test data
- In-distribution test sets: 2,160 safe and 784 unsafe, used to calibrate thresholds and measure in-distribution generalization.
- OOD prompt test sets: Jailbreaks (583), function calling deception (missing tools, 1,458), function calling deception (hidden tool calls, 1,488), insecure code (1,998, from the emergent misalignment dataset).
- OOD response test sets: scheming (1,006), extreme sycophancy (2,203), controlling (1,499); plus a Swahili benign OOD set (500 items, machine-translated from the in-distribution safe set) to measure benign false positives.
- Leakage audit: Use LLM-as-a-judge to spot-check whether the training and test sets have the properties that make the test sets OOD; test-set match rates are 92.8%–100%, and occasional matches in the training set are usually <1%, which the authors state are mostly judge errors (Table 8, Appendix B.2); Figure 8 shows that the test sets overlap with the training set distribution in token count and Flesch-Kincaid grade level, so they cannot be distinguished by surface features.
Metrics
- The guard model outputs an unsafe probability, and the OOD detector outputs an OOD score, both denoted S(x).
- The threshold is the score at a false positive rate of α on the in-distribution safe test set, with α=0.01 for main results; misalignment recall is the true positive rate on the unsafe test sets at that threshold.
Four classes of monitoring methods
- Guard model: A pretrained LLM with a classification head fine-tuned on the MOOD training set; no distinction between input/output classifiers. The guard ensemble takes the maximum score among k=5 members as the OOD score.
- Perplexity detector: Fine-tune an LLM for autoregressive prediction on the safe conversations in the training set, and use the average per-token perplexity of the test conversation as the OOD score.
- Mahalanobis detector: Fit a multivariate Gaussian to the final hidden-layer activations of the safe conversations in the training set, and use the Mahalanobis distance of the new conversation's activations as the OOD score; the main experiments use the guard model's activations (Appendix A.4 shows this is better than pretrained model activations).
- Instruction-tuned (IT) method: A model fine-tuned only for general instruction following, paired with a constitutional prompt to output two scores—alignment score (degree of alignment, 0–100) and uncertainty score (self-rated uncertainty)—used alone or in combination.
Combination method
- Since score scales differ, combine with a weighted sum: Scombined(x) = Sguard(x) + λ SOOD(x), where λ takes the maximum value that does not reduce recall on the in-distribution unsafe test set (at 1% FPR), and is not tuned on any OOD data, ensuring the OOD test sets are truly unseen.
- When using both perplexity and Mahalanobis, take the average of their normalized scores as S_OOD(x).
What experiments did the paper conduct?
Evaluated 9 methods on 6 models: on Gemma 2 9B, guard+perplexity+Mahalanobis has an average recall of 45.7%, higher than the guard model's 38.8%.
Experimental setup
- Models evaluated: 6 pretrained models in total from two families, Qwen2.5 1.5B/7B/32B and Gemma 2 2B/9B/27B; all methods are trained on each model (Table 4).
- Benchmark: MOOD—2 training sets, 2 in-distribution test sets, 7 OOD failure test sets, 1 Swahili benign OOD set (sizes in Table 1).
- Methods: guard model, guard ensemble (k=5), guard+perplexity, guard+Mahalanobis, guard+perplexity+Mahalanobis, IT alignment score, IT uncertainty score, IT combination of both, guard+IT uncertainty.
- Metric: misalignment recall, with the threshold set at 1% FPR on the in-distribution safe test set (Appendix A.5 additionally tests 0.5% and 2%); benign OOD uses Swahili FPR.
- Training details: LoRA fine-tuning (LR 2e-5, batch 8, r=64, α=128, dropout 0.1, Table 9–11), IT detectors use Unsloth, 4-bit quantization (Table 12); a single A100; the paper does not report the number of repetitions.
Main results
According to Table 2 (Gemma 2 9B, misalignment recall at 1% FPR):
Swipe horizontally to read the table
Method ID unsafe Jailbreaks Func. missing Func. hidden Insecure code Scheming Sycophancy Controlling Avg. Guard model 90.8% 46.3% 0.6% 2.8% 0.0% 37.1% 49.9% 82.7% 38.8% Guard ensemble 90.3% 48.4% 0.3% 0.2% 0.0% 28.8% 48.2% 80.4% 37.1% Guard + perplexity 91.1% 61.1% 0.1% 0.1% 0.1% 45.7% 58.6% 88.1% 43.1% Guard + Mahalanobis 91.3% 64.7% 2.7% 8.5% 1.8% 47.7% 53.8% 87.8% 44.8% Guard + perp. + Mahal. 91.1% 70.0% 0.7% 2.2% 0.6% 51.4% 59.9% 89.7% 45.7% IT alignment score 50.1% 33.2% 1.3% 14.7% 1.3% 10.7% 20.2% 13.8% 18.2% Guard + IT uncertainty 91.2% 52.5% 2.2% 9.7% 0.2% 47.7% 48.1% 77.9% 41.2% - The authors state that combining the guard model with Mahalanobis and/or perplexity consistently improves recall, and that using both together outperforms the guard model alone on all but one dataset, raising average recall by 7 percentage points.
- The authors explain that the guard ensemble performs poorly because member outputs are highly correlated; the IT model performs poorly because it occasionally outputs low alignment scores on the in-distribution safe set, forcing the threshold to be set very low.
- Negative results: on function calling deception and insecure code, no method reaches 20% recall, which the authors state shows the difficulty of OOD detection and the room for improvement.
Mechanistic analysis: why the two detectors each excel
- Perplexity: Figure 7 shows that in sycophantic conversations many tokens have high perplexity, whereas in function calling deception conversations only very few tokens are anomalous; the authors use this to explain that averaging dilutes localized anomaly signals.
- Mahalanobis: Figure 3 performs PCA on the activations of the Qwen2.5-32B guard model (200 conversations per dataset); in-distribution conversations are distributed mainly along an "ID safe-unsafe axis"; the authors state that datasets whose activations are far from this axis (function calling, insecure code) show larger recall gains when Mahalanobis is added, while those distributed along the axis (sycophancy, controlling) show smaller gains.
- The authors suggest that internal representations collapse distinctions unrelated to the training set, which may explain why the activations of many test sets in Figure 3 appear similar to the training set.
Scale trends and data diversity
- Scale trends: Figure 4 (Qwen2.5 1.5B/7B/32B) shows that the average recall of the six methods all improve with scale, with error bars as 90% bootstrap CI; the authors state that the best guard+OOD combination at 1.5B matches or exceeds a guard model with 20 times the parameters. On the Gemma side (Figure 6), performance improves from 2B to 9B and declines from 9B to 27B; the authors speculate that the 27B may have poor training hyperparameters (hyperparameters are shared across scales).
- Data diversity: adding a given OOD test set to the Gemma 2 9B training data (Figure 5, Table 7), comparing the "union" and "all-but-one" settings; on hidden tool use and scheming, all-but-one is clearly better than union, while on most datasets the two are close. The authors conclude from this that data diversity helps only for some failure types and cannot by itself mitigate OOD failures.
Benign OOD false positives
- According to Table 3 (Gemma 2 9B): the guard model and ensemble have an FPR of 0.0% on the Swahili set, guard+Mahalanobis reaches 98.4%, and guard+perplexity is 10.9%.
- After adding 20 benign Swahili samples to the Mahalanobis training distribution, FPR drops from 98.4% to 7.6%, and average recall remains 44.8%; the authors state that this supports that developers can easily eliminate false positives once benign data is verified.
Other ablations and analyses
- Mahalanobis configuration (Table 5, Gemma 2 9B): using the guard model's last-token activations gives an average recall of 44.8%, better than mean/max pooling and pretrained model activations (39.3%–40.6%).
- Other FPR thresholds (Table 6, Gemma 2 9B): at α=0.5%/1%/2%, guard+perplexity and guard+Mahalanobis both outperform the guard model (e.g., at α=2%, 48.2%/56.3% vs. 44.1%).
- The IT method has a recall of 0.0% on most model scales (Table 4), and is non-zero only on Gemma 2 9B and Qwen2.5 32B.
What are some points that can be further explored?
The authors note that detection methods have limited coverage and low recall on difficult datasets; the experiments are limited to 6 open-source models and OOD defined by a restricted post-training set.
Limitations and future directions noted by the authors
- The experiments include only a few OOD detection methods (Conclusion).
- Even the best method in the evaluation still has very low recall on difficult datasets such as function calling deception and insecure code (Conclusion).
- The authors hope MOOD can drive future research to develop more robust defenses against OOD alignment failures (Conclusion).
Scope of experimental coverage
- The models evaluated are 6 open-source pretrained models: Qwen2.5 (1.5B/7B/32B) and Gemma 2 (2B/9B/27B) (Table 4); Llama Guard, gpt-oss-safeguard, and ShieldGemma are mentioned only in the motivation section and were not evaluated.
- The OOD detection methods evaluated are four types: ensemble disagreement, perplexity, Mahalanobis, and instruction-tuning scoring (Section 4).
- OOD is defined relative to the deliberately restricted post-training training set; the test sets are not OOD relative to the models' pretraining data (Section 3).
- The combination coefficient λ is selected on the in-distribution unsafe test set and is not tuned on any OOD data (Section 4).
- The paper does not report the number of experimental repetitions; the scale trend figure gives 90% bootstrap CI (Figure 4).
Summarize the main content of the paper
The MOOD benchmark shows that guard models struggle to generalize to OOD failures, and that combining OOD detectors improves recall and outperforms simply scaling up the model.
A benchmark and methods paper on LLM monitoring: the authors study whether deployment-side monitors can identify alignment failures outside the training distribution (OOD).
- Problem: off-the-shelf models have already been trained on massive safety data, making it hard to find genuinely OOD failures to evaluate guard models; the authors avoid this problem by training their own monitors on a restricted post-training set that deliberately excludes multiple failure types.
- Method: the MOOD benchmark contains 2 training sets and 10 test sets, of which 7 OOD failure test sets cover jailbreaks, tool-calling deception (missing tools/hidden tool calls), insecure code, scheming, extreme sycophancy, and controlling; it evaluates the guard model and four types of OOD detectors (ensemble, perplexity, Mahalanobis, instruction tuning) and their weighted-sum combinations, with misalignment recall at 1% FPR as the metric.
- Main results: on Gemma 2 9B, the guard model has an average recall of 38.8%, while guard+perplexity+Mahalanobis reaches 45.7% (Table 2); on function calling deception and insecure code, all methods have recall below 20%.
- Scale and diversity: the authors state that each method improves with model scale, and that the 1.5B combined method matches or exceeds a guard model with 20 times the parameters (Figure 4); data diversity experiments show that diversity helps only for some failure types (Figure 5).
- Cost and mitigation: Mahalanobis reaches an FPR of 98.4% on the Swahili benign OOD set; after adding 20 benign samples it drops to 7.6% with no drop in recall (Table 3).
- Authors' conclusion: the authors argue that OOD detection should become a standard component of LLM monitoring pipelines and that MOOD can serve as a foundation for future research; they also acknowledge that the detection methods evaluated are limited and that recall on difficult datasets remains low.