Research Article Open Access

HMA-RAG: A Hierarchical Memory Augmented Retrieval Augmented Generation Framework for Fake News Detection

Afnan Altarjami1 and Sawsan Alshattnawi1
  • 1 Department of Computer Science, Yarmouk University, Irbid, Jordan

Abstract

Existing methods for detecting fake news, such as traditional machine learning and transformer-based models, often work as separate classifiers that do not use outside evidence, historical knowledge, or ways to make the results easier to understand. This paper presents a framework that combines retrieval augmentation and hierarchical memory to overcome three primary constraints: Insufficient external evidence, the absence of memory, and restricted explainability in existing methodologies. We present HMA-RAG (Hierarchical Memory-Augmented Retrieval-Augmented Generation), a dual-branch architecture that integrates DistilBERT-based classification with dense retrieval via MiniLM. The framework has a confidence-gated mechanism that only turns on a multi-stage verification pipeline when certain conditions are met. This pipeline includes evidence agreement, memory consistency, and temporal tracking. A single credibility score combines these signals, and a feedback loop keeps long-term memory up to date. Tests on the WELFake dataset (72,134 articles) show that HMA-RAG achieves an F1-score of 98.83%, which exceeds classical baselines and is comparable to a larger transformer model, FakeBERT (98.90% on the ISOT dataset), while using fewer classification parameters (66M vs. approximately 115M). Ablation studies verify the efficacy of the hierarchical memory components. Among the systems compared, only HMA-RAG provides four-layer explainability: Evidence retrieval, dual-stage verification signals, temporal context tracking, and credibility score decomposition. These results indicate that combining retrieval augmentation with hierarchical memory can achieve accuracy comparable to substantially larger models while providing structured, multi-layer transparency intended for deployment in journalism, fact-checking, and content moderation.

Journal of Computer Science
Volume 22 No. 9, 2026, 2700-2710

DOI: https://doi.org/10.3844/jcssp.2026.2700.2710

Submitted On: 12 April 2026 Published On: 7 September 2026

How to Cite: Altarjami, A. & Alshattnawi, S. (2026). HMA-RAG: A Hierarchical Memory Augmented Retrieval Augmented Generation Framework for Fake News Detection. Journal of Computer Science, 22(9), 2700-2710. https://doi.org/10.3844/jcssp.2026.2700.2710

  • 29 Views
  • 5 Downloads
  • 0 Citations

Download

Keywords

  • Fake News Detection
  • Retrieval Augmented Generation
  • Hierarchical Memory
  • Distilbert
  • Explainability
  • Welfake
  • Faiss
  • Transformer Models