# A Robust and Explainable Transformer-Based Framework for Phishing Email Detection

Source: [A Robust and Explainable Transformer-Based Framework for Phishing Email Detection](<https://www.sota2.com/research/paper/691bfdf16750be83fe5ceb46>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-06-04T05:01:01.134Z

Authors: Sajad U P

Published: 2025-11-15T08:05:47.000Z

## Abstract

Phishing and related cyber threats are becoming increasingly sophisticated, with email-based phishing remaining the most persistent attack vector. These attacks exploit human vulnerabilities to deliver malware or gain unauthorized access to sensitive information. Transformer-based models enhance phishing detection through robust contextual language understanding; yet they are often regarded as black boxes due to a lack of interpretability. Moreover, recent AI-enabled attacks further undermine model resilience. To address these challenges, this work proposes a lightweight phishing detection framework based on DistilBERT, a lightweight Transformer model. Robustness to embedding-level perturbations and character-level input noise is enhanced through gradient-based adversarial training using the Fast Gradient Method (FGM), combined with stochastic character-level perturbations. To improve transparency, three prominent Explainable AI (XAI) methods, LIME (Local Interpretable Model-agnostic Explanations), SHAP (SHapley Additive exPlanations), and IG (Integrated Gradients), are integrated to interpret model decision-making. A structured rule-based prompt combines model predictions and XAI features to guide Flan-T5-Small in generating plain-language, evidence-based explanations. Experimental results demonstrate that the proposed framework outperforms a standard DistilBERT-based detection model trained without robustness enhancements in terms of accuracy and resilience. This integrated approach helps bridge the gap between model reliability and user trust, advancing transparent phishing detection.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Email Phishing Detection on Phish No More corpus CEAS\_08 (test)](<https://www.sota2.com/research/sota/email-phishing-detection-on-phish-no-more-corpus-ceas_08-test.md>): Email Phishing Detection; Phish No More corpus CEAS\_08 (test); Accuracy (0% Noise): 99.4.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2511.12085>)

[PDF](<https://arxiv.org/pdf/2511.12085.pdf>)
