Skip to main navigation Skip to search Skip to main content

Adapting Large Language Models for Encrypted Traffic Analysis Services: An Efficient Realization With Mixture of LoRA Experts

  • Yi Liu
  • , Xiang Zheng
  • , Chengjun Cai
  • , Xingliang Yuan
  • , Cong Wang*
  • *Corresponding author for this work
  • City University of Hong Kong
  • University of Melbourne

Research output: Contribution to journalArticlepeer-review

Abstract

As encrypted traffic grows, traditional rule-based and deep learning methods struggle with engineering costs and encryption complexity. While Large Language Models (LLMs) offer promise for traffic analysis via pre-trained feature learning, they face challenges in handling diverse tasks, retaining pre-training knowledge, and adapting efficiently. To address these issues, we propose a new traffic representation learning method and a new Parameter-Efficient Fine-Tuning (PEFT) method for multi-task encrypted traffic analysis services, called TrafficLLM. TrafficLLM alleviates task heterogeneity by utilizing a universal multi-task prompt template and addresses pre-training knowledge forgetting by integrating Singular Value Decomposition based Low-Rank Adaptation (SVD-LoRA). To further reduce the cost of adapting to multiple tasks, we combine the strengths of the Mixture of Experts (MoE) for multi-task learning with SVD-LoRA for PEFT, enabling efficient multi-task traffic analysis. Additionally, we introduce task-aware gating functions to dynamically assign different weights to experts, facilitating the efficient fusion of expert knowledge. Comprehensive experiments on 7 datasets across 5 downstream tasks demonstrate that TrafficLLM delivers superior analysis performance and resource efficiency compared to state-of-the-art models, including DeepSeek, NetGPT, ET-BERT, and TFE-GNN. Detailed analysis of throughput, memory usage, and latency further highlights the practical advantages of TrafficLLM.

Original languageEnglish
Pages (from-to)906-919
Number of pages14
JournalIEEE Transactions on Services Computing
Volume19
Issue number2
DOIs
StatePublished - 1 Mar 2026

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 8 - Decent Work and Economic Growth
    SDG 8 Decent Work and Economic Growth
  2. SDG 12 - Responsible Consumption and Production
    SDG 12 Responsible Consumption and Production

Keywords

  • Encrypted traffic classification
  • LLMs
  • LoRA
  • mixture of experts

Fingerprint

Dive into the research topics of 'Adapting Large Language Models for Encrypted Traffic Analysis Services: An Efficient Realization With Mixture of LoRA Experts'. Together they form a unique fingerprint.

Cite this