Take Package as Language: Anomaly Detection Using Transformer
Not on the map. Why?
Abstract (arXiv)
Network data packet anomaly detection faces numerous challenges, including exploring new anomaly supervision signals, researching weakly supervised anomaly detection, and improving model interpretability. This paper proposes NIDS-GPT, a GPT-based causal language model for network intrusion detection. Unlike previous work, NIDS-GPT innovatively treats each number in the packet as an independent "word" rather than packet fields, enabling a more fine-grained data representation. We adopt an improved GPT-2 model and design special tokenizers and embedding layers to better capture the structure and semantics of network data. NIDS-GPT has good scalability, supports unsupervised pre-training, and enhances model interpretability through attention weight visualization. Experiments on the CICIDS2017 and car-hacking datasets show that NIDS-GPT achieves 100% accuracy under extreme imbalance conditions, far surpassing traditional methods; it also achieves over 90% accuracy in one-shot learning. These results demonstrate NIDS-GPT's excellent performance and potential in handling complex network anomaly detection tasks, especially in data-imbalanced and resource-constrained scenarios. The code is available at urlhttps://github.com/woshixiaobai2019/nids-gpt.gi
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 5 of its 30 references that are in the map. First posted on arXiv 15 Nov 2024.
Builds on
5 of 30 references.
References · 5
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2020GLU Variants Improve Transformercited by 1,804
- 2023Time-LLM: Time Series Forecasting by Reprogramming Large Language Modelscited by 700
Built on by
Not cited yet.