← Lab /AI/ML

Task-specific adapters improve network traffic classification across ten tasks

Adapters fine-tuned on TrafficInstruct boost classification performance on diverse traffic-analysis tasks

AI/ML arXiv 2 Nov 2026 Benchmark Prototype evidence

Published as “TrafficInstruct: A Multi-Task Network Traffic Dataset and Benchmark for Instruction Tuning”

Why it matters

The benchmark enables systematic evaluation of instruction-tuned models for diverse network traffic tasks, highlighting where adaptation helps and where traditional classifiers still outperform.

Summary

Task-specific LoRA adapters improve Macro-F1 over the unadapted 27B language model on all ten traffic analysis tasks, e.g., MTD rises from 53.8% to 93.5%. The paper reports accuracy and Macro-F1 for each task using a single seed without statistical significance testing. Results show strong gains on most tasks but lower Macro-F1 than random forest on some fine-grained tasks. The dataset contains 55,000 supervised records collected in controlled lab executions, and the evaluation follows fixed session-based partitions.

What they found 2

  1. Task-specific LoRA adapters achieve higher Macro-F1 than the base model across all ten tasks

    “Task-specific LoRA achieves higher Macro-F1 than the base model across all ten tasks”

  2. Malware traffic detection (MTD) Macro-F1 improves from 53.8% to 93.5% with LoRA

    “MTD increases from 53.8% to 93.5%”

Caveats 5

  • LoRA’s Macro-F1 is 52.7% versus 59.6% for RF on MTD fine-label classification
  • RF obtains 65.7% on TBD and 65.2% on WF, compared with LoRA’s 52.8% and 53.5%
  • Our dataset is collected through controlled software executions, attack experiments, and application activities. This setting enables repeatable collection and links traffic observations to known execution conditions. However, the resulting traffic does not capture the full diversity of operational networks, where devices, software versions, user behavior, background workloads, and network conditions vary.
  • Label observability also depends on the task and the available traffic representation. Labels are derived from collection records and task-specific evidence, whereas model inputs contain selected network observations. A label supported by execution records is not necessarily identifiable from every individual Flow, Flow Window, or Trace.
  • In particular, an attack-attempt label does not imply successful exploitation, and encrypted traffic may expose behavioral patterns without revealing application content.

What’s new here 3

  • Provides a newly collected multi-task network traffic dataset with 55,000 supervised records across ten tasks.
  • Includes explicit session-based partitioning to prevent same-session leakage.
  • Evaluates instruction-tuned language models with task-specific LoRA adapters on both plaintext and encrypted traffic views.