当简单模型恰好有效时:网络流量分类是否陷入危机?
When Simple Model Just Works: Is Network Traffic Classification in Crisis?
AI总结:
本文通过12个数据集和15项任务评估简单 k-NN 流量分类基线,揭示数据冗余导致性能高估,并提出任务定义与评估改进方向。
摘要:
机器学习应用于网络流量分类(TC)已有二十多年。早期工作使用浅层模型,而2010年代后期转向复杂神经网络,并常报告接近完美的准确率。然而,最近有研究揭示,使用分组序列元数据(大小、时间和方向)的简单 k-NN 基线能够与更复杂的方法相当,甚至表现更优。本文进一步研究这一现象,在12个数据集和15项TC任务上评估该基线,并探究其表现如此出色的原因。分析表明,大多数数据集包含超过50%的冗余样本(相同的分组序列);由于常见的数据划分做法,这些样本频繁同时出现在训练集和测试集中。这种冗余会导致模型性能被高估,并在相同流具有冲突标签时降低理论最高准确率。鉴于TC的独特特征,我们进一步认为,从NLP或计算机视觉等领域改编而来的标准机器学习实践可能并不适合TC。最后,我们提出任务定义与评估的新方向,以应对这些挑战并帮助该领域重新校准。
英文摘要:
Machine learning has been applied to network traffic classification (TC) for over two decades. While early efforts used shallow models, the latter 2010s saw a shift toward complex neural networks, often reporting near-perfect accuracy. However, it was recently revealed that a simple k-NN baseline using packet sequences metadata (sizes, times, and directions) can be on par or even outperform more complex methods. In this paper, we investigate this phenomenon further and evaluate this baseline across 12 datasets and 15 TC tasks, and investigate why it performs so well. Our analysis shows that most datasets contain over 50% redundant samples (identical packet sequences), which frequently appear in both training and test sets due to common splitting practices. This redundancy can lead to overestimated model performance and reduce the theoretical maximum accuracy when identical flows have conflicting labels. Given its distinct characteristics, we further argue that standard machine learning practices adapted from domains like NLP or computer vision may be ill-suited for TC. Finally, we propose new directions for task formulation and evaluation to address these challenges and help realign the field.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。