Phishing Detection DeBERTa-v3-base
This model is a fine-tuned microsoft/deberta-v3-base for detecting phishing emails, developed as part of the llm-phishing-detection research project.
Model Performance
Evaluated on the benchmark test_llm test split:
- Recall @ 1% FPR: 88.2% (95% CI: 84.3%โ91.4%)
- PR-AUC: 0.9870
- Inference Latency (p50): 328.3 ms
Usage
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_id = "iceninja3/phishing-deberta-v3-base"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
model.eval()
subject = "Action Required: Update your bank details"
body = "Please visit http://update-secure-auth.net to avoid suspension of your account."
text = f"Subject: {subject}\n\n{body}"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.softmax(logits, dim=-1)
# Probability of phishing (index 1)
phishing_prob = probs[0, 1].item()
print(f"Phishing probability: {phishing_prob:.4f}")
Classes
0:legitimate1:phishing
- Downloads last month
- 17
Model tree for iceninja3/phishing-deberta-v3-base
Base model
microsoft/deberta-v3-base