Network Traffic Classification Using Machine Learning, Transformer, and Large Language Models

Ahmad Antari, Yazan Abo-Aisheh, Jehad Shamasneh, Huthaifa I. Ashqar
3/4/2025
cs.LGcs.CLcs.CR

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

This study uses various models to address network traffic classification, categorizing traffic into web, browsing, IPSec, backup, and email. We collected a comprehensive dataset from Arbor Edge Defender (AED) devices, comprising of 30,959 observations and 19 features. Multiple models were evaluated, including Naive Bayes, Decision Tree, Random Forest, Gradient Boosting, XGBoost, Deep Neural Networks (DNN), Transformer, and two Large Language Models (LLMs) including GPT-4o and Gemini with zero- and few-shot learning. Transformer and XGBoost showed the best performance, achieving the highest accuracy of 98.95 and 97.56%, respectively. GPT-4o and Gemini showed promising results with few-shot learning, improving accuracy significantly from initial zero-shot performance. While Gemini Few-Shot and GPT-4o Few-Shot performed well in categories like Web and Email, misclassifications occurred in more complex categories like IPSec and Backup. The study highlights the importance of model selection, fine-tuning, and the balance between training data size and model complexity for achieving reliable classification results.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{antari2025network,
  title  = {Network Traffic Classification Using Machine Learning, Transformer, and Large Language Models},
  author = {Ahmad Antari and Yazan Abo-Aisheh and Jehad Shamasneh and Huthaifa I. Ashqar},
  year   = {2025},
  eprint = {2503.02141},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.02141v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.02141.svg)](https://codeofpaper.com/paper/2503.02141)

Discussion