TL;DR
This paper tackles the problem of "overrefusal" in Large Language Models (LLMs), where models refuse to answer benign queries due to overly cautious safety alignment. They introduce RASS, a novel framework that leverages representation learning to identify and curate prompts near the safety decision boundary, leading to more effective mitigation. They also release MORBENCH, the first large-scale multilingual benchmark for overrefusal, demonstrating its effectiveness in exposing LLM vulnerabilities.
What Problem Does This Paper Address?
Large Language Models (LLMs) are incredibly powerful, but a significant challenge is ensuring they are both helpful and safe. One manifestation of this is "overrefusal," where LLMs incorrectly classify harmless queries as potentially risky and refuse to answer them. This is often a consequence of overly conservative safety alignment mechanisms that struggle to distinguish subtle differences between benign and harmful content, especially around the model's "safety decision boundary." Existing safety benchmarks often fail to capture this nuanced behavior, leading to a need for more targeted approaches to understand and mitigate overrefusal.
Methods
The core of this paper is the RASS (Representation-Aware Safety Sampling) framework. RASS aims to identify and curate prompts that are likely to trigger overrefusal by focusing on the LLM's internal representation space. The process involves:
- Multilingual Seed Prompt Generation: Generating toxic seed prompts across seven languages using Mixtral 8x7B Instruct.
- Overrefusal Prompt Rewriting: Transforming these toxic seeds into overrefusal probe prompts using language-specific templates. Benign prompts are also generated for anchor points.
- Anchor Dataset Construction and Steering Vector Extraction: Building anchor datasets of benign, harmful, and overrefusal prompts. They then derive "steering vectors" in the representation space that characterize the transition from toxic to overrefusal regions.
- Prompt Selection: Candidate prompts are scored based on their alignment along these steering vectors, prioritizing those near the safety decision boundary where overrefusal is most likely.
This approach leverages Principal Component Analysis (PCA) to visualize and analyze prompt representations in a lower-dimensional space.
Datasets
- OR-Bench: Used as a baseline and for comparison.
- MORBENCH: A newly introduced, large-scale multilingual overrefusal benchmark developed by the authors. It consists of 8,400 prompts spanning 7 languages and 12 categories, specifically designed to target overrefusal vulnerabilities by selecting prompts near the safety decision boundary.
Key Insights and Ideas
- Overrefusal is tied to the Safety Decision Boundary: The paper strongly suggests that overrefusal occurs when benign prompts are misclassified as harmful due to their proximity to the safety decision boundary in the LLM's representation space.
- Representation Space is Key: Visualizing prompt representations reveals distinct clusters for benign and harmful content, with overrefusal prompts often lying in the ambiguous region between them. Steering vectors derived from this space are powerful tools for identifying these boundary-adjacent prompts.
- Multilingual Overrefusal Varies: LLMs exhibit different overrefusal tendencies across languages, highlighting the need for multilingual safety evaluations and potentially indicating uneven safety tuning or data coverage.
- Targeted Prompts are More Effective: RASS-selected prompts, which are specifically chosen to be near the safety boundary, are more effective at exposing overrefusal vulnerabilities and mitigating them through fine-tuning compared to randomly sampled prompts.
Key Results
- MORBENCH Exposes More Overrefusal: The MORBENCH benchmark consistently shows significantly higher overrefusal rates across various LLMs compared to the original OR-Bench pool, validating its effectiveness in surfacing these vulnerabilities. For example, LLaMA2 models showed a pronounced difference in refusal rates between OR-Bench and MORBENCH.
- RASS Identifies Boundary-Adjacent Prompts: Visualizations confirm that RASS-selected prompts cluster near the boundary between benign and harmful representations, demonstrating their ability to target the specific region where overrefusal is likely.
- RASS-Filtered Data Improves Mitigation: Instruction tuning (using DPO) with RASS-filtered data led to consistently greater reductions in refusal rates compared to using randomly sampled data from OR-Bench, indicating the practical effectiveness of RASS for mitigation.
- Multilingual Differences Observed: Table 2 shows substantial variation in overrefusal rates across languages for the same LLMs, with LLaMA2 models displaying higher rates in Japanese and Chinese compared to Italian and French.
Limitations and Future Work
- Language Coverage: The current dataset covers 7 languages, excluding low-resource languages.
- Steering Vector Linearity: The method assumes linear separability in representation space, which might not generalize to all vulnerability types or safety boundaries. Future work could explore non-linear approaches.
- Model Access: RASS requires white-box access to model representations, which is not feasible for proprietary models. Adapting the approach for black-box models is a future direction.
- Dataset Scope: The current focus is on overrefusal; expanding to include jailbreak scenarios is planned.
- Future Directions: Extending to speech/video modalities and developing unified frameworks for safety alignment are also suggested.
Summary updated