Walle:一个用于设备-云协作机器学习的端到端、通用和大规模生产系统
Walle: An End-to-End, General-Purpose, and Large-Scale Production System for Device-Cloud Collaborative Machine Learning
摘要:
为了打破主流基于云的机器学习(ML)范式的瓶颈,我们采用设备-云协作ML,并构建了第一个端到端和通用系统,称为Walle,作为基础。Walle包括一个部署平台,将ML任务及时分发到十亿级设备;一个数据管道,有效地准备任务输入;和一个计算容器,提供跨平台和高性能的执行环境,同时促进日常任务迭代。具体来说,计算容器基于移动神经网络(MNN),这是一个张量计算引擎以及数据处理和模型执行库,它们通过一个经过改进的Python线程级虚拟机(VM)公开,以支持各种ML任务和并发任务执行。MNN的核心是运算符分解和半自动搜索的新机制,大大减少了手动优化数十个硬件后端的数百个运算符的工作量,并通过计算图的运行时优化进一步快速识别最佳后端。数据管道引入了设备上的流处理框架,以使得能够在源处处理用户行为数据。部署平台采用高效的推后拉方式发布ML任务,支持多粒度部署策略。我们在实际的电子商务应用场景中评估Walle,以证明其有效性,效率和可扩展性。广泛的微基准测试也突出了MNN和Python线程级VM的卓越性能。Walle已经在阿里巴巴大规模生产使用,而MNN已经开源,在社区中产生了广泛的影响。
英文摘要:
To break the bottlenecks of mainstream cloud-based machine learning (ML) paradigm, we adopt device-cloud collaborative ML and build the first end-to-end and general-purpose system, called Walle, as the foundation. Walle consists of a deployment platform, distributing ML tasks to billion-scale devices in time; a data pipeline, efficiently preparing task input; and a compute container, providing a cross-platform and high-performance execution environment, while facilitating daily task iteration. Specifically, the compute container is based on Mobile Neural Network (MNN), a tensor compute engine along with the data processing and model execution libraries, which are exposed through a refined Python thread-level virtual machine (VM) to support diverse ML tasks and concurrent task execution. The core of MNN is the novel mechanisms of operator decomposition and semi-auto search, sharply reducing the workload in manually optimizing hundreds of operators for tens of hardware backends and further quickly identifying the best backend with runtime optimization for a computation graph. The data pipeline introduces an on-device stream processing framework to enable processing user behavior data at source. The deployment platform releases ML tasks with an efficient push-then-pull method and supports multi-granularity deployment policies. We evaluate Walle in practical e-commerce application scenarios to demonstrate its effectiveness, efficiency, and scalability. Extensive micro-benchmarks also highlight the superior performance of MNN and the Python thread-level VM. Walle has been in large-scale production use in Alibaba, while MNN has been open source with a broad impact in the community.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。