ViTWGAN: An Improved WGAN and Vision Transformer-Based Model for Intrusion Detection

This study proposes ViTWGAN, a novel and effective intrusion detection model designed to enhance data privacy protection by detecting malicious traffic within network flows. By improving the discriminator’s loss function, our approach reduces blind spots in the discriminator by explicitly reinforcing the learning of hard negative samples, thereby mitigating the forgetting of negative samples in the generative adversarial network. A Vision Transformer is employed as the backbone architecture for both the generator and the discriminator, while the Wasserstein distance is introduced to prevent mode collapse, enabling the generator to produce diverse normal traffic and consequently improving the discriminator’s detection capability. Extensive experiments on the NSL-KDD and CIC-DDoS2019 datasets demonstrate the superior performance of the proposed model, achieving accuracy rates of 96.45% and 99.37%, respectively. These results highlight the effectiveness of ViTWGAN as a high-performance solution for general intrusion detection systems.

Authors

Institutions

Publication Details

Journal
Electronics
Published
2026-04-13
DOI
https://doi.org/10.3390/electronics15081617
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

ViTWGAN: An Improved WGAN and Vision Transformer-Based Model for Intrusion Detection

Xiaodan Liang, Menghao Fang, Cuihua Wu, Yanhui Liu et al.
Electronics
Network Security and Intrusion Detection
article

ViTWGAN: An Improved WGAN and Vision Transformer-Based Model for Intrusion Detection

Xiaodan Liang, Menghao Fang, Cuihua Wu, Yanhui Liu, Xu Lin
article en

Abstract

This study proposes ViTWGAN, a novel and effective intrusion detection model designed to enhance data privacy protection by detecting malicious traffic within network flows. By improving the discriminator’s loss function, our approach reduces blind spots in the discriminator by explicitly reinforcing the learning of hard negative samples, thereby mitigating the forgetting of negative samples in the generative adversarial network. A Vision Transformer is employed as the backbone architecture for both the generator and the discriminator, while the Wasserstein distance is introduced to prevent mode collapse, enabling the generator to produce diverse normal traffic and consequently improving the discriminator’s detection capability. Extensive experiments on the NSL-KDD and CIC-DDoS2019 datasets demonstrate the superior performance of the proposed model, achieving accuracy rates of 96.45% and 99.37%, respectively. These results highlight the effectiveness of ViTWGAN as a high-performance solution for general intrusion detection systems.

ElectronicsVol. 15(8)
Tianjin University (CN), Tiangong University (CN)
Reduced inequalities
Openalex Percentile: Top 13%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.