Shortcut in Generalization: Rethinking Evaluation Protocol for Encrypted Traffic Classification
Qiming Yu, Chungang Lin, Zhengyi Ma, Zijia Song, Yuliang Lu, Guozheng Yang, Dongzhen Qi
Abstract
Encrypted traffic classification is commonly evaluated under a range of experimental protocols, with classification performance reported as the primary measure. However, the reported performance may be influenced by shortcuts left uncontrolled in the evaluation protocol, such as shortcut features and cross-partition sharing, rather than reflect generalizable traffic patterns. And test-only feature transformations may further introduce train-test mismatch. In this paper, we study how current evaluation protocols are affected by shortcut-related factors, including field-level shortcuts, cross-partition sharing, and train-test processing. We compare feature importance, retrained feature removal, and field-only split sensitivity. We also vary Source-IP overlap and packets per flow, compare test-only IP transformations with matched train-test transformations. Experiments on three public datasets show that the performance of existing methods are affected by both cross-partition sharing and the consistency of train-test transformations. Specifically, increasing Source-IP overlap from 0% to 100% raises accuracy by about 32-33 points before identifier masking, compared with only about 8 points after masking. For two state-of-the-art pretrained models (i.e., YaTC and NetMamba), the 11-13 points loss caused by test-only IP zeroing is almost fully recovered when the same transformation is applied during both training and testing.
Create a lesson
Related papers
HiGAI-Net: Hierarchical Encrypted Traffic Classification for Generative AI Services
Shared title terminology · Madhan Raj Kanagarathinam, Jaheon Gu, Krishna M. Sivalingam et al.
When Handshakes Go Dark: An Adaptive Semantic-Sequential Fusion Framework for Encrypted Traffic Classification
Shared title terminology · Tong Guan, Yunchun Li, Minyuan Xiao et al.
Routing Around the Queue: An Evaluation of Eco-Routing Protocol on different Traffic Scenarios
Shared title terminology · Leandros Maglaras, George Boustras, Azidine Guezzaz et al.
NetCoFi: A Budget-Aware Coarse-Fine Dual-Branch Model for Encrypted Traffic Classification
Shared title terminology · Zhengyi Ma, Qiming Yu, Chungang Lin et al.
Quota-Based Traffic Classification for Bounded Jitter in Multi-CQF under Redundancy Mechanisms
Shared title terminology · Mohamed Elattar, Zhe Lou, Georg Carle
An Empirical Evaluation of a Weighted PALU Model for Internet Traffic Networks
Shared title terminology · Wood Moore, Hayden Jananthan, Jeremy Kepner