FakeGuard β€” Fake News Detector

Fine-tuned DistilBERT for binary fake news classification.

CMPE 258 β€” Deep Learning Β· San JosΓ© State University Β· Spring 2026

Model Details

Property Value
Base model distilbert-base-uncased
Task Binary text classification (Fake/Real)
Training samples 2,749 (balanced subsample of 44K articles)
Epochs 2
Max sequence length 256
Dropout 0.3
Optimizer AdamW (lr=3e-5, wd=0.01)
LR schedule Cosine annealing

Performance

Metric Value
Test Accuracy 0.9933
Test Macro F1 0.9933
Test ROC AUC 0.9988
Cohen's Kappa 0.9867

Dataset

Kaggle "Fake and Real News Dataset" (Emine Yetm / clmentbisaillon).

Critical fix applied: Removed (Reuters) dateline prefix from real articles before training to prevent data leakage.

Live Demo

Try it at: https://huggingface.co/spaces/gpreetam236/DL_Final

Architecture

DistilBERT Encoder (6 layers, 768-d) β†’ [CLS] token
β†’ Dropout(0.3) β†’ Linear(768β†’256) β†’ LayerNorm β†’ GELU
β†’ Dropout(0.3) β†’ Linear(256β†’2) β†’ Logits

W&B Experiment Dashboard

https://wandb.ai/gowripreetham23-san-jose-state-university/fakeguard

Downloads last month
7
Safetensors
Model size
66.4M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using gpreetam236/fakeguard-model 1