SuperServe: Fine-Grained Inference Serving for Unpredictable Workloads

Alind Khare, Dhruv Garg, Sukrit Kalra, Snigdha Grandhi, Ion Stoica, Alexey Tumanov

Abstract

Production machine learning workloads are characterized by extreme variability, with request spikes often exceeding averages by 50x. Traditional inference serving systems face a dilemma: maintain a single model and risk missing deadlines during bursts, or switch models and incur massive latency penalties for loading weights. SuperServe introduces a system based on weight-shared "SuperNetworks" that allows for near-instantaneous switching between thousands of model configurations. Combined with a reactive scheduling policy called SlackFit, SuperServe significantly improves accuracy and Service Level Objective (SLO) attainment for unpredictable workloads.

Introduction: The Challenge of Bursty Workloads

In production environments, ML serving must balance latency, accuracy, and resource efficiency. When traffic spikes, systems typically attempt to switch to smaller, faster models. However, the "switching penalty"—the time required to load new weights from CPU to GPU memory—is often greater than the inference time itself, sometimes exceeding the entire latency budget (SLO).

The cost of model switching and the benefits of fine-grained scheduling.

As shown in Figure 2(a), loading time can be over 2x the inference latency. This bottleneck makes reactive, fine-grained scheduling infeasible for conventional systems. SuperServe challenges this by eliminating the switching penalty, enabling the fine-grained tracking of traffic arrival rates seen in Figure 2(c).

Methods: SubNetAct and SlackFit

SuperServe's architecture rests on two pillars: a mechanism for instant model actuation and a policy for intelligent scheduling.

SubNetAct Mechanism

Instead of managing multiple independent models, SuperServe deploys a single "SuperNet"—a large model containing thousands of nested "subnets." To enable real-time transitions between these subnets without moving weights, the authors developed three novel operators:

  • LayerSelect: Dynamically skips layers to adjust model depth.
  • SubnetNorm: Decouples normalization statistics for each subnet, preserving accuracy that would otherwise be lost through weight sharing.
  • WeightSlice: Dynamically selects subsets of channels to adjust model width.
The SubNetAct mechanism featuring LayerSelect, SubnetNorm, and WeightSlice operators.

These operators allow SuperServe to "actuate" a different model configuration in less than 1ms.

SlackFit Policy

To manage these subnets, SuperServe uses SlackFit, a greedy scheduling policy. SlackFit monitors "slack"—the time remaining before the most urgent request in the queue misses its deadline. When slack is low, the system prioritizes throughput by selecting faster, lower-accuracy subnets and larger batches. When slack is high, it opportunistically switches to high-accuracy subnets to maximize quality of service.

Evaluation

The system was evaluated using SuperNets pre-trained on ImageNet and tested against both synthetic bursty traces and real-world traces from Microsoft Azure Functions (MAF), which include over 32,000 distinct function workloads.

Key Results

  • Efficiency: SuperServe requires up to 2.6x less memory than state-of-the-art baselines while offering a broader range of model options.
  • Performance: On the MAF trace, SuperServe achieved 4.67% higher accuracy for the same SLO attainment level and 2.85x higher SLO attainment for the same accuracy level compared to systems like INFaaS and Clipper+.
  • Scalability: The C++/gRPC implementation scales linearly, supporting up to 33,000 queries per second on an 8-GPU cluster.

Conclusion

SuperServe demonstrates that weight-sharing is not merely a compression technique but a vital tool for system agility. By reducing the model-switching penalty from ~100ms to <1ms, it enables a new class of reactive, fine-grained inference serving. Future work includes expanding the library of available SuperNets and applying these "instant actuation" principles to a wider variety of hardware accelerators.

Summary updated

BibTeX
@inproceedings{khare2023superserve,
  author = {Alind Khare and Dhruv Garg and Sukrit Kalra and Snigdha Grandhi and Ion Stoica and Alexey Tumanov},
  title = {{SuperServe: Fine-Grained Inference Serving for Unpredictable Workloads}},
  booktitle = {NSDI},
  year = {2023},
  doi = {10.48550/arxiv.2312.16733},
}
Figure