A Comparative Study of Transformer Models for Fake News Detection on Imbalanced Datasets
Mitra Malekzad, Fatih Kayaalp
Key points
From the paper's conclusion- Overall, the findings demonstrate that the relative performance of Transformer architectures and imbalance-handling strategies varies across the evaluated datasets and configurations, highlighting the importance of controlled comparisons, complementary evaluation metrics, and cautious interpretation of cross-dataset differences.
Abstract
The spread of fake news on digital platforms has increased the need for reliable automatic detection methods. This study presents a comparative empirical evaluation of five pretrained Transformer models—BERT, ALBERT, RoBERTa, XLM-RoBERTa, and ModernBERT—across three fake news detection datasets with different characteristics and class distributions: PolitiFact, GossipCop, and LIAR. To investigate class-imbalance handling, standard cross-entropy (CE), weighted cross-entropy (WCE), and random oversampling (ROS) were compared across the five architectures. Additional five-fold cross-validation experiments were conducted on PolitiFact to assess performance variability. The contribution of contextual metadata was examined on LIAR by comparing text-only and metadata-enhanced configurations. Performance was evaluated using accuracy, Macro-F1, Fake-class precision, recall, and F1-score, balanced accuracy, Matthews correlation coefficient, ROC-AUC, and average precision. In the original model comparison, RoBERTa achieved a Macro-F1 of 0.927 on PolitiFact and 0.792 on GossipCop. In the additional PolitiFact cross-validation experiments, RoBERTa with CE achieved the highest mean Macro-F1 of 0.888 ± 0.035. On LIAR, metadata improved Macro-F1 in 13 of the 15 matched model–strategy comparisons, with RoBERTa using WCE achieving the highest Macro-F1 of 0.655 among the controlled metadata-enhanced configurations. However, WCE and ROS did not consistently outperform CE, and improvements in minority-class recall were sometimes accompanied by reductions in other performance metrics. Overall, the findings demonstrate that the relative performance of Transformer architectures and imbalance-handling strategies varies across the evaluated datasets and configurations, highlighting the importance of controlled comparisons, complementary evaluation metrics, and cautious interpretation of cross-dataset differences.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Context-Aware Political Misinformation Detection Across Claims and News Headlines: Multi-Seed Evaluation, Cross-Dataset Transfer, and Few-Shot AdaptationFuture Internet · 2026
- FakeDiverse a curated multi-source news corpus for context-aware fake news detection using BERT and DeBERTaScientific Reports · 2026
- Decision-Threshold Misalignment in Cross-Domain Fake News Detection: An Evaluation of Transformer EncodersApplied Sciences · 2026
- Graph-augmented transformer ensemble framework for robust and scalable fake news detection in social media ecosystemsScientific Reports · 2025
- A Compact CNN–BiLSTM Model for Fake News Detection: Post Hoc Explanations and Cross-Dataset EvaluationComputers · 2026
- Automatic Fake News and Deepfake Detection Using Machine Learning and Deep Learning ModelsApplied Computational Intelligence and Soft Computing · 2026