Introduction
As Large Language Models (LLMs) become central to user-facing applications, ensuring their safety and fairness is a critical priority. While much research has focused on explicit hate speech—statements containing obvious slurs or toxic language—a significant portion of online toxicity is implicit. Implicit hate speech uses indirect language, sarcasm, or dog whistles to convey malice, making it significantly harder to detect.
This study investigates two critical dimensions of LLM performance in this domain: over-sensitivity and calibration. Over-sensitivity refers to the tendency of models to flag benign statements as hateful simply because they mention marginalized groups. Calibration refers to the reliability of a model's confidence scores; for a model to be trustworthy, its self-reported confidence should align with its actual accuracy. The researchers find that current LLMs often suffer from extreme behaviors in both areas, highlighting fundamental flaws in current safety tuning paradigms.
Methodology
The researchers evaluated three prominent LLMs: LLaMA-2-7b (chat), Mixtral-8x7b, and GPT-3.5-Turbo. The evaluation spanned two primary tasks across three datasets: Latent Hatred, SBIC (v2), and ToxiGen. To ensure a strict focus on implicit language, all samples containing explicit profanity or slurs were filtered out.
Classification and Prompting
To test the robustness of detection, five prompt patterns were employed: Vanilla QA, Choice QA, Cloze Test, Chain-of-Thought (CoT), and Multi-task with Target identification.
Confidence Estimation
Three mainstream methods for extracting model confidence were compared:
- Verbal-based: Prompting the model to output a numerical confidence percentage.
- Consistency-based: Measuring the agreement rate across multiple model runs (Self-Consistency).
- Logit-based: Utilizing the actual output token probabilities from the model's decoder.
Over-Sensitivity and Classification Bias
A key finding of the study is the "Over-Sensitivity Trap." LLMs frequently misclassify benign statements as hate speech when they mention sensitive groups (e.g., "Muslims," "black women") or contextually aggressive words like "target." For instance, news headlines describing crimes against marginalized groups are often flagged as hateful by the models, suggesting that safety tuning has led models to over-index on specific keywords rather than intent.
As shown in Figure 1, LLaMA-2-7b and Mixtral-8x7b exhibit a massive imbalance between recall and precision on the Latent Hatred and SBIC datasets. Their high recall coupled with low precision confirms a systemic bias toward predicting "hateful," even for benign inputs. GPT-3.5-Turbo demonstrated more balanced performance, though it was not immune to these sensitivity issues.
Calibration and Uncertainty Estimation
The study reveals that LLM calibration is often an "illusion" tied to dataset difficulty rather than true self-awareness. Models tend to produce confidence scores within fixed, narrow ranges regardless of the task's complexity. If a model's natural conservative or overconfident bias happens to match the accuracy level of a specific dataset, it appears well-calibrated; otherwise, the calibration is poor.
While logit-based methods generally provided the best ranking of predictions (highest AUROC), they often suffered from extreme overconfidence. Conversely, verbal confidence tended to be overly conservative, with scores clustering around 70-80%. As illustrated in Figure 6, the Expected Calibration Error (ECE) varies significantly across methods. In some scenarios, a low ECE (like Mixtral's 0.048 on Latent Hatred) was merely a coincidence of the model's conservative nature aligning with its actual accuracy on a difficult task.
Discussion and Conclusion
The findings suggest that current safety tuning and RLHF (Reinforcement Learning from Human Feedback) pipelines may be inadvertently training models to be "too safe" at the expense of accuracy and calibration. By penalizing the presence of sensitive words too harshly, we create models that cannot distinguish between a hateful statement and a news report about a marginalized group.
Future work must focus on teaching models to recognize the nuance of intent in challenging, benign expressions. Additionally, researchers recommend exploring new loss functions or post-processing techniques to prevent token logits from concentrating in fixed, uncalibrated ranges, ensuring that when a model says it is 90% sure, we can actually trust that assessment.
Summary updated