Tail-Latency-Aware Execution Configuration for Edge AI under Resource Contention
Edge AI services are increasingly deployed in single-vCPU execution slots—containers and microVMs that share one virtual core with data-collection, compression, and telemetry processes. In this setting, the latency measured on an idle device says little about the latency under contention: co-located programs and request bursts produce occasional long delays that dominate the p95/p99 tail. This paper studies how the execution configuration of an inference runtime—the intra-op thread count, the concurrency cap, and the thread-wait policy—should be selected online to keep response times stable while model weights, precision, and input size remain fixed. A measurement study on ONNX Runtime with MobileNetV2 and ResNet-18 shows that no static configuration is adequate: spin-waiting reduces throughput by 1.6–3.7×, fair-share scheduling cuts the capacity of the framework default to one half or one third under co-runners, and the concurrency that restores capacity under contention inflates the quiet-state service time about fourfold. We present TASC, a tail-aware selector of execution configurations that profiles a Pareto-pruned candidate set offline, estimates the external runnable load from per-thread scheduler statistics with explicit compensation for the service’s own threads, predicts the p99 response time of every candidate from backlog, burstiness, and profiled service-time distributions, and switches under a switching-cost-aware asymmetric hysteresis. In open-loop experiments driven by production Azure arrival traces, real ImageNet payloads, and real co-located programs, TASC is the most robust of four policies across eight model–scenario combinations: its p99 latency stays within 1.15× of the per-combination best (best static configuration: 1.44×, threshold rule: 1.52×, framework default: 7.33×), it lowers the p99 latency by up to 6.4× relative to the default, and its controller consumes about 0.25% of the CPU.
Authors
- Fengyuan Zhang (ORCID: https://orcid.org/0009-0007-4649-0905)
- Jianbo Ding
Institutions
- New York University (US)
Publication Details
- Journal
- Transactions on Computer Science and Intelligent Systems Research
- Published
- 2026-11-23
- DOI
- https://doi.org/10.62051/aaecme29
- Primary Topic
- IoT and Edge/Fog Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00