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: legitimate
  • 1: phishing
Downloads last month
17
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for iceninja3/phishing-deberta-v3-base

Finetuned
(811)
this model