HiPlan: Tail-Latency-Aware Hybrid Embedded–Remote Placement for Conditional Inference Pipelines
Production machine-learning services execute directed acyclic graphs of models rather than single models, and every stage of such a graph can be deployed in one of two ways: as an independently scaled remote model server, or embedded in the orchestrator process. We profile eight real ONNX Runtime operators spanning 0.005–58 ms of service time and 0.1–291 MB of resident footprint, and show that the choice is not global: remote invocation inflates the latency of cheap operators by 10–40× while costing under 1% for expensive ones, and the tail latency saved per megabyte of orchestrator memory varies across operators by three orders of magnitude. We formalise per-stage placement as tail-latency minimisation over a conditional DAG under a memory budget and a core budget, prove it NP-hard, and identify the structural property that makes it tractable: all stages couple only through one scalar, the in-process load imposed on the orchestrator tier. Conditioning on that scalar makes the objective separable, so each load level yields a two-constraint knapsack solved exactly by dynamic programming; a DAG-aware local search then corrects the non-critical-path branches that a separable objective over-values. HiPlan lands within 0.09% of exhaustive search on average while planning a 20-stage pipeline 66× faster, and an online controller re-plans under load shift while charging the measured model-load cost. Driven by two production Azure LLM inference traces and measured service-time distributions, HiPlan cuts end-to-end p95 latency by 32–58% against always-remote serving and keeps SLO violations at 3.0% where memory-greedy embedding reaches 55.5%.
Authors
- Bingjie Zi
- Jin Wang
Institutions
- Northeastern University (US)
- University of California, Los Angeles (US)
Publication Details
- Journal
- Transactions on Computer Science and Intelligent Systems Research
- Published
- 2026-11-23
- DOI
- https://doi.org/10.62051/vz30nf34
- Primary Topic
- Cloud Computing and Resource Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00