Respond to Change with Constancy: Instruction-tuning with LLM for Non-I.I.D. Network Traffic Classification
Not on the map. Why?
Abstract (arXiv)
Encrypted traffic classification is highly challenging in network security due to the need for extracting robust features from content-agnostic traffic data. Existing approaches face critical issues: (i) Distribution drift, caused by reliance on the closedworld assumption, limits adaptability to realworld, shifting patterns; (ii) Dependence on labeled data restricts applicability where such data is scarce or unavailable. Large language models (LLMs) have demonstrated remarkable potential in offering generalizable solutions across a wide range of tasks, achieving notable success in various specialized fields. However, their effectiveness in traffic analysis remains constrained by challenges in adapting to the unique requirements of the traffic domain. In this paper, we introduce a novel traffic representation model named Encrypted Traffic Out-of-Distribution Instruction Tuning with LLM (ETooL), which integrates LLMs with knowledge of traffic structures through a self-supervised instruction tuning paradigm. This framework establishes connections between textual information and traffic interactions. ETooL demonstrates more robust classification performance and superior generalization in both supervised and zero-shot traffic classification tasks. Notably, it achieves significant improvements in F1 scores: APP53 (I.I.D.) to 93.19%(6.62%) and 92.11%(4.19%), APP53 (O.O.D.) to 74.88%(18.17%) and 72.13%(15.15%), and ISCX-Botnet (O.O.D.) to 95.03%(9.16%) and 81.95%(12.08%). Additionally, we construct NETD, a traffic dataset designed to support dynamic distributional shifts, and use it to validate ETooL's effectiveness under varying distributional conditions. Furthermore, we evaluate the efficiency gains achieved through ETooL's instruction tuning approach.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 19 of its 57 references that are in the map. First posted on arXiv 27 May 2025.
Builds on
19 of 57 references.
References · 19
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2021Learning to Prompt for Vision-Language Modelscited by 2,281
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2023GraphGPT: Graph Instruction Tuning for Large Language Modelscited by 226
- 2023Large Language Models on Graphs: A Comprehensive Surveycited by 192
- 2021TransFG: A Transformer Architecture for Fine-grained Recognitioncited by 132
- 2024NetLLM: Adapting Large Language Models for Networkingcited by 78
- 2017Deep Packet: A Novel Approach For Encrypted Traffic Classification Using Deep Learningcited by 70
- 2022ET-BERT: A Contextualized Datagram Representation with Pre-training Transformers for Encrypted Traffic Classificationcited by 66
- 2023MentaLLaMA: Interpretable Mental Health Analysis on Social Media with Large Language Modelscited by 63
- 2018Deep Fingerprinting: Undermining Website Fingerprinting Defenses with Deep Learningcited by 43
7 more
- 2023ChiMed-GPT: A Chinese Medical Large Language Model with Full Training Regime and Better Alignment to Human Preferencescited by 43
- 2018Deep Learning for Encrypted Traffic Classification: An Overviewcited by 27
- 2017Automated Website Fingerprinting through Deep Learningcited by 21
- 2021Realtime Robust Malicious Traffic Detection via Frequency Domain Analysiscited by 20
- 2017Robust Smartphone App Identification Via Encrypted Network Traffic Analysiscited by 16
- 2025TrafficLLM: Enhancing Large Language Models for Network Traffic Analysis with Generic Traffic Representationcited by 15
- 2022Identifying and Characterizing Silently-Evolved Methods in the Android APIcited by 2
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2026UniAlign: A Model-Agnostic Framework for Robust Network Traffic Classification under Distribution Shiftscited by 1
- 2025Grounding Large Language Models as Generalizable Policies in Network Controlcited by 0
- 2025TAO-Net: Two-stage Adaptive OOD Classification Network for Fine-grained Encrypted Traffic Classificationcited by 0
- 2026Cognitive Fusion of ZC Sequences and Time-Frequency Images for Out-of-Distribution Detection of Drone Signalscited by 0
- 2026UniAlign: A Model-Agnostic Framework for Robust Network Traffic Classification under Distribution Shifts17 May 2026
- 2026Cognitive Fusion of ZC Sequences and Time-Frequency Images for Out-of-Distribution Detection of Drone Signals26 Jan 2026
- 2025TAO-Net: Two-stage Adaptive OOD Classification Network for Fine-grained Encrypted Traffic Classification11 Dec 2025
- 2025Grounding Large Language Models as Generalizable Policies in Network Control3 Dec 2025