Organizations: University of Electronic Science and Technology of China Chengdu, Sichuan, China · Renmin University of China Beijing, China · University of Hong Kong Hong Kong, China · Hong Kong Polytechnic University Hong Kong, China
Network traffic classification underpins network security and management but faces growing challenges from pervasive encryption and evolving protocols. Existing representations involve clear trade-offs: hand-crafted flow statistics are efficient but lossy, raw-bit encodings can be accurate but costly, and pre-trained embeddings support transfer but often flatten the protocol stack and entangle cross-layer signals. We observe substantial redundancy both across and within network layers, which existing paradigms do not explicitly address, wasting capacity and encouraging shortcut learning that degrades generalization. To address this, we propose PACC, a redundancy-aware cross-layer representation framework. PACC models protocol layers as multiview inputs and learns faithful, compact projections factorized into shared (cross-layer) and private (layer-specific) components. It incorporates an information-preserving sparse segment representation to reduce structural repetition and supervised intra-layer filtering to suppress task-irrelevant semantic redundancy. A behavior-guided shared/private decomposition aligns cross-layer consensus while retaining layer-specific information, supported by information-theoretic analysis. Across encrypted application classification, IoT device identification, benign/malicious traffic classification, and Tor traffic detection, PACC achieves the best overall performance. On encrypted traffic, it achieves an F1 score of 0.9685, substantially outperforming existing baselines while using approximately 15x fewer computes and less GPU memory than the latest pre-trained traffic model.
Figures & tables
Figure 1: The shared–private principle for cross-layer traffic: capturing cross-layer consensus I(Xi;Xj) and layer-specific, task-relevant evidence such as I(Xi;Y∣Xj) .
Figure 2: Layer-wise analysis on CipherSpectrum. (a) Inter-layer consensus measured by NMI(Xi;Xj) . (b) Task relevance measured by NMI(Xi;Y) , with intra-layer redundancy proxied by the compression ratio. Higher task relevance and lower compression ratio are preferred.
Figure 3: The overall framework of PACC . Compact behavioral features and lossless structural chunks are processed through task-aware semantic denoising, behavior-guided shared–private decomposition, and adaptive fusion. The right panel summarizes the optimization objectives.
Dataset
Metric
Flow Statistics
Raw Packets
Pretrained Embedding
PACC
AppScanner
FlowPrint
TFE-GNN
nPrint
YaTC
NetMamba
Task: Encrypted Application Classification
CipherSpectrum
ACC
0.5356
0.0244
0.2149
0.3037
0.6678
0.5517
0.9685
PRE
0.9278
0.0006
0.2147
0.3933
0.6642
0.5462
0.9694
REC
0.5300
0.0244
0.2149
0.3037
0.6678
0.5517
0.9685
F1
0.6737
0.0012
0.1642
0.2851
0.6633
0.5370
0.9685
Table 1: Classification Results Across Various Domain Traffic Datasets.
Method
Input / flow
Params
MACs / flow
Peak GPU
Latency / flow
Throughput
Prestage + training
YaTC
1600 px
1.866M
971.9M
158 MB
0.1482 ms
6,749/s
— +1420.8s
NetMamba
1600 px
1.867M
683.3M
456 MB
0.0481 ms
20,774/s
— +1169.5s
TFE-GNN
903 nodes / 5768 edges
44.364M
157.4M
1297 MB
6.2624 ms
160/s
1991.7s
PACC
608 elems
1.273M
47.2M
106 MB
0.0168 ms
59,660/s
134.2s+743.0s
Table 2: Efficiency comparison on CipherSpectrum. Input size is reported as model-consumed elements for PACC , pixels for packet-image baselines, and graph size for TFE-GNN. Lower is better for Params, MACs, Peak GPU, and Latency, while higher is better for Throughput. Pipeline time reports preprocessing and training; a dash denotes an unreported prestage cost rather than zero.
Figure 4: Layer-wise analysis of PACC embeddings on CipherSpectrum. (a) Shared consensus measured by NMI(Zis;Zjs) . (b) Shared-component task relevance measured by NMI(Zms;Y) , with redundancy proxied by the compression ratio. (c) Private-component shared-factor leakage measured by I(Zmp;Zg∣Zms) and residual task evidence measured by I(Zmp;Y∣Zg) .
Figure 7
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
View
Extracted statistics
Captured behavior
Length scale
Packet count, total bytes, mean/std/median/90th-percentile/max packet length, and zero-payload ratio
Traffic volume and packet-size variation.
Direction
Forward/backward packet ratios, forward/backward byte ratios, and direction-switching rate
Endpoint dominance and request-response interaction.
Temporal
Summary statistics of log-compressed inter-arrival times
Transmission pace, timing fluctuation, and delayed responses.
Run-level bursts
Number of same-direction runs, average/max run length, and average/max run bytes
Alternating exchanges and directional bursts.
Distribution
Normalized histograms of packet lengths and log-compressed inter-arrival times
Distributional shape beyond low-order moments.
Frequency
Low-frequency Fourier magnitudes of signed packet-length and timing sequences
School of Cyber Science and Engineering, Southeast University, Nanjing, China · School of Computer Science and Engineering, Southeast University, Nanjing, China