mlsanityData to 13 Oct 2026

FlowTransformer: A Transformer Framework for Flow-based Network Intrusion Detection Systems

arXiv 2304.14746 ↗First posted 28 Apr 2023cs.CR cs.AI cs.CLcited by 24

Not on the map. Why?

Abstract (arXiv)

This paper presents the FlowTransformer framework, a novel approach for implementing transformer-based Network Intrusion Detection Systems (NIDSs). FlowTransformer leverages the strengths of transformer models in identifying the long-term behaviour and characteristics of networks, which are often overlooked by most existing NIDSs. By capturing these complex patterns in network traffic, FlowTransformer offers a flexible and efficient tool for researchers and practitioners in the cybersecurity community who are seeking to implement NIDSs using transformer-based models. FlowTransformer allows the direct substitution of various transformer components, including the input encoding, transformer, classification head, and the evaluation of these across any flow-based network dataset. To demonstrate the effectiveness and efficiency of the FlowTransformer framework, we utilise it to provide an extensive evaluation of various common transformer architectures, such as GPT 2.0 and BERT, on three commonly used public NIDS benchmark datasets. We provide results for accuracy, model size and speed. A key finding of our evaluation is that the choice of classification head has the most significant impact on the model performance. Surprisingly, Global Average Pooling, which is commonly used in text classification, performs very poorly in the context of NIDS. In addition, we show that model size can be reduced by over 50%, and inference and training times improved, with no loss of accuracy, by making specific choices of input encoding and classification head instead of other commonly used alternatives.

Key facts. Cited by 24 papers in the map (data through 13 Oct 2026). Builds on 15 of its 45 references that are in the map. First posted on arXiv 28 Apr 2023.

Builds on

15 of 45 references.

References · 15

  1. 2017Attention Is All You Needcited by 60,106
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,093
  4. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,467
  5. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,215
  6. 2018Image Transformercited by 771
  7. 2019Graph Transformer Networkscited by 522
  8. 2020TabTransformer: Tabular Data Modeling Using Contextual Embeddingscited by 407
  9. 2021ML-Decoder: Scalable and Versatile Classification Headcited by 78
  10. 2014A survey of dimensionality reduction techniquescited by 50
  11. 2021Towards a Standard Feature Set for Network Intrusion Detection System Datasetscited by 40
  12. 2022On Generalisability of Machine Learning-based Network Intrusion Detection Systemscited by 8
3 more
  1. 2022DI-NIDS: Domain Invariant Network Intrusion Detection Systemcited by 7
  2. 2022Group Generalized Mean Pooling for Vision Transformercited by 4
  3. 2022Network Intrusion Detection System in a Light Bulbcited by 3

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2023: 1; 2024: 3; 2025: 11; 2026: 9.

24 papers.

Sort:

By area:

  1. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
  2. 2024Transformers and Large Language Models for Efficient Intrusion Detection Systems: A Comprehensive Surveycited by 21
  3. 2023Moderating New Waves of Online Hate with Chain-of-Thought Reasoning in Large Language Modelscited by 18
  4. 2024Towards Explainable Network Intrusion Detection using Large Language Modelscited by 14
  5. 2025eX-NIDS: A Framework for Explainable Network Intrusion Detection Leveraging Large Language Modelscited by 5
  6. 2025Mapping the Landscape of Generative AI in Network Monitoring and Managementcited by 4
  7. 2025Towards Practical Multi-label Causal Discovery in High-Dimensional Event Sequences via One-Shot Graph Aggregationcited by 4
  8. 2025One-Shot Multi-Label Causal Discovery in High-Dimensional Event Sequencescited by 4
  9. 2025Temporal Analysis of NetFlow Datasets for Network Intrusion Detection Systemscited by 2
  10. 2025Self-Supervised Transformer-based Contrastive Learning for Intrusion Detection Systemscited by 2
  11. 2025Interpretable Anomaly-Based DDoS Detection in AI-RAN with XAI and LLMscited by 2
  12. 2026ThreatFormer-IDS: Robust Transformer Intrusion Detection with Zero-Day Generalization and Explainable Attributioncited by 2
12 more
  1. 2025Optimized detection of cyber-attacks on IoT networks via hybrid deep learning modelscited by 1
  2. 2025Dynamic Temporal Positional Encodings for Early Intrusion Detection in IoTcited by 1
  3. 2026A-THENA: Early Intrusion Detection for IoT with Time-Aware Hybrid Encoding and Network-Specific Augmentationcited by 1
  4. 2025MAWIFlow Benchmark: Realistic Flow-Based Evaluation for Network Intrusion Detectioncited by 0
  5. 2025Hybrid Quantum-Classical Autoencoders for Unsupervised Network Intrusion Detectioncited by 0
  6. 2026Transforming Vehicle Diagnostics: A Multimodal Approach to Error Patterns Predictioncited by 0
  7. 2026Improving DNS Exfiltration Detection via Transformer Pretrainingcited by 0
  8. 2026MambaNetBurst: Direct Byte-level Network Traffic Classification without Tokenization or Pretrainingcited by 0
  9. 2026Contrastive Learning and Correlation Clustering for Sequences of Network Telescope Datacited by 0
  10. 2026GenTI: Benchmarking LLMs for Autonomous IDPS Rule Generation for Unseen Attackscited by 0
  11. 2026Generative AI and Federated Learning for Intrusion Detection Systems: A Surveycited by 0
  12. 2026Defending Retrieval-Augmented Intrusion Detection Against Knowledge Poisoning and Prompt Injectioncited by 0