arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.10382cs.DC
收藏

众人拾柴火焰高:通过多客户端协作缓存加速边缘推理

Many Hands Make Light Work: Accelerating Edge Inference via Multi-Client Collaborative Caching

Wenyi Liang, Jianchun Liu, Hongli Xu, Chunming Qiao, Liusheng Huang

AI总结:

针对边缘推理中客户端数据非独立同分布、长尾分布导致缓存命中率低、延迟高的问题,提出多客户端协作缓存框架CoCa,通过多层缓存、二维全局缓存与动态层激活,在轻微准确率损失下显著降低推理延迟。

摘要:

边缘推理是一种可在靠近数据源的客户端上实现实时数据处理与分析的技术。为确保符合服务水平目标(Service-Level Objectives,SLOs),例如30%的延迟降低目标,通常采用缓存技术来减少流数据推理任务中的冗余计算。由于任务与数据存在相关性,在客户端之间共享缓存信息可提升推理性能。然而,不同客户端间数据的非独立同分布(non-independent and identically distributed,non-IID)特性,以及部分类别样本量远多于其他类别的长尾分布,会降低缓存命中率并增加延迟。为解决上述挑战,我们提出了一种高效推理框架CoCa,该框架利用多客户端协作缓存机制加速边缘推理。在客户端侧,模型预设了多层缓存以实现快速推理;推理过程中,模型会在边缘服务器激活的缓存层上执行顺序查找。在服务器侧,CoCa采用二维全局缓存定期聚合来自各客户端的信息,以缓解非独立同分布数据带来的影响。针对客户端缓存分配问题,CoCa首先根据各类别样本的被访问频率和近期访问情况评估类别重要性,随后选取频繁出现的类别以应对长尾分布挑战,最后动态激活缓存层以平衡查找开销与准确率。大量实验表明,在VGG、ResNet和AST模型上,CoCa可将推理延迟降低23.0%至45.2%,同时仅带来轻微的准确率损失。

英文摘要:

Edge inference is a technology that enables real-time data processing and analysis on clients near the data source. To ensure compliance with the Service-Level Objectives (SLOs), such as a 30% latency reduction target, caching is usually adopted to reduce redundant computations in inference tasks on stream data. Due to task and data correlations, sharing cache information among clients can improve the inference performance. However, the non-independent and identically distributed (non-IID) nature of data across different clients and the long-tail distributions, where some classes have significantly more samples than others, will reduce cache hit ratios and increase latency. To address the aforementioned challenges, we propose an efficient inference framework, CoCa, which leverages a multi-client collaborative caching mechanism to accelerate edge inference. On the client side, the model is pre-set with multiple cache layers to achieve a quick inference. During inference, the model performs sequential lookups at cache layers activated by the edge server. On the server side, CoCa uses a two-dimensional global cache to periodically aggregate information from clients, mitigating the effects of non-IID data. For client cache allocation, CoCa first evaluates the importance of classes based on how frequently and recently their samples have been accessed. CoCa then selects frequently recurring classes to address long-tail distribution challenges. Finally, CoCa dynamically activates cache layers to balance lookup overhead and accuracy. Extensive experiments demonstrate that CoCa reduces inference latency by 23.0% to 45.2% on the VGG, ResNet and AST models with a slight loss of accuracy.

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

↑