JOURNAL ARTICLE

MIETT: Multi-Instance Encrypted Traffic Transformer for Encrypted Traffic Classification

Xu-Yang ChenLu HanDe‐Chuan ZhanHan-Jia Ye

Year: 2025 Journal:   Proceedings of the AAAI Conference on Artificial Intelligence Vol: 39 (15)Pages: 15922-15929   Publisher: Association for the Advancement of Artificial Intelligence

Abstract

Network traffic includes data transmitted across a network, such as web browsing and file transfers, and is organized into packets (small units of data) and flows (sequences of packets exchanged between two endpoints). Classifying encrypted traffic is essential for detecting security threats and optimizing network management. Recent advancements have highlighted the superiority of foundation models in this task, particularly for their ability to leverage large amounts of unlabeled data and demonstrate strong generalization to unseen data. However, existing methods that focus on token-level relationships fail to capture broader flow patterns, as tokens, defined as sequences of hexadecimal digits, typically carry limited semantic information in encrypted traffic. These flow patterns, which are crucial for traffic classification, arise from the interactions between packets within a flow, not just their internal structure. To address this limitation, we propose a Multi-Instance Encrypted Traffic Transformer (MIETT), which adopts a multi-instance approach where each packet is treated as a distinct instance within a larger bag representing the entire flow. This enables the model to capture both token-level and packet-level relationships more effectively through Two-Level Attention (TLA) layers, improving the model's ability to learn complex packet dynamics and flow patterns. We further enhance the model's understanding of temporal and flow-specific dynamics by introducing two novel pre-training tasks: Packet Relative Position Prediction (PRPP) and Flow Contrastive Learning (FCL). After fine-tuning, MIETT achieves state-of-the-art (SOTA) performance across five datasets, demonstrating its effectiveness in classifying encrypted traffic and understanding complex network behaviors.

Keywords:
Encryption Computer science Traffic classification Transformer Computer network Computer security Engineering Electrical engineering

Metrics

2
Cited By
6.43
FWCI (Field Weighted Citation Impact)
17
Refs
0.85
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Internet Traffic Analysis and Secure E-voting
Physical Sciences →  Computer Science →  Artificial Intelligence
Digital Media Forensic Detection
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition
Network Security and Intrusion Detection
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

JOURNAL ARTICLE

CoTNeT: Contextual transformer network for encrypted traffic classification

Hongwei HuangLu YeShaohua ZhouXingxing ZhangZe Li

Journal:   Egyptian Informatics Journal Year: 2024 Vol: 26 Pages: 100475-100475
BOOK-CHAPTER

Multi-scene Classification of Blockchain Encrypted Traffic

Yu WangChencheng WangGang XiongZhen Li

Communications in computer and information science Year: 2021 Pages: 329-337
© 2026 ScienceGate Book Chapters — All rights reserved.