arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.00526cs.LGcs.AI
收藏

一种面向移动实时的BERT应用的压缩编译框架

A Compression-Compilation Framework for On-mobile Real-time BERT Applications

College of William and Mary(威廉与玛丽学院);Northeastern University(东北大学);University of Notre Dame(圣母大学);University of Connecticut(康涅狄格大学);IBM Research(IBM研究院)

Wei Niu, Zhenglun Kong, Geng Yuan, Weiwen Jiang, Jiexiong Guan, Caiwen Ding, Pu Zhao, Sijia Liu, Bin Ren, Yanzhi Wang

摘要:

基于transformer的深度学习模型在许多自然语言处理(NLP)任务中越来越显示出高准确性。在本文中,我们提出了一个压缩-编译协同设计框架,可以保证确定的模型,以满足移动设备的资源和实时的【形】规格。我们的框架应用了一种编译器感知的神经架构优化方法(CANAO),它可以生成平衡准确性和延迟的最佳压缩模型。与TensorFlow-Lite相比,我们能够实现高达7.8倍的加速,只有轻微的准确性损失。我们提出了两种类型的BERT应用在移动设备上:问答(QA)和文本生成。两者都可以实时的【形】执行,延迟低至45 ms。可以在https://www.youtube.com/watch?上找到演示该框架的视频v=_WIRvK_2PZI

英文摘要:

Transformer-based deep learning models have increasingly demonstrated high accuracy on many natural language processing (NLP) tasks. In this paper, we propose a compression-compilation co-design framework that can guarantee the identified model to meet both resource and real-time specifications of mobile devices. Our framework applies a compiler-aware neural architecture optimization method (CANAO), which can generate the optimal compressed model that balances both accuracy and latency. We are able to achieve up to 7.8x speedup compared with TensorFlow-Lite with only minor accuracy loss. We present two types of BERT applications on mobile devices: Question Answering (QA) and Text Generation. Both can be executed in real-time with latency as low as 45ms. Videos for demonstrating the framework can be found on https://www.youtube.com/watch?v=_WIRvK_2PZI

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

↑