SqueezeBERT:计算机视觉能教会NLP哪些关于高效神经网络的知识?
SqueezeBERT: What can computer vision teach NLP about efficient neural networks?
摘要:
人类每天阅读和编写数千亿条信息。此外,由于大型数据集、大型计算系统和更好的神经网络模型的可用性,自然语言处理(NLP)技术在理解、校对和组织这些消息方面取得了重大进展。因此,在无数应用程序中部署NLP以帮助Web用户,社交网络和企业是一个重要的机会。特别是,我们认为智能手机和其他移动设备是大规模部署NLP模型的关键平台。然而,当今高精度的NLP神经网络模型,如BERT和RoBERTa,计算成本非常高,BERT-base需要1.7秒才能在Pixel 3智能手机上对文本片段进行分类。在这项工作中,我们观察到分组卷积等方法为计算机视觉网络带来了显着的加速,但其中许多技术尚未被NLP神经网络设计者采用。我们演示了如何用分组卷积替换自注意层中的几个操作,并在一种名为SqueezeBERT的新型网络架构中使用这种技术,该架构在Pixel 3上的运行速度比BERT-base快4.3倍,同时在GLUE测试集上实现了有竞争力的准确性。SqueezeBERT代码将被释放。
英文摘要:
Humans read and write hundreds of billions of messages every day. Further, due to the availability of large datasets, large computing systems, and better neural network models, natural language processing (NLP) technology has made significant strides in understanding, proofreading, and organizing these messages. Thus, there is a significant opportunity to deploy NLP in myriad applications to help web users, social networks, and businesses. In particular, we consider smartphones and other mobile devices as crucial platforms for deploying NLP models at scale. However, today's highly-accurate NLP neural network models such as BERT and RoBERTa are extremely computationally expensive, with BERT-base taking 1.7 seconds to classify a text snippet on a Pixel 3 smartphone. In this work, we observe that methods such as grouped convolutions have yielded significant speedups for computer vision networks, but many of these techniques have not been adopted by NLP neural network designers. We demonstrate how to replace several operations in self-attention layers with grouped convolutions, and we use this technique in a novel network architecture called SqueezeBERT, which runs 4.3x faster than BERT-base on the Pixel 3 while achieving competitive accuracy on the GLUE test set. The SqueezeBERT code will be released.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。