atlas

Research map / Large language models / Language, safety and interpretability

On Calibration of LLM-based Guard Models for Reliable Content Moderation

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Empirically measures confidence calibration (ECE) of 9 open LLM-based guard models on 12 benchmarks for prompt and response classification, and evaluates post-hoc calibration (temperature scaling, contextual calibration, batch calibration).

Problem

LLM-based guard models for content moderation are evaluated mainly for classification accuracy, while their confidence calibration and reliability under jailbreaks and across response models are largely unexamined.

Approach

Systematic calibration audit of open-source guard models using ECE on binary prompt and response classification, followed by adapting post-hoc calibration methods (temperature scaling, contextual calibration, batch calibration) to guard models without requiring validation sets.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use contextual calibration for prompt classification (ablation)LLM-based guard models · Prompt classification on public benchmarksECE (%): 14.4 -> 14.0Helped
Use temperature scaling for response classification (ablation)LLM-based guard models · Response classification on public benchmarksECE (%): 18.8 -> 18.3Helped
Use contextual calibration rather than the uncalibrated model (ablation)Llama-Guard2 · Response classification (4-benchmark average)ECE (%): 23.2 -> 30.2Hurt
Optimize temperature scaling on an in-domain validation set rather than XSTest (ablation)Llama-Guard · WildGuardMix Test PromptECE (%): 26.0 -> 19.9Helped

Surprising findings

Limitations

Experimental setup

Datasets: OpenAI Moderation ToxicChat Aegis Safety Test SimpleSafetyTests XSTest HarmBench WildGuardMix BeaverTails SafeRLHF

Benchmarks: OpenAI Moderation ToxicChat Aegis Safety Test SimpleSafetyTests XSTest HarmBench Prompt WildGuardMix Test Prompt BeaverTails SafeRLHF HarmBench Response WildGuardMix Test Response Harmbench-adv

Metrics: ECE F1 FPR FNR

Baselines: Llama-Guard Llama-Guard2 Llama-Guard3 Aegis-Guard-Defensive Aegis-Guard-Permissive WildGuard HarmBench-Llama HarmBench-Mistral MD-Judge

Builds on: temperature scaling contextual calibration batch calibration

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy