Saved in:
Bibliographic Details
Main Authors: Zhang, Haozhen, Xiao, Xi, Yu, Le, Li, Qing, Ling, Zhen, Zhang, Ye
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2402.07501
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917587714048000
author Zhang, Haozhen
Xiao, Xi
Yu, Le
Li, Qing
Ling, Zhen
Zhang, Ye
author_facet Zhang, Haozhen
Xiao, Xi
Yu, Le
Li, Qing
Ling, Zhen
Zhang, Ye
contents As network security receives widespread attention, encrypted traffic classification has become the current research focus. However, existing methods conduct traffic classification without sufficiently considering the common characteristics between data samples, leading to suboptimal performance. Moreover, they train the packet-level and flow-level classification tasks independently, which is redundant because the packet representations learned in the packet-level task can be exploited by the flow-level task. Therefore, in this paper, we propose an effective model named a Contrastive Learning Enhanced Temporal Fusion Encoder (CLE-TFE). In particular, we utilize supervised contrastive learning to enhance the packet-level and flow-level representations and perform graph data augmentation on the byte-level traffic graph so that the fine-grained semantic-invariant characteristics between bytes can be captured through contrastive learning. We also propose cross-level multi-task learning, which simultaneously accomplishes the packet-level and flow-level classification tasks in the same model with one training. Further experiments show that CLE-TFE achieves the best overall performance on the two tasks, while its computational overhead (i.e., floating point operations, FLOPs) is only about 1/14 of the pre-trained model (e.g., ET-BERT). We release the code at https://github.com/ViktorAxelsen/CLE-TFE
format Preprint
id arxiv_https___arxiv_org_abs_2402_07501
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle One Train for Two Tasks: An Encrypted Traffic Classification Framework Using Supervised Contrastive Learning
Zhang, Haozhen
Xiao, Xi
Yu, Le
Li, Qing
Ling, Zhen
Zhang, Ye
Machine Learning
Artificial Intelligence
As network security receives widespread attention, encrypted traffic classification has become the current research focus. However, existing methods conduct traffic classification without sufficiently considering the common characteristics between data samples, leading to suboptimal performance. Moreover, they train the packet-level and flow-level classification tasks independently, which is redundant because the packet representations learned in the packet-level task can be exploited by the flow-level task. Therefore, in this paper, we propose an effective model named a Contrastive Learning Enhanced Temporal Fusion Encoder (CLE-TFE). In particular, we utilize supervised contrastive learning to enhance the packet-level and flow-level representations and perform graph data augmentation on the byte-level traffic graph so that the fine-grained semantic-invariant characteristics between bytes can be captured through contrastive learning. We also propose cross-level multi-task learning, which simultaneously accomplishes the packet-level and flow-level classification tasks in the same model with one training. Further experiments show that CLE-TFE achieves the best overall performance on the two tasks, while its computational overhead (i.e., floating point operations, FLOPs) is only about 1/14 of the pre-trained model (e.g., ET-BERT). We release the code at https://github.com/ViktorAxelsen/CLE-TFE
title One Train for Two Tasks: An Encrypted Traffic Classification Framework Using Supervised Contrastive Learning
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2402.07501