Skip to main content
QUICK REVIEW

[논문 리뷰] The implementation of a Deep Recurrent Neural Network Language Model on a Xilinx FPGA

Yufeng Hao, Steven F. Quigley|arXiv (Cornell University)|2017. 10. 26.
Neural Networks and ApplicationsComputer Science참고 문헌 12인용 수 18
한 줄 요약

이 논문은 PYNQ 플랫폼을 사용하여 단일 Xilinx ZYNQ SoC FPGA에 하드웨어 가속 기반 딥 순환 신경망(DRNN) 언어 모델을 구현한다. AXI 스트림 기반 오버레이 가속기 구현으로 20 GOPS의 처리량을 달성하여 CPU 기준 대비 70.5배의 성능 향상을 이룩했으며, 이는 이전 작업 대비 2.75배 빠른 성능 향상이다. 이는 임베디드 NLP 응용 프로그램에 대한 효율적인 FPGA 구현을 입증한다.

ABSTRACT

Recently, FPGA has been increasingly applied to problems such as speech recognition, machine learning, and cloud computation such as the Bing search engine used by Microsoft. This is due to FPGAs great parallel computation capacity as well as low power consumption compared to general purpose processors. However, these applications mainly focus on large scale FPGA clusters which have an extreme processing power for executing massive matrix or convolution operations but are unsuitable for portable or mobile applications. This paper describes research on single-FPGA platform to explore the applications of FPGAs in these fields. In this project, we design a Deep Recurrent Neural Network (DRNN) Language Model (LM) and implement a hardware accelerator with AXI Stream interface on a PYNQ board which is equipped with a XILINX ZYNQ SOC XC7Z020 1CLG400C. The PYNQ has not only abundant programmable logic resources but also a flexible embedded operation system, which makes it suitable to be applied in the natural language processing field. We design the DRNN language model with Python and Theano, train the model on a CPU platform, and deploy the model on a PYNQ board to validate the model with Jupyter notebook. Meanwhile, we design the hardware accelerator with Overlay, which is a kind of hardware library on PYNQ, and verify the acceleration effect on the PYNQ board. Finally, we have found that the DRNN language model can be deployed on the embedded system smoothly and the Overlay accelerator with AXI Stream interface performs at 20 GOPS processing throughput, which constitutes a 70.5X and 2.75X speed up compared to the work in Ref.30 and Ref.31 respectively.

연구 동기 및 목표

  • 딥 순환 신경망(DRNN) 언어 모델을 임베디드 및 모바일 NLP 응용 프로그램을 위한 단일 저전력 FPGA에 구현할 수 있는지 탐색한다.
  • PYNQ 보드에 AXI 스트림 인터페이스를 갖춘 하드웨어 가속기를 설계하고 통합하여 DRNN 추론을 가속화한다.
  • CPU 기반 실행 및 이전의 FPGA 작업과 비교하여 FPGA 기반 DRNN 구현의 성능 및 효율성을 평가한다.
  • 파이썬/테오리오에서 훈련된 DRNN 모델을 Jupyter 노트북을 통해 PYNQ 플랫폼으로 원활하게 배포하는 것을 보여준다.

제안 방법

  • DRNN 언어 모델은 사전에 CPU 플랫폼에서 파이썬과 테오리오를 사용해 훈련한 후 PYNQ 보드에 배포되었다.
  • PYNQ 오버레이 프레임워크를 사용하여 하드웨어 가속기를 구현하였으며, 이는 프로그래밍 가능한 논리용 하드웨어 라이브러리 추상화를 제공한다.
  • 처리 시스템과 프로그래밍 가능한 논리 간 고속 데이터 스트리밍을 가능하게 하기 위해 가속기는 AXI 스트림 인터페이스를 사용한다.
  • 시스템은 듌량 ARM 코어텍스-A9 프로세서 2개와 프로그래밍 가능한 논리가 탑재된 Xilinx ZYNQ SoC(XC7Z020)를 장착한 PYNQ 보드에서 검증되었다.
  • 모델 배포 및 성능 평가는 PYNQ 운영 체제에서 실행되는 Jupyter 노트북을 통해 수행되었다.
  • 하드웨어 설계는 FPGA 상에서 순환 네트워크 레이어의 저지연, 고처리량 추론을 최적화하였다.

실험 결과

연구 질문

  • RQ1복잡한 DRNN 언어 모델이 PYNQ 보드와 같은 단일 저전력 FPGA 플랫폼에 성공적으로 구현되고 가속화될 수 있는가?
  • RQ2AXI 스트림 인터페이스를 갖춘 FPGA 가속기를 사용해 DRNN 추론을 CPU 실행에서 이관함으로써 얻을 수 있는 성능 향상은 어느 정도인가?
  • RQ3이전의 작업과 비교할 때 제안된 FPGA 가속기의 처리량 및 효율성 측면에서 성능는 어떻게 되는가?
  • RQ4PYNQ 플랫폼은 임베디드 NLP 시스템에서 소프트웨어로 훈련된 모델과 하드웨어 가속화를 얼마나 원활하게 통합할 수 있는가?

주요 결과

  • DRNN 언어 모델은 성공적으로 PYNQ 보드에 배포되어 임베디드 시스템과 실시간 추론에 적합함을 입증했다.
  • 하드웨어 가속기는 최대 20 GOPS의 처리량을 달성하여 CPU 기반 추론을 크게 능가했다.
  • 기준 작업(참고문헌 30) 대비 70.5배의 성능 향상을 달성했다.
  • 참고문헌 31의 작업 대비 2.75배의 성능 향상을 확보하여 개선된 효율성과 성능을 확인했다.
  • PYNQ 오버레이 프레임워크의 사용은 효율적인 하드웨어-소프트웨어 공동 설계를 가능하게 하였으며, Jupyter 노트북을 통한 배포를 간소화했다.
  • 이 시스템은 경량이고 이동성이 뛰어난 NLP 응용 프로그램을 위한 FPGA 기반 가속화의 실현 가능성을 보여준다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.