arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.17575cs.LGcs.AI
收藏

UniAlign:一种用于在分布偏移下鲁棒网络流量分类的模型无关框架

UniAlign: A Model-Agnostic Framework for Robust Network Traffic Classification under Distribution Shifts

Institute for Network Sciences and Cyberspace, Tsinghua University(网络科学与网络空间研究院,清华大学);Department of Computer Science and Technology, Tsinghua University(计算机科学与技术系,清华大学)

Tongze Wang, Xiaohui Xie, Wenduo Wang, Chuyi Wang, Yong Cui

AI总结:

本文提出UniAlign,一种模型无关的框架,通过领域对齐微调和稳定模型集成提升深度学习网络流量分类模型在分布偏移下的鲁棒性,实验表明其在准确率和F1分数上均优于现有基线。

摘要:

网络流量分类(NTC)模型在真实世界环境中部署时,由于网络条件的变化导致的分布偏移常常引起严重的性能下降。现有的增强鲁棒性的方法通常与特定的模型架构或数据设置耦合,无法泛化到最先进的原始字节基NTC模型,或导致显著的训练开销。在本文中,我们提出UniAlign,一种新的模型无关框架,旨在提升基于深度学习的NTC模型在分布偏移下的鲁棒性。UniAlign结合了领域对齐微调,该方法鼓励在异构网络条件下学习领域不变的流量表示,以及稳定模型集成,该方法通过在平坦损失区域内的检查点聚合来增强推理鲁棒性。该框架可以无缝集成到现有的监督NTC模型中,无需特定的特征模态或引入非常数的额外训练成本。我们在三个涵盖多样分布偏移的公开数据集上评估了UniAlign,包括加密方案、数据收集设备和攻击行为。在两个代表性的NTC模型上的实验结果表明,与标准训练相比,UniAlign将平均分类准确率提高了2.51%,平均F1分数提高了2.71%,在准确率和F1分数上均优于最强基线,同时仅需所有NTC特定基线训练时间的12.4%至53.9%。

英文摘要:

Network traffic classification (NTC) models often suffer severe performance degradation when deployed in real-world environments due to distribution shifts caused by changing network conditions. Existing robustness-enhancing approaches are commonly coupled to specific model architectures or data settings, fail to generalize to state-of-the-art raw-byte-based NTC models, or incur significant training overhead. In this paper, we propose UniAlign, a novel model-agnostic framework that improves the robustness of deep learning-based NTC models under distribution shifts. UniAlign combines \emph{domain alignment fine-tuning}, which encourages the learning of domain-invariant traffic representations across heterogeneous network conditions, with \emph{stable model ensembling}, which enhances inference robustness by aggregating checkpoints within a flat loss region. The framework can be seamlessly integrated into existing supervised NTC models without requiring specific feature modalities or introducing non-constant additional training costs. We evaluate UniAlign on three public datasets covering diverse distribution shifts, including encryption schemes, data collection devices, and attack behaviors. Experimental results on two representative NTC models demonstrate that, compared with standard training, UniAlign improves average classification accuracy by 2.51\% and average F1 score by 2.71\%, outperforming the strongest baseline by 1.45\% in accuracy and 1.69\% in F1 score, while requiring only 12.4\%--53.9\% of the training time of all NTC-specific baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑