Devising a method for latency tail stabilization in asynchronous machine learning inference pipelines through timeout-constrained adaptive batching
Year: 2026
Type: article
Abstract: This study investigates the execution of machine inference queries in a microservice pipeline, represented as a directed acyclic graph (DAG), under conditions of a non-stationary Poisson event flow. The impact of grouping events before the inference node on the tail delay of the pipeline has been considered. The issue arises during peak loads when the 99th percentile of the delay becomes unstable. During this period, queues grow in several nodes of the graph, which increases the response time, complicates compliance with SLA, and reduces throughput. Static grouping partially reduces the load, but its parameters are set during deployment and do not always correspond to the change in the flow. To limit the tail delay, a template with a temporal barrier node has been proposed. It accumulates events into micro-packages but limits the time they stay in the queue by an interval Δt. After the batch is completed, the BatchedInferenceNode performs one group direct pass of the model for all events. The micro package formation is completed when N_max is reached, the timer is triggered, or the watermark is shifted. For verification, a prototype with 1D-CNN inference trained on the CWRU set has been implemented on an NVIDIA RTX 4060 Ti. Experiments showed that at λ = 1200 events/s, that is, above the saturation point of the basic configuration, the p99 delay decreased from 1400 to 41 ms. At the same time, the throughput increased from 931 to 1175 events/s, which is approximately 26%. The microbenchmark showed that the direct model pass time in the batch range 1–256 almost does not change and is 0.66–0.74 ms. This makes it possible to amortize the costs of context initialization per event. The results could prove useful for real-time ML inference systems where predictability of response time is important
Institution: National University Zaporizhzhia Polytechnic
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Open Access status: gold
Estimated APC paid: $242
OpenAlex ID: W7205002865
