arXiv:2503.21109cs.DCcs.AI2025-03被引 5

让手机同时跑多个神经网络,效率提升4倍

Optimizing Multi-DNN Inference on Mobile Devices through Heterogeneous Processor Co-Execution

  • 离线规划最优计算图拆分,兼顾硬件支持与调度精细度
  • 动态调整任务分配,实测多模型推理延迟降低4.04倍
  • 适合需要高效并行运行多个AI模型的移动应用开发者

深度神经网络(DNN)在各行业广泛应用,推动了对移动端支持的需求。然而,现有移动端推理框架通常每个模型仅使用单一处理器,限制了硬件利用率,导致性能和能效不佳。为提升移动端DNN可访问性,需提供自适应、资源高效的解决方案,在不牺牲功能的前提下满足日益增长的计算需求。在异构处理器上并行执行多个DNN仍具挑战:部分工作将DNN操作划分为子图以跨处理器并行执行,但此类方法常仅依据硬件兼容性生成过多子图,增加调度复杂度和内存开销。为此,我们提出一种先进的多DNN模型调度策略(ADMS),用于优化移动异构处理器上的多DNN推理。ADMS离线构建最优子图划分策略,平衡硬件操作支持与调度粒度,并采用基于处理器状态感知的算法,根据实时情况动态调整工作负载,确保高效的任务分配并最大化处理器利用率。实验表明,与基础框架相比,ADMS将多DNN推理延迟降低4.04倍。

原文摘要 · Abstract (English)

Deep Neural Networks (DNNs) are increasingly deployed across diverse industries, driving demand for mobile device support. However, existing mobile inference frameworks often rely on a single processor per model, limiting hardware utilization and causing suboptimal performance and energy efficiency. Expanding DNN accessibility on mobile platforms requires adaptive, resource-efficient solutions to meet rising computational needs without compromising functionality. Parallel inference of multiple DNNs on heterogeneous processors remains challenging. Some works partition DNN operations into subgraphs for parallel execution across processors, but these often create excessive subgraphs based only on hardware compatibility, increasing scheduling complexity and memory overhead. To address this, we propose an Advanced Multi-DNN Model Scheduling (ADMS) strategy for optimizing multi-DNN inference on mobile heterogeneous processors. ADMS constructs an optimal subgraph partitioning strategy offline, balancing hardware operation support and scheduling granularity, and uses a processor-state-aware algorithm to dynamically adjust workloads based on real-time conditions. This ensures efficient workload distribution and maximizes processor utilization. Experiments show ADMS reduces multi-DNN inference latency by 4.04 times compared to vanilla frameworks.

多模型推理异构计算移动端优化

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