[Paper Review] PRETZEL: Opening the Black Box of Machine Learning Prediction Serving Systems
Pretzel introduces a white-box machine learning prediction serving system that optimizes end-to-end and multi-pipeline execution by exposing model pipeline internals, enabling shared parameters, physical operator reuse, and intelligent scheduling. It achieves 25× lower memory footprint, 5.5× lower 99th percentile latency, and 4.7× higher throughput compared to state-of-the-art black-box systems.
Machine Learning models are often composed of pipelines of transformations. While this design allows to efficiently execute single model components at training time, prediction serving has different requirements such as low latency, high throughput and graceful performance degradation under heavy load. Current prediction serving systems consider models as black boxes, whereby prediction-time-specific optimizations are ignored in favor of ease of deployment. In this paper, we present PRETZEL, a prediction serving system introducing a novel white box architecture enabling both end-to-end and multi-model optimizations. Using production-like model pipelines, our experiments show that PRETZEL is able to introduce performance improvements over different dimensions; compared to state-of-the-art approaches PRETZEL is on average able to reduce 99th percentile latency by 5.5x while reducing memory footprint by 25x, and increasing throughput by 4.7x.
Motivation & Objective
- To address the limitations of black-box ML serving systems that ignore prediction-time optimizations for ease of deployment.
- To reduce memory footprint and latency in ML inference by enabling end-to-end and multi-pipeline optimizations.
- To improve resource utilization and throughput by sharing parameters and physical operators across similar pipelines.
- To design a scheduling system that efficiently binds inference requests to shared CPU and memory resources.
- To enable high-performance, low-latency inference for production-like ML pipelines in real-world deployment scenarios.
Proposed method
- Pretzel uses a two-phase architecture: an offline phase for statistics collection and model plan compilation, and an online phase for request execution.
- It compiles trained pipelines into white-box model plans that expose logical and physical operator structures for optimization.
- End-to-end optimizations are applied using statistics from training and principles from in-memory data systems to minimize resource usage.
- Multi-pipeline optimizations allow sharing of parameters (e.g., weights, dictionaries) and physical operators across similar pipelines.
- A novel event-based scheduler binds inference requests to shared CPU execution units, enabling concurrent execution and load-aware resource pooling.
- The system leverages database-style query optimization techniques, including logical and physical plan rewriting, to improve performance.
Experimental results
Research questions
- RQ1How can ML prediction serving systems reduce latency and memory footprint without sacrificing deployment simplicity?
- RQ2To what extent can shared parameters and physical operators across pipelines improve resource utilization in inference workloads?
- RQ3Can end-to-end and multi-pipeline optimizations outperform black-box serving systems in real-world production scenarios?
- RQ4How does a white-box architecture enable better scheduling and concurrency in ML inference compared to black-box container-based approaches?
- RQ5What performance gains are achievable through compiler-level optimizations of ML pipelines in a shared-resource environment?
Key findings
- Pretzel reduces the 99th percentile latency by 5.5× compared to state-of-the-art black-box systems like Clipper and TensorFlow Serving.
- It achieves a 25× reduction in memory footprint by sharing parameters and physical operators across similar pipelines.
- Throughput is increased by 4.7× due to efficient resource pooling and concurrent request scheduling.
- The system outperforms ML.Net and Clipper across all key metrics, demonstrating consistent gains on 500 production-like pipelines.
- The white-box architecture enables significant performance improvements by exposing pipeline internals for joint optimization.
- Co-location of models with shared components reduces tail latency and avoids memory pressure from swapping.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.