FlowWise

Stateful fast-slow model serving for streaming traffic intelligence

FlowWise Architecture

Overview

FlowWise is a serving system for streaming, stateful flow intelligence on commodity CPU/GPU servers. For each flow, it jointly selects how many packets to collect and which model(s) to apply, balancing latency, service rate, and accuracy. FlowWise appeared at ACM SoCC 2026; earlier versions of this work were circulated under the name ServeFlow.

The Problem

Traffic analysis in cloud and ISP networks increasingly relies on ML models, as encryption and service consolidation make rule-based classification unreliable. Serving these models differs from typical cloud inference workloads:

  • Flows arrive faster than pipelines can process: At high flow-arrival rates, new flows can arrive faster than end-to-end analysis pipelines can handle them
  • Per-flow state: Packets from the same flow arrive over time and require per-flow state, which limits naive scale-out with stateless workers
  • Large gaps between models: Across three representative tasks, inference time across candidate models differs by 1.8x-141.3x
  • Waiting dominates: Packet waiting time can exceed feature computation and inference by 6-8 orders of magnitude at the tail

What FlowWise Does

FlowWise exploits these gaps with an uncertainty-driven fast-slow cascade:

  1. Early Prediction: Issues early predictions from a model that uses only the first packet of a flow
  2. Uncertainty-Based Escalation: Escalates only uncertain flows to slower models that wait for additional packets and use richer features
  3. Queue-Centric Runtime: Maintains per-flow state, performs asynchronous feature joining by flow ID, and uses brokered, flow-ID-keyed streams to distribute work
  4. Heterogeneous Workers: Distributes the workload across CPU and GPU workers, with a variable number of instances at each stage

Key Features

  • Stateful Serving: Tracks flows across asynchronous packet arrivals rather than assuming stateless requests
  • Joint Selection: Chooses both the number of packets to wait for and the model to apply, per flow
  • Multi-Stage Cascade: Fastest and fast models operate on the first packet; the slow model operates on additional packets
  • Scale-Out: Consumers can be added at each stage to increase the service rate

Use Cases

FlowWise is evaluated on three representative traffic analysis tasks:

  • Service recognition
  • Device identification
  • Quality of Experience (QoE) inference

Results

  • 76.3% of flows served within 16 milliseconds
  • 40.5x improvement in median end-to-end serving latency
  • 48.5k+ new flows/second sustained on a single 16-core commodity CPU server, with thousands of packet-header features per flow
  • Similar accuracy to always running the slow model, while increasing service rate

Resources

Citation

@inproceedings{liu2026flowwise,
  title={FlowWise: Stateful Fast-Slow Model Serving for Streaming Traffic Intelligence},
  author={Liu, Shinan and Shaowang, Ted and Wan, Gerry and Chae, Jeewon and Marques, Jonatas and Krishnan, Sanjay and Feamster, Nick},
  booktitle={ACM Symposium on Cloud Computing (SoCC)},
  year={2026},
  doi={10.1145/3815789.3827947}
}