Skip to main content
QUICK REVIEW

[Paper Review] Performance Analysis of Transformer Based Models (BERT, ALBERT and RoBERTa) in Fake News Detection

Shafna Fitria Nur Azizah, Hasan Dwi Cahyono|arXiv (Cornell University)|Aug 9, 2023
Edcuational Technology SystemsComputer Science5 citations
TL;DR

This study evaluates BERT, ALBERT, RoBERTa, and IndoBERT for fake news detection in Bahasa Indonesia using multilingual and domain-specific datasets. ALBERT achieved the highest performance with 87.6% accuracy, 86.9% precision, and 86.9% F1-score, outperforming BERT-Multilingual, IndoBERT, and RoBERTa, while also showing faster inference time at 174.5 seconds/epoch.

ABSTRACT

Fake news is fake material in a news media format but is not processed properly by news agencies. The fake material can provoke or defame significant entities or individuals or potentially even for the personal interests of the creators, causing problems for society. Distinguishing fake news and real news is challenging due to limited of domain knowledge and time constraints. According to the survey, the top three areas most exposed to hoaxes and misinformation by residents are in Banten, DKI Jakarta and West Java. The model of transformers is referring to an approach in the field of artificial intelligence (AI) in natural language processing utilizing the deep learning architectures. Transformers exercise a powerful attention mechanism to process text in parallel and produce rich and contextual word representations. A previous study indicates a superior performance of a transformer model known as BERT over and above non transformer approach. However, some studies suggest the performance can be improved with the use of improved BERT models known as ALBERT and RoBERTa. However, the modified BERT models are not well explored for detecting fake news in Bahasa Indonesia. In this research, we explore those transformer models and found that ALBERT outperformed other models with 87.6% accuracy, 86.9% precision, 86.9% F1-score, and 174.5 run-time (s/epoch) respectively. Source code available at: https://github.com/Shafna81/fakenewsdetection.git

Motivation & Objective

  • To evaluate the performance of transformer-based models—BERT, ALBERT, RoBERTa, and IndoBERT—in detecting fake news in Bahasa Indonesia.
  • To compare the effectiveness of multilingual BERT (BERT-Multilingual) and domain-specific IndoBERT in the context of Indonesian fake news.
  • To investigate whether improved BERT variants like ALBERT and RoBERTa yield better results than standard BERT in low-resource, non-English NLP settings.
  • To identify the most efficient and accurate model for real-time fake news detection in Indonesian social media contexts.

Proposed method

  • Fine-tuned BERT-Multilingual, IndoBERT, ALBERT, and RoBERTa on three Indonesian fake news datasets from GitHub and Mendeley.
  • Used a consistent training setup with batch size 16, 50 epochs, Adam optimizer, categorical cross-entropy loss, and dropout rate of 0.5.
  • Applied standard NLP evaluation metrics: accuracy, precision, recall, and F1-score to compare model performance.
  • Employed a fixed random seed (12) across all models to ensure training consistency.
  • Measured training time per epoch to assess computational efficiency.
  • Utilized Hugging Face’s Transformers library with PyTorch for model implementation and inference.

Experimental results

Research questions

  • RQ1Which transformer-based model performs best in detecting fake news in Bahasa Indonesia: BERT, ALBERT, RoBERTa, or IndoBERT?
  • RQ2How does the performance of multilingual BERT (BERT-Multilingual) compare to domain-specific IndoBERT in the Indonesian context?
  • RQ3Does the improved efficiency and reduced parameter count of ALBERT lead to better performance and faster inference in fake news detection?
  • RQ4What is the impact of different tokenizers and pre-training strategies on model accuracy and inference speed?

Key findings

  • ALBERT achieved the highest accuracy (87.6%), precision (86.9%), and F1-score (86.9%) among all models tested.
  • RoBERTa showed lower accuracy (83.3%) and precision (76.5%) compared to ALBERT, though it had a fast inference time of 176.15 seconds/epoch.
  • IndoBERT outperformed BERT-Multilingual, achieving 86.6% accuracy and 86% F1-score, suggesting domain-specific pre-training improves performance.
  • BERT-Multilingual, despite high performance in prior studies, showed a significant drop in accuracy (78%) when retrained under the same conditions, indicating environmental or hyperparameter sensitivity.
  • ALBERT had the fastest inference time (174.5 seconds/epoch), outperforming even RoBERTa and BERT-Multilingual.
  • The study highlights the importance of tokenizer choice and suggests further exploration of tokenization strategies for BERT-based models in low-resource languages.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.