arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.17808cs.DCcs.PF
收藏

面向内存受限边缘TPU的多租户推理协作处理

Collaborative Processing for Multi-Tenant Inference on Memory-Constrained Edge TPUs

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Indian Institute of Science(印度科学研究所)

Nathan Ng, Walid A. Hanafy, Prashanthi Kadambi, Balachandra Sunil, Ayush Gupta, David Irwin, Yogesh Simmhan, Prashant Shenoy

AI总结:

本文提出SwapLess系统,通过分析队列模型动态调整计算分配,降低多租户环境下边缘TPU的端到端延迟,单租户任务平均延迟降低63.8%,多租户任务降低77.4%。

摘要:

物联网应用日益依赖设备端AI加速器以确保高性能,尤其是在低连接性和安全关键场景中。然而,这些加速器的有限芯片内存迫使推理运行时在主机和加速器内存之间交换模型片段,导致显著的交换开销。虽然通过将模型执行划分为CPU和加速器资源可以减少加速器内存压力和执行开销,但简单的划分可能通过将过多计算转移到CPU或未能充分减少交换而加剧端到端延迟,尤其是在多租户和动态环境中。为了解决这些问题,我们提出了SwapLess,一个适用于内存受限边缘TPU的自适应、多租户TPU-CPU协作推理系统。SwapLess利用分析队列模型,捕捉与划分相关的CPU/TPU服务时间以及不同工作负载混合和请求率下的交互和内模型交换开销。利用此模型,SwapLess持续调整划分点和CPU核心分配,以最小化端到端响应时间,具有低决策开销。在配备边缘TPU的平台上的实现表明,SwapLess在单租户任务中将平均延迟降低高达63.8%,在多租户任务中降低高达77.4%,相对于默认边缘TPU编译器。

英文摘要:

IoT applications increasingly rely on on-device AI accelerators to ensure high performance, especially in low-connectivity and safety-critical scenarios. However, the limited on-chip memory of these accelerators forces inference runtimes to swap model segments between host and accelerator memory, incurring significant swapping overheads. While collaborative processing by partitioning model execution across CPU and accelerator resources can reduce accelerator memory pressure and execution overhead, naive partitioning may worsen end-to-end latency by either shifting excessive computation to the CPU or failing to sufficiently reduce swapping, a problem that is further exacerbated in multi-tenant and dynamic environments. To address these issues, we present SwapLess, a system for adaptive, multi-tenant TPU-CPU collaborative inference on memory-constrained Edge TPUs. SwapLess utilizes an analytic queueing model that captures partition-dependent CPU/TPU service times as well as inter- and intra-model swapping overheads across different workload mixes and request rates. Using this model, SwapLess continuously adjusts both the partition point and CPU core allocation online to minimize end-to-end response time with low decision overhead. An implementation on Edge TPU-equipped platforms demonstrates that SwapLess reduces mean latency by up to 63.8% for single-tenant workloads and up to 77.4% for multi-tenant workloads relative to the default Edge TPU compiler.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑