CARIn:面向异构设备上单DNN与多DNN工作负载的约束感知与响应式推理
CARIn: Constraint-Aware and Responsive Inference on Heterogeneous Devices for Single- and Multi-DNN Workloads
AI总结:
本文提出CARIn框架,通过多目标优化和运行时感知排序搜索算法RASS,在异构移动设备上实现单DNN与多DNN工作负载的约束感知、低开销动态自适应部署,显著提升多目标公平性和执行效率。
摘要:
近年来深度学习应用的持续扩张推动了向端侧执行的关键转变,其驱动力来自对实时处理、日益增强的隐私关切以及跨多种领域降低延迟的迫切需求。本文针对在移动设备上优化深度神经网络(DNN)执行所固有的挑战,重点关注设备异构性、多DNN执行以及动态运行时自适应。我们提出CARIn,这是一个新颖的框架,旨在用户定义的服务级别目标下实现单DNN和多DNN应用的优化部署。CARIn利用一个具有表达力的多目标优化框架以及一个运行时感知的排序与搜索算法(RASS)作为多目标优化求解器,促进了对动态条件的高效自适应,同时解决了与多DNN执行相关的资源争用问题。值得注意的是,RASS会生成一组配置,以预判后续的运行时自适应,确保在响应环境波动时进行快速、低开销的调整。跨多种任务(包括文本分类、场景识别和人脸分析)的广泛评估展示了CARIn在各种模型架构(如卷积神经网络和Transformer)以及现实用例中的通用性。我们观察到在公平处理问题目标方面有显著提升,与单模型设计相比达到1.92倍,与最先进的OODIn框架相比最高可达10.69倍。此外,在多DNN应用中,我们相比硬件无关设计实现了最高4.06倍的显著增益。最后,我们的框架在保持其性能的同时,有效消除了在响应环境挑战时识别最优设计所伴随的时间开销。
英文摘要:
The relentless expansion of deep learning applications in recent years has prompted a pivotal shift toward on-device execution, driven by the urgent need for real-time processing, heightened privacy concerns, and reduced latency across diverse domains. This article addresses the challenges inherent in optimising the execution of deep neural networks (DNNs) on mobile devices, with a focus on device heterogeneity, multi-DNN execution, and dynamic runtime adaptation. We introduce CARIn, a novel framework designed for the optimised deployment of both single- and multi-DNN applications under user-defined service-level objectives. Leveraging an expressive multi-objective optimisation framework and a runtime-aware sorting and search algorithm (RASS) as the MOO solver, CARIn facilitates efficient adaptation to dynamic conditions while addressing resource contention issues associated with multi-DNN execution. Notably, RASS generates a set of configurations, anticipating subsequent runtime adaptation, ensuring rapid, low-overhead adjustments in response to environmental fluctuations. Extensive evaluation across diverse tasks, including text classification, scene recognition, and face analysis, showcases the versatility of CARIn across various model architectures, such as Convolutional Neural Networks and Transformers, and realistic use cases. We observe a substantial enhancement in the fair treatment of the problem's objectives, reaching 1.92x when compared to single-model designs and up to 10.69x in contrast to the state-of-the-art OODIn framework. Additionally, we achieve a significant gain of up to 4.06x over hardware-unaware designs in multi-DNN applications. Finally, our framework sustains its performance while effectively eliminating the time overhead associated with identifying the optimal design in response to environmental challenges.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。