Confidence-Gated Prototype-Guided Graph Contrastive Learning for Semi-Supervised Encrypted Traffic Classification
Yixuan Xin, Zhe Wu, Qian Deng, Xiaodong Zang
Key points
From the paper's conclusion- We pretrain the encoder using self-supervised graph contrastive learning to obtain stable representations.
Abstract
Most existing encrypted traffic classification methods treat each traffic flow as an independent sample, overlooking the relationships shared by similar flows. This can amplify within-class variation and increase class overlap, especially when distinguishing characteristics are subtle and labeled data are limited. To address this problem, we propose PGCL-CG, a prototype-guided semi-supervised graph contrastive learning framework. We represent flow-level statistical features as a sparse, weighted k-nearest-neighbor graph and use GraphSAGE to aggregate information from neighboring flows and to capture their underlying structural relationships. We pretrain the encoder using self-supervised graph contrastive learning to obtain stable representations. We use a student–teacher architecture to produce more stable pseudo-labels and apply hierarchical density-based spatial clustering to filter out low-confidence assignments. We conduct extensive experiments on the two open datasets, demonstrating that PGCL-CG outperforms competitive baselines and remains robust even when only a small fraction of labels (e.g., 20% or 40%) is available. In particular, with only 5% of the training flows labeled, PGCL-CG achieves F1 scores of 0.820 and 0.771 on the ISCX-VPN and ISCX-nonVPN subsets, respectively, demonstrating its effectiveness under limited supervision.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Understanding Self-Supervised Representation Learning for Encrypted TrafficarXiv · 2026
- TP-Net: Self-Supervised Pretrained Network Traffic Representations for Few-Shot Threat Detection in IoT and Sensor Networks.Sensors (Basel, Switzerland) · 2026
- TRACE: Topological Representations for Anomaly detection through Contrastive EmbeddingsarXiv · 2026
- Open-set detection of training-time unseen attacks in encrypted traffic based on a multi-granularity pre-trained transformer and prototype contrastive learning.PloS one · 2026
- Self-supervised graph neural networks for network intrusion detection in cloud-edge collaboration environmentsJournal of Cloud Computing Advances Systems and Applications · 2026
- ST-GAT: A Leakage-Free Spatio-Temporal Graph Attention Framework for Robust Network Intrusion DetectionarXiv · 2026