ICT-META: In-Context Aware Few-Shot Learner for Encrypted Traffic Classification
Open Access
- 20 April 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Machine Learning in Communications and Networking
- Vol. 4, 733-743
Abstract
Encrypted traffic classification is a fundamental task in cybersecurity and network traffic management. With the popularity of deep learning, many studies have used it to achieve high accuracy in this field. However, these models rely on large amounts of labeled data and require retraining or fine-tuning when faced with new tasks, which is time-consuming and resource-intensive. Due to this limitation, few-shot traffic classification methods have emerged to reduce dependence on large labeled datasets by using only a few samples. However, these models often still require pre-training and fine-tuning to perform well. Meanwhile, Large Language Models (LLMs), such as ChatGPT, have attracted attention for their capacity to learn new concepts during inference without fine-tuning. Inspired by this, we propose In-Context Encrypted Traffic, a novel few-shot network traffic classification method allowing for few-shot classification without the need for fine-tuning. We use two existing encrypted traffic datasets to demonstrate the effectiveness of our method when facing new samples. We evaluate our method on a realistic 5-way few-shot classification task over encrypted traffic, and it achieves up to 5.7% higher accuracy than representative meta-learning baselines, without requiring fine-tuning.Keywords
Funding Information
- Beijing Municipal Education Commission (10051360024XN151-41)
- Natural Science Foundation of Beijing Municipality (L253018)
This publication has 34 references indexed in Scilit:
- Meta-collaborative comparison for effective cross-domain few-shot learningPattern Recognition, 2024
- CoTNeT: Contextual transformer network for encrypted traffic classificationEgyptian Informatics Journal, 2024
- Encrypted network traffic classification based on machine learningAin Shams Engineering Journal, 2023
- Few-shot encrypted traffic classification via multi-task representation enhanced meta-learningComputer Networks, 2023
- Feature mining for encrypted malicious traffic detection with deep learning and other machine learning algorithmsComputers & Security, 2023
- From traffic classes to content: A hierarchical approach for encrypted traffic classificationComputer Networks, 2022
- TSCRNN: A novel classification scheme of encrypted traffic based on flow spatiotemporal features for efficient management of IIoTComputer Networks, 2021
- A Broader Study of Cross-Domain Few-Shot Learning2020
- Deep packet: a novel approach for encrypted traffic classification using deep learningSoft Computing, 2019
- Building machines that learn and think like peopleBehavioral and Brain Sciences, 2016