HiPlan: Tail-Latency-Aware Hybrid Embedded–Remote Placement for Conditional Inference Pipelines

Authors

  • Jin Wang University of California, Los Angeles, USA
  • Bingjie Zi Northeastern University, Boston, USA

DOI:

https://doi.org/10.62051/vz30nf34

Keywords:

Model serving, inference pipelines, tail latency, Kubernetes, operator placement, autoscaling.

Abstract

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%.

Downloads

Download data is not yet available.

References

[1] Crankshaw, D., Wang, X., Zhou, G., Franklin, M. J., Gonzalez, J. E., & Stoica, I. (2017). Clipper: A low-latency online prediction serving system. In Proceedings of the 14th USENIX Symposium on Networked Systems Design and Implementation (pp. 613–627). USENIX Association.

[2] Crankshaw, D., Sela, G.-E., Mo, X., Zumar, C., Stoica, I., Gonzalez, J., & Tumanov, A. (2020). InferLine: Latency-aware provisioning and scaling for prediction serving pipelines. In Proceedings of the 11th ACM Symposium on Cloud Computing (pp. 477–491). Association for Computing Machinery.

[3] Ding, G., Yang, S., Lin, H., Chen, Z., & Yang, J. S. (2026). LLM-driven adaptive cloud resource scheduling: Bridging reasoning intelligence with optimization guarantees. IEEE Open Journal of the Computer Society, 7, 560–573. https://doi.org/10.1109/OJCS.2026.3667549

[4] Shang, W., Teng, D., Chen, T., Zhang, F., & Ding, J. (2026). Neuro-Elastic: A unified framework for hardware-aware adaptive quantization and dynamic sparsity in real-time edge intent prediction. IEEE Access, 14, 111168–111187. https://doi.org/10.1109/ACCESS.2026.3715276

[5] Patel, P., Choukse, E., Zhang, C., Shah, A., Goiri, Í., Maleki, S., & Bianchini, R. (2024). Splitwise: Efficient generative LLM inference using phase splitting. In Proceedings of the ACM/IEEE 51st Annual International Symposium on Computer Architecture (pp. 118–132). Institute of Electrical and Electronics Engineers.

[6] Kotni, S., Nayak, A., Ganapathy, V., & Basu, A. (2021). Faastlane: Accelerating function-as-a-service workflows. In Proceedings of the USENIX Annual Technical Conference (pp. 805–820). USENIX Association.

[7] Jia, Z., & Witchel, E. (2021). Nightcore: Efficient and scalable serverless computing for latency-sensitive, interactive microservices. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (pp. 152–166). Association for Computing Machinery.

[8] Mahgoub, A., Shankar, K., Mitra, S., Klimovic, A., Chaterji, S., & Bagchi, S. (2021). SONIC: Application-aware data passing for chained serverless applications. In Proceedings of the USENIX Annual Technical Conference (pp. 285–301). USENIX Association.

[9] Shen, Z., Zhao, W., Wang, B., Wang, Z., & Shang, W. (2026). CAGR: A cross-accelerator graph optimization framework for efficient recommender system inference. IEEE Access, 14, 38544–38562. https://doi.org/10.1109/ACCESS.2026.3671798

[10] Yang, S., Ding, G., Chen, Z., & Yang, J. S. (2025). GART: Graph neural network-based adaptive and robust task scheduler for heterogeneous distributed computing. IEEE Access, 13, 200196–200216. https://doi.org/10.1109/ACCESS.2025.3633290

[11] Allen, A. O. (1990). Probability, statistics, and queueing theory with computer science applications (2nd ed.). Academic Press.

[12] Wang, Y., Zou, X., Lu, Z., Wei, K., & Rhee, M. (2026). PRESAGE: Uncertainty-aware predictive elastic scheduling for cloud analytics and GenAI inference. IEEE Access. https://doi.org/10.1109/ACCESS.2026.3734498

[13] Gujarati, A., Karimi, R., Alzayat, S., Hao, W., Kaufmann, A., Vigfusson, Y., & Mace, J. (2020). Serving DNNs like Clockwork: Performance predictability from the bottom up. In Proceedings of the 14th USENIX Symposium on Operating Systems Design and Implementation (pp. 443–462). USENIX Association.

[14] Romero, F., Li, Q., Yadwadkar, N. J., & Kozyrakis, C. (2021). INFaaS: Automated model-less inference serving. In Proceedings of the USENIX Annual Technical Conference (pp. 397–411). USENIX Association.

[15] Gunasekaran, J. R., Mishra, C. S., Thinakaran, P., Sharma, B., Kandemir, M. T., & Das, C. R. (2022). Cocktail: A multidimensional optimization for model serving in cloud. In Proceedings of the 19th USENIX Symposium on Networked Systems Design and Implementation. USENIX Association.

[16] Romero, F., Zhao, M., Yadwadkar, N. J., & Kozyrakis, C. (2021). Llama: A heterogeneous & serverless framework for auto-tuning video analytics pipelines. In Proceedings of the ACM Symposium on Cloud Computing (pp. 1–17). Association for Computing Machinery.

[17] Zhang, C., Yu, M., Wang, W., & Yan, F. (2019). MArk: Exploiting cloud services for cost-effective, SLO-aware machine learning inference serving. In Proceedings of the USENIX Annual Technical Conference (pp. 1049–1062). USENIX Association.

[18] Zhang, H., Tang, Y., Khandelwal, A., & Stoica, I. (2023). SHEPHERD: Serving DNNs in the wild. In Proceedings of the 20th USENIX Symposium on Networked Systems Design and Implementation (pp. 787–808). USENIX Association.

[19] Shillaker, S., & Pietzuch, P. (2020). Faasm: Lightweight isolation for efficient stateful serverless computing. In Proceedings of the USENIX Annual Technical Conference (pp. 419–433). USENIX Association.

[20] Shahrad, M., Fonseca, R., Goiri, Í., Chaudhry, G., Batum, P., Cooke, J., Laureano, E., Tresness, C., Russinovich, M., & Bianchini, R. (2020). Serverless in the wild: Characterizing and optimizing the serverless workload at a large cloud provider. In Proceedings of the USENIX Annual Technical Conference (pp. 205–218). USENIX Association.

[21] Teerapittayanon, S., McDanel, B., & Kung, H. T. (2016). BranchyNet: Fast inference via early exiting from deep neural networks. In Proceedings of the 23rd International Conference on Pattern Recognition (pp. 2464–2469). Institute of Electrical and Electronics Engineers.

[22] Dai, Y., Pan, R., Iyer, A., Li, K., & Netravali, R. (2024). Apparate: Rethinking early exits to tame latency-throughput tensions in ML serving. In Proceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles (pp. 607–623). Association for Computing Machinery.

[23] Yu, G.-I., Jeong, J. S., Kim, G.-W., Kim, S., & Chun, B.-G. (2022). Orca: A distributed serving system for transformer-based generative models. In Proceedings of the 16th USENIX Symposium on Operating Systems Design and Implementation (pp. 521–538). USENIX Association.

[24] Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J. E., Zhang, H., & Stoica, I. (2023). Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th ACM Symposium on Operating Systems Principles (pp. 611–626). Association for Computing Machinery.

[25] Teng, D., Rhee, M., Qin, Y., Zi, B., & Liu, W. (2026). SW-SpeedDLM: Sliding window speculative decoding for diffusion language models under long context constraints. Mathematics, 14(12), Article 2137. https://doi.org/10.3390/math14122137

[26] Dean, J., & Barroso, L. A. (2013). The tail at scale. Communications of the ACM, 56(2), 74–80. https://doi.org/10.1145/2408776.2408794

[27] Olston, C., Fiedel, N., Gorovoy, K., Harmsen, J., Lao, L., Li, F., Rajashekhar, V., Ramesh, S., & Soyke, J. (2017). TensorFlow-Serving: Flexible, high-performance ML serving. arXiv preprint arXiv:1712.06139.

[28] Whitt, W. (1993). Approximations for the GI/G/m queue. Production and Operations Management, 2(2), 114–161.

[29] Becker, B., & Kohavi, R. (1996). Adult. UCI Machine Learning Repository. https://doi.org/10.24432/C5XW20

[30] Almeida, T. A., Hidalgo, J. M. G., & Yamakami, A. (2011). Contributions to the study of SMS spam filtering: New collection and results. In Proceedings of the 11th ACM Symposium on Document Engineering (pp. 259–262). Association for Computing Machinery.

[31] Microsoft. (2023). Azure public dataset: Azure LLM inference trace 2023. https://github.com/Azure/AzurePublicDataset

[32] ONNX Runtime. (n.d.). https://onnxruntime.ai

[33] KServe. (n.d.). Highly scalable and standards-based model inference platform on Kubernetes. https://kserve.github.io

Downloads

Published

23-11-2026