arXiv:2409.01089cs.LGcs.DC2024-09被引 4

CARIn让手机端多模型运行更高效,自动适应环境变化

CARIn: Constraint-Aware and Responsive Inference on Heterogeneous Devices for Single- and Multi-DNN Workloads

  • 用多目标优化+动态搜索算法,智能调度模型部署
  • 多模型运行效率最高提升10.69倍,比旧方案快4倍以上
  • 适合需要实时响应的移动端复杂应用开发

近年来深度学习应用的持续扩展推动了设备端执行的迫切需求,主要源于对实时处理、隐私保护和低延迟的追求。本文针对移动设备上深度神经网络(DNN)执行中的挑战,聚焦设备异构性、多DNN并行与运行时动态适应问题。提出CARIn框架,支持在用户定义的服务水平目标下,对单模型与多模型应用进行优化部署。通过表达性强的多目标优化框架及运行时感知排序与搜索算法(RASS)作为求解器,CARIn实现对动态环境的高效适应,缓解多模型间的资源竞争。值得注意的是,RASS预先生成配置集,可快速响应环境变化,实现低开销调整。在文本分类、场景识别和人脸分析等任务上的广泛评估表明,该框架适用于卷积神经网络与Transformer等多种架构及真实场景。相较单模型设计,目标公平性提升达1.92倍;相比最先进方案OODIn,性能最高提升10.69倍;在多模型应用中,较硬件无感知设计提升高达4.06倍。此外,框架在应对环境挑战时,有效消除了寻找最优配置的时间开销。

原文摘要 · Abstract (English)

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.

移动端推理多模型调度动态优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。