<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xml:lang="en" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">CMC</journal-id>
<journal-id journal-id-type="nlm-ta">CMC</journal-id>
<journal-id journal-id-type="publisher-id">CMC</journal-id>
<journal-title-group>
<journal-title>Computers, Materials &#x0026; Continua</journal-title>
</journal-title-group>
<issn pub-type="epub">1546-2226</issn>
<issn pub-type="ppub">1546-2218</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">76992</article-id>
<article-id pub-id-type="doi">10.32604/cmc.2026.076992</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Enhancing Phishing Email Detection Using DeepSeek-Generated Synthetic Data and DistilBERT Classification Models</article-title>
<alt-title alt-title-type="left-running-head">Enhancing Phishing Email Detection Using DeepSeek-Generated Synthetic Data and DistilBERT Classification Models</alt-title>
<alt-title alt-title-type="right-running-head">Enhancing Phishing Email Detection Using DeepSeek-Generated Synthetic Data and DistilBERT Classification Models</alt-title>
</title-group>
<contrib-group>
<contrib id="author-1" contrib-type="author">
<name name-style="western"><surname>Al-Ajlan</surname><given-names>Amani</given-names></name></contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western"><surname>Almelaifi</surname><given-names>Lama</given-names></name></contrib>
<contrib id="author-3" contrib-type="author">
<name name-style="western"><surname>Alharbi</surname><given-names>Remas</given-names></name></contrib>
<contrib id="author-4" contrib-type="author">
<name name-style="western"><surname>Al-Hussain</surname><given-names>Shahad</given-names></name></contrib>
<contrib id="author-5" contrib-type="author">
<name name-style="western"><surname>Alfarraj</surname><given-names>Fay</given-names></name></contrib>
<contrib id="author-6" contrib-type="author">
<name name-style="western"><surname>Altwaijry</surname><given-names>Najwa</given-names></name></contrib>
<contrib id="author-7" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Al-Turaiki</surname><given-names>Isra</given-names></name><xref rid="cor1" ref-type="corresp">&#x002A;</xref><email>ialturaiki@ksu.edu.sa</email></contrib>
<aff id="aff-1"><institution>Computer Science Department, College of Computer and Information Sciences, King Saud University</institution>, <addr-line>Riyadh</addr-line>, <country>Saudi Arabia</country></aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Isra Al-Turaiki. Email: <email>ialturaiki@ksu.edu.sa</email></corresp>
</author-notes>
<pub-date date-type="collection" publication-format="electronic">
<year>2026</year>
</pub-date>
<pub-date date-type="pub" publication-format="electronic">
<day>8</day><month>5</month><year>2026</year>
</pub-date>
<volume>88</volume>
<issue>1</issue>
<elocation-id>62</elocation-id>
<history>
<date date-type="received">
<day>30</day>
<month>11</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>27</day>
<month>02</month>
<year>2026</year>
</date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2026 The Authors. Published by Tech Science Press.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>The Authors</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_CMC_76992.pdf"></self-uri>
<abstract>
<p>Phishing emails are an increasing threat to both individuals and organizations, demanding more sophisticated methods of detection beyond traditional blacklisting and heuristic techniques. One of the main challenges in phishing detection is the limited availability of high-quality phishing datasets. To address this issue, we use generative AI to create synthetic emails that help reduce class imbalance, improve model generalization, and overcome data scarcity. We employ a large language model, DeepSeek-7B-Chat, to generate realistic and context-aware phishing and non-phishing emails. Through prompt engineering and fine-tuning, the model produces diverse and modern phishing-style emails that strengthen phishing detection systems. The quality of the generated synthetic emails is evaluated using BERTScore, Self-Bilingual Evaluation Understudy (Self-BLEU), and Perplexity. Our results show that a fine-tuning model achieves the highest BERTScore F1-scores, indicating strong semantic similarity, while lower Self-BLEU and appropriate perplexity values reflect better diversity and fluency. To evaluate the usefulness of synthetic data in phishing detection, we train DistilBERT models on the original dataset, the synthetic dataset, and a combined version. The model trained on the combined dataset (original and prompt-based) achieves an accuracy and F1-score of 95% and 94%, respectively, on the original test set and of 93% and 93% on the combined dataset (original and prompt-based); the model trained on the combined dataset (original and fine-tuned) achieves an accuracy and F1-score of 95% and 95%, respectively, on the original test set and of 92% and 92% on the combined dataset (original and fine-tuned). Overall, models trained on combined datasets consistently outperformed the other approaches. Thus, our findings indicate that integrating original and synthetic data is more effective than training on either dataset alone and that integrating high-quality synthetic data generated by a large language model significantly improves phishing email detection, addressing key limitations in real-world data availability.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Phishing email detection</kwd>
<kwd>generative AI</kwd>
<kwd>large language model (LLM)</kwd>
<kwd>Deepseek</kwd>
<kwd>synthetic data generation</kwd>
<kwd>DistilBERT</kwd>
<kwd>cybersecurity</kwd>
</kwd-group>
<funding-group>
<award-group id="awg1">
<funding-source>King Saud University</funding-source>
<award-id>ORF-2026-857</award-id>
</award-group>
</funding-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>Phishing attacks have long been a significant cybersecurity threat, targeting individuals and organizations by exploiting their trust and tricking them into revealing sensitive information. These attacks typically occur via email, where attackers pretend to be trusted organizations to deceive victims into sharing personal details such as passwords, credit card numbers, or access to private systems. Regardless of advancements in cybersecurity, phishing attacks continue to be a significant threat that increases over time. These attacks often use deceptive language to seem legitimate and gain the user&#x2019;s trust. Phishing emails may contain links to malicious websites or attachments designed to install malware. To illustrate the magnitude of this threat, the Anti-Phishing Working Group (APWG) [<xref ref-type="bibr" rid="ref-1">1</xref>] observed 989,123 phishing attacks in the fourth quarter of 2024, showing a consistent upward trend from 877,536 in Q2 and 932,923 in Q3 of the same year. According to the IBM Cost of a Data Breach Report 2025, phishing attacks account for approximately 16% of reported data breach incidents and represent a significant financial burden, with an average cost of $4.8 million [<xref ref-type="bibr" rid="ref-2">2</xref>]. Phishers use various methods, including email, social networks, text messages, and phone calls. An illustrative case is the 2018 FIFA World Cup phishing scam, where attackers sent fake emails offering free tickets to trick individuals into revealing personal data [<xref ref-type="bibr" rid="ref-3">3</xref>].</p>
<p>While modern cybersecurity technologies have made considerable improvements in detecting and blocking phishing attempts, the constantly changing nature of phishing techniques presents ongoing challenges. In recent years, attackers have become increasingly skilled at crafting emails that mimic legitimate correspondence, often bypassing traditional detection systems designed to flag suspicious content [<xref ref-type="bibr" rid="ref-4">4</xref>]. A significant concern in the phishing landscape is the emergence of generative AI as a tool for cybercriminals. Generative AI models, such as Generative Pre-trained Transformer (GPT) [<xref ref-type="bibr" rid="ref-5">5</xref>], were originally designed to assist with natural language processing (NLP) and text generation, enabling AI to create human-like text. However, when misused by cybercriminals, these models can generate phishing emails that are more personalized and convincing than previously possible. Attackers can use AI to craft emails that are tailored to the specific interests, behaviors, and vulnerabilities of potential victims, making it difficult for both recipients and existing email security systems to distinguish between legitimate and malicious communications [<xref ref-type="bibr" rid="ref-6">6</xref>]. The increasing sophistication of phishing attacks highlights the limitations of traditional phishing detection systems, which often rely on predefined rules or static machine learning models trained on historical datasets. These systems excel at identifying known phishing techniques, but they are less effective against new, AI-generated phishing emails that employ unique language structures. The static nature of these systems makes them vulnerable to the dynamic and adaptable nature of modern phishing emails, especially those enhanced by generative AI [<xref ref-type="bibr" rid="ref-7">7</xref>]. Considering these challenges, researchers and cybersecurity professionals are increasingly exploring the potential of generative AI as not only a tool for attackers but also a defense mechanism. Using AI to simulate phishing attacks, it becomes possible to study the unique features and patterns present in these emails, providing valuable insights into how they are structured. These insights can be leveraged to train more advanced detection systems that can recognize both traditional and AI-generated phishing attempts.</p>
<p>In this paper, we explore the role of generative AI in enhancing phishing email detection systems, particularly how AI-generated phishing emails can be used to improve the training of machine learning-based detection models. We utilize a large language model (LLM), rather than alternative deep learning approaches such as generative adversarial networks (GANs), for several reasons. First, LLMs excel at understanding and generating coherent, context-aware natural language, which is essential for producing realistic phishing and legitimate email content. Second, prior research demonstrates that LLMs achieve superior performance on natural language processing tasks, whereas GAN-based models are more effective primarily in image generation and certain non-textual fraud detection scenarios [<xref ref-type="bibr" rid="ref-8">8</xref>]. The main contribution of this work is the use of large language models to enhance phishing detection through the generation of training data that closely reflect real-world phishing scenarios. As attackers increasingly employ AI-driven techniques to craft phishing emails, we address this emerging threat by constructing a more comprehensive dataset that integrates six publicly available phishing datasets with newly generated synthetic data produced using DeepSeek-7B-Chat. This approach significantly increases data diversity and better captures the evolving nature of phishing tactics. DeepSeek-7B-Chat was selected due to its flexibility in creating realistic, meaningful, and diverse emails that align with modern phishing tactics. We utilized DeepSeek to generate a dataset using prompt-based generation and another through model fine-tuning, both simulating phishing and legitimate emails. Subsequently, we evaluated the quality of the synthetic dataset and trained DistilBERT models using various combinations of the synthetic and original datasets. Finally, we evaluated the performance of the trained models to assess their accuracy and reliability in phishing detection. This work addresses a binary classification problem, in which synthetic datasets were generated for both phishing and legitimate emails. Although some of the publicly available datasets used in this study contain only phishing emails, these samples were integrated with phishing data from other sources, while legitimate emails were aggregated from complementary datasets to construct a unified binary classification model. By examining the characteristics of phishing emails, both those created by humans and those generated by AI, we aimed to develop a more adaptive and intelligent email detection system that adapts to new phishing techniques. Our findings aim to contribute valuable insights into improving phishing detection systems and advancing cybersecurity practices.</p>
<p>This paper is divided into six sections. <xref ref-type="sec" rid="s2">Section 2</xref> provides an overview of the related work on detecting phishing emails using various approaches. <xref ref-type="sec" rid="s3">Section 3</xref> outlines the methodology adopted in this research, including the dataset description and synthetic data generation. <xref ref-type="sec" rid="s4">Section 4</xref> discusses the results, including experimental settings and results. <xref ref-type="sec" rid="s5">Section 5</xref> presents the discussion, and finally, <xref ref-type="sec" rid="s6">Section 6</xref> presents the conclusions and future work.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Related Work</title>
<p>The problem of phishing emails has grown significantly as technology has advanced, requiring new solutions beyond traditional methods to effectively detect these risks. Gangavarapu et al. [<xref ref-type="bibr" rid="ref-9">9</xref>] aimed to identify the optimal feature set of emails for machine learning algorithms to detect phishing and spam emails by exploring various feature selection methodologies and evaluating them with multiple classifiers. They created three datasets, combining spam and ham emails from the SpamAssassin project [<xref ref-type="bibr" rid="ref-10">10</xref>] with phishing emails provided by Nazario [<xref ref-type="bibr" rid="ref-11">11</xref>]. In total, their datasets comprised 3844 samples. Five types of features were extracted: body, subject line, sender address, URL, and script-based features. Features were selected using a low-variance filter, high-correlation filter, feature importance-based filtering, minimum redundancy maximum relevance (mRMR), and principal component analysis (PCA). They evaluated several classification models, including Na&#x00EF;ve Bayes (NB), Support Vector Machine (SVM), Random Forest (RF), and a voting ensemble. Among them, the RF model with feature-importance-based selection achieved the best results, reaching 99.4% accuracy on the ham&#x2013;phishing dataset and 98.4% on the ham&#x2013;spam dataset, outperforming all other models.</p>
<p>Valecha et al. [<xref ref-type="bibr" rid="ref-12">12</xref>] addressed the problem of how to detect phishing emails using clues within them, either gain or loss persuasion cues. They focused on the efficiency of a model using only gain cues, loss cues, or a combination of the two. They developed three machine learning models, one for each type. The results showed that the models were better at detecting phishing emails with these persuasion cues, by 5% to 20%, than without. They used various methods to validate the results, including k-fold cross-validation, preprocessing, and different machine learning models, such as NB, LR (Logistic Regression), RF, and SVM. Valecha et al. [<xref ref-type="bibr" rid="ref-12">12</xref>] evaluated their approach using more than 18,000 phishing emails from the Millersmile dataset [<xref ref-type="bibr" rid="ref-13">13</xref>] and over 19,000 legitimate emails from the Enron corpus [<xref ref-type="bibr" rid="ref-14">14</xref>]. Their results showed noticeable gains: phishing email detection improved by 20% and 17% with gain-based persuasion cues with loss-based cues, respectively. Overall, their method achieved 96.52% accuracy, 98.53% precision, 94.20% recall, and a 15.55% improvement in F-score. The research highlights the impact of persuasion in phishing email detection and how it can help improve performance.</p>
<p>Alammar and Badawi [<xref ref-type="bibr" rid="ref-15">15</xref>] developed a phishing email detection system using machine learning techniques, focusing primarily on the RF algorithm. They used the WEKA toolkit to analyze the Phishing Dataset for ML Feature Evaluation [<xref ref-type="bibr" rid="ref-16">16</xref>] and EmailHeaderAnomalyDetection [<xref ref-type="bibr" rid="ref-17">17</xref>], which contains 88,489 email samples with 126 features. Their results showed that RF achieved the highest accuracy at 99.03%, outperforming Na&#x00EF;ve Bayes, which reached 90.13%. The study also applied several data preprocessing and feature selection methods to improve classification performance, including filters that remove misclassified samples. This research demonstrates the effectiveness of machine learning algorithms, particularly RF, in classifying phishing emails accurately.</p>
<p>Doshi et al. [<xref ref-type="bibr" rid="ref-18">18</xref>] proposed a dual-layer architecture for detecting phishing and spam emails using machine learning techniques and deep learning algorithms on an imbalanced dataset, comprising the Nazario [<xref ref-type="bibr" rid="ref-11">11</xref>] and SpamAssassin datasets [<xref ref-type="bibr" rid="ref-10">10</xref>]. Their approach combines features from the email body and other content, and they applied different traditional machine learning and deep learning methods, such as Artificial Neural Networks (ANN), Recurrent Neural Networks (RNN), and Convolutional Neural Networks (CNN). To address the class imbalance, the detection process is split into two layers, one focused on phishing and the other on spam. Their method achieved high performance, around 99.51% accuracy, 99.68% recall, 99.5% precision, and an F1-score of 99.52%.</p>
<p>Heiding et al. [<xref ref-type="bibr" rid="ref-19">19</xref>] investigated how large language models (LLMs) like GPT-4 can be used to create and detect phishing emails. They showed that LLMs can generate phishing emails automatically, examined the effectiveness of LLMs in identifying phishing emails, and discussed how these technologies can enhance cybersecurity training. Their study emphasizes the need for better phishing detection methods and suggests that LLMs can enhance cybersecurity training by personalizing content for user vulnerabilities.</p>
<p>Al-Subaiey et al. [<xref ref-type="bibr" rid="ref-20">20</xref>] presented a method for phishing email detection using a unified dataset [<xref ref-type="bibr" rid="ref-21">21</xref>] from six sources, totaling 82,486 emails (42,891 spam and 39,595 non-spam): Enron Email Dataset [<xref ref-type="bibr" rid="ref-14">14</xref>], Ling-Spam Corpus [<xref ref-type="bibr" rid="ref-22">22</xref>], SpamAssassin Public Corpus [<xref ref-type="bibr" rid="ref-10">10</xref>], CEAS 2008 Spam Challenge Corpus [<xref ref-type="bibr" rid="ref-23">23</xref>], Nazario Spam Dataset [<xref ref-type="bibr" rid="ref-11">11</xref>], and Nigerian Fraud Dataset [<xref ref-type="bibr" rid="ref-24">24</xref>]. They applied text preprocessing and feature extraction using Term Frequency-Inverse Document Frequency (TF-IDF) and Word2Vec, as well as Support Vector Classifier (SVC), Multinomial Naive Bayes (MNB), and RF models. Explainable AI was integrated through Local Interpretable Model-Agnostic Explanations (LIME), which explains model predictions by identifying keywords or features influencing classifications. LIME slightly alters the input email text and observes how these changes impact the model&#x2019;s predictions, highlighting words such as &#x201C;urgent,&#x201D; &#x201C;account,&#x201D; and &#x201C;verify&#x201D;, which are indicative of phishing. The SVC model with TF-IDF achieved the best performance with 99.19% accuracy, 99% precision, and an F1-score of 99%.</p>
<p>Atawneh et al. [<xref ref-type="bibr" rid="ref-25">25</xref>] tackled the problem of detecting phishing emails using various deep learning techniques. They explored CNNs, RNNs, long short-term memory (LSTM) networks, and bidirectional encoder representations from transformers (BERT) on a phishing dataset, comprising the Enron [<xref ref-type="bibr" rid="ref-14">14</xref>], SpamAssassin [<xref ref-type="bibr" rid="ref-10">10</xref>], and UCI phishing datasets, with a significant focus on feature extraction using NLP. The dataset comprised phishing and non-phishing emails, and the deep learning models were trained and tested using this dataset. They compared the BERT and LSTM models, achieving the highest accuracy of 99.61% and significantly outperforming other state-of-the-art techniques. A strength of this research is the comprehensive comparison across several deep learning techniques, demonstrating the importance of model selection when dealing with text-based cybersecurity issues.</p>
<p>Thakur et al. [<xref ref-type="bibr" rid="ref-26">26</xref>] provided a comprehensive review of phishing email detection techniques using deep learning models. The review examined methods such as CNNs, LSTM networks, and hybrid models, which utilize datasets like those of Enron [<xref ref-type="bibr" rid="ref-14">14</xref>] and SpamAssassin [<xref ref-type="bibr" rid="ref-10">10</xref>]. It highlights the effectiveness of these models, with accuracy rates exceeding 99%, emphasizing their ability to detect sophisticated phishing attacks. The paper discusses the variety of datasets used in phishing email detection, including publicly available and self-generated datasets simulating phishing scenarios. The findings highlight the strengths of deep learning models in analyzing complex patterns and adapting to evolving phishing tactics.</p>
<p>Altwaijry et al. [<xref ref-type="bibr" rid="ref-3">3</xref>] proposed the use of one-dimensional CNN-based models (1D-CNNPD) for phishing email detecting, incorporating LSTM, GRU, and their variations. Two publicly available datasets were utilized: Spam Assassin [<xref ref-type="bibr" rid="ref-10">10</xref>] and Phishing Corpus [<xref ref-type="bibr" rid="ref-11">11</xref>]. The 1D-CNNPD with Leaky ReLU and Bi-GRU achieved higher performance compared to other advanced deep learning and machine learning phishing detection methods, achieving a precision of 100%, accuracy of 99.68%, F1-score of 99.66%, and recall of 99.32%. They demonstrated that integrating recurrent layers such as Bi-GRU with CNN-based models significantly improves detection performance.</p>
<p>Alhuzali et al. [<xref ref-type="bibr" rid="ref-27">27</xref>] presented a comprehensive evaluation of fourteen machine and deep learning methods to detect phishing emails using ten datasets, nine publicly available datasets, and a merged dataset. The findings demonstrate that deep learning models outperform machine learning models in both accuracy and robustness. Transformer-based models such as BERT and RoBERTa significantly outperform traditional methods, achieving a higher detection accuracy of approximately 99% on the balanced merged dataset. Overall, the study highlights the effectiveness of advanced deep learning models in detecting evolving phishing threats.</p>
<p>Hosseinzadeh et al. [<xref ref-type="bibr" rid="ref-28">28</xref>] presented a hybrid deep learning and Mountain Gazelle Optimizer (MGO) to detect phishing emails. They proposed a hybrid architecture that integrates BERT for contextual text representations, multi-head attention to emphasize important patterns, CNN layers for local feature extraction, and GRU units for sequential modeling, enabling the model to capture both detailed and high-level characteristics of email content. To fine-tune the model, the Mountain Gazelle Optimizer (MGO) is employed to automatically adjust hyperparameters and improve learning. Following evaluation on a publicly available phishing email dataset [<xref ref-type="bibr" rid="ref-29">29</xref>], the optimized model achieved 96.8% accuracy, 97.2% precision, 95.4% recall, and a 96.3% F1-score, outperforming baseline methods. These results demonstrate that integrating a transformer-based language model with adaptive optimization can significantly enhance the reliability of phishing email detection systems. <xref ref-type="table" rid="table-1">Table 1</xref> summarizes the related work.</p>
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Summary of related works in phishing email detection.</title>
</caption>
<table>
<colgroup>
<col align="center" width="17mm"/>
<col align="center" width="50mm"/>
<col align="center" width="40mm"/>
<col align="center" width="40mm"/> </colgroup>
<thead>
<tr>
<th>Reference</th>
<th>Methodologies</th>
<th>Datasets</th>
<th>Results</th>
</tr>
</thead>
<tbody>
<tr>
<td>[<xref ref-type="bibr" rid="ref-9">9</xref>]</td>
<td>Feature extraction (5 types), feature selection (low variance, high correlation, mRMR, PCA), Na&#x00EF;ve Bayes, SVM, RF, and Voting Ensembles were applied</td>
<td>Three datasets created (3844 samples) from the SpamAssassin and Nazario datasets</td>
<td>RF: 99.4% accuracy (phishing), 98.4% (spam)</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-12">12</xref>]</td>
<td>NLTK, Bi-LSTM, Word2Vec, k-fold cross-validation, NB, LR, RF, and SVM were applied</td>
<td>38,084 emails, Millersmile datasets, Enron corpus datasets</td>
<td>Accuracy: 96.52%</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-15">15</xref>]</td>
<td>RF was the primary method applied for phishing detection, with Na&#x00EF;ve Bayes for comparison purposes</td>
<td>Phishing Dataset for ML Feature Evaluation and EmailHeaderAnomalyDetection with 88,489 instances and 126 attributes</td>
<td>RF accuracy: 99.03%; NB accuracy: 90.13%</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-18">18</xref>]</td>
<td>TF-IDF, Exhaustive Feature Selection, Information Gain, Chi-Square Test, F-Classif, dual-layer architecture, ANN, RNN, and CNN were applied</td>
<td>8218 emails, Nazario&#x2019;s publicly accessible phishing corpus dataset, and SpamAssassin project</td>
<td>F1-score of 99.52%</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-19">19</xref>]</td>
<td>Phishing emails were generated using GPT-4, Claude, ChatLLaMA, and Bard; interactions of 112 participants with spoofed emails were analyzed</td>
<td>Cambridge Cybercrime Dataset</td>
<td>Detection accuracy; from 60% to 85%; internal variance of up to 25% in misclassifying emails; only 7% of participants noticed unusual sender</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-20">20</xref>]</td>
<td>TF-IDF<break/>SVC, MNB, and RF<break/>LIME were applied</td>
<td>Enron Phishing Email Dataset, CEAS 2008 Spam Challenge Corpus, Ling-Spam Corpus, Nazario Spam Dataset, Nigerian Fraud Dataset, and SpamAssassin Public Corpus</td>
<td>Accuracy of SVM with TF-IDF: 99.1%</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-25">25</xref>]</td>
<td>CNN, RNN, LSTM, and BERT were applied using NLP for phishing detection</td>
<td>Enron, SpamAssassin, and UCI phishing datasets, with dataset diversity impacting performance</td>
<td>CNN Performance<break/>F1-score: 98.87<break/>RNN Performance<break/>Accuracy: 98.58%,<break/>LSTM Performance<break/>Accuracy: 98.89%<break/>BERT-LSTM Performance<break/>Accuracy: 99.61%</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-26">26</xref>]</td>
<td>Systematic literature reviews (SLRs)</td>
<td>Self-generated datasets simulating phishing scenarios, and domain-specific datasets from platforms</td>
<td>More than 99% accuracy</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-3">3</xref>]</td>
<td>1D-CNNPD with LSTM, Bi-LSTM, GRU, and Bi-GRU were applied</td>
<td>SpamAssassin and Phishing Corpus</td>
<td>1D-CNNPD with Leaky ReLU and Bi-GRU: precision of 100%, accuracy of 99.68%, F1-score of 99.66%, and recall of 99.32%</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-27">27</xref>]</td>
<td>Naive Bayes, Logistic Regression, SGD Classifier, XGBoost, Decision Tree, Random Forest, Extra Tree, CNN, RNN, LSTM, BERT, DistilBERT, RoBERTa, and GCN were applied</td>
<td>Ling, Enron, SpamAssassin, TREC, CEAS, Nazario_5, Nigerian_5, and merged dataset</td>
<td>BERT and RoBERTa: the highest accuracy of 99% on the merged dataset</td>
</tr>
<tr>
<td>[<xref ref-type="bibr" rid="ref-28">28</xref>]</td>
<td>BERT, multi-head attention mechanisms, CNN, GRU, and mountain gazelle optimizer (MGO) were applied</td>
<td>phishing email dataset from Kaggle</td>
<td>96.8% accuracy, 97.2% precision, 95.4% recall, and F1-score of 96.3%</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>As summarized in <xref ref-type="table" rid="table-1">Table 1</xref>, existing phishing email detection approaches can be broadly categorized into traditional machine learning, deep learning-based models, and emerging LLM- and explainability-driven techniques. Traditional machine learning methods, particularly Random Forest (RF), have been widely adopted due to their robustness and interpretability. Studies such as [<xref ref-type="bibr" rid="ref-9">9</xref>,<xref ref-type="bibr" rid="ref-15">15</xref>] report high accuracy values exceeding 99%. However, these approaches rely heavily on basic feature extraction techniques, including low-variance filtering and PCA, and the absence of advanced models, which limit their adaptability to evolving phishing strategies.</p>

<p>Deep learning models have been introduced to overcome the limitations of traditional machine learning approaches. For example, study [<xref ref-type="bibr" rid="ref-12">12</xref>] incorporated persuasion cues using Word2Vec and Bi-LSTM, achieving an accuracy of 96.52%, but remained dependent on manual labeling and explored a limited range of deep architectures. More complex architectures were examined in [<xref ref-type="bibr" rid="ref-18">18</xref>], where a dual-layer architecture incorporating a CNN, RNN, and ANN framework addressed class imbalance and achieved an F1-score of 99.52%. Similarly, the authors of [<xref ref-type="bibr" rid="ref-25">25</xref>] evaluated CNN, RNN, LSTM, and BERT models, reporting an accuracy of 99.61% for BERT and LSTM. Recent research [<xref ref-type="bibr" rid="ref-3">3</xref>] has shown that combining CNNs with recurrent layers, particularly Bi-GRU, significantly improves phishing email detection, achieving an accuracy of 99.68% on two public datasets. Additionally, Alhuzali et al. [<xref ref-type="bibr" rid="ref-27">27</xref>] demonstrated that advanced deep learning models, especially transformer-based approaches like BERT and RoBERTa, outperform traditional machine learning methods in accurately and robustly detecting phishing emails across multiple datasets. Additionally, Hosseinzadeh et al. [<xref ref-type="bibr" rid="ref-28">28</xref>] demonstrated that a hybrid deep learning architecture combining BERT with CNN, GRU, multi-head attention, and adaptive hyperparameter optimization significantly improves phishing email detection performance compared to conventional approaches.</p>
<p>Recent studies have explored the use of large language models (LLMs) and explainable AI to enhance phishing detection. In [<xref ref-type="bibr" rid="ref-19">19</xref>], LLMs such as GPT-4 and Claude were employed to generate phishing emails, with detection accuracy ranging from 60% to 85%. Although this work demonstrates the potential of LLMs for data generation, it is constrained by a small sample size and reliance on a single dataset. Explainable AI techniques were investigated in [<xref ref-type="bibr" rid="ref-20">20</xref>], where LIME was integrated with classifiers such as SVC and RF, achieving an accuracy of 99.19% through the identification of key phishing-related keywords.</p>
<p>Overall, despite the strong reported results, many studies have used small datasets for evaluation purposes, which limits the generalizability of their results to new and unseen phishing attacks. Although many methods report high accuracy, real-world performance is not often reflected. Common limitations across existing studies include imbalanced data [<xref ref-type="bibr" rid="ref-18">18</xref>], limited data diversity and small dataset sizes [<xref ref-type="bibr" rid="ref-12">12</xref>], and the use of outdated phishing datasets [<xref ref-type="bibr" rid="ref-3">3</xref>,<xref ref-type="bibr" rid="ref-9">9</xref>]. These limitations directly motivate the objectives of this research. Accordingly, this study aims to leverage generative AI to produce synthetic phishing data to (i) address data imbalance and limited dataset size, (ii) enhance dataset diversity to improve model generalization, and (iii) evaluate phishing detection models using larger and more recent datasets that better reflect contemporary phishing techniques. By explicitly targeting these gaps, the proposed research seeks to improve both the reliability and real-world applicability of phishing detection systems.</p>
</sec>
<sec id="s3">
<label>3</label>
<title>Materials and Methods</title>
<p>To evaluate the effectiveness of synthetic data in phishing email detection, we followed a methodology that includes dataset selection and preprocessing, synthetic data generation, synthetic data quality evaluation, classification model training, and model evaluation, as shown in <xref ref-type="fig" rid="fig-1">Fig. 1</xref>.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>The workflow of the methodology.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-1.tif"/>
</fig>
<sec id="s3_1">
<label>3.1</label>
<title>Dataset Selection and Preprocessing</title>
<p>Dataset preprocessing is a critical step to ensure that the data used are clean, well-prepared, and ready for effective model training and evaluation. The process begins by retrieving publicly available phishing datasets from Kaggle [<xref ref-type="bibr" rid="ref-21">21</xref>]. This dataset combines six benchmark email phishing datasets into a single resource for analysis. As shown in <xref ref-type="table" rid="table-2">Table 2</xref>, the initial datasets are CEAS_08 [<xref ref-type="bibr" rid="ref-23">23</xref>], Enron Corpus [<xref ref-type="bibr" rid="ref-14">14</xref>], Ling Spam [<xref ref-type="bibr" rid="ref-22">22</xref>], Nazairo [<xref ref-type="bibr" rid="ref-11">11</xref>], Nigerian Fraud [<xref ref-type="bibr" rid="ref-24">24</xref>], and SpamAssassin [<xref ref-type="bibr" rid="ref-10">10</xref>]. The final dataset includes a total of 82,486 emails, consisting of 39,595 legitimate (non-phishing) emails and 42,891 phishing emails. <xref ref-type="table" rid="table-3">Table 3</xref> shows examples of the emails in the dataset.</p>
<table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>Summary of dataset.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center" width="55mm"/>
<col align="center" width="40mm"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th>Dataset</th>
<th># of Non-Phishing Emails</th>
<th># of Phishing Emails</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>CEAS_08</td>
<td>17,312</td>
<td>21,842</td>
<td>39,154</td>
</tr>
<tr>
<td>Enron</td>
<td>15,791</td>
<td>13,976</td>
<td>29,767</td>
</tr>
<tr>
<td>Ling</td>
<td>2401</td>
<td>458</td>
<td>2859</td>
</tr>
<tr>
<td>Nazairo</td>
<td>0</td>
<td>1565</td>
<td>1565</td>
</tr>
<tr>
<td>Nigerian_Fraud</td>
<td>0</td>
<td>3332</td>
<td>3332</td>
</tr>
<tr>
<td>SpamAssassin</td>
<td>4091</td>
<td>1718</td>
<td>5809</td>
</tr>
<tr>
<td>Total</td>
<td>39,595</td>
<td>42,891</td>
<td>82,486</td>
</tr>
</tbody>
</table>
</table-wrap><table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>Example emails from the original dataset.</title>
</caption>
<table>
<colgroup>
<col align="center" width="25mm"/>
<col align="center" width="130mm"/> </colgroup>
<thead>
<tr>
<th>Label</th>
<th>Subject and Body of the Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Phishing</td>
<td>&#x201C;Subject: ID:19346 The world&#x2019;s largest online prescription-free apothecary<break/>Body: The ultimate convenience store in drugs, brought to you in just one click!<break/>Select from thousands of prescriptions. drugs to be delivered right to your doorstep.<break/>- V &#x0026; C, Tram, Som all available<break/>- Express delivery<break/>- Secure checkout via credit card<break/>- No limit to quantity ordered<break/>- NO DOCTOR&#x2019;S VISITS&#x2014;all orders are filled in-house and shipped out straight to you<break/>Don&#x2019;t pay a single cent more than you have to for the meds you need today.<break/>Click here: <ext-link ext-link-type="uri" xlink:href="https://www.outgoeffmedical.com">www.outgoeffmedical.com</ext-link>&#x201D;</td>
</tr>
<tr>
<td>Non-Phishing</td>
<td>&#x201C;Subject: Wekalist Digest, Vol 60, Issue 10<break/>Body: Send Wekalist mailing list submissions to iuxxdkqk@list.scms.waikato.ac.nz<break/>To subscribe or unsubscribe via the World Wide Web, visit <ext-link ext-link-type="uri" xlink:href="https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist">https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist</ext-link><break/>Or, via email, send a message with subject or body &#x2018;help&#x2019; to ohwwlejs-pbfotbp@list.scms.waikato.ac.nz. You can reach the person managing the list at pobypuhs-hvhzj@list.scms.waikato.ac.nz<break/>When replying, please edit your Subject line so it is more specific<break/>than &#x201C;Re: Contents of Wekalist digest...&#x201D;<break/>Today&#x2019;s Topics:<break/>1. RE: Weka 3.5.7.exe installation problems (Danilovich, Yann)<break/>2. Question (bug?) (Uday Kamath)<break/>3. Event Sequence Mining (Budziak, G.)<break/>4. RE: Question (bug?) (Cristina Torres)<break/>5. RE: Where can i find algorithms explanation<break/>(Nanda, Subrat (GE, Research))&#x201D;</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Each source dataset has different features, as shown in <xref ref-type="table" rid="table-4">Table 4</xref>. Due to these differences, the datasets required cleaning and reorganization to align with the requirements of our study. We focused on extracting the subject, body, and label features, which are essential for understanding the content of the emails and their classification as phishing or non-phishing. All other features (sender, receiver, date, and URLs) were removed to make the dataset more focused and efficient for our purposes.</p>
<table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Comparison with the original email datasets.</title>
</caption>
<table>
<colgroup>
<col align="center" width="50mm"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th>Dataset/Features</th>
<th>Sender</th>
<th>Receiver</th>
<th>Date</th>
<th>Subject</th>
<th>Body</th>
<th>Label</th>
<th>URLs</th>
</tr>
</thead>
<tbody>
<tr>
<td>CEAS_08</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
</tr>
<tr>
<td>Enron</td>
<td></td>
<td></td>
<td></td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td></td>
</tr>
<tr>
<td>Ling</td>
<td></td>
<td></td>
<td></td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td></td>
</tr>
<tr>
<td>Nazairo</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
</tr>
<tr>
<td>Nigerian_Fraud</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
</tr>
<tr>
<td>SpamAssassin</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
<td>&#x2713;</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We then cleaned the dataset to remove duplicates and incomplete entries and split it as follows for model development and evaluation: 70% for a training set, denoted as D<sub>OrigTrain</sub>; 15% for a testing set, D<sub>Test</sub>; and 15% for a validation set, D<sub>val</sub>. This split ensured sufficient data for training, effective hyperparameter tuning, and an unbiased evaluation of the model&#x2019;s performance on unseen data.</p>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Synthetic Data Generation</title>
<p>We aimed to create synthetic data to improve the ability of phishing detection models in identifying phishing threats. Two synthetic datasets were created using Deepseek 7b-chat LLM [<xref ref-type="bibr" rid="ref-30">30</xref>]: one via prompt-based generation and another through model fine-tuning. Both simulated phishing and legitimate emails, comprising 20,000 emails each. Both approaches were guided by predefined scenarios based on real-world contexts like account security, payments, and deliveries, as presented in <xref ref-type="fig" rid="fig-2">Fig. 2</xref>. These scenarios reflect the most commonly observed phishing attacks reported in industry threat intelligence reports [<xref ref-type="bibr" rid="ref-1">1</xref>,<xref ref-type="bibr" rid="ref-31">31</xref>]. Each scenario was adapted to produce both phishing and non-phishing emails, helping the model capture subtle differences in intent and tone. This scenario-driven method reflects current cybersecurity practices, where controlled simulations are used to model realistic threats and improve detection systems [<xref ref-type="bibr" rid="ref-32">32</xref>]. To ensure privacy and variability, we applied Named Entity Recognition (NER) [<xref ref-type="bibr" rid="ref-33">33</xref>] and the Faker library [<xref ref-type="bibr" rid="ref-34">34</xref>] to replace any sensitive or identifiable information in the generated data.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>Synthetic dataset generation scenarios.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-2.tif"/>
</fig>
<sec id="s3_2_1">
<label>3.2.1</label>
<title>Prompt Engineering for the LLM</title>
<p>Prompt engineering involves designing structured input prompts to guide a pre-trained model to perform specific tasks without modifying its internal parameters [<xref ref-type="bibr" rid="ref-5">5</xref>]. In this study, we employed DeepSeek-7B-Chat [<xref ref-type="bibr" rid="ref-30">30</xref>], an open source instruction-following tasks model that supports chat-style interaction, as well as quantization (like 8-bit), which makes it easier to run on limited GPU resources. Additionally, there is currently limited research available on DeepSeek, which presents an opportunity to explore its capabilities in text generation. We utilized prompt engineering to guide Deepseek-llm-7b-chat to generate realistic emails without additional training. Around twenty thousand emails were generated, equally balanced between phishing and non-phishing emails across different scenarios. This approach involved the following steps:<list list-type="bullet">
<list-item>
<p>Few-Shot Prompting: We used two-shot prompting, which involves supplying the model with two input&#x2013;output examples before issuing the main instruction. These demonstrations help the model understand structural patterns, desired tone, and domain-relevant subtleties. In our study, this approach led to a notable improvement in both the plausibility and diversity of generated phishing and non-phishing emails. As shown in <xref ref-type="table" rid="table-5">Table 5</xref>, the two-shot phishing email includes social engineering tactics such as urgency, implied consequences, and a spoofed support contact&#x2014;hallmarks of realistic phishing content. The two-shot non-phishing email, in contrast, adopts a clear, informative tone and correctly directs users to a legitimate password update source. These improvements are consistent with previous research showing that few-shot prompting enhances the model&#x2019;s ability to mimic domain-specific language patterns and intentions more reliably than zero-shot methods [<xref ref-type="bibr" rid="ref-35">35</xref>,<xref ref-type="bibr" rid="ref-36">36</xref>].</p>
</list-item>
<list-item>
<p>For each scenario, we crafted two example emails corresponding to the desired label (phishing or non-phishing) to guide the model in generating similar, realistic emails. In our study, we opted to craft the seed examples to ensure that all prompts consistently reflect common fields and conventions observed in public corpora, and that the few-shot examples follow a uniform format suitable for prompting. Using crafted examples, we also intentionally avoided personal identifiers and organization names, helping reduce potential privacy and legal risks. It is important to note that these few-shot examples are used only as minimal demonstrations to control formatting and contextual alignment, rather than as training data.</p></list-item>
<list-item>
<p>Controlled Output: This approach encouraged the model to mimic the tone, intent, and structure of the provided examples, generating coherent and contextually appropriate emails.</p></list-item>
<list-item>
<p>Postprocessing with NER: We applied NER to the generated text and used the Faker library to replace all named entities and sensitive content.</p></list-item>
<list-item>
<p>Balanced Generation: A fixed number of emails per scenario were generated for both phishing and non-phishing classes.</p></list-item>
</list></p>
<table-wrap id="table-5">
<label>Table 5</label>
<caption>
<title>Example emails generated using two-shot prompt engineering.</title>
</caption>
<table>
<colgroup>
<col align="center" width="20mm"/>
<col align="center" width="60mm"/>
<col align="center" width="70mm"/> </colgroup>
<thead>
<tr>
<th>Category</th>
<th>Example Prompt Structure</th>
<th>Example Generated Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>Phishing</td>
<td>&#x201C;Write a phishing email pretending to be an email provider, warning that the user&#x2019;s password will expire soon.<break/>Here are two example emails: [<break/>Subject: Account Access Suspended<break/>Dear Customer,<break/>We detected unusual activity in your account and have temporarily suspended access for your protection. To restore your access, please verify your information immediately by clicking the link below:<break/>[Verification Link]<break/>Failure to act within 24 h may result in permanent account suspension.<break/>Thank you,<break/>Security Team], [<break/>Subject: Verify Your Email Password<break/>Dear User,<break/>Your email password is set to expire in 12 h. For uninterrupted access, please update your credentials using the secure link below:<break/>[Update Password]<break/>Regards,<break/>IT Support]<break/>&#x2014;<break/>Now write a similar realistic email:<break/>Subject:&#x201D;</td>
<td>&#x201C;Subject: Important: Update Your Login Credentials Immediately!<break/>Body: Hello, great,<break/>This message is to inform you that we have discovered potential security breaches on our platform. As part of our ongoing commitment to keeping all customers&#x2019; data safe and secure, we request immediate action from you regarding this matter.<break/>In order to protect your account, we need you to change your login credentials as soon as possible. Please follow the steps below:<break/>1. Click on the following link: <ext-link ext-link-type="uri" xlink:href="http://townsend.info/posts/categoryterms.jsp">http://townsend.info/posts/categoryterms.jsp</ext-link><break/>2. Enter your current email address.<break/>3. Choose a new password with at least one uppercase letter, lowercase letter, number, and symbol.<break/>4. Re-enter your new chosen password to confirm.<break/>5. Click &#x2018;Submit&#x2019;.<break/>Should any issues arise during this process or if you feel unsure about updating your details, do not hesitate to reach out to our customer support team, who will assist you through these necessary changes&#x2014;they can be reached via phone001-705-935-3048 or e-mail hunteralec@example.com. We apologize for any inconvenience caused, but assure you it&#x2019;s only done to keep your account fully protected.<break/>Best Regards,<break/>Email Provider&#x201D;</td>
</tr>
<tr>
<td>Non-Phishing</td>
<td>&#x201C;Write a legitimate email from IT reminding them about the password update.<break/>Here are two example emails: [<break/>Subject: Recent Login to Your Account<break/>Hello,<break/>We noticed a login to your account from a new device. If this were you, no further action is needed. If you don&#x2019;t recognize this activity, please contact our support team.<break/>Thanks,<break/>Security Team], [<break/>Subject: Password Expiry Notification<break/>Hi [User&#x2019;s Name],<break/>This is a reminder that your current password will expire in 3 days. Please update it at your earliest convenience through the official company portal.<break/>Best,<break/>IT Department]<break/>&#x2014;<break/>Now write a similar realistic email:<break/>Subject:&#x201D;</td>
<td>&#x201C;Subject: Reminder for Updating Your Password<break/>Body: Dear User,<break/>You are receiving this message as we have detected an outdated or weak password associated with your account. It is essential to keep your account secure and protect against potential threats. We recommend updating your password immediately by visiting our password policy page on our website (<ext-link ext-link-type="uri" xlink:href="https://www.websiteurl.com/policy">www.websiteurl.com/policy</ext-link>).<break/>Please follow the guidelines provided there regarding length, complexity, and including a combination of uppercase letters, lowercase letters, numbers, and special characters.<break/>To help ensure continued security, consider enabling multi-factor authentication on your accounts if not already enabled. This additional layer of protection provides an added measure of safety when accessing sensitive information online.<break/>Thank you for taking these steps to improve the overall security of your account and prevent unauthorized access. Should you encounter any difficulties during this process, feel free to reach out to our technical support team via email (third) or live chat service available on our website.<break/>Stay safe!<break/>Warm Regards,<break/>Carlson and Sons Crane Group&#x201D;</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3_2_2">
<label>3.2.2</label>
<title>Fine-Tuning the LLM</title>
<p>This approach involved the following steps:<list list-type="bullet">
<list-item>
<p>Dataset Preparation: The training dataset was prepared using a chat-based prompt completion schema. Each email sample was turned into a short dialog with three parts: a system message that sets the assistant&#x2019;s role, a user message containing the actual email text, and an assistant message, which was either &#x201C;phishing&#x201D; or &#x201C;non-phishing&#x201D;, depending on the label. This format, which is shown in <xref ref-type="fig" rid="fig-3">Fig. 3</xref>, helped the model understand the structure of the task and made the training more consistent with how we will use the model later. Two key steps ensured the model was trained effectively: data balancing and training&#x2013;validation split. First, the dataset underwent data balancing, where the phishing and non-phishing classes were adjusted to an equal representation by under-sampling the larger class to match the minority class and thus prevent class imbalance. Subsequently, the dataset was divided into training and validation sets.</p></list-item>
<list-item><p>Fine-Tuning the Model: To generate realistic emails for detecting phishing attacks in different situations, we applied a fine-tuning step to the DeepSeek-LLM-7B-Chat model [<xref ref-type="bibr" rid="ref-30">30</xref>]. We fine-tuned two separate models: one for phishing emails and one for non-phishing emails. This allowed each model to focus only on its specific type of data, which helped improve accuracy and made the synthetic email generation process more targeted and realistic. Instead of feeding plain emails directly into the model, we used a formatted dataset. For the fine-tuning process, we used LoRA (Low-Rank Adaptation) [<xref ref-type="bibr" rid="ref-37">37</xref>], which makes training more efficient by updating only a small portion of the model&#x2019;s parameters. This saves memory and speeds up training without affecting performance. The key training parameters were as follows:</p></list-item>
</list></p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>Chat-based prompt formatting of labeled email data.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-3.tif"/>
</fig>
<p><bold>Learning rate</bold> &#x003D; 2e&#x2212;5, a safe and commonly used rate for similar tasks.</p>
<p><bold>Max sequence length</bold> &#x003D; 256 tokens, enough to handle most email lengths while keeping memory usage low.</p>
<p><bold>Batch size</bold> &#x003D; 1, with gradient accumulation steps &#x003D; 4 to simulate a batch size of 4 without needing more memory.</p>
<p><bold>Epochs</bold> &#x003D; 1, to avoid a long training time and reduce the risk of overfitting.</p>
<p>These parameters were chosen based on various factors, including commonly recommended values [<xref ref-type="bibr" rid="ref-38">38</xref>]. For example, the learning rate is well-suited for fine-tuning LLMs. We experimented with multiple batch sizes before deciding to use a small batch size combined with gradient accumulation. This approach balances memory constraints and training stability. Regarding the number of epochs, since our dataset is relatively large and balanced, and the model tends to overfit quickly on classification tasks, we limited training to a single epoch to reduce training time and prevent overfitting. During training, we also included a validation step to check if the model was learning the task properly and not just memorizing the data. After completing the fine-tuning, we used the trained models to start generating synthetic emails for both categories.
<list list-type="bullet">
<list-item>
<p>Synthetic Dataset Generation: We implemented a custom training loop tailored for text generation tasks, providing greater control over how inputs and outputs were processed. This approach ensured that the model consistently learned to generate accurate responses labeled as either &#x201C;phishing&#x201D; or &#x201C;non-phishing.&#x201D; By directly managing the training dynamics, we were able to guide the model&#x2019;s learning process more effectively than with standard training routines. To make the models generate the desired emails, we used the same parameters and scenarios as in the prompt engineering process. For the phishing email dataset, each scenario represented a common phishing tactic, such as impersonating a bank or shipping service. For the non-phishing email dataset, we gave the model instructions to create legitimate emails that are close to real, legitimate emails. These prompts were carefully written to guide the models into generating contextually appropriate and valid emails. Similarly to the prompt engineering process, twenty thousand emails were generated.</p></list-item>
</list></p>
<p>After generating around 40,000 synthetic emails (prompt and fine-tuning), the new data followed the same structure as the cleaned version of the original dataset. Even though the original dataset contains about 80,000 emails, it still lacks enough variety in phishing samples to cover the different techniques attackers use. Synthetic data help fill this gap by adding new examples of phishing emails, improving the suitability of the dataset for handling how phishing tactics keep changing over time. <xref ref-type="fig" rid="fig-4">Fig. 4</xref> overviews the synthetic data generation processes.</p>
<fig id="fig-4">
<label>Figure 4</label>
<caption>
<title>Synthetic data generation processes.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-4.tif"/>
</fig>
</sec>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Evaluation of Synthetic Datasets</title>
<p>We evaluated two synthetic datasets, D<sub>Synth0</sub> and D<sub>Synth1</sub>, generated through prompt engineering for the LLM and for fine-tuning LLMs. The evaluation involved assessing data quality using multiple complementary metrics to provide a comprehensive evaluation of their effectiveness. The synthetic dataset was assessed using semantic similarity, diversity, and fluency to ensure quality and variation:<list list-type="simple">
<list-item>
<label>1.</label>
<p>Semantic Quality: The contextual similarity with the original dataset was evaluated using BERTScore [<xref ref-type="bibr" rid="ref-39">39</xref>]. We divided the original dataset into the same predefined scenarios used for generations, assigning each sample to a scenario based on keyword matching. BERTScore is an evaluation metric used to evaluate the performance of BERT-based models [<xref ref-type="bibr" rid="ref-39">39</xref>], similar to the F1-score. Instead of relying on exact token matches, it measures semantic similarity by comparing the embeddings of words in predicted and reference sentences.</p></list-item>
</list></p>
<p><disp-formula id="eqn-1"><label>(1)</label><mml:math id="mml-eqn-1" display="block"><mml:mi>P</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mrow><mml:mo>|</mml:mo><mml:mi>y</mml:mi><mml:mo>|</mml:mo></mml:mrow></mml:mfrac><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:munder><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:msub><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi><mml:mi mathvariant="normal">&#x005F;</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>i</mml:mi><mml:mi>t</mml:mi><mml:mi>y</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>E</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>,</mml:mo><mml:mi>E</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">)</mml:mo></mml:math></disp-formula>
<disp-formula id="eqn-2"><label>(2)</label><mml:math id="mml-eqn-2" display="block"><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mrow><mml:mo>|</mml:mo><mml:mi>x</mml:mi><mml:mo>|</mml:mo></mml:mrow></mml:mfrac><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:munder><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mrow><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:msub><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi><mml:mi mathvariant="normal">&#x005F;</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>l</mml:mi><mml:mi>a</mml:mi><mml:mi>r</mml:mi><mml:mi>i</mml:mi><mml:mi>t</mml:mi><mml:mi>y</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>E</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>,</mml:mo><mml:mi>E</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">)</mml:mo></mml:math></disp-formula>
<disp-formula id="eqn-3"><label>(3)</label><mml:math id="mml-eqn-3" display="block"><mml:mrow><mml:mtext>BERTScore</mml:mtext></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mtext>F</mml:mtext></mml:mrow><mml:mn>1</mml:mn><mml:mo stretchy="false">(</mml:mo><mml:mi>P</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></disp-formula>where <italic>x</italic> &#x003D; reference, <italic>y</italic> &#x003D; predicted sentences, <italic>E</italic> (<italic>x</italic><sub><italic>i</italic></sub>) &#x003D; the embedding of the <italic>i</italic>-th token in <italic>x</italic>, and F1 &#x003D; the harmonic mean of precision and recall.
<list list-type="simple">
<list-item>
<label>2.</label>
<p>Diversity: This metric was assessed using Self-Bilingual Evaluation Understudy (SelfBLEU) [<xref ref-type="bibr" rid="ref-40">40</xref>], which evaluates variation among synthetic samples. Self-BLEU is a metric used to evaluate the diversity of a dataset It calculates the Bilingual Evaluation Understudy (BLEU) score [<xref ref-type="bibr" rid="ref-41">41</xref>], which is a metric that evaluates text generation quality by measuring n-gram overlap between generated outputs and reference texts, reflecting how closely they match in content and phrasing. It was calculated by comparing each generated sample against the rest of the generated samples as the reference set. A higher Self-BLEU score indicates less diversity.</p></list-item>
</list></p>
<p><disp-formula id="eqn-4"><label>(4)</label><mml:math id="mml-eqn-4" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mrow><mml:mtext>Self</mml:mtext></mml:mrow><mml:mi mathvariant="normal">&#x005F;</mml:mi><mml:msub><mml:mrow><mml:mtext>BLEU</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>B</mml:mi><mml:mi>L</mml:mi><mml:mi>E</mml:mi><mml:mi>U</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>}</mml:mo></mml:mrow><mml:mi mathvariant="normal">&#x2216;</mml:mi><mml:mrow><mml:mo>{</mml:mo><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>}</mml:mo></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="eqn-5"><label>(5)</label><mml:math id="mml-eqn-5" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mrow><mml:mtext>Self</mml:mtext></mml:mrow><mml:mi mathvariant="normal">&#x005F;</mml:mi><mml:mrow><mml:mtext>BLEU</mml:mtext></mml:mrow><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mi>k</mml:mi></mml:mfrac><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mtext>Self</mml:mtext></mml:mrow><mml:mi mathvariant="normal">&#x005F;</mml:mi><mml:msub><mml:mrow><mml:mtext>BLEU</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>where {<italic>G</italic>1, <italic>G</italic>2, &#x2026;, <italic>G</italic><sub>K</sub>} &#x003D; the set of generated texts, and Self-BLEU<sub><italic>i</italic></sub> &#x003D; the score for example <italic>G</italic><sub><italic>i</italic></sub>.
<list list-type="simple">
<list-item>
<label>3.</label>
<p>Fluency: This metric is evaluated based on perplexity [<xref ref-type="bibr" rid="ref-42">42</xref>] and calculated using a pre-trained GPT-2 language model to evaluate text naturalness. Perplexity is a metric used to evaluate language models [<xref ref-type="bibr" rid="ref-42">42</xref>]. It measures how well a probability distribution predicts a sample. Lower perplexity indicates better predictive power.</p></list-item>
</list></p>
<p><disp-formula id="eqn-6"><label>(6)</label><mml:math id="mml-eqn-6" display="block"><mml:mrow><mml:mtext>Perplexity</mml:mtext></mml:mrow><mml:mo>=</mml:mo><mml:mi>exp</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mi>N</mml:mi></mml:mfrac><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>g</mml:mi><mml:mi>P</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2223;</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>.</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>where <italic>P</italic> (<italic>w</italic><sub><italic>i</italic></sub> &#x007C; <italic>w</italic><sub>1</sub>, <italic>w</italic><sub>2</sub>, &#x2026;, <italic>w</italic><sub><italic>i</italic>&#x2212;1</sub>) &#x003D; the probability of the <italic>i</italic>-th word given the preceding words, and <italic>N</italic> is the total number of words in the sequence.</p>
<p>Together, these evaluation metrics allow us to assess how well each approach can generate synthetic data that are semantically aligned with the original dataset while maintaining diversity and linguistic naturalness.</p>
</sec>
<sec id="s3_4">
<label>3.4</label>
<title>Classifier Training and Evaluation</title>
<p>To evaluate the effectiveness of synthetic datasets in training classification models, we used DistilBERT classifiers across various training setups. DistilBERT is a compact and efficient version of BERT, developed with Hugging Face [<xref ref-type="bibr" rid="ref-43">43</xref>]. The classifier training and evaluation process was as follows:</p>
<p>Dataset Splits: For training and testing dataset ratios, previous research has demonstrated that both 80/20 and 70/30 splits can be effective; however, the choice may depend on the size and role of each dataset, in addition to the specific machine learning task [<xref ref-type="bibr" rid="ref-44">44</xref>,<xref ref-type="bibr" rid="ref-45">45</xref>]. In our case, different dataset split strategies were applied depending on the dataset size. For example, D<sub>OrigTrain</sub> was divided into 70% for training, 15% for validation, and 15% for testing. The synthetic dataset D<sub>Synth</sub> was smaller and thus divided into 80% for training, 10% for validation, and 10% for testing. For the synthetic data, a 70/15/15 split would have resulted in too few training samples for effective learning. This adjustment ensured sufficient training data while maintaining reliable validation and test sets.</p>
<p>Dataset Preparation: We evaluated the quality of two types of synthetic data generated via prompt engineering and model fine-tuning. We used three dataset configurations: D<sub>OrigTrain</sub>&#x2014;original dataset only; D<sub>Synth</sub>&#x2014;synthetic dataset only; and D<sub>Synth&#x002B;OrigTrain</sub>&#x2014;a combination of the original and synthetic data.</p>
<p>Model Training: Three DistilBERT classifiers were trained on the above dataset configurations: model 1 on D<sub>OrigTrain</sub>, model 2 on D<sub>Synth</sub>, model 3 on D<sub>Synth&#x002B;OrigTrain</sub>. Then, prompt-generated and fine-tuned synthetic datasets were evaluated independently to determine their respective impact on model performance. All models were fine-tuned using parameter-efficient training with LoRA applied to the attention layers of the transformer. This limited the number of trainable parameters to approximately 1.5% of the full model.</p>
<p>Training Configuration: To ensure consistency across experiments, the following hyperparameters were held constant:<list list-type="bullet">
<list-item>
<p>Learning Rate: 5e&#x2212;5;</p></list-item>
<list-item>
<p>Batch Size: 16;</p></list-item>
<list-item>
<p>Epochs: 3;</p></list-item>
<list-item>
<p>Optimizer: AdamW (a variant of Adam that decouples weight decay).</p></list-item>
</list></p>
<p>The DistilBERT hyperparameters were selected based on recommendations reported in the literature. Prior studies indicate that moderate to low learning rates are effective in achieving higher classification accuracy [<xref ref-type="bibr" rid="ref-46">46</xref>]. Additionally, empirical evidence suggests that smaller batch sizes can improve model performance. With respect to optimization, Adam and its variants are widely recommended due to their robustness and effectiveness [<xref ref-type="bibr" rid="ref-47">47</xref>]. This evaluation framework supports a structured analysis of how different training data compositions influence classification performance and model generalization across original and synthetic domains.</p>
<p><xref ref-type="fig" rid="fig-5">Fig. 5</xref> illustrates the evaluation processes.</p>
<fig id="fig-5">
<label>Figure 5</label>
<caption>
<title>Evaluation process.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-5.tif"/>
</fig>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Results</title>
<sec id="s4_1">
<label>4.1</label>
<title>Experimental Settings</title>
<p>The proposed solutions were implemented using two primary development platforms: Jupyter Notebook [<xref ref-type="bibr" rid="ref-48">48</xref>] for local development and Kaggle [<xref ref-type="bibr" rid="ref-49">49</xref>] for cloud-based training and text generation. The former was primarily used for dataset preprocessing and synthetic dataset generation, whereas Kaggle&#x2019;s hosted environment was leveraged for fine-tuning, synthetic dataset generation, and overall evaluation. The programming language used was Python, chosen for its libraries and frameworks that support both CPU and GPU computation. PyTorch [<xref ref-type="bibr" rid="ref-50">50</xref>] was employed for model fine-tuning, while the Transformers library from Hugging Face [<xref ref-type="bibr" rid="ref-33">33</xref>] enabled efficient model handling. Support tools such as NumPy, Pandas, and Scikit-learn were utilized for data manipulation and preprocessing. The DistilBERT experiments were implemented using the same Python-based tool chain: PyTorch and the Transformers library facilitated model access and training, while data preprocessing was performed using NumPy, Pandas, and Scikit-learn. To evaluate the performance of the phishing email classification models, we employed commonly used evaluation metrics, including accuracy, precision, recall, and F1-score.</p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Experimental Results</title>
<p>In this section, we present the outcomes of our experimental evaluation, which aimed to determine the effectiveness of synthetic data in enhancing phishing email detection. The synthetic dataset was produced using prompt engineering and fine-tuning of the DeepSeek-7B-Chat model [<xref ref-type="bibr" rid="ref-30">30</xref>], with the goal of addressing limitations related to limited data availability and class imbalance. We assessed both the quality of the generated synthetic emails and performance of the DistilBERT classification models.</p>
<sec id="s4_2_1">
<label>4.2.1</label>
<title>Synthetic Dataset Evaluation</title>
<p>The quality of the synthetic datasets was evaluated using BERTScore [<xref ref-type="bibr" rid="ref-39">39</xref>], Self-BLEU [<xref ref-type="bibr" rid="ref-41">41</xref>], and perplexity [<xref ref-type="bibr" rid="ref-42">42</xref>]. To ensure a fair comparison using BERTScore, the D<sub>OrigTrain</sub> dataset was partitioned into the same scenario categories used in generating D<sub>Synth</sub>, which resulted in 12,000 samples. For each scenario, we computed BERTScore F1 by comparing the synthetic emails with the original emails within that scenario. We also calculated the number of phishing and non-phishing samples. <xref ref-type="fig" rid="fig-6">Figs. 6</xref> and <xref ref-type="fig" rid="fig-7">7</xref> show the BERTScore F1-score of the models (prompt-based and fine-tuned) on phishing and non-phishing scenarios, respectively.</p>
<fig id="fig-6">
<label>Figure 6</label>
<caption>
<title>BERTScore F1-score of models on phishing scenarios.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-6.tif"/>
</fig><fig id="fig-7">
<label>Figure 7</label>
<caption>
<title>BERTScore F1-score of models on non-phishing scenarios.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-7.tif"/>
</fig>
<p>As shown in <xref ref-type="fig" rid="fig-6">Figs. 6</xref> and <xref ref-type="fig" rid="fig-7">7</xref>, the dataset generated with the fine-tuned model achieved slightly higher scores than the prompt-based model. However, the differences were minimal&#x2014;generally not exceeding 0.008 points across most scenarios.</p>
<p><xref ref-type="fig" rid="fig-8">Fig. 8</xref> presents average Self-BLEU scores across all four synthetic email categories (fine-tuned/prompted and phishing/non-phishing). Analysis reveals that fine-tuned approaches consistently produced more diverse content, with fine-tuned non-phishing emails demonstrating the lowest Self-BLEU scores and therefore the greatest linguistic variation. In contrast, prompt-based methods yielded significantly higher Self-BLEU scores, indicating more repetitive language patterns across generated samples. Between the two prompt categories, phishing emails showed marginally better performance with slightly lower Self-BLEU scores than their non-phishing counterparts, suggesting somewhat reduced text redundancy. These findings further support the overall superiority of fine-tuned approaches in generating varied and natural-sounding content. An important hyperparameter in the Self-BLEU calculation is the n-gram size. In this paper, Self-BLEU was computed using 4-g (BLEU-4), a widely adopted standard in text generation evaluation. It captures both local and broader phrase patterns, offering a balanced view of linguistic diversity. Using fewer n-grams (e.g., 1 or 2) may miss contextual structure, while higher values often result in sparse matches. BLEU-4 provides a practical trade-off between detail and reliability, making it well-suited for this analysis.</p>
<fig id="fig-8">
<label>Figure 8</label>
<caption>
<title>Average Self-BLEU score across all four synthetic email categories.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-8.tif"/>
</fig>
<p>Similarly to for the Self-BLEU score, the four synthetic datasets were tested on perplexity. <xref ref-type="fig" rid="fig-9">Figs. 9</xref> and <xref ref-type="fig" rid="fig-10">10</xref> illustrate the perplexity distributions of synthetic phishing and non-phishing emails generated using prompt-based and fine-tuned approaches, respectively. The fine-tuned model produces generally lower and more concentrated perplexity values for both classes, indicating more stable language generation behavior. In contrast, the prompt-based approach shows notable variability, particularly for phishing emails, where the distribution exhibits a wider spread and a longer tail toward higher perplexity values. Non-phishing emails generated using the prompt-based approach are more narrowly concentrated at lower perplexity levels. Overall, when comparing the two approaches, the fine-tuned method demonstrates more consistent and balanced perplexity distributions across phishing and non-phishing emails.</p>
<fig id="fig-9">
<label>Figure 9</label>
<caption>
<title>Perplexity distribution of phishing (<bold>right</bold>) and non-phishing (<bold>left</bold>) emails generated with prompt-based models.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-9.tif"/>
</fig><fig id="fig-10">
<label>Figure 10</label>
<caption>
<title>Perplexity distribution of phishing (<bold>right</bold>) and non-phishing (<bold>left</bold>) emails generated by fine-tuned models.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-10.tif"/>
</fig>
</sec>
<sec id="s4_2_2">
<label>4.2.2</label>
<title>DistilBERT Model Performance</title>
<p>The evaluation results of different DistilBERT models are presented in <xref ref-type="table" rid="table-6">Table 6</xref>, while <xref ref-type="fig" rid="fig-11">Figs. 11</xref> and <xref ref-type="fig" rid="fig-12">12</xref> visualize the accuracy and F1-score, respectively. The models were trained on various datasets&#x2014;original (D<sub>OrigTrain</sub>), prompt-based synthetic (Prompt-Based D<sub>Synth</sub>), fine-tuned synthetic (Fine-Tune based D<sub>Synth</sub>), and their combinations (D<sub>Synth&#x002B;OrigTrain</sub>)&#x2014;and subsequently tested on the independent original and synthetic datasets. The results show that models trained on D<sub>OrigTrain</sub> generally show high accuracy/F1-scores on the original test set (0.96/0.96), on Combined Prompt-Based D<sub>Synth&#x002B;OrigTrain</sub> (0.89/0.89), and on Fine-Tune based D<sub>Synth&#x002B;OrigTrain</sub> (0.91/0.91). However, their performance drops significantly when tested on prompt-based D<sub>Synth</sub> (0.46/0.44). Additionally, models trained on synthetic data (Prompt-Based D<sub>Synth</sub> and Fine-Tune-based D<sub>Synth</sub>) achieve better performance on synthetic test sets but lower performance on the original test set. Also, combining the original and synthetic training data (Combined Prompt-Based D<sub>Synth&#x002B;OrigTrain</sub> and Combined Fine-Tune based D<sub>Synth&#x002B;OrigTrain</sub>) provides a good balance, maintaining high performance on the original test set while improving results on the synthetic test sets.</p>
<table-wrap id="table-6">
<label>Table 6</label>
<caption>
<title>Evaluation results of different DistilBERT models (accuracy/F1-score).</title>
</caption>
<table>
<colgroup>
<col align="center" width="38mm"/>
<col align="center" width="13mm"/>
<col align="center" width="25mm"/>
<col align="center" width="25mm"/>
<col align="center" width="25mm"/>
<col align="center" width="33mm"/> </colgroup>
<thead>
<tr>
<th>Training Configuration</th>
<th>Original Test Set</th>
<th>Prompt-Based Synthetic Test Set</th>
<th>Fine-Tuned Synthetic Test Set</th>
<th>Original &#x002B; Prompt Synthetic Test Set</th>
<th>Original &#x002B; Fine-Tuned Synthetic Test</th>
</tr>
</thead>
<tbody>
<tr>
<td>D<sub>OrigTrain</sub></td>
<td>0.96/0.96</td>
<td>0.46/0.44</td>
<td>0.61/0.60</td>
<td>0.89/0.89</td>
<td>0.91/0.91</td>
</tr>
<tr>
<td>Prompt-Based D<sub>Synth</sub></td>
<td>0.48/0.47</td>
<td>0.86/0.86</td>
<td>&#x2013;</td>
<td>0.53/0.52</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>Fine-Tune based D<sub>Synth</sub></td>
<td>0.64/0.64</td>
<td>&#x2013;</td>
<td>0.81/0.81</td>
<td>&#x2013;</td>
<td>0.66/0.66</td>
</tr>
<tr>
<td>Combined Prompt-Based D<sub>Synth&#x002B;OrigTrain</sub></td>
<td>0.95/0.94</td>
<td>0.78/0.78</td>
<td>&#x2013;</td>
<td>0.93/0.93</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>Combined Fine-Tune based D<sub>Synth&#x002B;OrigTrain</sub></td>
<td>0.95/0.95</td>
<td>&#x2013;</td>
<td>0.77/0.77</td>
<td>&#x2013;</td>
<td>0.92/0.92</td>
</tr>
</tbody>
</table>
</table-wrap><fig id="fig-11">
<label>Figure 11</label>
<caption>
<title>Accuracy of DistilBERT models.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-11.tif"/>
</fig><fig id="fig-12">
<label>Figure 12</label>
<caption>
<title>F1-score of DistilBERT models.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_76992-fig-12.tif"/>
</fig>
<p>To gain deeper insight into the model&#x2019;s performance, a targeted review of misclassified examples was conducted, aiming to identify patterns or features that may have contributed to incorrect predictions.</p>
<p>False Positives: Some safe emails were incorrectly marked as phishing. This usually happened when the email used urgent or persuasive words like &#x201C;act now,&#x201D; &#x201C;limited time,&#x201D; or &#x201C;urgent,&#x201D; which made them look like phishing attempts. The exact numbers of samples drawn from each test set is provided in <xref ref-type="table" rid="table-7">Table 7</xref>.</p>
<table-wrap id="table-7">
<label>Table 7</label>
<caption>
<title>False positives&#x2014;sample distribution across test sets.</title>
</caption>
<table>
<colgroup>
<col align="center" width="38mm"/>
<col align="center" width="13mm"/>
<col align="center" width="25mm"/>
<col align="center" width="25mm"/>
<col align="center" width="25mm"/>
<col align="center" width="33mm"/> </colgroup>
<thead>
<tr>
<th>Training Configuration</th>
<th>Original Test Set</th>
<th>Prompt-Based Synthetic Test Set</th>
<th>Fine-Tuned Synthetic Test Set</th>
<th>Original &#x002B; Prompt Synthetic Test Set</th>
<th>Original &#x002B; Fine-Tuned Synthetic Test</th>
</tr>
</thead>
<tbody>
<tr>
<td>D<sub>OrigTrain</sub></td>
<td>305</td>
<td>642</td>
<td>537</td>
<td>947</td>
<td>842</td>
</tr>
<tr>
<td>Prompt-Based D<sub>Synth</sub></td>
<td>3899</td>
<td>149</td>
<td>&#x2013;</td>
<td>4048</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>Fine-Tune based D<sub>Synth</sub></td>
<td>1403</td>
<td>&#x2013;</td>
<td>164</td>
<td>&#x2013;</td>
<td>1567</td>
</tr>
<tr>
<td>Combined Prompt-Based D<sub>Synth&#x002B;OrigTrain</sub></td>
<td>304</td>
<td>191</td>
<td>&#x2013;</td>
<td>495</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>Combined Fine-Tune based D<sub>Synth&#x002B;OrigTrain</sub></td>
<td>315</td>
<td>&#x2013;</td>
<td>182</td>
<td>&#x2013;</td>
<td>497</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>False Negatives: Some phishing emails were not detected, especially those that looked like normal internal company messages. These were often carefully written and hard to spot. The exact number of samples drawn from each test set is provided in <xref ref-type="table" rid="table-8">Table 8</xref>.</p>
<table-wrap id="table-8">
<label>Table 8</label>
<caption>
<title>False negatives&#x2014;sample distribution across test sets.</title>
</caption>
 
<table>
<colgroup>
<col align="center" width="38mm"/>
<col align="center" width="13mm"/>
<col align="center" width="25mm"/>
<col align="center" width="25mm"/>
<col align="center" width="25mm"/>
<col align="center" width="33mm"/> </colgroup>
<thead>
<tr>
<th>Training Configuration</th>
<th>Original Test Set</th>
<th>Prompt-Based Synthetic Test Set</th>
<th>Fine-Tuned Synthetic Test Set</th>
<th>Original &#x002B; Prompt Synthetic Test Set</th>
<th>Original &#x002B; Fine-Tuned Synthetic Test</th>
</tr>
</thead>
<tbody>
<tr>
<td>D<sub>OrigTrain</sub></td>
<td>246</td>
<td>317</td>
<td>240</td>
<td>563</td>
<td>486</td>
</tr>
<tr>
<td>Prompt-Based D<sub>Synth</sub></td>
<td>2506</td>
<td>99</td>
<td>&#x2013;</td>
<td>2605</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>Fine-Tune based D<sub>Synth</sub></td>
<td>3035</td>
<td>&#x2013;</td>
<td>225</td>
<td>&#x2013;</td>
<td>3260</td>
</tr>
<tr>
<td>Combined Prompt-Based D<sub>Synth&#x002B;OrigTrain</sub></td>
<td>324</td>
<td>199</td>
<td>&#x2013;</td>
<td>523</td>
<td>&#x2013;</td>
</tr>
<tr>
<td>Combined Fine-Tune based D<sub>Synth&#x002B;OrigTrain</sub></td>
<td>313</td>
<td>&#x2013;</td>
<td>281</td>
<td>&#x2013;</td>
<td>594</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The model trained on original data showed a small difference between how well it handled phishing and non-phishing emails, as presented in <xref ref-type="table" rid="table-7">Tables 7</xref> and <xref ref-type="table" rid="table-8">8</xref>. The numbers of false positives (305) and false negatives (246) are close, which indicates that the model performs similarly in both classes. The model trained on original data was slightly better at detecting phishing emails, as shown by its lower number of false negatives. The inclusion of synthetic data, particularly from the fine-tuned DeepSeek-LLM-7B-Chat, improved F1-scores, narrowing the performance gap between classes. These results demonstrate the role of synthetic data in enhancing the model&#x2019;s ability to recognize phishing attempts.</p>

<p>The inclusion of synthetic data resulted in noticeable improvements in classification accuracy and F1-score:<list list-type="bullet">
<list-item>
<p>Combined Prompt-Based Approach: The Combined Prompt-Based D<sub>Synth&#x002B;OrigTrain</sub> model improved the performance on the original test set from 0.48 (Prompt-Based <italic>D</italic><sub><italic>Synth</italic></sub> alone) to 0.95. On the original &#x002B; prompt synthetic test set, it achieved 0.93, showing significant enhancement over the individual approaches.</p></list-item>
<list-item>
<p>Combined Fine-Tune Based Approach: The Combined Fine-Tune based <italic>D</italic><sub><italic>Synth</italic></sub><italic>&#x002B;</italic><sub><italic>OrigTrain</italic></sub> model improved on the original test set from 0.64 (Fine-Tune-based <italic>D</italic><sub><italic>Synth</italic></sub> alone) to 0.95. On the original &#x002B; fine-tuned synthetic test set, it reached 0.92.</p></list-item>
<list-item>
<p>Cross-Dataset Performance: The D<sub>OrigTrain</sub> model scored 0.96 on the original test set but only 0.46 and 0.61 on the prompt-based and fine-tuned test sets, respectively. The Prompt-Based D<sub>Synth</sub> model scored 0.48 on the original test set and 0.86 on its matching test set. The Fine-Tune based D<sub>Synth</sub> model scored 0.64 on the original test set and 0.81 on its matching test set.</p></list-item>
<list-item>
<p>Best Overall Performance: The combined approach models showed F1-scores of 0.93 and 0.92 on combined test sets. The Original DOrigTrain model achieved 0.89 and 0.91 on the combined test sets. <xref ref-type="table" rid="table-6">Table 6</xref> shows that models trained on original and synthetic training data consistently outperformed single-source trained models, particularly when evaluated against diverse test sets that include both original and synthetic phishing examples. Models trained on the combined datasets showed stronger generalization capabilities: when tested on unseen synthetic data, the combined models maintained relatively high accuracy and F1-scores, compared to models trained on original data alone. This suggests that synthetic examples exposed the model to a wider variety of linguistic structures and phishing tactics.</p>
</list-item>
</list></p>
</sec>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Discussion</title>
<p>The performance improvement observed when integrating synthetic data can be attributed to several factors, directly linked to the quality of the synthetic samples generated using prompt engineering and the fine-tuning of the DeepSeek-LLM-7B-Chat model. The fine-tuned model&#x2019;s synthetic emails consistently achieved higher BERTScore values due to its training approach. Also, the fine-tuned model learned directly from real email data, allowing it to replicate authentic language patterns, maintain semantic coherence, and capture nuanced details in text. In contrast, the prompt-based approach used pre-written instructions without directly learning from data. This limited its ability to generate emails that semantically resembled real examples, leading to slightly lower BERTScore values. Fine-tuned synthetic samples demonstrated lower Self-BLEU scores, especially in non-phishing categories, because the model was trained to produce diverse, contextually appropriate emails rather than repeating patterns. Fine-tuning exposed the model to varied training examples, teaching it to create datasets with diversity. The prompt-based approach, however, generated more repetitive emails because it relied on predefined templates, making it less capable of creating diverse content. Fine-tuned emails consistently achieved lower perplexity values, reflecting better fluency and grammatical accuracy because the fine-tuned model directly learned sentence structure, phrasing, and coherent language use from real data. Conversely, the prompt-based approach used static instructions, leading to inconsistent quality. In phishing emails, where creative variations are critical, the prompt-based method struggled, producing texts with higher perplexity. The fine-tuned model&#x2019;s performance can be directly attributed to its training on real data, allowing it to generate contextually accurate and diverse content. In contrast, the prompt-based method, while faster and simpler, lacked the adaptive learning capabilities needed for high-quality email generation.</p>
<p>Moreover, the results confirm our hypothesis that generative AI can be an effective solution for dataset limitations in phishing detection. By fine-tuning the DeepSeek-LLM-7B-Chat model [<xref ref-type="bibr" rid="ref-30">30</xref>], we were able to generate realistic and structurally coherent phishing and non-phishing emails. A performance mismatch is observed when models are trained solely on synthetic data and evaluated on original emails. This behavior is expected and aligns with observations in the literature [<xref ref-type="bibr" rid="ref-51">51</xref>], where synthetic-only classifiers have been shown to significantly underperform on sensitive datasets (e.g., hate speech and toxic language datasets). These findings indicate that synthetic augmentation may be more effective for subtle or less explicitly harmful content. It is important to emphasize that this particular setting (training on synthetic data and testing on original data) is not intended to demonstrate that synthetic data can fully replace real data, but rather to examine its value as an additional training signal. When combined with the original dataset, these synthetic samples significantly enhanced the performance of the DistilBERT classifier&#x2014;especially in the F1-score for the phishing class. This finding is in line with prior research emphasizing the effectiveness of combining synthetic and real data. For instance, Kang et al. [<xref ref-type="bibr" rid="ref-52">52</xref>] showed that combining synthetic and original datasets significantly improved model performance across multiple benchmarks, especially in settings with data scarcity. Similarly, the study by Whitfield [<xref ref-type="bibr" rid="ref-53">53</xref>] highlighted that the most significant improvement was observed when synthetic data was used as augmentation rather than replacement, reinforcing our approach. When training on the combined dataset, the model maintains strong performance on real data (F1 &#x003D; 0.94) while also improving performance on synthetic data (F1 &#x003D; 0.78). This behavior is expected due to the distribution of the two datasets (original vs. synthetic). The original dataset constitutes the dominant portion of the training data, whereas synthetic emails represent a smaller portion. As a result, synthetic data primarily act as regularization samples that improve semantic coverage and robustness, rather than serving as a target domain for optimization. In our study, these results show that synthetic data enhances model robustness without degrading real-data performance. The improvement observed with the combined dataset is therefore not due to increased data size alone, but rather to increased data diversity and exposure to varied phishing styles. These findings clarify that synthetic data is most effective as an augmentation strategy rather than as a standalone training source.</p>
<p>DeepSeek-LLM-7B-Chat [<xref ref-type="bibr" rid="ref-30">30</xref>] showed strong ability in generating realistic emails. After applying LoRA fine-tuning and quantization, the model produced emails that were clear, varied, and close in style to real phishing and non-phishing emails. This was confirmed by good BERTScore, Self-BLEU, and perplexity scores. As an open source model designed for researchers, DeepSeek-LLM-7B-Chat was easier to control and customize than closed source, commercial LLMs. It provides greater flexibility during training and generation, enabling the creation of more realistic and diverse examples, including emails that incorporate tricky or subtle language.</p>
<p>To place our findings in the context of the existing literature, it is important to note that the high accuracy values reported in previous phishing detection studies are typically obtained under non-comparable experimental conditions. Many prior works rely on datasets that are limited in size or have imbalanced class distributions. Consequently, the primary motivation of this work is to address a fundamental limitation in phishing detection research: the lack of diverse and representative training datasets. In this study, we construct a more comprehensive dataset by integrating six publicly available phishing datasets with newly generated synthetic emails produced using DeepSeek-7B-Chat. This dataset better captures the diversity and evolving nature of modern phishing tactics. Accordingly, our evaluation emphasizes generalization performance rather than overfitting to a limited dataset. Our results, therefore, highlight robustness and practical relevance, rather than perfect performance on an individual dataset.</p>
<p>Our findings have direct practical value for organizations with limited phishing data; they can use generative models to augment datasets, enabling better detection performance without extensive manual data collection. Also, our approach is particularly useful in low-resource settings or for new/emerging phishing tactics that are underrepresented in existing datasets. While the proposed approach showed strong results, several limitations were noted. For example, some generated emails were too generic, potentially limiting diversity. Thus, it would be worth investigating whether using real emails as few-shot seeds, rather than strictly structured crafted examples, would improve the authenticity and diversity of the generated emails. Also, the current study focused only on English-language emails. The model did not explore advanced phishing variants, such as multi-language, visual, or spear-phishing attacks. Future research could focus on fine-tuning larger LLMs such as GPT-4, Claude, or DeepSeek-LLM-67B, and comparing their performance to DeepSeek-LLM-7B-Chat. Additionally, expanding synthetic data generation to include non-English or multimodal phishing attacks (e.g., emails with malicious attachments or images). In the context of phishing emails, it is important to combine traditional NLP metrics with more specialized measures, such as phishing realism, persuasiveness, social engineering features, or deception quality. However, for this study, this would require human evaluation and may not be easily automated. Nevertheless, this represents a promising direction for future work and is worth further investigation.</p>
</sec>
<sec id="s6">
<label>6</label>
<title>Conclusions</title>
<p>Phishing continues to be a serious cybersecurity problem, with tricks used to deceive people and steal their personal information. As attackers start using AI to write more convincing phishing emails, it is becoming harder for traditional systems to detect them. Generative AI has strong potential, not only in simulating phishing attacks but also in helping improve detection through the creation of high-quality phishing emails to train detection models. In this study, we used the Deepseek-7B-Chat model to create realistic phishing and non-phishing emails and tested two methods: prompt engineering and fine-tuning. We evaluated the generated emails using BERTScore, Self-BLEU, and perplexity. The results show that using both approaches generates more realistic and diverse emails. We tested three data set setups: one with original emails, one with only synthetic emails, and one that combined both. We used these datasets to train DistilBERT classifiers and evaluate them with different types of test data. The results show that the combined datasets achieved the strongest results, indicating that incorporating synthetic data improves the model&#x2019;s robustness and overall reliability.</p>
<p>Overall, this study shows that using generative AI models like DeepSeek for synthetic dataset generation contributes to developing more robust, adaptive, and intelligent phishing detection systems that can effectively counteract evolving phishing tactics. Additionally, generative AI can significantly strengthen cybersecurity defenses and reduce the overall success rate of phishing attacks. It can also help solve a major problem in phishing research: the lack of high-quality, diverse labeled emails. In the future, we plan to expand the generation of synthetic phishing emails to cover a broader range of scenarios, including multilingual content. We aim to continue refining prompt engineering techniques and develop more fine-tuned models capable of capturing diverse phishing styles. Additionally, we intend to evaluate the robustness of these systems through real-world attack simulations.</p>
</sec>
</body>
<back>
<ack>
<p>Not applicable.</p>
</ack>
<sec>
<title>Funding Statement</title>
<p>This work has been funded by the Onging Research Funding program (ORF-2026-857), King Saud University, Riyadh, Saudi Arabia.</p>
</sec>
<sec>
<title>Author Contributions</title>
<p>The authors confirm their contributions to this paper as follows: conceptualization: Isra Al-Turaiki, Amani Al-Ajlan and Najwa Altwaijry; methodology: Isra Al-Turaiki, Lama Almelaifi, Remas Alharbi, Shahad Al-Hussain and Fay Alfarraj; software, validation, resources, data curation, and visualization: Lama Almelaifi, Remas Alharbi, Shahad Al-Hussain and Fay Alfarraj; formal analysis: all authors; writing&#x2014;original draft preparation: Amani Al-Ajlan; writing&#x2014;review and editing: all authors; supervision: Isra Al-Turaiki and Najwa Altwaijry; project administration: Isra Al-Turaiki; funding acquisition: Najwa Altwaijry. All authors reviewed and approved the final version of the manuscript.</p>
</sec>
<sec sec-type="data-availability">
<title>Availability of Data and Materials</title>
<p>The data that support the findings of this study are openly available from Kaggle at <ext-link ext-link-type="uri" xlink:href="https://www.kaggle.com/datasets/naserabdullahalam/phishing-email-dataset">https://www.kaggle.com/datasets/naserabdullahalam/phishing-email-dataset</ext-link>, and the synthetic data at <ext-link ext-link-type="uri" xlink:href="https://github.com/israksu/PhishingDataset">https://github.com/israksu/PhishingDataset</ext-link>.</p>
</sec>
<sec>
<title>Ethics Approval</title>
<p>Not applicable.</p>
</sec>
<sec sec-type="COI-statement">
<title>Conflicts of Interest</title>
<p>The authors declare no conflicts of interest.</p>
</sec>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><collab>APWG</collab></person-group>. <article-title>Phishing activity trends reports</article-title>. <comment>APWG [cited 2025 May 17]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://apwg.org/trendsreports">https://apwg.org/trendsreports</ext-link>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="other"><collab>Cost of a data breach report 2025</collab>. <comment>IBM, 2025 [cited 2025 Dec 30]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.ibm.com/reports/data-breach">https://www.ibm.com/reports/data-breach</ext-link>.</mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Altwaijry</surname> <given-names>N</given-names></string-name>, <string-name><surname>Al-Turaiki</surname> <given-names>I</given-names></string-name>, <string-name><surname>Alotaibi</surname> <given-names>R</given-names></string-name>, <string-name><surname>Alakeel</surname> <given-names>F</given-names></string-name></person-group>. <article-title>Advancing phishing email detection: a comparative study of deep learning models</article-title>. <source>Sensors</source>. <year>2024</year>;<volume>24</volume>(<issue>7</issue>):<fpage>2077</fpage>. doi:<pub-id pub-id-type="doi">10.3390/s24072077</pub-id>; <pub-id pub-id-type="pmid">38610289</pub-id></mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Eze</surname> <given-names>CS</given-names></string-name>, <string-name><surname>Shamir</surname> <given-names>L</given-names></string-name></person-group>. <article-title>Analysis and prevention of AI-based phishing email attacks</article-title>. <source>Electronics</source>. <year>2024</year>;<volume>13</volume>(<issue>10</issue>):<fpage>1839</fpage>. doi:<pub-id pub-id-type="doi">10.3390/electronics13101839</pub-id>.</mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Brown</surname> <given-names>T</given-names></string-name>, <string-name><surname>Mann</surname> <given-names>B</given-names></string-name>, <string-name><surname>Ryder</surname> <given-names>N</given-names></string-name>, <string-name><surname>Subbiah</surname> <given-names>M</given-names></string-name>, <string-name><surname>Kaplan</surname> <given-names>JD</given-names></string-name>, <string-name><surname>Dhariwal</surname> <given-names>P</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Language models are few-shot learners</article-title>. <source>Adv Neural Inf Process Syst</source>. <year>2020</year>;<volume>33</volume>:<fpage>1877</fpage>&#x2013;<lpage>901</lpage>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Das</surname> <given-names>R</given-names></string-name></person-group>. <source>Generative AI: phishing and cybersecurity metrics</source>. <publisher-loc>Boca Raton, FL, USA</publisher-loc>: <publisher-name>CRC Press</publisher-name>; <year>2024</year>.</mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Schmitt</surname> <given-names>M</given-names></string-name>, <string-name><surname>Flechais</surname> <given-names>I</given-names></string-name></person-group>. <article-title>Digital deception: generative artificial intelligence in social engineering and phishing</article-title>. <source>Artif Intell Rev</source>. <year>2024</year>;<volume>57</volume>(<issue>12</issue>):<fpage>324</fpage>. doi:<pub-id pub-id-type="doi">10.1007/s10462-024-10973-2</pub-id>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Neha</surname> <given-names>N</given-names></string-name>, <string-name><surname>Prabhu</surname> <given-names>V</given-names></string-name></person-group>. <chapter-title>Language models in financial fraud detection: a comparative study</chapter-title>. In: <source>Artificial intelligence: theory and applications</source>. <publisher-loc>Singapore</publisher-loc>: <publisher-name>Springer Nature</publisher-name>; <year>2025</year>. p. <fpage>45</fpage>&#x2013;<lpage>60</lpage>. doi:<pub-id pub-id-type="doi">10.1007/978-981-96-1687-9_4</pub-id>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Gangavarapu</surname> <given-names>T</given-names></string-name>, <string-name><surname>Jaidhar</surname> <given-names>CD</given-names></string-name>, <string-name><surname>Chanduka</surname> <given-names>B</given-names></string-name></person-group>. <article-title>Applicability of machine learning in spam and phishing email filtering: review and approaches</article-title>. <source>Artif Intell Rev</source>. <year>2020</year>;<volume>53</volume>(<issue>7</issue>):<fpage>5019</fpage>&#x2013;<lpage>81</lpage>. doi:<pub-id pub-id-type="doi">10.1007/s10462-020-09814-9</pub-id>.</mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><collab>SpamAssassin Public Corpus</collab></person-group>. <article-title>Apache spamassassin project</article-title>. <year>2005 [cited 2025 May 17]</year>. Available from: <ext-link ext-link-type="uri" xlink:href="https://spamassassin.apache.org/old/publiccorpus/">https://spamassassin.apache.org/old/publiccorpus/</ext-link>.</mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Nazario</surname> <given-names>J</given-names></string-name></person-group>. <article-title>Nazario phishing email corpus</article-title>. <comment>[cited 2025 Dec 25]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://monkey.org/~jose/phishing/">https://monkey.org/&#x007E;jose/phishing/</ext-link>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Valecha</surname> <given-names>R</given-names></string-name>, <string-name><surname>Mandaokar</surname> <given-names>P</given-names></string-name>, <string-name><surname>Rao</surname> <given-names>HR</given-names></string-name></person-group>. <article-title>Phishing email detection using persuasion cues</article-title>. <source>IEEE Trans Dependable Secure Comput</source>. <year>2021</year>;<volume>19</volume>(<issue>2</issue>):<fpage>747</fpage>&#x2013;<lpage>56</lpage>. doi:<pub-id pub-id-type="doi">10.1109/tdsc.2021.3118931</pub-id>.</mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="other"><article-title>Phishing Scams and Spoof Emails at MillerSmiles.co.uk</article-title>. <comment>[cited 2025 May 17]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="http://www.millersmiles.co.uk/">http://www.millersmiles.co.uk/</ext-link>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Klimt</surname> <given-names>B</given-names></string-name>, <string-name><surname>Yang</surname> <given-names>Y</given-names></string-name></person-group>. <chapter-title>The enron corpus: a new dataset for email classification research</chapter-title>. In: <source>Machine learning: ECML 2004</source>. <publisher-loc>Berlin/Heidelberg, Germany</publisher-loc>: <publisher-name>Springer</publisher-name>; <year>2004</year>. p. <fpage>217</fpage>&#x2013;<lpage>26</lpage>. doi:<pub-id pub-id-type="doi">10.1007/978-3-540-30115-8_22</pub-id>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Alammar</surname> <given-names>M</given-names></string-name>, <string-name><surname>Badawi</surname> <given-names>MA</given-names></string-name></person-group>. <article-title>Phishing email detection using machine learning techniques</article-title>. <source>Int J Comput Sci Netw Secur</source>. <year>2022</year>;<volume>22</volume>(<issue>5</issue>):<fpage>277</fpage>&#x2013;<lpage>83</lpage>. doi:<pub-id pub-id-type="doi">10.5220/0008119805290534</pub-id>.</mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Tan</surname> <given-names>CL</given-names></string-name></person-group>. <article-title>Phishing dataset for machine learning: feature evaluation</article-title>. <source>Mendeley Data</source>. <year>2018</year>. doi:<pub-id pub-id-type="doi">10.17632/h3cgnj8hft.1</pub-id>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="other"><article-title>EmailHeaderAnomalyDetection</article-title>. <comment>[cited 2025 May 17]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://github.com/kregg34/EmailHeaderAnomalyDetection">https://github.com/kregg34/EmailHeaderAnomalyDetection</ext-link>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Doshi</surname> <given-names>J</given-names></string-name>, <string-name><surname>Parmar</surname> <given-names>K</given-names></string-name>, <string-name><surname>Sanghavi</surname> <given-names>R</given-names></string-name>, <string-name><surname>Shekokar</surname> <given-names>N</given-names></string-name></person-group>. <article-title>A comprehensive dual-layer architecture for phishing and spam email detection</article-title>. <source>Comput Secur</source>. <year>2023</year>;<volume>133</volume>(<issue>1</issue>):<fpage>103378</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.cose.2023.103378</pub-id>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Heiding</surname> <given-names>F</given-names></string-name>, <string-name><surname>Schneier</surname> <given-names>B</given-names></string-name>, <string-name><surname>Vishwanath</surname> <given-names>A</given-names></string-name>, <string-name><surname>Bernstein</surname> <given-names>J</given-names></string-name>, <string-name><surname>Park</surname> <given-names>PS</given-names></string-name></person-group>. <article-title>Devising and detecting phishing emails using large language models</article-title>. <source>IEEE Access</source>. <year>2024</year>;<volume>12</volume>:<fpage>42131</fpage>&#x2013;<lpage>46</lpage>. doi:<pub-id pub-id-type="doi">10.1109/access.2024.3375882</pub-id>.</mixed-citation></ref>
<ref id="ref-20"><label>[20]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Al-Subaiey</surname> <given-names>A</given-names></string-name>, <string-name><surname>Al-Thani</surname> <given-names>M</given-names></string-name>, <string-name><surname>Abdullah Alam</surname> <given-names>N</given-names></string-name>, <string-name><surname>Antora</surname> <given-names>KF</given-names></string-name>, <string-name><surname>Khandakar</surname> <given-names>A</given-names></string-name>, <string-name><surname>Uz Zaman</surname> <given-names>SA</given-names></string-name></person-group>. <article-title>Novel interpretable and robust web-based AI platform for phishing email detection</article-title>. <source>Comput Electr Eng</source>. <year>2024</year>;<volume>120</volume>(<issue>7</issue>):<fpage>109625</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.compeleceng.2024.109625</pub-id>.</mixed-citation></ref>
<ref id="ref-21"><label>[21]</label><mixed-citation publication-type="other"><article-title>Phishing email dataset</article-title>. <comment>Kaggle. [cited 2025 Nov 13]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.kaggle.com/datasets/naserabdullahalam/phishing-email-dataset">https://www.kaggle.com/datasets/naserabdullahalam/phishing-email-dataset</ext-link>.</mixed-citation></ref>
<ref id="ref-22"><label>[22]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Androutsopoulos</surname> <given-names>I</given-names></string-name>, <string-name><surname>Koutsias</surname> <given-names>J</given-names></string-name>, <string-name><surname>Chandrinos</surname> <given-names>KV</given-names></string-name>, <string-name><surname>Paliouras</surname> <given-names>G</given-names></string-name>, <string-name><surname>Spyropoulos</surname> <given-names>CD</given-names></string-name></person-group>. <article-title>An evaluation of naive bayesian anti-spam filtering</article-title>. <comment>arXiv:cs/0006013. 2000</comment>. doi:<pub-id pub-id-type="doi">10.48550/arXiv.cs/0006013</pub-id>.</mixed-citation></ref>
<ref id="ref-23"><label>[23]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><collab>CEAS</collab></person-group>. <article-title>2008 spam challenge dataset</article-title>. In: <conf-name>Proceedings of the Conference on Email and Anti-Spam (CEAS); 2008 Aug 21&#x2013;22</conf-name>; <publisher-loc>Mountain View, CA, USA</publisher-loc>.</mixed-citation></ref>
<ref id="ref-24"><label>[24]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Radev</surname> <given-names>D</given-names></string-name></person-group>. <source>CLAIR collection of fraud email (nigerian 419 scam dataset)</source>. <publisher-loc>Stroudsburg, PA, USA</publisher-loc>: <publisher-name>ACL Data and Code Repository</publisher-name>; <year>2008</year>.</mixed-citation></ref>
<ref id="ref-25"><label>[25]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Atawneh</surname> <given-names>S</given-names></string-name>, <string-name><surname>Aljehani</surname> <given-names>H</given-names></string-name></person-group>. <article-title>Phishing email detection model using deep learning</article-title>. <source>Electronics</source>. <year>2023</year>;<volume>12</volume>(<issue>20</issue>):<fpage>4261</fpage>. doi:<pub-id pub-id-type="doi">10.3390/electronics12204261</pub-id>.</mixed-citation></ref>
<ref id="ref-26"><label>[26]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Thakur</surname> <given-names>K</given-names></string-name>, <string-name><surname>Ali</surname> <given-names>ML</given-names></string-name>, <string-name><surname>Obaidat</surname> <given-names>MA</given-names></string-name>, <string-name><surname>Kamruzzaman</surname> <given-names>A</given-names></string-name></person-group>. <article-title>A systematic review on deep-learning-based phishing email detection</article-title>. <source>Electronics</source>. <year>2023</year>;<volume>12</volume>(<issue>21</issue>):<fpage>4545</fpage>. doi:<pub-id pub-id-type="doi">10.3390/electronics12214545</pub-id>.</mixed-citation></ref>
<ref id="ref-27"><label>[27]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Alhuzali</surname> <given-names>A</given-names></string-name>, <string-name><surname>Alloqmani</surname> <given-names>A</given-names></string-name>, <string-name><surname>Aljabri</surname> <given-names>M</given-names></string-name>, <string-name><surname>Alharbi</surname> <given-names>F</given-names></string-name></person-group>. <article-title>In-depth analysis of phishing email detection: evaluating the performance of machine learning and deep learning models across multiple datasets</article-title>. <source>Appl Sci</source>. <year>2025</year>;<volume>15</volume>(<issue>6</issue>):<fpage>3396</fpage>. doi:<pub-id pub-id-type="doi">10.3390/app15063396</pub-id>.</mixed-citation></ref>
<ref id="ref-28"><label>[28]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hosseinzadeh</surname> <given-names>M</given-names></string-name>, <string-name><surname>Ali</surname> <given-names>U</given-names></string-name>, <string-name><surname>Ali</surname> <given-names>S</given-names></string-name>, <string-name><surname>Abbaszadi</surname> <given-names>R</given-names></string-name>, <string-name><surname>Gharehchopogh</surname> <given-names>FS</given-names></string-name>, <string-name><surname>Khoshvaght</surname> <given-names>P</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Improving phishing email detection performance through deep learning with adaptive optimization</article-title>. <source>Sci Rep</source>. <year>2025</year>;<volume>15</volume>(<issue>1</issue>):<fpage>36724</fpage>. doi:<pub-id pub-id-type="doi">10.1038/s41598-025-20668-5</pub-id>; <pub-id pub-id-type="pmid">41120467</pub-id></mixed-citation></ref>
<ref id="ref-29"><label>[29]</label><mixed-citation publication-type="other"><article-title>Phishing emails dataset</article-title>. <comment>[cited 2025 Dec 24]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.kaggle.com/datasets/subhajournal/phishingemails">https://www.kaggle.com/datasets/subhajournal/phishingemails</ext-link>.</mixed-citation></ref>
<ref id="ref-30"><label>[30]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><collab>DeepSeek-AI</collab></person-group>. <article-title>Deepseek-llm-7b-Chat. Hugging Face</article-title>. <comment>[cited 2025 Nov 13]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://huggingface.co/deepseek-ai/deepseek-llm-7b-chat">https://huggingface.co/deepseek-ai/deepseek-llm-7b-chat</ext-link>.</mixed-citation></ref>
<ref id="ref-31"><label>[31]</label><mixed-citation publication-type="other"><article-title>Verizon data breach investigations report (DBIR). Verizon business</article-title>. <comment>[cited 2025 Dec 30]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.verizon.com/business/resources/reports/dbir/">https://www.verizon.com/business/resources/reports/dbir/</ext-link>.</mixed-citation></ref>
<ref id="ref-32"><label>[32]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Alsubaie</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Enhancing phishing awareness using scenario-based learning techniques [master&#x2019;s thesis]. Riyadh, Saudi Arabia: Saudi Digital Library</article-title>; <year>2023</year>.</mixed-citation></ref>
<ref id="ref-33"><label>[33]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Wolf</surname> <given-names>T</given-names></string-name>, <string-name><surname>Debut</surname> <given-names>L</given-names></string-name>, <string-name><surname>Sanh</surname> <given-names>V</given-names></string-name>, <string-name><surname>Chaumond</surname> <given-names>J</given-names></string-name>, <string-name><surname>Delangue</surname> <given-names>C</given-names></string-name>, <string-name><surname>Moi</surname> <given-names>A</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Transformers: state-of-the-art natural language processing</article-title>. In: <conf-name>Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations</conf-name>. <publisher-loc>Stroudsburg, PA, USA</publisher-loc>: <publisher-name>ACL</publisher-name>; <year>2020</year>. p. <fpage>38</fpage>&#x2013;<lpage>45</lpage>. doi:<pub-id pub-id-type="doi">10.18653/v1/2020.emnlp-demos.6</pub-id>.</mixed-citation></ref>
<ref id="ref-34"><label>[34]</label><mixed-citation publication-type="other"><article-title>Faker is a python package that generates fake data for you. Python</article-title>. <comment>[cited 2025 May 18]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://github.com/joke2k/faker">https://github.com/joke2k/faker</ext-link>.</mixed-citation></ref>
<ref id="ref-35"><label>[35]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Min</surname> <given-names>S</given-names></string-name>, <string-name><surname>Lyu</surname> <given-names>X</given-names></string-name>, <string-name><surname>Holtzman</surname> <given-names>A</given-names></string-name>, <string-name><surname>Artetxe</surname> <given-names>M</given-names></string-name>, <string-name><surname>Lewis</surname> <given-names>M</given-names></string-name>, <string-name><surname>Hajishirzi</surname> <given-names>H</given-names></string-name>, <etal>et al.</etal></person-group> <article-title>Rethinking the role of demonstrations: what makes in-context learning work?</article-title> <comment>arXiv:2202.12837. 2022</comment>. doi:<pub-id pub-id-type="doi">10.48550/arXiv.2202.12837</pub-id>.</mixed-citation></ref>
<ref id="ref-36"><label>[36]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Sun</surname> <given-names>H</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Mi</surname> <given-names>F</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Liu</surname> <given-names>W</given-names></string-name>, <string-name><surname>Cui</surname> <given-names>J</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>MoralDial: a framework to train and evaluate moral dialogue systems via moral discussions</article-title>. In: <conf-name>Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics; 2023 Jul 9&#x2013;14</conf-name>; <publisher-loc>Toronto, ON, Canada</publisher-loc>. p. <fpage>2213</fpage>&#x2013;<lpage>30</lpage>. doi:<pub-id pub-id-type="doi">10.18653/v1/2023.acl-long.123</pub-id>.</mixed-citation></ref>
<ref id="ref-37"><label>[37]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Li</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Song</surname> <given-names>L</given-names></string-name>, <string-name><surname>LoRAN</surname> <given-names>Hou H</given-names></string-name></person-group>. <article-title>Improved low-rank adaptation by a non-linear transformation</article-title>. In: <conf-name>Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2024; 2024 Nov 12&#x2013;16</conf-name>; <publisher-loc>Miami, FL, USA</publisher-loc>. p. <fpage>3134</fpage>&#x2013;<lpage>43</lpage>. doi:<pub-id pub-id-type="doi">10.18653/v1/2024.findings-emnlp.177</pub-id>.</mixed-citation></ref>
<ref id="ref-38"><label>[38]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><collab>Hugging face</collab></person-group>. <article-title>Fine-tune a pretrained model</article-title>. <comment>[cited 2025 May 27]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://huggingface.co/learn/llm-course/en/chapter3/3">https://huggingface.co/learn/llm-course/en/chapter3/3</ext-link>.</mixed-citation></ref>
<ref id="ref-39"><label>[39]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Zhang</surname> <given-names>T</given-names></string-name>, <string-name><surname>Kishore</surname> <given-names>V</given-names></string-name>, <string-name><surname>Wu</surname> <given-names>F</given-names></string-name>, <string-name><surname>Weinberger</surname> <given-names>KQ</given-names></string-name>, <string-name><surname>Artzi</surname> <given-names>Y</given-names></string-name></person-group>. <article-title>Bertscore: evaluating text generation with BERT</article-title>. <comment>arXiv:1904.09675. 2019</comment>. doi:<pub-id pub-id-type="doi">10.48550/arXiv.1904.09675</pub-id>.</mixed-citation></ref>
<ref id="ref-40"><label>[40]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Zhu</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Lu</surname> <given-names>S</given-names></string-name>, <string-name><surname>Zheng</surname> <given-names>L</given-names></string-name>, <string-name><surname>Guo</surname> <given-names>J</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>W</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>J</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Texygen: a benchmarking platform for text generation models</article-title>. In: <conf-name>Proceedings of the 41st International ACM SIGIR Conference on Research &#x0026; Development in Information Retrieval; 2018 Jul 8&#x2013;12</conf-name>; <publisher-loc>Ann Arbor, MI, USA</publisher-loc>. p. <fpage>1097</fpage>&#x2013;<lpage>100</lpage>. doi:<pub-id pub-id-type="doi">10.1145/3209978.3210080</pub-id>.</mixed-citation></ref>
<ref id="ref-41"><label>[41]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Papineni</surname> <given-names>K</given-names></string-name>, <string-name><surname>Roukos</surname> <given-names>S</given-names></string-name>, <string-name><surname>Ward</surname> <given-names>T</given-names></string-name>, <string-name><surname>Zhu</surname> <given-names>WJ</given-names></string-name></person-group>. <article-title>BLEU: a method for automatic evaluation of machine translation</article-title>. In: <conf-name>Proceedings of the 40th Annual Meeting on Association for Computational Linguistics; 2002 Jul 7&#x2013;12</conf-name>; <publisher-loc>Philadelphia, PA, USA</publisher-loc>. p. <fpage>311</fpage>&#x2013;<lpage>8</lpage>. doi:<pub-id pub-id-type="doi">10.3115/1073083.1073135</pub-id>.</mixed-citation></ref>
<ref id="ref-42"><label>[42]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Jelinek</surname> <given-names>F</given-names></string-name>, <string-name><surname>Mercer</surname> <given-names>RL</given-names></string-name>, <string-name><surname>Bahl</surname> <given-names>LR</given-names></string-name>, <string-name><surname>Baker</surname> <given-names>JK</given-names></string-name></person-group>. <article-title>Perplexity&#x2014;a measure of the difficulty of speech recognition tasks</article-title>. <source>J Acoust Soc Am</source>. <year>1977</year>;<volume>62</volume>(<issue>S1</issue>):<fpage>S63</fpage>. doi:<pub-id pub-id-type="doi">10.1121/1.2016299</pub-id>.</mixed-citation></ref>
<ref id="ref-43"><label>[43]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Sanh</surname> <given-names>V</given-names></string-name>, <string-name><surname>Debut</surname> <given-names>L</given-names></string-name>, <string-name><surname>Chaumond</surname> <given-names>J</given-names></string-name>, <string-name><surname>Wolf</surname> <given-names>T</given-names></string-name></person-group>. <article-title>DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter</article-title>. <comment>arXiv:1910.01108. 2019</comment>. doi:<pub-id pub-id-type="doi">10.48550/arXiv.1910.01108</pub-id>.</mixed-citation></ref>
<ref id="ref-44"><label>[44]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>AlOmar</surname> <given-names>MK</given-names></string-name>, <string-name><surname>Khaleel</surname> <given-names>F</given-names></string-name>, <string-name><surname>AlSaadi</surname> <given-names>AA</given-names></string-name>, <string-name><surname>Hameed</surname> <given-names>MM</given-names></string-name>, <string-name><surname>AlSaadi</surname> <given-names>MA</given-names></string-name>, <string-name><surname>Al-Ansari</surname> <given-names>N</given-names></string-name></person-group>. <article-title>The influence of data length on the performance of artificial intelligence models in predicting air pollution</article-title>. <source>Adv Meteor</source>. <year>2022</year>;<volume>2022</volume>(<issue>3</issue>):<fpage>5346647</fpage>. doi:<pub-id pub-id-type="doi">10.1155/2022/5346647</pub-id>.</mixed-citation></ref>
<ref id="ref-45"><label>[45]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Bukaita</surname> <given-names>W</given-names></string-name>, <string-name><surname>Garcia de Celis</surname> <given-names>G</given-names></string-name>, <string-name><surname>Gurram</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Training-testing data ratio selection for accurate time series forecasting: a COVID-19 case study</article-title>. In: <conf-name>Proceedings of the Future Technologies Conference (FTC) 2024</conf-name>. <publisher-loc>Cham, Switzerland</publisher-loc>: <publisher-name>Springer Nature</publisher-name>; <year>2024</year>. Vol. <volume>3</volume>, p. <fpage>227</fpage>&#x2013;<lpage>46</lpage>. doi:<pub-id pub-id-type="doi">10.1007/978-3-031-73125-9_14</pub-id>.</mixed-citation></ref>
<ref id="ref-46"><label>[46]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Lorenzoni</surname> <given-names>G</given-names></string-name>, <string-name><surname>Portugal</surname> <given-names>I</given-names></string-name>, <string-name><surname>Alencar</surname> <given-names>P</given-names></string-name>, <string-name><surname>Cowan</surname> <given-names>D</given-names></string-name></person-group>. <article-title>Exploring variability in fine-tuned models for text classification with DistilBERT</article-title>. <comment>arXiv:2501.00241. 2024</comment>. doi:<pub-id pub-id-type="doi">10.48550/arXiv.2501.00241</pub-id>.</mixed-citation></ref>
<ref id="ref-47"><label>[47]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Gkouti</surname> <given-names>N</given-names></string-name>, <string-name><surname>Malakasiotis</surname> <given-names>P</given-names></string-name>, <string-name><surname>Toumpis</surname> <given-names>S</given-names></string-name>, <string-name><surname>Androutsopoulos</surname> <given-names>I</given-names></string-name></person-group>. <article-title>Should I try multiple optimizers when fine-tuning pre-trained Transformers for NLP tasks? Should I tune their hyperparameters?</article-title> <comment>arXiv:2402.06948. 2024</comment>. doi:<pub-id pub-id-type="doi">10.48550/arXiv.2402.06948</pub-id>.</mixed-citation></ref>
<ref id="ref-48"><label>[48]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Kluyver</surname> <given-names>T</given-names></string-name>, <string-name><surname>Ragan-Kelley</surname> <given-names>B</given-names></string-name>, <string-name><surname>P&#x00E9;rez</surname> <given-names>F</given-names></string-name>, <string-name><surname>Granger</surname> <given-names>B</given-names></string-name>, <string-name><surname>Bussonnier</surname> <given-names>M</given-names></string-name>, <string-name><surname>Frederic</surname> <given-names>J</given-names></string-name>, <etal>et al</etal></person-group>. <chapter-title>Jupyter notebooks-a publishing format for reproducible computational workflows</chapter-title>. In: <source>Positioning and power in academic publishing: players, agents and agendas</source>. <publisher-loc>Amsterdam, The Netherlands</publisher-loc>: <publisher-name>IOS Press</publisher-name>; <year>2016</year>. p. <fpage>87</fpage>&#x2013;<lpage>90</lpage>. doi:<pub-id pub-id-type="doi">10.3233/978-1-61499-649-1-87</pub-id>.</mixed-citation></ref>
<ref id="ref-49"><label>[49]</label><mixed-citation publication-type="other"><article-title>Kaggle: machine learning and data science platform</article-title>. <comment>Kaggle. [cited 2025 Nov 13]</comment>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.kaggle.com/code">https://www.kaggle.com/code</ext-link>.</mixed-citation></ref>
<ref id="ref-50"><label>[50]</label><mixed-citation publication-type="other"><article-title>PyTorch documentation&#x2014;PyTorch 2.7 documentation</article-title>. <year>[cited 2025 Jan 1]</year>. Available from: <ext-link ext-link-type="uri" xlink:href="https://docs.pytorch.org/docs/stable/index.html">https://docs.pytorch.org/docs/stable/index.html</ext-link>.</mixed-citation></ref>
<ref id="ref-51"><label>[51]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Schmidhuber</surname> <given-names>M</given-names></string-name>, <string-name><surname>Kruschwitz</surname> <given-names>U</given-names></string-name></person-group>. <article-title>LLM-based synthetic datasets: applications and limitations in toxicity detection</article-title>. In: <conf-name>Proceedings of the Fourth Workshop on Threat, Aggression &#x0026; Cyberbullying @ LREC-COLING-2024; 2024 May 20&#x2013;25</conf-name>; <publisher-loc>Torino, Italy</publisher-loc>. p. <fpage>37</fpage>&#x2013;<lpage>51</lpage>. doi:<pub-id pub-id-type="doi">10.63317/4e9jwkpywvi7</pub-id>.</mixed-citation></ref>
<ref id="ref-52"><label>[52]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Kang</surname> <given-names>A</given-names></string-name>, <string-name><surname>Chen</surname> <given-names>JY</given-names></string-name>, <string-name><surname>Lee-Youngzie</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Fu</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Synthetic data generation with LLM for improved depression prediction</article-title>. <comment>arXiv:2411.17672. 2024</comment>. doi:<pub-id pub-id-type="doi">10.48550/arXiv.2411.17672</pub-id>.</mixed-citation></ref>
<ref id="ref-53"><label>[53]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Whitfield</surname> <given-names>D</given-names></string-name></person-group>. <article-title>Using gpt-2 to create synthetic data to improve the prediction performance of NLP machine learning classification models</article-title>. <comment>arXiv:210410658. 2021</comment>. doi:<pub-id pub-id-type="doi">10.48550/arXiv.2104.10658</pub-id>.</mixed-citation></ref>
</ref-list>
</back></article>