TL;DR
CASE-Bench is a new safety benchmark that moves beyond evaluating LLM queries in isolation by introducing formal, theory-driven contexts to the assessment. The study reveals that while context significantly shifts human safety judgments, many top-tier LLMs—especially commercial ones—suffer from "over-refusal," failing to provide helpful responses even when the context makes a query perfectly safe.
What Problem Does This Paper Address?
In the world of AI safety, we’ve gotten very good at teaching models to say "No." If a user asks, "How do I break someone's legs?", a standard LLM will (and should) refuse. However, current safety benchmarks evaluate these queries in a vacuum. This leads to over-refusal: a behavior where models reject benign or even necessary requests because they look "harmful" on the surface.
Consider the "breaking legs" example again. If the user is a medical student participating in a trauma surgery simulation, the context changes the safety profile entirely. By ignoring the who, where, and why of a conversation, current benchmarks fail to capture the nuance of human values, leading to a diminished user experience where models are "too safe" to be useful.
Methods
The authors introduce CASE-Bench, which formalizes context using Contextual Integrity (CI) theory. Instead of vague descriptions, they define context through specific parameters:
- Sender: The type of chatbot and the platform it lives on.
- Recipient: The user’s background, expertise, and previous interactions.
- Transmission Principle: The purpose of the interaction, confidentiality levels, and who is held accountable for the information.
To build the benchmark, the team used a two-stage pipeline. First, they used GPT-4o to generate safe and unsafe contexts for 450 controversial queries. Because LLMs are prone to their own safety biases, researchers manually revised these contexts to ensure they were realistic and distinct.
Crucially, the authors applied statistical power analysis to determine how many human annotators were needed to reach a "ground truth." Unlike previous studies that might rely on a simple majority vote from three people, CASE-Bench recruited over 2,000 participants, ensuring 21 annotations per task to achieve statistically significant results ($p < 0.0001$).
Datasets
- SORRY-Bench: The authors adapted 450 potentially harmful instructions across 45 categories (e.g., "illegal crafting," "medical advice," "hate speech") from this existing dataset.
- CASE-Bench (New): The primary contribution, consisting of 900 query-context pairs. Each query is paired with one "Safe" context (where a response is appropriate) and one "Unsafe" context (where a refusal is mandatory).
Key Insights and Ideas
- Context is a Statistical Game-Changer: The study proves that context isn't just "noise." Human judgments on whether a chatbot should respond shifted dramatically when context was added, particularly in categories like "religion promotion" and "medical advice."
- The "Recipient" is the Most Important Factor: Through ablation studies, the researchers found that knowing who the user is (their background and expertise) influenced safety judgments more than any other contextual factor.
- Commercial Models are "Over-Moderated": A major "aha" moment was the mismatch between humans and models. Humans are often willing to accept a response in a safe, professional context (like a medical simulation), but commercial models like GPT-4o often refuse anyway, showing they haven't yet mastered contextual nuance.
- Reasoning Helps Safety: Interestingly, DeepSeek-R1—a model not specifically optimized for safety in the same way as others—performed remarkably well. This suggests that strong general reasoning capabilities might inherently help a model understand when a context makes a query safe.
Key Results
- Top Performer: Claude-3.5-sonnet emerged as the most "context-aware" judge, achieving the highest accuracy (90.1%) and the best balance between safe and unsafe contexts.
- The Over-Refusal Gap: Commercial models showed a significant recall gap. For example, in safe contexts, some models had a recall as low as 54.6%, meaning they refused nearly half of the queries that humans deemed safe to answer.
- Safety Classifiers Benefit from Context: When Llama-Guard-3-8B (a dedicated safety model) was given contextual information, its accuracy jumped from 54.1% to 60.1%, proving that even specialized safety tools need context to function correctly.
Limitations and Future Work
The authors acknowledge that some queries are inherently unsafe; no amount of context (e.g., "I'm a novelist writing a villain") should make a model provide instructions for child abuse or high-level terrorism. CASE-Bench currently struggles to find "safe" versions of these extreme queries.
Future work aims to move beyond text-based context. As LLMs become multimodal, safety benchmarks will need to incorporate environmental context—such as data from a user’s camera, documents, or real-time location—to make even more precise safety calls. Additionally, the authors suggest that CASE-Bench could be used to train better "safety adapters" that can be toggled based on the specific domain (e.g., a "Medical Mode" vs. a "General Social Media Mode").
Summary updated