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

ServeFlow:一种用于网络流量分析的快-慢模型架构

FlowWise: Stateful Fast-Slow Model Serving for Streaming Traffic Intelligence

University of Chicago(芝加哥大学);Stanford University(斯坦福大学)

Shinan Liu, Ted Shaowang, Gerry Wan, Jeewon Chae, Jonatas Marques, Sanjay Krishnan, Nick Feamster

AI总结:

针对高带宽加密流量下模型推理跟不上流到达的问题,ServeFlow 利用包间等待与推理时延差异,构建快-慢模型级联架构,在保持准确率的同时将中位端到端延迟降低40.5倍。

摘要:

随着互联网趋于整合且流量日益加密,网络流量分析越来越多地使用复杂的机器学习模型。然而,在高带宽网络上,流到达的速度很容易超过模型推理速率。网络流的时间特性限制了其他高流量机器学习应用中所采用的简单横向扩展方法。因此,本文提出 ServeFlow,这是一种面向网络流量分析任务的机器学习模型服务解决方案,它会针对各个流谨慎选择要收集的数据包数量以及要应用的模型,从而在最低延迟、高服务率和高准确率之间取得平衡。我们发现,在同一任务上,不同模型的推理时间可相差 1.8 倍至 141.3 倍,而数据包间等待时间比推理时间高出多达 6 至 8 个数量级!基于这些洞察,我们为网络机器学习流水线定制了一种新颖的快-慢模型架构。仅当快速模型的推理被认为具有高不确定性时,流才会被分配给慢速模型。ServeFlow 能够在 16 毫秒内对 76.3% 的流进行推理,使端到端服务延迟的中位数加速 40.5 倍,同时提高服务率并保持相近的准确率。即使每个流具有数千个特征,它在一台 16 核 CPU 商用服务器上仍可实现每秒超过 48.5k 条新流的服务率,这与在城市级网络骨干上观察到的流速率处于同一数量级。

英文摘要:

Network traffic analysis in cloud and internet service provider (ISP) networks increasingly relies on machine learning (ML) models, as encryption and service consolidation make rule-based classification unreliable. At high flow-arrival rates, however, new flows can arrive faster than end-to-end analysis pipelines can process. Unlike typical cloud inference workloads, packets from the same flow arrive over time and require per-flow state. This streaming, stateful setting limits naive scale-out with stateless workers. This paper presents FlowWise, a serving system for streaming, stateful flow intelligence on commodity CPU/GPU servers that jointly selects (i) how many packets to collect and (ii) which model(s) to apply for each flow to balance latency, service rate, and accuracy. Across three representative tasks, inference time across candidate models differs by 1.8x-141.3x, while packet waiting time can exceed feature computation and inference by 6-8 orders of magnitude at the tail. FlowWise exploits these gaps with an uncertainty-driven fast-slow cascade: it issues early predictions from a one-packet model and escalates only uncertain flows to slower models that wait for additional packets and use richer features. A queue-centric runtime maintains per-flow state, performs asynchronous feature joining, and uses brokered, flow-ID-keyed streams to distribute workload across heterogeneous workers. FlowWise serves 76.3% of flows within 16 ms, improving median end-to-end serving latency by 40.5x while increasing service rate and maintaining similar accuracy to always running the slow model. With thousands of packet-header features per flow, our scale-up benchmark sustains over 48.5k new flows per second on a single 16-core commodity CPU server, comparable to reported flow-arrival rates in city-backbone traces. FlowWise is open sourced at https://github.com/noise-lab/FlowWise.

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

↑