Skip to content
Back to projects

Deep Learning · 2026

BERT News Topic Classifier

Fine-tuned BERT for multi-class news classification.

Model

  • BERT-base fine-tuned with a four-class classification head
  • Whole-headline tokenization with attention masks
  • Differential learning rates: lower layers frozen first, then unfrozen

Dataset

AG News topic dataset (World, Sports, Business, Sci/Tech) via a Kaggle notebook.

Results & metrics

Test accuracy
~0.94
Classes
4 topics
Backbone
BERT-base

Deployment steps

  1. 1Fine-tune BERT in the Kaggle notebook (GPU)
  2. 2Evaluate on the held-out test split
  3. 3Save the tokenizer + model weights for reuse

Tech stack

  • BERT
  • Transformers
  • PyTorch
M

drawing ideas into systems...