2026-liu-understanding-self-supervised-representation
Understanding Self-Supervised Representation Learning for Encrypted Traffic
canonical link → · arxiv: 2611.07452
2026-liu-understanding-self-supervised-representation
canonical link → · arxiv: 2611.07452
findings extracted from this paper
Network 5-tuple identifiers (IP addresses, ports) dramatically inflate encrypted traffic classifier accuracy when not masked: retaining these identifiers raises ET-BERT's Macro-F1 on CSTNET from 60.04% to 85.23% and YaTC's from 74.42% to 92.92%, because many 5-tuples are application-exclusive and bypass the need to learn protocol semantics.
AlignTraffic, a cross-view contrastive self-supervised model, outperforms shallow classifiers by 5.97 to 30.70 Macro-F1 percentage points across four public encrypted-traffic classification tasks after fine-tuning, and achieves 94.54% accuracy and 51.26% Macro-F1 on an industrial dataset of 165 applications comprising ~4.2 million samples collected March 2025–March 2026, with geographic transfer to held-out regions (Beijing, Xi'an) showing 4.74 pp improvement over the industrial baseline without retraining.
Classification-relevant information in TLS traffic is concentrated in the first retained packet's visible protocol fields (TLS ServerHello and handshake metadata), not ciphertext. Shuffling only the first packet's payload reduces AlignTraffic accuracy on CSTNET from 90.35% to 61.14% — near the random-payload baseline of 60.63% — while shuffling only the subsequent four packets' payloads yields 89.04%, close to baseline.
Packet-level classification without flow context is significantly harder for self-supervised models: on CSTNET packet-level evaluation, shallow learning achieves 63.73% Macro-F1 while AlignTraffic reaches only 24.97%, because individual encrypted-payload packets carry minimal application-identifying information once the initial handshake is excluded.
Tor's nested encrypted relay encapsulation effectively defeats byte-level self-supervised classifiers: AlignTraffic achieves only 25.78% Macro-F1 on Tor-tunneled traffic (ISCX-Tor), compared to 83.92% on direct TLS traffic (ISCX-Direct), because Tor's encrypted cells conceal inner application protocol structure from an observer of the outer connection.