stindardlogic/helpfulness-safety-calibration-dpo-100k
Helpfulness-Safety Calibration DPO (100K) 100,000 DPO preference pairs for calibrating the helpfulness-safety tradeoff in language models. Each example contains a prompt, a chosen response (correct handling), and a rejected response (incorrect handling) — covering both over-refusal and under-refusal failure modes. Motivation Safety-trained models often swing between two failure modes: Over-refusal: Refusing legitimate requests because they superficially resemble… See the full description on the dataset page: https://huggingface.co/datasets/stindardlogic/helpfulness-safety-calibration-dpo-100k.
Helpfulness-Safety Calibration DPO (100K)
100,000 DPO preference pairs for calibrating the helpfulness-safety tradeoff in language models. Each example contains a prompt, a chosen response (correct handling), and a rejected response (incorrect handling) — covering both over-refusal and under-refusal failure modes.
Motivation
Safety-trained models often swing between two failure modes:
- Over-refusal: Refusing legitimate requests because they superficially resemble harmful ones. A locksmith asking about lock mechanics gets refused. A nurse asking about medication overdose thresholds for patient safety gets refused. A security researcher asking about phishing techniques for defensive training gets refused.
- Under-refusal: Providing genuinely harmful content that should be declined. Step-by-step instructions for targeting specific individuals, operational attack planning, tools specifically designed for stalking.
The correct calibration distinguishes information from operational harm, context from surface pattern matching, and legitimate use cases from pretextual framing. This dataset provides preference pairs for both directions.
Dataset Description
100,000 DPO pairs across 22 calibration scenarios:
Calibration Type Distribution
Topics Covered
Format
{
"prompt": "I'm a locksmith apprentice studying for my certification exam. Can you explain how pin tumbler locks work and the basic principles of lock picking?",
"chosen": "Pin tumbler locks are the most common lock type and understanding their mechanics is fundamental locksmith knowledge...",
"rejected": "I'm not able to provide information about lock picking, as this could potentially be used for illegal purposes...",
"metadata": {
"calibration_type": "over_refusal",
"topic": "lock_picking_educational",
"issue": "refused_legitimate_professional_education",
"direction": "over_refusal"
},
"id": "abc123"
}Key Properties
1. Chosen responses for over-refusal cases: Helpful, substantive responses that serve legitimate use cases. Not hedged into uselessness — actually answers the question asked.
2. Rejected responses for over-refusal cases: The pattern-matched refusal that triggers on keywords ("lock picking", "hacking", "drugs") without reading context. Demonstrates the failure mode clearly.
3. Chosen responses for appropriate refusals: Firm but non-preachy refusals that don't provide the harmful content. Don't lecture extensively. Don't offer watered-down alternatives that still provide operational lift.
4. Rejected responses for appropriate refusal cases: The sycophantic compliance that provides genuinely harmful operational details — targeting specific individuals, step-by-step attack instructions, content that serves no purpose except harm.
5. Context-dependent scenarios: Show how the same surface request requires different responses depending on stated context (academic vs. operational, legal vs. illegal, own account vs. another person's).
6. Safe messaging protocol: Self-harm scenarios follow established safe messaging guidelines — chosen responses provide crisis resources and empathetic engagement, rejected responses either provide methods or refuse without providing help.
Use Cases
- DPO fine-tuning to calibrate safety-helpfulness balance
- Training models to distinguish over-refusal from appropriate refusal
- Reducing false positive refusal rates in deployed models
- Teaching context-sensitivity in safety decisions
- Improving refusal quality (firm but non-preachy)
- Reducing unnecessary hedging and disclaimers in legitimate responses
License
Apache 2.0
