Work

Cross-Dataset Reliability Evaluation of Spanish Phishing-Email Detectors Under Distribution Shift

Year: 2026
Type: article
Abstract: Phishing filters are usually validated on the same corpus used for development, which can hide severe failures when the email distribution changes. This study evaluates cross-dataset reliability within two independently constructed Spanish email corpora (SpaPhish and SpearPhishMX), quantifies recovery under limited labeled target data, and examines the cost of adaptation to the original domain. TF-IDF Logistic Regression, TF-IDF Linear SVM, BETO, and BERTIN were evaluated through bidirectional zero-shot transfer, 0–20% labeled target adaptation, paired statistical analysis, calibration and leakage controls, sequential full fine-tuning, LoRA, and representation diagnostics. Strong in-domain performance did not translate into cross-dataset reliability: SpaPhish → SpearPhishMX zero-shot F1 fell to 0.4611 for BETO and 0.3770 for BERTIN. Ten percent target supervision recovered about 95% of the improvement observed at 20%. At 20% target-only sequential adaptation, full fine-tuning achieved target F1 = 0.9358 but reduced source F1 to 0.4116. The original LoRA r = 8 configuration retained source F1 = 0.8589 but reached target F1 = 0.7829; increasing the rank to r = 32 raised target F1 to 0.8824 while source F1 fell to 0.3508, revealing a capacity-dependent plasticity–retention trade-off. Reverse transfer also produced systematic score inversion, rather than merely random degradation. These findings are limited to the evaluated corpus pair and architectures, but they show that same-corpus accuracy is an insufficient proxy for deployment reliability. External validation, calibration and error monitoring, explicit source-retention testing, and adaptation-capacity selection should, therefore, accompany deployment.
Language: English
Open Access status: gold
Estimated APC paid: $1,207
OpenAlex ID: W7241968992
FWCI:
Cites: 20
Cited by:
Related to: