arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.06535cs.AR
收藏

NPE:一种基于FPGA的自然语言处理覆盖处理器

NPE: An FPGA-based Overlay Processor for Natural Language Processing

Hamza Khan, Asma Khan, Zainab Khan, Lun Bin Huang, Kun Wang, Lei He

摘要:

近年来,基于transformer的模型在自然语言处理(NLP)中显示出了最先进的结果。特别是BERT语言模型的引入,为问答和自然语言推理等任务带来了突破,推动了允许人类与嵌入式设备自然交互的应用。基于FPGA的叠加处理器已被证明是边缘图像和视频处理应用的有效解决方案,这些应用主要依赖于低精度线性矩阵运算。相比之下,基于变换器的NLP技术采用各种具有显著更高频率的更高精度的非线性运算。我们提出了NPE,一个基于FPGA的覆盖处理器,可以有效地执行各种NLP模型。NPE为最终用户提供类似软件的可编程性,并且与为每个非线性函数实现专用加速器的FPGA设计不同,NPE可以升级为未来的NLP模型,而无需重新配置。我们证明了NPE可以满足BERT语言模型的实时会话AI延迟目标,其中$4\times$的功耗低于CPU,$6\times$的功耗低于GPU。我们还表明,NPE使用$3\times$较少的FPGA资源,相对于文献中可比的BERT网络特定的加速器。NPE为边缘的自然语言处理提供了一种基于FPGA的经济高效的解决方案。

英文摘要:

In recent years, transformer-based models have shown state-of-the-art results for Natural Language Processing (NLP). In particular, the introduction of the BERT language model brought with it breakthroughs in tasks such as question answering and natural language inference, advancing applications that allow humans to interact naturally with embedded devices. FPGA-based overlay processors have been shown as effective solutions for edge image and video processing applications, which mostly rely on low precision linear matrix operations. In contrast, transformer-based NLP techniques employ a variety of higher precision nonlinear operations with significantly higher frequency. We present NPE, an FPGA-based overlay processor that can efficiently execute a variety of NLP models. NPE offers software-like programmability to the end user and, unlike FPGA designs that implement specialized accelerators for each nonlinear function, can be upgraded for future NLP models without requiring reconfiguration. We demonstrate that NPE can meet real-time conversational AI latency targets for the BERT language model with $4\times$ lower power than CPUs and $6\times$ lower power than GPUs. We also show NPE uses $3\times$ fewer FPGA resources relative to comparable BERT network-specific accelerators in the literature. NPE provides a cost-effective and power-efficient FPGA-based solution for Natural Language Processing at the edge.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑