[논문 리뷰] Bonseyes AI Pipeline -- bringing AI to you. End-to-end integration of data, algorithms and deployment tools
이 논문은 자료 수집, 모델 훈련, 배포 최적화, IoT 허브 연결을 통합하는 모듈형 엔드투엔드 AI 파이프라인을 제시한다. 이는 임베디드 시스템을 위한 AI 개발을 간소화한다. 도커라이즈드 API를 통해 다양한 도구를 통합하고 경량 LPDNN 추론 프레임워크를 통합함으로써, 이 파이프라인은 효율적이고 고성능으로 AI 모델을 배포할 수 있도록 한다—임베디드 플랫폼인 라즈베리 파이 3 및 4에서 다른 프레임워크보다 평균 2배 이상, 최대 5배 빠르게 작동한다.
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) IoT 허브 통합.
- 도커라이즈드 API를 사용해 도구를 봉인하고 상호 연결함으로써 재사용성과 플랫폼 독립적 배포를 가능하게 한다.
- 임베디드 추론에 최적화된 핵심 배포 엔진으로 LPDNN(Low-Power Deep Neural Network) 프레임워크를 통합한다.
- Caffe, Tensorflow, PyTorch 등의 다양한 훈련 프레임워크와의 호환성을 확보하기 위해 ONNX와 MMDNN을 활용해 프레임워크 간 모델 변환을 수행한다.
- ARM 기반 임베디드 시스템에서 추론 속도와 효율성을 극대화하기 위해 수작업으로 튜닝된 아키텍처 전용 프리미티브를 다수 통합해 LPDNN를 최적화한다.
- CPU에서 단정밀도 추론을 사용해, 여러 네트워크(MobileNet-V2, GoogLeNet, ResNet50)와 플랫폼(라즈베리 파이 3/4)에서 성능을 벤치마킹한다.
실험 결과
연구 질문
- RQ1임베디드 AI 개발에서 전문성 장벽을 줄이기 위해 자료, 알고리즘, 배포 도구의 통합을 어떻게 간소화할 수 있는가?
- RQ2모듈형 엔드투엔드 AI 파이프라인은 자원 제약이 있는 임베디드 디바이스에서 AI 모델의 성능과 이식 가능성에 얼마나 기여할 수 있는가?
- RQ3다양한 신경망 아키텍처에서 LPDNN 프레임워크는 기존의 배포 프레임워크(TF Lite, ArmCL, TensoRT 등)와 비교해 추론 속도와 안정성 측면에서 어떤가?
- RQ4TF Lite와 같은 비-native 프레임워크를 사용할 경우, 모델 형식 변환은 추론 성능에 어떤 영향을 미치는가?
- RQ5경량이고 최적화된 추론 엔진인 LPDNN을 갖춘 통합 파이프라인은 여러 임베디드 플랫폼과 AI 워크로드 전반에서 기존 솔루션을 일관되게 능가할 수 있는가?
주요 결과
- Bonseyes AI 파이프라인은 데이터, 훈련, 배포 워크플로우 간 원활한 통합을 통해 임베디드 AI 응용 프로그램의 엔드투엔드 개발을 성공적으로 가능하게 했다.
- 여러 네트워크와 플랫폼에서 LPDNN는 가장 느린 프레임워크(Caffe) 대비 중앙값 기준 2배 이상, 최대 5배 빠른 속도 향상을 달성해 뛰어난 성능과 안정성을 입증했다.
- 라즈베리 파이 4에서 LPDNN은 MobileNet-V2에 대해 105ms, GoogLeNet에 대해 216ms의 추론 시간을 기록했으며, 이는 TF Lite보다 상당히 빠르게 작동했고, 비-TF Lite 모델에서는 TF Lite가 최대 2.5배 느렸다.
- TF Lite는 Caffe나 Tensorflow에서 TF Lite로 모델를 변환할 경우 성능이著しく 떨어지는 것으로 나타나, 형식과 프레임워크 종속성이 성능에 심각한 영향을 미친다는 점을 시사한다.
- ONNX를 통한 다양한 모델 형식 지원과 다양한 아키텍처를 통해 높은 성능을 유지할 수 있는 능력 덕분에 LPDNN의 유연성과 견고함이 확인되었다.
- 파이프라인의 도커라이즈드 API는 도구의 재사용성과 확장성을 가능하게 하여, 개발자가 전체 워크플로우를 다시 설계하지 않고도 새로운 구성 요소를 통합할 수 있도록 했다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.