arXiv

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

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

Abstract:

As cyber threats evolve in complexity, email-based phishing persists as the most enduring attack vector. These malicious campaigns capitalize on human weaknesses to distribute malware or secure illicit access to confidential data. While transformer-based architectures improve detection through superior contextual language comprehension, their "black box" nature—stemming from a lack of interpretability—remains a significant hurdle. Furthermore, the emergence of AI-driven attacks poses new challenges to model stability.

To overcome these issues, this study introduces a streamlined phishing detection system built upon DistilBERT, a lightweight variant of the Transformer architecture. The framework’s resilience against input noise at the character level and perturbations at the embedding level is strengthened by employing stochastic character-level disruptions alongside gradient-based adversarial training via the Fast Gradient Method (FGM).

To enhance transparency, the system incorporates three leading Explainable AI (XAI) techniques: LIME (Local Interpretable Model-agnostic Explanations), SHAP (SHapley Additive exPlanations), and IG (Integrated Gradients). These tools are utilized to decode the model’s decision-making processes. Additionally, a structured, rule-based prompt synthesizes both the model’s predictions and XAI-derived features to direct Flan-T5-Small in producing clear, evidence-backed explanations in plain language.

Experimental findings indicate that this proposed framework surpasses a conventional DistilBERT detection model—trained without robustness enhancements—in both accuracy and resilience. By merging reliability with interpretability, this integrated strategy aims to close the divide between model performance and user confidence, thereby promoting more transparent phishing detection mechanisms.


Source: arXiv Generated at: 2026-06-03 00:00:00 UTC

Related Articles

TikTok Billionaire Tops Ambani as Asia’s Second-Richest
Bloomberg

TikTok Billionaire Tops Ambani as Asia’s Second-Richest

TikTok founder surpasses Mukesh Ambani to become Asia’s second-richest person, marking a significant shift in the region...

Publishers in UK can opt out of Google AI search results
BBC News

Publishers in UK can opt out of Google AI search results

UK publishers can now opt out of Google’s AI search summaries, a CMA ruling designed to boost their bargaining power and...

Kioxia Edges Nearer Toyota’s Market Cap in Shakeup to Japan Inc.
Bloomberg

Kioxia Edges Nearer Toyota’s Market Cap in Shakeup to Japan Inc.

Kioxia’s market cap nears Toyota’s, signaling a major shift in Japan’s corporate hierarchy. This narrowing gap highlight...

Reuters

Morning Bid: Marvell, a fitting name for the latest AI darling

Reuters highlights Marvell as a top AI stock, noting its name perfectly suits its status as the newest market darling.

Financial Times

Tim Hayward: I built the Jaguar E-Type of computer keyboards

Tim Hayward compares his bespoke keyboard designs to the Jaguar E-Type. He explores high-end customization for personal ...

Financial Times

AI Labs: Zuckerberg’s $100bn gamble

Meta’s $100 billion AI investment aims to secure AI dominance, but questions remain whether sheer spending can outpace c...