As Large Language Models (LLMs) advance, their potential for misuse grows. While these models excel at creative and technical tasks, researchers are increasingly concerned with "emergent dangerous capabilities," such as assisting in cyberattacks or providing instructions for hazardous activities. To mitigate these risks, the paper "Do-Not-Answer: A Dataset for Evaluating Safeguards in LLMs" introduces a new open-source benchmark designed to rigorously test the safety boundaries of AI systems.
The Do-Not-Answer Framework
A primary challenge in AI safety is the lack of standardized, open-source datasets for measuring refusal behavior. While proprietary models undergo extensive internal "red-teaming," the broader community needs transparent tools to evaluate how models handle high-risk prompts.
The researchers established a comprehensive three-level hierarchical risk taxonomy to address this. This framework categorizes potential risks into five broad areas: Information Hazards, Malicious Uses, Discrimination/Toxicity, Misinformation, and Human-Chatbot Interaction Harms.
Using this taxonomy, the team generated 939 high-quality harmful prompts. To bypass standard safety filters during data collection, they employed a "simulated chat history" technique, framing the requests within a research dialogue about prohibited AI behaviors.
Evaluating Model Safeguards
The study evaluated six prominent LLMs: GPT-4, ChatGPT (GPT-3.5), Claude, LLaMA-2, ChatGLM2, and Vicuna. Beyond simple binary labels (safe vs. harmful), the researchers categorized model responses into six "action categories," ranging from direct refusal (Category 0) to harmful instruction following (Category 5).
A significant contribution of this work is the development of an automated safety judge. By fine-tuning a Longformer model (600M parameters) on human-annotated safety labels, the researchers created a tool that rivals GPT-4's evaluative performance. This allows for cost-effective, local safety audits without the need for expensive third-party APIs.
Results and Discussion
The evaluation revealed distinct safety profiles across the tested models. LLaMA-2 emerged as the most cautious model, providing only three harmful responses out of nearly a thousand risky prompts. However, this high safety bar often resulted in more verbose or "preachy" refusal styles compared to the concise refusals of commercial models like GPT-4.
Key findings from the comparative analysis include:
- Safety Rankings: LLaMA-2 (0.3% harmful) demonstrated the strongest safeguards, followed by ChatGPT (1.5%) and Claude (1.7%). ChatGLM2 (9.1%) and Vicuna (5.5%) showed higher rates of harmful output.
- The Efficiency of Small Judges: The fine-tuned Longformer achieved 98.1% accuracy in detecting harmful responses, proving that massive models are not required for high-quality safety evaluation.
- Contextual Importance: Safety evaluation is most effective when the judge considers both the user prompt and the model's response, as harmful intent can often be masked by benign-looking language.
Conclusion and Future Directions
The "Do-Not-Answer" dataset provides a vital baseline for the AI research community to measure and improve model safeguards. While current results highlight the success of models like LLaMA-2, the researchers emphasize that safety is a moving target. Future work must expand to include multi-turn "jailbreaking" attempts, multi-lingual support, and a broader consideration of cultural and legal norms across different jurisdictions.
Summary updated