Skip to main content
QUICK REVIEW

[论文解读] Bonseyes AI Pipeline -- bringing AI to you. End-to-end integration of data, algorithms and deployment tools

Miguel de Prado, Jing Su|arXiv (Cornell University)|Jan 15, 2019
Anomaly Detection Techniques and ApplicationsComputer Science参考文献 23被引用 13
一句话总结

本文提出了一种模块化、端到端的AI流水线,整合了数据摄入、模型训练、部署优化和物联网网关连接,以简化嵌入式系统中的AI开发。通过使用容器化API统一各类工具,并集成轻量级LPDNN推理框架,该流水线实现了高效、高性能的AI模型部署——在Raspberry Pi 3和4等嵌入式平台上的表现持续优于其他框架2倍以上,最高达5倍。

ABSTRACT

Next generation of embedded Information and Communication Technology (ICT) systems are collaborative systems able to perform autonomous tasks. The remarkable expansion of the embedded ICT market, together with the rise and breakthroughs of Artificial Intelligence (AI), have put the focus on the Edge as it stands as one of the keys for the next technological revolution: the seamless integration of AI in our daily life. However, training and deployment of custom AI solutions on embedded devices require a fine-grained integration of data, algorithms, and tools to achieve high accuracy. Such integration requires a high level of expertise that becomes a real bottleneck for small and medium enterprises wanting to deploy AI solutions on the Edge which, ultimately, slows down the adoption of AI on daily-life applications. In this work, we present a modular AI pipeline as an integrating framework to bring data, algorithms, and deployment tools together. By removing the integration barriers and lowering the required expertise, we can interconnect the different stages of tools and provide a modular end-to-end development of AI products for embedded devices. Our AI pipeline consists of four modular main steps: i) data ingestion, ii) model training, iii) deployment optimization and, iv) the IoT hub integration. To show the effectiveness of our pipeline, we provide examples of different AI applications during each of the steps. Besides, we integrate our deployment framework, LPDNN, into the AI pipeline and present its lightweight architecture and deployment capabilities for embedded devices. Finally, we demonstrate the results of the AI pipeline by showing the deployment of several AI applications such as keyword spotting, image classification and object detection on a set of well-known embedded platforms, where LPDNN consistently outperforms all other popular deployment frameworks.

研究动机与目标

  • 解决在资源受限的嵌入式设备上部署自定义AI解决方案时面临的碎片化与集成挑战。
  • 降低阻碍中小企业(SMEs)在边缘应用中采用AI的高技能门槛。
  • 实现在AI开发全生命周期中,数据、算法与部署工具的无缝、模块化集成。
  • 通过关键词检测、图像分类和目标检测等真实应用场景,展示端到端的AI开发。
  • 建立一个强大、可移植且高效的部署框架(LPDNN),使其在嵌入式平台上优于现有解决方案。

提出的方法

  • 设计一个四阶段模块化AI流水线:(i) 数据摄入,(ii) 模型训练,(iii) 部署优化,(iv) 物联网网关集成。
  • 使用容器化API封装并连接各类工具,实现可重用性与平台无关的部署。
  • 将LPDNN(低功耗深度神经网络)框架作为核心部署引擎,专为嵌入式推理优化。
  • 利用ONNX和MMDNN实现跨框架模型转换,确保与Caffe、TensorFlow和PyTorch等多样化训练框架的兼容性。
  • 通过一系列手工调优、架构特定的原语对LPDNN进行优化,以在基于ARM的嵌入式系统上最大化推理速度与效率。
  • 使用CPU上的浮点推理,在多个网络(如MobileNet-V2、GoogLeNet、ResNet50)和平台(Raspberry Pi 3/4)上进行性能基准测试。

实验结果

研究问题

  • RQ1如何整合数据、算法与部署工具,以减少在嵌入式AI开发中的技能门槛?
  • RQ2模块化、端到端的AI流水线在资源受限的嵌入式设备上,能在多大程度上提升AI模型的性能与可移植性?
  • RQ3LPDNN框架与现有部署框架(如TF Lite、ArmCL、TensoRT)相比,在多种神经网络架构上的推理速度与稳定性如何?
  • RQ4模型格式转换对推理性能有何影响,特别是在使用非原生框架(如TF Lite)处理非TF Lite模型时?
  • RQ5一个集成轻量级、优化推理引擎(如LPDNN)的统一流水线,能否在多个嵌入式平台和AI工作负载上持续优于现有解决方案?

主要发现

  • Bonseyes AI流水线成功实现了嵌入式AI应用的端到端开发,实现了数据、训练与部署工作流的无缝集成。
  • LPDNN在多个网络与平台上的中位速度提升超过2倍,最高达5倍,优于最慢的框架(Caffe),展现出卓越的性能与稳定性。
  • 在Raspberry Pi 4上,LPDNN对MobileNet-V2的推理时间为105ms,对GoogLeNet为216ms,显著优于TF Lite,后者在非TF Lite模型上最慢达2.5倍。
  • 当将Caffe或TensorFlow模型转换为TF Lite格式时,TF Lite的性能显著下降,表明格式与框架依赖性对性能有严重影响。
  • LPDNN通过ONNX支持多种模型格式,并在多种架构上保持高性能,证实了其灵活性与鲁棒性。
  • 流水线的容器化API实现了工具的可重用性与可扩展性,使开发人员能够无缝插入新组件,而无需重构整个工作流。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。