# TrafficInstruct: A Multi-Task Network Traffic Dataset and Benchmark for Instruction Tuning

DevFeed: [TrafficInstruct: A Multi-Task Network Traffic Dataset and Benchmark for Instruction Tuning](<https://devfeed.tech/articles/trafficinstruct-a-multi-task-network-traffic-dataset-and-benchmark-for-instruction-tuning-114094.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.03319>)

Author: Zhengdao Li, Hui Wen, Zixuan Wan, Weifeng Zhang, Yan Wu, Benlong Wu, Nenghai Yu, Weiming Zhang, Kejiang Chen

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [network-intelligence](<https://devfeed.tech/topics/network-intelligence.md>), [threat detection](<https://devfeed.tech/topics/threat-detection.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [lora](<https://devfeed.tech/topics/lora.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>)

Tags: [advanced-persistent-threat](<https://devfeed.tech/tags/advanced-persistent-threat.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [botnet](<https://devfeed.tech/tags/botnet.md>), [classification](<https://devfeed.tech/tags/classification.md>), [concept-drift](<https://devfeed.tech/tags/concept-drift.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [dns-over-https](<https://devfeed.tech/tags/dns-over-https.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [lora](<https://devfeed.tech/tags/lora.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [malware](<https://devfeed.tech/tags/malware.md>), [network-traffic](<https://devfeed.tech/tags/network-traffic.md>), [network-traffic-analysis](<https://devfeed.tech/tags/network-traffic-analysis.md>), [raw](<https://devfeed.tech/tags/raw.md>), [structured](<https://devfeed.tech/tags/structured.md>), [supervised-fine-tuning](<https://devfeed.tech/tags/supervised-fine-tuning.md>), [tor](<https://devfeed.tech/tags/tor.md>), [vpn](<https://devfeed.tech/tags/vpn.md>), [web](<https://devfeed.tech/tags/web.md>), [website](<https://devfeed.tech/tags/website.md>)

## AI overview

TrafficInstruct provides 55,000 structured training records across ten network traffic analysis tasks, alongside raw packet captures. Traffic was collected through controlled software executions, attack experiments, and application activities; labels are backed by task-specific evidence such as process or socket attribution and activity records. The dataset is filtered and transformed into instructions, traffic observations, and structured answers. Samples are partitioned by complete collection sessions, and the benchmark specifies allowed inputs, label mappings, fixed splits, and task-wise scoring. Evaluations compare majority-class, random-forest, ET-BERT, an unadapted 27B language model, and task-specific LoRA adapters on a shared frozen base. The abstract reports that task-specific adaptation improves classification performance; it does not provide metric values here.

## Source excerpt

arXiv:2611.03319v1 Announce Type: new Abstract: Instruction tuning for multi-task network traffic analysis requires data with clearly defined sources, supervision targets, and evaluation conditions. We introduce TrafficInstruct, a newly collected dataset comprising raw packet captures and 55,000 structured supervised fine-tuning records across ten tasks: malware traffic detection, botnet detection, malicious DNS-over-HTTPS detection, Web attack detection, advanced persistent threat detection, encrypted VPN detection, Tor behavior detection, encrypted application/service classification, website fingerprinting, and application classification under concept drift. An automated workflow captures traffic from controlled software executions, attack experiments, and application activities. Labels are supported by task-specific collection evidence, including process or socket attribution, activity records, and execution outcomes. Filtering, sanitization, and task-specific transformations produce instructions, traffic observations, and structured answers. We verify sample sources and partition the dataset by complete collection sessions, keeping all samples from the same session within one partition. The benchmark defines allowed inputs, deterministic label mappings, fixed training/validation/test partitions, and task-wise scoring rules. We evaluate majority-class, random-forest, and ET-BERT baselines, an unadapted 27B language model, and independently trained task-specific LoRA adapters on a shared frozen base. Adapters are selected using validation data and evaluated on the corresponding test sets. Task-specific adaptation improves classification performance, supporting instruction tuning across diverse traffic-analysis tasks.