# Poster 27843

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/27843

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone, I'm Hongfu Liu. Today I'm presenting our work on calibration of LLM-based scar models for reliable content moderation. This research is a collaborative effort from the National University of Singapore, University of Copenhagen, and Rutgers University. Large language models pose significant risks due to its potential for generating harmful content during the conversation with users.
Another effective test time method to mitigate it is to deploy the Gabriel models to determine the harmfulness of the user queries and model response. However, existing Gabriel models focus on the classification performance, they often overlook the prediction confidence.
The key question we explore here is can we trust a model's predictions, especially in challenging scenarios like jailbreaking attacks? Our work aims to address this gap by assessing the reliability of prediction confidence in L1-based career models.
We examined nine open source scario models and evaluated these models across 12 benchmarks covering both prompt classification and response classification tasks, ensuring a comprehensive analysis. Our evaluation focused on the binary classification as safety taxonomies vary across data sets and models.
A key matrix we use is expected calibration error or ECE. If a model's ECE exceeds 10%, it indicates poor calibration, meaning that its confidence does not reliably reflect the true correctness of the predictions.
Our first major finding is that a guard morals tend to make overconfident predictions. This is evident in both prompt and response classification. Besides, although with wild guard and MD judge achieve the best in prompt and response classification respectively, they still showcase high ECEs, larger than 10%, which means that they're still poor calibrated.
Our second finding shows that miscalibration is more pronounced in prompt classification than in response classification, especially under jailbreak attacks. For example, WildCard achieved an F1 score over 90% while its ECE score remains high over 30%, showing a significant gap between the confidence and the correctness.
This highlights challenging posed by the adversarial prompts. Our third finding reveals that GARIO models exhibit inconsistent reliability when classifying outputs from different response LLMs. This inconsistency is larger due to the
Largely due to the limitation of the training data, which may not generalize well across different LM generated responses. To improve the calibration, we explore three post hoc techniques, temperature scaling, by adjusting the logits to smooth or sharpen the output distribution, but requires a validation set.
Contextual calibration estimates the test time bias using a content-free tokens like space token, but has a accuracy limitation. Batch calibration using a batch of unlabeled samples for calibration but also requires a validation set to tune the batch size.
Our findings suggest that no single method fully resolves miscalibration. However, contextual calibration proves more effective for prompt classification while temperature scaling benefits more response classification. Using in-domain validation set also significantly improves the calibration.
Check our paper for more details if you are interested. We also provide our evaluation tools for the future research. Thanks.
