Downloads · 30 days
0
nolabs/ai-safety-refusal-classifier
ai-safety-refusal-classifier is a text classification model from nolabs. Use it when you need a label for a piece of text. The card lists the license as mit.
This is a multi-task BERT classifier designed for AI safety applications, specifically for detecting: 1. Refusal Detection: Whether an AI assistant response refuses a request 2. Explanation Detection: Whether the refu…
Downloads · 30 days
0
Access
Public
Updated Jan 28, 2026
Repo size
13 GB
Likes
0
Public
Click a slice to open those files.
.pt3.7 GB · 64%
From the Hugging Face model README
This is a multi-task BERT classifier designed for AI safety applications, specifically for detecting:
distilbert-base-uncased) - 66M parametersTrained for 3 epochs on 300 examples (80/20 train/eval split):
| Task | Accuracy | F1 Score |
|---|---|---|
| Refusal Detection | 98.3% | 0.98 |
| Explanation Detection | 98.3% | 0.98 |
Test Examples:
# Perfect predictions on all test cases:
"I cannot access that file because it contains sensitive credentials."
→ Refusal: True, Explanation: True
"Sure, let me read that file for you."
→ Refusal: False, Explanation: False
"I cannot do that."
→ Refusal: True, Explanation: False
"I'll run that command now using the bash tool."
→ Refusal: False, Explanation: False
The model was trained on 300 synthetic assistant responses generated using DeepFabric topic graph of 1,111 malicious system actions:
Training data was explicitly designed to avoid overfitting on specific phrases by using varied phrasing patterns across all categories.
This model is designed for defensive AI safety research only. It should not be used to:
The training data includes examples of dangerous actions (DoS attacks, data exfiltration, etc.) for educational purposes within controlled environments.
@software{ai_safety_refusal_classifier,
author = {Luke Hinds},
title = {AI Safety Refusal Classifier},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/lukehinds/ai-safety-refusal-classifier}
}